/* Base Reset and Typography */
:root {
  /* Darker Palette for Battle Royale Theme */
  --primary: #FFD700; /* Gold */
  --secondary: #FF4545; /* Intense Red */
  --accent-blue: #00E5FF; /* Cyan */
  --accent-green: #00FF94; /* Neon Green */
  
  --bg-color: #000000; 
  --card-bg: rgba(10, 10, 12, 0.92); /* Very dark, almost opaque */
  --text-color: #ffffff;
  --input-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  animation: fadeOutLoading 0.5s ease-out 3s forwards;
}

@keyframes fadeOutLoading {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(255, 215, 0, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
  margin-bottom: 24px;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    transform: scale(1.05);
  }
}

.loading-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFD700;
  letter-spacing: 3px;
  margin-bottom: 20px;
  animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  border-radius: 2px;
  animation: loading-fill 2s ease-in-out forwards;
}

@keyframes loading-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Sound Toggle Button */
.sound-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background: rgba(20, 20, 30, 0.9);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  color: #FFD700;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.sound-toggle:hover {
  border-color: #FFD700;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.sound-toggle.muted {
  color: #666;
  border-color: rgba(255, 255, 255, 0.1);
}

.sound-toggle.muted:hover {
  border-color: #666;
  box-shadow: none;
}

/* Map Background */
#map-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Country Label on Map */
.country-label {
  background: transparent;
}

.country-label .label-text {
  background: rgba(0, 0, 0, 0.85);
  color: #FFD700;
  padding: 12px 24px;
  border-radius: 30px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Country Info Card on Map */
.country-info-card {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #FFD700;
  border-radius: 16px;
  padding: 16px 20px;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3), 0 0 60px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.country-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.country-flag {
  font-size: 2.5rem;
  line-height: 1;
}

.country-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFD700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.country-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  flex: 1;
}

.stat-item.fighters {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.stat-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.stat-item.fighters .stat-value {
  color: #FFD700;
}

/* Leaderboard */
.leaderboard {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #FFD700;
  border-radius: 16px;
  padding: 16px;
  margin-top: 1.5rem;
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(10px);
}

.leaderboard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.leaderboard-arrow {
  margin-left: auto;
  font-size: 0.8rem;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.leaderboard-mobile.collapsed .leaderboard-arrow {
  transform: rotate(-90deg);
}

.leaderboard-icon {
  font-size: 1.5rem;
}

.leaderboard-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #FFD700;
  letter-spacing: 1px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.leaderboard-item:hover {
  background: rgba(255, 215, 0, 0.1);
}

.leaderboard-item.top-3 {
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.leaderboard-rank {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFD700;
  min-width: 24px;
  text-align: center;
}

.leaderboard-flag {
  font-size: 1.3rem;
}

.leaderboard-country {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-count {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: #00E5FF;
  background: rgba(0, 229, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.leaderboard-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 20px 0;
}

/* Mobile: show mobile leaderboard, hide desktop */
.leaderboard-mobile {
  display: block;
}

.leaderboard-desktop {
  display: none;
}

/* Show Map Button - Mobile Only */
.show-map-btn {
  display: none;
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid #FFD700;
  border-radius: 12px;
  color: #FFD700;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.show-map-btn:hover {
  background: rgba(255, 215, 0, 0.1);
}

/* Referral Leaderboard Button */
.referral-leaderboard-btn {
  display: flex;
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.1) 100%);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  color: #FFD700;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.referral-leaderboard-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

/* Fullscreen Map Overlay - Mobile */
.map-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: #0a0a0c;
}

.map-overlay.active {
  display: block;
}

.map-overlay-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid #FFD700;
  color: #FFD700;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-overlay #map-fullscreen {
  width: 100%;
  height: 100%;
}

.mobile-country-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(20, 20, 30, 0.95) 0%, rgba(30, 30, 45, 0.95) 100%);
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 16px;
  padding: 16px 20px;
  z-index: 1001;
  min-width: 280px;
  max-width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.2);
  backdrop-filter: blur(10px);
}

.mobile-country-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.mobile-country-flag {
  font-size: 2.5rem;
}

.mobile-country-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFD700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.mobile-country-stats {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}

.mobile-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  min-width: 70px;
}

.mobile-stat-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.mobile-stat-label {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mobile-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
}

.mobile-stat-item.fighters {
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.4);
}

.mobile-stat-item.fighters .mobile-stat-value {
  color: #FFD700;
}

/* Desktop: hide mobile leaderboard, show desktop fixed */
@media (min-width: 769px) {
  .leaderboard-mobile {
    display: none;
  }
  
  .leaderboard-desktop {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    margin-top: 0;
    min-width: 200px;
    max-width: 250px;
  }
  
  /* Hide mobile-only elements on desktop */
  .show-map-btn {
    display: none !important;
  }
  
  .map-overlay {
    display: none !important;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  z-index: 1;
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .container {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
    max-width: 100%;
    padding: 0.5rem;
  }
  
  .card {
    padding: 1.25rem 1rem;
    border-radius: 20px;
  }
  
  header {
    margin-bottom: 1rem;
  }
  
  .logo-container {
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
  }
  
  .subtitle {
    font-size: 0.85rem;
  }
  
  .form-group {
    margin-bottom: 0.75rem;
  }
  
  label {
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
  }
  
  input, select {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }
  
  .btn {
    padding: 0.9rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }
  
  .btn-secondary {
    margin-bottom: 0.5rem;
  }
  
  /* Collapsible leaderboard on mobile */
  .leaderboard-mobile {
    margin-top: 1rem;
  }
  
  .leaderboard-mobile .leaderboard-header {
    cursor: pointer;
  }
  
  .leaderboard-mobile.collapsed .leaderboard-list {
    display: none;
  }
  
  /* Show map button for mobile */
  .show-map-btn {
    display: flex;
  }
  
  /* Mobile layout ordering - FAQ at the bottom */
  .card {
    display: flex;
    flex-direction: column;
  }
  
  .card header { order: 1; }
  .card #access-form { order: 2; }
  .card #result-area { order: 3; }
  .card .social-twitter { order: 4; }
  .card .show-map-btn { order: 5; }
  .card .referral-leaderboard-btn { order: 6; }
  .card .leaderboard-mobile { order: 7; }
  .card .faq-section { order: 8; }
}

/* Card */
.card {
  background: rgba(10, 10, 12, 0.75);
  padding: 2.5rem 2rem;
  border-radius: 32px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255,255,255,0.1);
}

@keyframes slideUp {
  from { transform: translateY(50px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-container {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  position: relative;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.15);
  background: #000;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1);
}

.subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.4;
}

.subtitle-highlight {
  color: #14F195;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(20, 241, 149, 0.5);
}

/* Countdown Timer */
.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border: 1px solid rgba(20, 241, 149, 0.2);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.countdown-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #14F195;
  text-shadow: 0 0 15px rgba(20, 241, 149, 0.5);
  font-family: 'Courier New', monospace;
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

.countdown-separator {
  font-size: 1.5rem;
  font-weight: 700;
  color: #14F195;
  opacity: 0.7;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

/* Contract Address */
.contract-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(20, 241, 149, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.contract-container:hover {
  border-color: rgba(20, 241, 149, 0.5);
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.contract-container.copied {
  border-color: #14F195;
  background: rgba(20, 241, 149, 0.1);
}

.contract-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.contract-address {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: #14F195;
  word-break: break-all;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(20, 241, 149, 0.3);
}

.contract-copy-hint {
  font-size: 0.6rem;
  color: #64748b;
  margin-top: 0.3rem;
  transition: color 0.3s ease;
}

.contract-container:hover .contract-copy-hint {
  color: #94a3b8;
}

.contract-container.copied .contract-copy-hint {
  color: #14F195;
}

/* Mobile countdown adjustments */
@media (max-width: 480px) {
  .countdown-container {
    gap: 0.3rem;
    padding: 0.8rem 0.5rem;
  }
  
  .countdown-item {
    min-width: 40px;
  }
  
  .countdown-value {
    font-size: 1.4rem;
  }
  
  .countdown-label {
    font-size: 0.55rem;
  }
  
  .countdown-separator {
    font-size: 1.2rem;
  }
}

/* Twitter Social Link */
.social-twitter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
  padding: 12px 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.social-twitter:hover {
  border-color: #1DA1F2;
  background: linear-gradient(135deg, #1DA1F2 0%, #0d8bd9 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(29, 161, 242, 0.4);
}

.social-twitter svg {
  transition: transform 0.3s ease;
}

.social-twitter:hover svg {
  transform: scale(1.1);
}

/* FAQ Section */
.faq-section {
  margin-top: 1.5rem;
  padding: 16px;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
}

.faq-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.faq-icon {
  font-size: 1.2rem;
}

.faq-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #FFD700;
  letter-spacing: 2px;
}

.faq-item {
  margin-bottom: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item:hover {
  background: rgba(255, 215, 0, 0.1);
}

.faq-question {
  font-weight: 600;
  font-size: 0.9rem;
  color: #FFFFFF;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-question::before {
  content: "▸";
  color: #FFD700;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-question::before {
  transform: rotate(90deg);
}

.faq-answer {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-top: 8px;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

input, select {
  width: 100%;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: white;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  outline: none;
}

input:focus, select:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.15);
}

/* Custom Select Styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  cursor: pointer;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 1.2rem;
  border-radius: 16px;
  border: none;
  font-size: 1.1rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  margin-top: 1.5rem;
  font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
  background: #ffea00;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -10px rgba(255, 215, 0, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  margin-top: 1rem;
  text-decoration: none;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.btn-share {
  background: linear-gradient(135deg, #1DA1F2 0%, #0d8ecf 100%);
  color: #fff;
  margin-top: 1rem;
  text-decoration: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.btn-share:hover {
  background: linear-gradient(135deg, #1a91da 0%, #0a7ab8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.btn-primary:disabled {
  background: #27272a;
  color: #52525b;
  cursor: not-allowed;
}

/* Result Area */
#result-area {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.referral-link {
  background: rgba(0, 0, 0, 0.5);
  padding: 1.25rem;
  border-radius: 12px;
  word-break: break-all;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  margin-top: 1rem;
  color: var(--accent-green);
  border: 1px dashed var(--accent-green);
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.referral-link:hover {
  background: rgba(0, 255, 148, 0.05);
}

.referral-link::after {
  content: 'Click to copy';
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 0.75rem;
  color: var(--accent-green);
  background: rgba(0,0,0,0.8);
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.referral-link:hover::after {
  opacity: 1;
}

.referral-link.copied {
  border-color: var(--primary);
  color: var(--primary);
}

.referral-link.copied::after {
  content: 'Copied!';
  color: var(--primary);
  opacity: 1;
}

.hidden {
  display: none;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .container {
    padding: 1rem;
  }
  
  .card {
    padding: 2rem 1.5rem;
  }
  
  .logo-container {
    width: 120px;
    height: 120px;
  }
}
