
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --bg-dark: #07080d;
  --bg-card: rgba(14, 17, 26, 0.72);
  --bg-card-border: rgba(255, 215, 0, 0.22);
  --bg-card-border-hover: rgba(255, 215, 0, 0.5);

  --gold-primary: #ffb703;
  --gold-light: #ffe066;
  --gold-dark: #cc8b00;
  --gold-glow: rgba(255, 183, 3, 0.45);
  --gold-gradient: linear-gradient(135deg, #ffd000 0%, #ff9500 50%, #e07a00 100%);

  --cyan-neon: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.35);
  --emerald-neon: #10b981;
  --emerald-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #06b6d4 100%);
  --purple-vip: #8b5cf6;
  --purple-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --card-max-width: 440px;
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  height: 100%;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  position: relative;
  overflow-x: hidden;
  padding: env(safe-area-inset-top, 16px) env(safe-area-inset-right, 16px) env(safe-area-inset-bottom, 24px) env(safe-area-inset-left, 16px);
}

#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  touch-action: none;
}

.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  pointer-events: none;
  z-index: 1;
}

.glow-top {
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, #ffb703 0%, rgba(255, 183, 3, 0) 70%);
}

.glow-bottom {
  bottom: -250px;
  right: -100px;
  background: radial-gradient(circle, #7c3aed 0%, rgba(124, 58, 237, 0) 70%);
}

.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.page-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--card-max-width);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 auto;
}

.top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px;
  width: 100%;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 5px 12px;
}

.brand-chip-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  font-family: var(--font-heading);
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-neon);
  box-shadow: 0 0 10px var(--emerald-neon);
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--emerald-neon); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}

.tool-btn:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

.tool-btn:active {
  transform: scale(0.92);
}

.tool-btn .icon {
  width: 17px;
  height: 17px;
}

.hidden {
  display: none !important;
}

.card-3d-scene {
  perspective: 1200px;
  width: 100%;
}

.card-3d {
  position: relative;
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--radius-xl);
  padding: 26px 20px 24px 20px;
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 40px -10px rgba(255, 183, 3, 0.18),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  overflow: visible;
}

.hologram-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 20%),
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 215, 0, 0.12) 35%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0.6;
  z-index: 4;
  mix-blend-mode: overlay;
  transition: opacity 0.3s ease;
}

.card-border-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.35) 0%,
    transparent 40%,
    rgba(0, 240, 255, 0.25) 70%,
    rgba(255, 183, 3, 0.35) 100%
  );
  z-index: -1;
  pointer-events: none;
}

.mascot-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 12px auto 16px auto;
  cursor: pointer;
  transform: translateZ(45px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-3d-wrapper:active {
  transform: translateZ(25px) scale(0.97);
}

@keyframes mascotBounceReturn {
  0% { transform: translateZ(45px) scale(1) rotate(0deg); }
  25% { transform: translateZ(65px) scale(1.05) rotate(1deg); }
  50% { transform: translateZ(35px) scale(0.98) rotate(-1deg); }
  75% { transform: translateZ(50px) scale(1.02) rotate(0.5deg); }
  100% { transform: translateZ(45px) scale(1) rotate(0deg); }
}

.mascot-3d-wrapper.bouncing {
  animation: mascotBounceReturn 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.avatar-ring-glow {
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  background: conic-gradient(from 0deg, #ffd700, #ff8c00, #00f0ff, #ffd700);
  filter: blur(10px);
  opacity: 0.65;
  animation: rotateRing 10s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 226, 89, 0.8) 0%, rgba(255, 167, 81, 0.4) 50%, rgba(0, 240, 255, 0.6) 100%);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(255, 183, 3, 0.35);
  overflow: visible;
}

.avatar-video-mask {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.mascot-video,
.mascot-img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #000;
  transition: transform 0.35s ease;
}

.mascot-3d-wrapper:hover .mascot-video,
.mascot-3d-wrapper:hover .mascot-img {
  transform: scale(1.03);
}

.hustler-badge-3d {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 38px;
  height: 38px;
  background: var(--gold-gradient);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.6),
    0 0 12px var(--gold-glow);
  transform: translateZ(25px);
  animation: floatBadge 3s ease-in-out infinite alternate;
}

.gold-dollar-symbol {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: #0b0c10;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

@keyframes floatBadge {
  0% { transform: translateZ(25px) translateY(0); }
  100% { transform: translateZ(35px) translateY(-4px); }
}

.ted-speech-bubble {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.8);
  background: rgba(18, 22, 34, 0.96);
  border: 1.5px solid var(--gold-primary);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 183, 3, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 50;
}

.ted-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--gold-primary);
}

.ted-speech-bubble.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.hero-info-layer {
  text-align: center;
  margin-bottom: 20px;
  transform: translateZ(35px);
}

.title-with-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.95rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #ffde59 50%, #ff9100 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 20px rgba(255, 183, 3, 0.3);
}

.verified-badge {
  width: 22px;
  height: 22px;
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #34d399;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-neon);
  box-shadow: 0 0 8px var(--emerald-neon);
  animation: pulseBeacon 1.8s infinite ease-in-out;
}

.action-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
  transform: translateZ(40px);
}

.action-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 74px;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
  transform-style: preserve-3d;
}

.action-btn:active {
  transform: scale(0.97) translateY(2px);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
}

.action-btn:hover .btn-shine {
  left: 200%;
}

.btn-icon-box {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 14px;
}

.btn-svg {
  width: 25px;
  height: 25px;
}

.btn-live-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--emerald-neon);
  border: 2px solid #000;
  box-shadow: 0 0 8px var(--emerald-neon);
}

.btn-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  min-width: 0;
}

.btn-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.btn-desc {
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.88;
}

.btn-badge {
  font-family: var(--font-heading);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.pulse-badge {
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.gold-badge {
  background: rgba(255, 183, 3, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

.purple-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-arrow {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-left: 8px;
  flex-shrink: 0;
}

.action-btn:hover .btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.btn-operator {
  background: var(--gold-gradient);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #0b0c10;
  box-shadow:
    0 10px 25px -5px rgba(255, 150, 0, 0.45),
    0 0 20px rgba(255, 183, 3, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

.btn-operator .btn-icon-box {
  background: #000;
  color: var(--gold-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-operator .btn-title {
  color: #07080d;
}

.btn-operator .btn-desc {
  color: #261f00;
  font-weight: 600;
}

.btn-operator .btn-arrow {
  color: #07080d;
}

.btn-operator:hover {
  box-shadow:
    0 14px 32px -4px rgba(255, 150, 0, 0.6),
    0 0 30px rgba(255, 183, 3, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.btn-menu {
  background: var(--emerald-gradient);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow:
    0 10px 25px -5px rgba(16, 185, 129, 0.4),
    0 0 15px rgba(6, 182, 212, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-menu .btn-icon-box {
  background: rgba(0, 0, 0, 0.35);
  color: #a7f3d0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-menu .btn-title {
  color: #ffffff;
}

.btn-menu .btn-desc {
  color: #d1fae5;
}

.btn-menu:hover {
  box-shadow:
    0 14px 32px -4px rgba(16, 185, 129, 0.55),
    0 0 25px rgba(6, 182, 212, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-group {
  background: var(--purple-gradient);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow:
    0 10px 25px -5px rgba(124, 58, 237, 0.4),
    0 0 15px rgba(147, 51, 234, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-group .btn-icon-box {
  background: rgba(0, 0, 0, 0.35);
  color: #ddd6fe;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-group .btn-title {
  color: #ffffff;
}

.btn-group .btn-desc {
  color: #ede9fe;
}

.btn-group:hover {
  box-shadow:
    0 14px 32px -4px rgba(124, 58, 237, 0.55),
    0 0 25px rgba(147, 51, 234, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-custom {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0f172a 100%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #ffffff;
  box-shadow:
    0 10px 25px -5px rgba(2, 132, 199, 0.4),
    0 0 15px rgba(0, 240, 255, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.btn-custom .btn-icon-box {
  background: rgba(0, 0, 0, 0.4);
  color: #38bdf8;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-custom .btn-title {
  color: #ffffff;
}

.btn-custom .btn-desc {
  color: #e0f2fe;
}

.btn-custom:hover {
  box-shadow:
    0 14px 32px -4px rgba(2, 132, 199, 0.6),
    0 0 25px rgba(0, 240, 255, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.trust-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  transform: translateZ(25px);
}

.trust-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  transition: var(--transition-fast);
}

.trust-item:hover {
  background: rgba(255, 215, 0, 0.05);
  border-color: rgba(255, 215, 0, 0.2);
}

.trust-icon {
  width: 17px;
  height: 17px;
  color: var(--gold-light);
}

.trust-item span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
}

.toast-pill {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(18, 22, 34, 0.95);
  border: 1px solid var(--gold-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 183, 3, 0.3);
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-pill.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 380px) {
  .card-3d {
    padding: 20px 14px 18px 14px;
  }
  .brand-title {
    font-size: 1.7rem;
  }
  .action-btn {
    min-height: 68px;
    padding: 10px 14px;
  }
  .btn-icon-box {
    width: 42px;
    height: 42px;
    margin-right: 12px;
  }
  .btn-svg {
    width: 21px;
    height: 21px;
  }
  .btn-title {
    font-size: 1.1rem;
  }
}
