@import url('tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

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

html, body {
  background-color: #F8FAFC;
  background-image: 
    radial-gradient(circle at 10% 12%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 15%, rgba(2, 132, 199, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(225, 29, 72, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 18% 85%, rgba(5, 150, 105, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 82% 90%, rgba(217, 119, 6, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  background-size: cover;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Container */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 16px);
  position: relative;
  background: #FFFFFF;
}

/* Typography & Dopamine Text Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text-primary);
}

.text-gold {
  color: var(--gold-dark);
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan {
  color: var(--electric-cyan);
}

.text-emerald {
  color: var(--neon-emerald);
}

.text-magenta {
  color: var(--hot-magenta);
}

.text-purple {
  color: var(--vivid-purple);
}

.text-rainbow {
  background: var(--rainbow-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowShimmer 5s linear infinite;
}

/* High-Dopamine Badges */
.badge-demo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FCD34D;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.badge-cyan {
  background: #E0F2FE;
  color: #0284C7;
  border: 1px solid #BAE6FD;
}

.badge-emerald {
  background: #D1FAE5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.badge-magenta {
  background: #FFE4E6;
  color: #E11D48;
  border: 1px solid #FECDD3;
}

.badge-flame {
  background: linear-gradient(135deg, #FFEDD5, #FFE4E6);
  color: #EA580C;
  border: 1px solid #FDBA74;
  animation: pulseFlame 2s ease-in-out infinite;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 15px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 16px;
  padding-right: 16px;
  transition: all 0.3s ease;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-icon-mini {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 8px rgba(217, 119, 6, 0.3));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-subtitle {
  font-size: 9px;
  color: #64748B;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

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

.header-balance-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #B45309;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
  transition: all 0.2s ease;
}

.header-balance-pill:active {
  transform: scale(0.95);
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.btn-icon:hover, .btn-icon:active {
  background: #E0F2FE;
  border-color: #0284C7;
  color: #0284C7;
  transform: scale(0.96);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--hot-magenta);
}

/* Bottom Navigation */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #64748B;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  transition: all 0.2s ease;
  flex: 1;
  height: 100%;
  touch-action: manipulation;
}

.nav-tab * {
  pointer-events: none;
}

.nav-tab svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  transition: all 0.2s ease;
}

.nav-tab.active {
  color: #0F172A;
}

/* Center MAN Action Button */
.nav-tab-center {
  position: relative;
  top: -18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.man-orb-button {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 50%, #FDE68A 100%);
  border: 2px solid #D97706;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3), 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.man-orb-button::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: var(--radius-full);
  border: 2px dashed rgba(2, 132, 199, 0.5);
  animation: rotateDisc 10s linear infinite;
}

.man-orb-button:active {
  transform: scale(0.92);
}

.man-orb-icon {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 2px 6px rgba(217, 119, 6, 0.4));
}

.nav-tab-center-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 900;
  color: #B45309;
  margin-top: 4px;
  letter-spacing: 0.06em;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 28px 16px 36px 16px;
  overflow: hidden;
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
  border-bottom: 1px solid #E2E8F0;
}

.hero-glow-orb {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15), rgba(124, 58, 237, 0.1), transparent 70%);
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 12px;
  color: #0F172A;
}

.hero-subtitle {
  font-size: 13px;
  color: #475569;
  max-width: 440px;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* 3D Animated Coin Showcase */
.coin-showcase-container {
  margin: 8px 0 26px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coin-3d {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 35% 35%, #FFFBEB, #F59E0B 50%, #B45309 95%);
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.3), 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: coinFloat 4s ease-in-out infinite;
  cursor: pointer;
  position: relative;
}

.coin-3d-inner {
  width: 116px;
  height: 116px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 3px solid #D97706;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.coin-emblem {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  color: #B45309;
  letter-spacing: -0.05em;
  line-height: 1;
}

.coin-sub-emblem {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #0284C7;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 900;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: #F0F9FF;
  color: #0284C7;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-md);
  border: 1px solid #BAE6FD;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary:active {
  background: #E0F2FE;
  transform: scale(0.97);
}

/* Ecosystem Visualizer Section */
.ecosystem-section {
  padding: 28px 16px;
  position: relative;
  background: #FFFFFF;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title-wrap h2 {
  font-size: 20px;
  font-weight: 900;
  color: #0F172A;
}

.section-subtitle {
  font-size: 12px;
  color: #64748B;
}

.section-link {
  font-size: 12px;
  font-weight: 800;
  color: #0284C7;
  text-decoration: none;
  cursor: pointer;
}

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

@media (min-width: 600px) {
  .ecosystem-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ecosystem-node {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ecosystem-node:hover, .ecosystem-node:active {
  border-color: #D97706;
  background: #FEF3C7;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.15);
}

.ecosystem-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 20px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ecosystem-node-title {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
}

.ecosystem-node-desc {
  font-size: 10px;
  color: #64748B;
}

/* Horizontal Scroll Containers */
.feed-scroll-container {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-scroll-container::-webkit-scrollbar {
  display: none;
}

/* Movie Cards */
.movie-card {
  flex: 0 0 165px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.movie-card:hover, .movie-card:active {
  transform: translateY(-4px) scale(1.02);
  border-color: #0284C7;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.18);
}

.movie-poster-wrap {
  width: 100%;
  height: 220px;
  position: relative;
  background: #F1F5F9;
}

.movie-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movie-rating-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid #FCD34D;
  border-radius: var(--radius-full);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  color: #B45309;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.movie-exclusive-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: linear-gradient(135deg, #E11D48, #7C3AED);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 900;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.movie-info {
  padding: 12px 10px;
}

.movie-title {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.movie-meta {
  font-size: 11px;
  color: #64748B;
}

/* Crowdfunding Campaign Card */
.campaign-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.campaign-card:active, .campaign-card:hover {
  border-color: #059669;
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.15);
  transform: translateY(-3px);
}

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

.campaign-title {
  font-size: 15px;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 4px;
}

.campaign-logline {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #059669 0%, #0284C7 50%, #D97706 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.campaign-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748B;
}

.campaign-stat-val {
  font-weight: 800;
  color: #0F172A;
}

/* Mining / Node Teaser Box */
.mining-teaser-card {
  margin: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F0FDF4 0%, #EFF6FF 50%, #FAF5FF 100%);
  border: 1px solid #BAE6FD;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.08);
}

.mining-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: #059669;
  display: inline-block;
  margin-right: 6px;
}

.mining-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.telemetry-item {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.telemetry-label {
  font-size: 10px;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}

/* Modal Bottom Drawer */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  width: 100%;
  max-width: 540px;
  max-height: 88vh;
  background: #FFFFFF;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border-top: 2px solid #D97706;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.15);
  padding: 20px 20px calc(24px + var(--safe-bottom)) 20px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .bottom-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 44px;
  height: 4px;
  border-radius: var(--radius-full);
  background: #CBD5E1;
  margin: 0 auto 18px auto;
}

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

.sheet-title {
  font-size: 18px;
  font-weight: 900;
  color: #0F172A;
}

.sheet-close-btn {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #64748B;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sheet-close-btn:hover {
  background: #FFE4E6;
  color: #E11D48;
  border-color: #FECDD3;
}

/* Animations */
@keyframes coinFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

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

@keyframes pulseFlame {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes rainbowShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Responsive Desktop Wrapper for Mobile Customer App */
@media (min-width: 768px) {
  body:not(.admin-mode-active) #app {
    max-width: 600px;
    margin: 0 auto;
    border-left: 1px solid #E2E8F0;
    border-right: 1px solid #E2E8F0;
    min-height: 100vh;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
    background: #FFFFFF;
  }
  body:not(.admin-mode-active) .app-bottom-nav {
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 1px solid #E2E8F0;
    border-right: 1px solid #E2E8F0;
  }
}

body.admin-mode-active,
body.admin-mode-active #app {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Cinema Seat Map Node */
.seat-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  color: #0F172A;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.seat-node:hover {
  border-color: #D97706;
}

.seat-node.selected {
  background: var(--gold-gradient);
  border-color: #D97706;
  color: #FFFFFF;
}

.seat-node.booked {
  background: #F8FAFC;
  border-color: #E2E8F0;
  color: #94A3B8;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Entertainment Mining & 3D Reward Animations */
@keyframes coinRotate3D {
  0% { transform: perspective(600px) rotateY(0deg); }
  50% { transform: perspective(600px) rotateY(180deg); }
  100% { transform: perspective(600px) rotateY(360deg); }
}

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

.mining-coin-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mining-coin-3d {
  width: 110px;
  height: 110px;
  animation: coinRotate3D 6s linear infinite;
  border-radius: 50%;
  filter: drop-shadow(0 6px 16px rgba(217, 119, 6, 0.35));
  cursor: pointer;
  transition: transform 0.3s ease;
}

.mining-coin-3d:hover {
  transform: scale(1.08);
}

.mining-energy-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  border: 2px dashed rgba(2, 132, 199, 0.6);
  border-radius: 50%;
  animation: energyRingSpin 10s linear infinite;
  pointer-events: none;
}

.mining-energy-ring-inner {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 120px;
  height: 120px;
  border: 2px dashed rgba(217, 119, 6, 0.7);
  border-radius: 50%;
  animation: energyRingSpin 7s linear infinite reverse;
  pointer-events: none;
}

.mining-start-pulse-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 16px 28px;
  border-radius: var(--radius-full);
  border: none;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
}

.mining-start-pulse-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.5);
}

.mining-start-pulse-btn:active {
  transform: translateY(1px) scale(0.98);
}

@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.header-ref-pill:hover {
  transform: translateY(-1px);
  border-color: #F59E0B !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3) !important;
}

.header-ref-pill:active {
  transform: scale(0.96);
}
