/* CSS Variables for theming */
:root {
  --bg-primary: #f9f9f9;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f7fa;
  --text-primary: #222;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --border-color: #e2e8f0;
  --nav-bg: #002868;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
}

body.dark-mode {
  --bg-primary: #1a202c;
  --bg-secondary: #2d3748;
  --bg-tertiary: #374151;
  --text-primary: #f7fafc;
  --text-secondary: #cbd5e0;
  --text-muted: #a0aec0;
  --border-color: #4a5568;
  --nav-bg: #1a202c;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 4px 16px rgba(0,0,0,0.5);
}

body { 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  margin: 0; 
  background-color: var(--bg-primary); 
  color: var(--text-primary); 
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Improve tap targets for mobile */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: rgba(0, 123, 58, 0.1);
}

/* Ensure all interactive elements have adequate touch target size */
button, a.btn, .cta-primary, .cta-secondary {
  min-height: 44px;
  min-width: 44px;
}

/* Dark mode toggle button */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 9998;
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--card-shadow-hover);
}

/* Navigation - Desktop and Mobile */
nav { 
  background-color: var(--nav-bg); 
  padding: 0;
  position: relative;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

/* Force-hide brand on admin pages at any viewport (Edge quirk safeguard) */
/* Removed .admin-hide-brand forced hiding of brand so admin can show mascot & brand consistently */
/* .admin-hide-brand .nav-brand { display: none !important; } */

/* Tiny "Admin" badge for admin pages */
.nav-badge-admin { margin-left: 0.25rem; }
.nav-badge-admin .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffeb3b; /* brighter text for contrast on dark nav */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.35);
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.nav-badge-admin .badge .lock { font-size: 0.85rem; line-height: 1; }

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex !important; /* Show on all devices */
  align-items: center;
  gap: 0.75rem;
}

.nav-brand a {
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand img,
.nav-brand .mascot {
  /* Fluid sizing via clamp(min, preferred, max): min 26px, scales at ~3.8vw, caps 42px */
  width: clamp(26px, 3.8vw, 42px);
  height: clamp(26px, 3.8vw, 42px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-toggle {
  display: flex !important; /* Show on all devices */
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  padding: 0.75rem;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  /* Ensure toggle aligns right if brand is visible (flex grow for spacer) */
  margin-left: auto;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.hamburger {
  display: block;
  width: 32px;
  height: 4px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  flex-direction: column;
  gap: 0;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  max-height: 100vh;
  background-color: #002868;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 999;
  box-shadow: -4px 0 12px rgba(0,0,0,0.3);
}

.nav-menu.active {
  right: 0;
}

.nav-menu li { 
  display: block;
  width: 100%;
}

.nav-menu li a { 
  color: #fff; 
  text-decoration: none; 
  font-weight: 600; 
  font-size: 1.125rem; 
  transition: color 0.3s ease, background-color 0.3s ease; 
  white-space: nowrap; 
  display: block;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.nav-menu li a:hover { 
  color: #ff3b3b;
  background-color: rgba(255,255,255,0.1);
}

/* Nav primary CTA (placed as last li with class .nav-cta) */
nav ul li.nav-cta { 
  margin-top: auto;
  padding-top: 2rem;
}

nav ul li.nav-cta a {
  background-color: #ff3b3b;
  color: white;
  text-align: center;
}

nav ul li.nav-cta a:hover {
  background-color: #e63232;
}
nav ul li.nav-cta a {
  background: #ff3b3b;
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  display: inline-block;
  box-shadow: 0 6px 18px rgba(255,59,59,0.16);
  transition: background 0.15s ease, transform 0.15s ease;
}
nav ul li.nav-cta a:hover { background: #d32f2f; transform: translateY(-2px); }
nav ul li.nav-cta a:focus-visible { outline: 3px solid rgba(255,59,59,0.18); outline-offset: 3px; }

/* Utility CTA classes used in hero and other spots */
.cta-primary { background:#ff3b3b; color:#fff; border-radius:8px; padding:0.6rem 1rem; font-weight:700; display:inline-block; }
.cta-secondary { background:transparent; color:inherit; }
/* Header nav badge when connected */
nav ul li.nav-badge { margin-left: auto; display:flex; align-items:center; gap:0.5rem; }
nav ul li.nav-badge .addr { background: #fff; color: #111827; padding:0.35rem 0.6rem; border-radius:8px; font-family: monospace; font-size:0.9rem; border:1px solid #eee; }
nav ul li.nav-badge button.disconnect { background:transparent; border:1px solid #e5e7eb; padding:0.3rem 0.5rem; border-radius:6px; cursor:pointer; font-weight:600; }
nav ul li.nav-badge button.disconnect:hover { background:#fff1f2; border-color:#fecaca; }
nav ul li.nav-badge .dot { width:10px; height:10px; border-radius:50%; background:#10b981; box-shadow:0 0 0 4px rgba(16,185,129,0.12); }
/* dropdown menu */
.nav-badge-menu { position:absolute; background:#fff; border:1px solid #e6e6e6; box-shadow:0 8px 30px rgba(2,6,23,0.12); padding:0.5rem; border-radius:8px; min-width:200px; right:1rem; z-index:9999; display:none; }
.nav-badge-menu a, .nav-badge-menu button { display:block; width:100%; text-align:left; padding:0.5rem 0.5rem; border-radius:6px; background:transparent; border:none; cursor:pointer; color:#111827; text-decoration:none; font-weight:600; }
.nav-badge-menu a:hover, .nav-badge-menu button:hover { background:#f3f4f6; }
.nav-badge-wrapper { position:relative; }
header.hero { background: linear-gradient(135deg, #b22234 0%, #3c3b6e 100%); color: white; text-align: center; padding: 4rem 2rem; position: relative; overflow: hidden; }
header.hero h1 { font-size: 3rem; margin-bottom: 0.5rem; letter-spacing: 0.1em; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); position: relative; z-index: 1; }
header.hero p.slogan { font-size: 1.5rem; margin-bottom: 2rem; font-weight: 600; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); position: relative; z-index: 1; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-buttons a { background-color: #ff3b3b; color: white; padding: 0.75rem 1.5rem; border-radius: 30px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 8px rgba(255,59,59,0.4); transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.cta-buttons a:hover { background-color: #d32f2f; box-shadow: 0 6px 12px rgba(211,47,47,0.6); }
/* Animated flag overlay */
.flag-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg') no-repeat center center;
	background-size: 200% auto;
	opacity: 0.15;
	animation: wave 10s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
	mix-blend-mode: overlay;
}

@keyframes wave {
	/* animate the flag wave effect */
	0% { background-position: 0 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

/* Countdown badge overlay */
.countdown-badge { position: absolute; top: 1rem; right: 1rem; background-color: #ff3b3b; color: white; padding: 0.5rem 1rem; border-radius: 20px; font-weight: 700; font-family: monospace; box-shadow: 0 2px 6px rgba(255,59,59,0.6); z-index: 10; }
main { max-width: 960px; margin: 2rem auto; padding: 0 1rem; }
footer { text-align: center; padding: 1rem 0; font-size: 0.9rem; color: #666; border-top: 1px solid #ddd; margin-top: 3rem; }
.footer-nav { margin-bottom: 1.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.footer-links li { display: inline; }
.footer-links a { color: #4b5563; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: #007b3a; }

/* Onboarding Page Styles */
.onboarding-steps {
/* ==== Enhanced Public Footer (class-based) ==== */
.site-footer {
  position: relative;
  background: linear-gradient(135deg, #b22234 0%, #3c3b6e 100%);
  color: #fff;
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
  overflow: hidden;
}
.site-footer .flag-overlay { opacity: 0.08; background-size: 160% auto; animation: wave 14s linear infinite; }
.site-footer-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.site-footer-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 2.5rem; margin-bottom: 2.5rem; }
.site-footer-mobile .site-footer-grid, .site-footer-mobile .mobile-footer-sections { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.footer-col { font-size: 0.9rem; line-height: 1.5; }
.footer-title { margin:0 0 1rem 0; font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-text { margin:0 0 1rem 0; opacity:0.9; font-size:0.85rem; }
.footer-links-col { display:flex; flex-direction:column; gap:0.6rem; }
.footer-links-col a { color: rgba(255,255,255,0.85); text-decoration:none; transition:color .2s; }
.footer-links-col a:hover { color:#ffeb3b; }
.social-inline { display:flex; gap:0.75rem; flex-wrap:wrap; }
.social-inline a { background:rgba(255,255,255,0.15); padding:0.4rem 0.75rem; border-radius:6px; font-size:0.75rem; font-weight:600; letter-spacing:0.5px; color:#fff; text-decoration:none; backdrop-filter: blur(4px); transition:background .2s, transform .2s; }
.social-inline a:hover { background:rgba(255,255,255,0.3); transform:translateY(-2px); }
.footer-bottom { text-align:center; border-top:1px solid rgba(255,255,255,0.25); padding-top:1.5rem; font-size:0.8rem; }
.footer-bottom p { margin:0.35rem 0; }
.footer-build { opacity:0.8; font-family:monospace; }
.back-to-top { position:fixed; bottom:1.5rem; right:1.5rem; background:#ff3b3b; color:#fff; border:none; width:46px; height:46px; border-radius:50%; font-size:1.1rem; cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,0.3); display:none; align-items:center; justify-content:center; z-index:9997; transition:background .2s, transform .2s; }
.back-to-top:hover { background:#d32f2f; transform:translateY(-3px); }
.dark-mode .back-to-top { box-shadow:0 4px 14px rgba(0,0,0,0.6); }
@media (max-width: 640px){
  .site-footer { padding:2.5rem 1rem 1.5rem; }
  .site-footer-grid { gap:1.75rem; }
  .social-inline a { font-size:0.65rem; }
  .footer-title { font-size:0.85rem; }
}

/* Hide original basic footer when enhanced footer present */
body .site-footer + footer.basic-footer { display:none; }
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.step-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-left: 4px solid #b22234;
}

.step-number {
  position: absolute;
  top: -1rem;
  left: -1rem;
  width: 3rem;
  height: 3rem;
  background: #002868;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.step-card h3 {
  color: #002868;
  margin: 0 0 1.5rem 2rem;
}

.step-content {
  margin-left: 2rem;
}

.wallet-options {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 2rem 0;
}

.wallet-option {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wallet-option h4 {
  color: #002868;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #b22234;
}

.wallet-option ol {
  margin: 0;
  padding-left: 1.5rem;
}

.wallet-option li {
  margin: 0.5rem 0;
}

.security-tip {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 4px;
}

.security-tip ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.5rem;
}

.security-tip li {
  margin: 0.25rem 0;
}

/* Visuals, troubleshooting, and mobile instructions for onboarding */
.screenshot-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 1.5rem 0;
}

.screenshot-placeholder {
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  text-align: center;
}

.screenshot-box {
  height: 120px;
  background: linear-gradient(180deg, #f8f9fa, #ffffff);
  border: 1px dashed #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  margin: 0.75rem 0;
  border-radius: 6px;
}

.small { font-size: 0.9rem; color: #555; }

.troubleshooting { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }
.troubleshooting ul { padding-left: 1.2rem; }
.troubleshooting li { margin: 0.5rem 0; }

.mobile-instructions { max-width: 900px; margin: 2rem auto; padding: 0 1rem 2rem 1rem; }


.contract-details {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
}

.contract-details code {
  display: block;
  padding: 0.5rem;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin: 0.5rem 0;
  font-family: monospace;
}

.copy-button {
  background: #002868;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.copy-button:hover {
  background: #001845;
}

.faq {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.faq-item {
  margin-bottom: 2rem;
}

.faq-item h3 {
  color: #002868;
  margin-bottom: 0.5rem;
}

/* Tokenomics Page Styles */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.metric-card {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
}

.metric-card h3 {
  color: #002868;
  margin: 0 0 1rem 0;
}

.metric-card .metric {
  font-size: 2rem;
  font-weight: 700;
  color: #b22234;
  margin: 0.5rem 0;
}

.metric-card .detail {
  color: #666;
  font-size: 0.9rem;
}

/* Dashboard styles */
.dashboard-controls { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }
.dashboard-form { display:flex; gap:0.5rem; align-items:center; margin-top:1rem; }
.results-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:1rem; margin-top:1rem; }
.result-card { background:white; padding:1rem; border-radius:8px; box-shadow:0 2px 6px rgba(0,0,0,0.06); text-align:center; }
#largest-accounts, #largest-accounts div { margin-top:1rem; }
.largest-row { padding:0.5rem 0; border-bottom:1px dashed #eee; }


.schedule-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.schedule-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.schedule-table th,
.schedule-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.schedule-table th {
  background: #002868;
  color: white;
  font-weight: 600;
}

.schedule-table tr:hover {
  background: #f9f9f9;
}

.governance ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.governance li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.governance li:before {
  content: "★";
  color: #b22234;
  position: absolute;
  left: 0;
}

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Drag and drop upload zone */
.drop-zone {
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.drop-zone.drag-over {
  border-color: #3b82f6;
  background: var(--bg-hover);
}
.drop-zone p { margin: 0.5rem 0; color: var(--text-muted); }
.drop-zone .icon { font-size: 48px; margin-bottom: 1rem; }
/* ========================================
   RESPONSIVE / MOBILE / TABLET STYLES
   ======================================== */

/* Mobile-first base adjustments */
@media (max-width: 768px) {
  /* Navigation - Hamburger menu for mobile */
  .nav-container {
    padding: 1rem;
  }
  
  /* Ensure brand and toggle are visible on mobile */
  .nav-brand {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .nav-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Hero section - Reduce padding and font sizes */
  header.hero {
    padding: 2rem 1rem;
  }
  
  header.hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
  }
  
  header.hero p.slogan {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* CTA buttons - Stack vertically */
  .cta-buttons {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  
  .cta-buttons a {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 0.875rem 1rem;
  }
  
  /* Countdown badge - Better positioning */
  .countdown-badge {
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }
  
  /* Main content */
  main {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }
  
  main section {
    padding: 1.5rem 1rem !important;
    margin: 1.5rem auto !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Metrics grid - Single column on mobile */
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .metric-card {
    padding: 1.25rem;
  }
  
  .metric-card .metric {
    font-size: 1.5rem;
  }
  
  /* Wallet options - Single column */
  .wallet-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Step cards */
  .step-card {
    padding: 1.5rem 1rem;
    margin: 1.5rem 0;
  }
  
  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
    top: -0.75rem;
    left: -0.75rem;
  }
  
  .step-card h3 {
    margin-left: 1.5rem;
    font-size: 1.25rem;
  }
  
  .step-content {
    margin-left: 1.5rem;
  }
  
  /* Screenshot grid - Single column */
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  
  /* Dashboard controls */
  .dashboard-controls {
    padding: 0 1rem;
  }
  
  .dashboard-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .dashboard-form input,
  .dashboard-form button {
    width: 100%;
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  /* Schedule table - Enable horizontal scroll */
  .schedule-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .schedule-table table {
    min-width: 600px;
  }
  
  .schedule-table th,
  .schedule-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
  
  /* Footer */
  footer {
    padding: 1.5rem 1rem;
  }
  
  .social-links {
    gap: 1rem;
  }
  
  .copyright {
    font-size: 0.8rem;
    line-height: 1.5;
  }
  
  /* Nav badge - Better mobile layout */
  nav ul li.nav-badge {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  
  nav ul li.nav-badge .addr {
    text-align: center;
    font-size: 0.8rem;
    word-break: break-all;
  }
  
  nav ul li.nav-badge button.disconnect {
    width: 100%;
  }
}

/* Desktop navigation: keep hamburger/drawer available on all devices.
   Intentionally not hiding brand/toggle, and keep drawer behavior. */

/* Tablet styles (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Navigation - Wrap items but keep horizontal */
  .nav-container {
    padding: 1rem 1.5rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-menu li a {
    font-size: 0.95rem;
    padding: 0.5rem 0;
  }
  
  /* Hero section */
  header.hero h1 {
    font-size: 2.5rem;
  }
  
  header.hero p.slogan {
    font-size: 1.25rem;
  }
  
  /* Metrics grid - 2 columns */
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Wallet options - 2 columns */
  .wallet-options {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Results grid - 2 columns */
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  /* Extra small adjustments */
  header.hero h1 {
    font-size: 1.5rem;
  }
  
  header.hero p.slogan {
    font-size: 0.95rem;
  }
  
  .countdown-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }
  
  nav ul li a {
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
  }
  
  .cta-buttons a {
    font-size: 0.95rem;
    padding: 0.75rem 0.875rem;
  }
  
  main section {
    padding: 1rem 0.75rem !important;
  }
  
  .contact-card {
    padding: 1.5rem 1rem;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-actions .cta-primary {
    width: 100%;
  }
}

/* Landscape mobile devices */
@media (max-width: 896px) and (orientation: landscape) {
  header.hero {
    padding: 1.5rem 1rem;
  }
  
  header.hero h1 {
    font-size: 1.5rem;
  }
  
  header.hero p.slogan {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .cta-buttons a {
    width: auto;
    min-width: 140px;
  }
}

/* Removed fixed breakpoint overrides in favor of fluid clamp sizing above */
