/* ===== MODERN BASEFORGE STYLES - DARK GREEN THEME ===== */
:root {
  --primary: #4ade80;
  --primary-dark: #22c55e;
  --primary-light: rgba(74, 222, 128, 0.1);
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --dao-color: #8b5cf6;
  --bg-dark: #0a1a0a;
  --bg-darker: #051405;
  --card-bg: #152015;
  --card-hover: #1a2a1a;
  --text-light: rgba(255, 255, 255, 0.95);
  --text-muted: rgba(255, 255, 255, 0.7);
  --text-dimmed: rgba(255, 255, 255, 0.5);
  --border-color: rgba(74, 222, 128, 0.3);
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-primary: 0 0 15px rgba(74, 222, 128, 0.3);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  padding: 2rem;
  margin: 0 auto;
  width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.main-title {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.section-title {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  line-height: 1.7;
}

.version-badge {
  font-size: 0.9rem;
  background: rgba(74, 222, 128, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  vertical-align: middle;
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-weight: 500;
}

/* Header & Navigation */
.page-header {
  background: rgba(10, 26, 10, 0.9);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--primary);
}

.nav-desktop {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.wallet-btn {
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wallet-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.wallet-icon {
  width: 18px;
  height: 18px;
}

.wallet-address {
  font-size: 0.9rem;
  color: var(--text-light);
  background: rgba(74, 222, 128, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wallet-address::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { 
    background: var(--primary);
    opacity: 1; 
  }
  50% { 
    opacity: 0.5; 
  }
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 1rem;
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(10, 26, 10, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 1px solid var(--border-light);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
}

/* Main Content */
#main-content {
  flex: 1;
  padding-bottom: 4rem;
  transition: opacity 0.3s ease;
}

.page-transition {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card Styles */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--border-color);
}

.intro-card {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-dark), #0a2a0a);
  border: 1px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.intro-card > * {
  position: relative;
  z-index: 1;
}

.referral-card {
  background: linear-gradient(135deg, var(--bg-dark), #0a2a0a);
  border: 1px solid var(--primary);
}

.disclaimer-card {
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.network-alert {
  background: rgba(255, 200, 0, 0.2);
  border: 1px solid var(--warning);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  text-align: center;
  display: none;
}

/* Quick Info Grid */
.quick-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-item {
  background: rgba(74, 222, 128, 0.1);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.info-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(74, 222, 128, 0.1);
  border-color: var(--border-color);
}

.info-item span {
  display: block;
  color: var(--text-dimmed);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.info-item strong {
  display: block;
  font-size: 1.1rem;
  word-break: break-word;
  color: var(--text-light);
}

/* Feature Cards */
.feature-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  border-left: 3px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(74, 222, 128, 0.1);
  background: var(--card-hover);
  border-color: var(--border-color);
}

.feature-card h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-card h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
}

.feature-list {
  padding-left: 1.25rem;
  color: var(--text-muted);
  list-style-type: none;
}

.feature-list li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Form Elements */
.input-container {
  position: relative;
  margin: 1.5rem 0;
}

.formatted-input {
  background: var(--card-bg);
  color: var(--text-light);
  border: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  width: 100%;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.formatted-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.input-suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dimmed);
  font-size: 0.9rem;
}

.input-hint {
  display: block;
  color: var(--text-dimmed);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.input-error {
  border-color: var(--error) !important;
  animation: shake 0.5s;
}

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

/* Button Styles */
.btn {
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem;
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

.btn:active {
  transform: translateY(0);
}

.btn-copy {
  width: auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.75rem 1.25rem;
  width: auto;
  font-size: 0.9rem;
  min-width: 120px;
}

/* Loading States */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.btn-success {
  background: var(--success) !important;
  color: white !important;
}

.btn-error {
  background: var(--error) !important;
  color: white !important;
}

/* Token Allocation Chart */
.allocation-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.pie-chart-container {
  position: relative;
  width: 220px;
  height: 220px;
}

.pie-chart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  transform: rotate(-90deg);
  background: var(--card-bg);
  transition: transform 0.5s ease;
  box-shadow: 0 0 0 1px var(--border-light);
}

.pie-chart:hover {
  transform: rotate(-90deg) scale(1.05);
}

.pie-center {
  position: absolute;
  width: 50%;
  height: 50%;
  background: var(--bg-dark);
  border-radius: 50%;
  top: 25%;
  left: 25%;
  z-index: 2;
  box-shadow: 0 0 0 1px var(--border-light);
}

.slice {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 50%, 50% 0%, 100% 0%);
  background: var(--color);
  opacity: 0;
  transform: rotate(0deg) scale(0);
  transition: all 0.8s ease;
  transition-delay: calc(var(--order) * 0.1s);
}

.slice.animate {
  opacity: 1;
  transform: rotate(calc(var(--start) * 3.6deg)) 
             rotate(calc((var(--end) - var(--start)) * 3.6deg / 2));
}

.slice::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color);
  clip-path: polygon(50% 50%, 50% 0%, 100% 0%);
  transform: rotate(calc((var(--end) - var(--start)) * 3.6deg));
  opacity: 0.8;
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.chart-legend div {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 0.75rem;
}

.legend-color.airdrop { background: var(--primary); }
.legend-color.staking { background: var(--success); }
.legend-color.cex { background: var(--warning); }
.legend-color.team { background: #FF5722; box-shadow: 0 0 0 2px var(--card-bg); }
.legend-color.dao { background: var(--dao-color); box-shadow: 0 0 0 2px var(--card-bg); }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 3rem;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.timeline-phase {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-badge {
  position: absolute;
  left: -3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px var(--bg-dark);
}

.timeline-content {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
  margin-top: 0;
  color: var(--primary);
  margin-bottom: 1rem;
}

.roadmap-list {
  list-style-type: none;
  color: var(--text-muted);
}

.roadmap-list li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.roadmap-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.completed .timeline-badge {
  background: var(--primary);
  color: #000;
}

.in-progress .timeline-badge {
  background: var(--card-bg);
}

.progress-ring {
  position: relative;
  width: 2rem;
  height: 2rem;
}

.progress-circle {
  width: 100%;
  height: 100%;
}

.progress-circle circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.5s;
}

.progress-ring span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  font-weight: bold;
}

.check-icon, .future-icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.completed .check-icon {
  fill: #000;
}

.future-icon {
  fill: var(--primary);
}

/* Referral Specific Styles */
.referral-description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.referral-link-container {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.referral-input {
  background: var(--card-bg);
  color: var(--text-light);
  border: 1px solid var(--border-light);
  padding: 1rem;
  border-radius: var(--radius-sm);
  flex: 1;
  font-family: inherit;
  width: 100%;
  transition: var(--transition);
}

.referral-input:focus {
  border-color: var(--primary);
  outline: none;
}

.copy-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.referral-stats {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.stat-item {
  background: rgba(74, 222, 128, 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  flex: 1;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(74, 222, 128, 0.1);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dimmed);
  margin-bottom: 0.5rem;
}

.stat-value {
  display: block;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--primary);
}

.referral-instructions {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.referral-instructions h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.referral-instructions ol {
  padding-left: 1.5rem;
  color: var(--text-muted);
  list-style-type: none;
  counter-reset: step-counter;
}

.referral-instructions li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.5rem;
  counter-increment: step-counter;
  line-height: 1.6;
}

.referral-instructions li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary);
  color: #000;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

/* BF Staking Calculator */
.calculator-box {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
}

.input-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.input-col {
  flex: 1;
}

.input-col label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.input-col input,
.input-col select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-family: inherit;
  transition: var(--transition);
}

.input-col input:focus,
.input-col select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.result-box {
  text-align: center;
  padding: 1rem;
  background: rgba(74, 222, 128, 0.1);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

/* Stake Cards */
.stake-card {
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid var(--primary);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.stake-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stake-info {
  flex: 1;
}

.stake-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stake-info strong {
  color: var(--primary);
}

.stake-countdown {
  font-family: monospace;
  color: var(--primary);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.toast.success {
  background: var(--success);
  color: white;
}

.toast.error {
  background: var(--error);
  color: white;
}

.toast.warning {
  background: var(--warning);
  color: #000;
}

.toast-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    padding: 1.5rem;
  }
  
  .header-container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 992px) {
  .quick-info {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .timeline::before {
    left: 1.25rem;
  }
  
  .timeline-badge {
    left: -2.5rem;
    width: 2.5rem;
    height: 2.5rem;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger-menu {
    display: block;
  }

  .wallet-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .wallet-address {
    font-size: 0.8rem;
    padding: 0.5rem;
  }
}

@media (max-width: 768px) {
  #pageTitle {
    font-size: 1.5rem;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .quick-info {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .info-item {
    padding: 1rem;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .timeline {
    padding-left: 2.5rem;
  }
  
  .timeline-badge {
    left: -2.25rem;
  }
  
  .timeline-content {
    padding: 1.25rem;
  }

  .referral-stats {
    flex-direction: column;
  }

  .stat-item {
    width: 100%;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 1rem;
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  .main-title {
    font-size: 1.75rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .quick-info {
    grid-template-columns: 1fr;
  }
  
  .formatted-input {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }
  
  .input-suffix {
    font-size: 0.8rem;
  }
  
  .btn {
    padding: 0.9rem;
    font-size: 0.9rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-value {
    font-size: 1.25rem;
  }

  /* BF Staking Mobile Layout */
  .bf-staking-card .input-row {
    flex-direction: column;
  }
  
  .bf-staking-card .input-col {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Referral Link Container */
  .referral-link-container {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Hide templates */
template {
  display: none;
}

/* Number Formatting */
.number-display {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  direction: ltr;
  display: inline-block;
  min-width: 80px;
}

/* Skeleton Loader */
.skeleton-loader {
  background: linear-gradient(90deg, #1a2a1a 25%, #1f2f1f 50%, #1a2a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  height: 1.25rem;
  margin-bottom: 0.75rem;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Additional Animations */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }