/* Import modern typography */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #07080c;
  --bg-dark-gray: #0d0e14;
  --bg-card: rgba(13, 16, 25, 0.7);
  --bg-card-hover: rgba(20, 24, 38, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --primary: #00f0ff;
  --primary-glow: rgba(0, 240, 255, 0.15);
  --secondary: #6366f1;
  --secondary-glow: rgba(99, 102, 241, 0.15);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  --danger: #ef4444;
  --warning: #f59e0b;
  
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Font Family */
  --font-main: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
}

/* Drifting Ambient Light Animations */
@keyframes ambientDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4% , -6%) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes ambientDriftReverse {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-5%, 4%) scale(0.92); }
  100% { transform: translate(0, 0) scale(1); }
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-dark);
  /* 科技微弱细网格背景 */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
}

/* Background Ambient Glows */
body::before, body::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(140px);
  opacity: 0.14;
}

body::before {
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  animation: ambientDrift 24s infinite ease-in-out;
}

body::after {
  top: 30%;
  left: -200px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  animation: ambientDriftReverse 30s infinite ease-in-out;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #a5b4fc 60%, #00f0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-text {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 240, 255, 0.03);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 8, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  filter: drop-shadow(0 0 6px var(--primary));
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-btn.primary {
  background: #ffffff;
  color: #000000;
}

.nav-btn.primary:hover {
  background: var(--primary);
  color: #000000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-download {
  background: #ffffff;
  color: #000000;
}

.btn-download:hover {
  background: var(--primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
  color: #000000;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Smartphone Mockup Container & Device */
.mockup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.mockup-glow {
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  background: #0d0e12;
  border: 12px solid #272730;
  border-radius: 44px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 2px 2px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  transition: transform 0.3s ease;
}

/* Notch / Island */
.phone-notch {
  width: 110px;
  height: 25px;
  background: #000;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notch-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
  position: absolute;
  right: 20px;
}

/* Screen Details */
.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #08090d;
  position: relative;
  padding: 30px 14px 14px;
  overflow: hidden;
}

/* Phone Status Bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 20px;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  z-index: 9;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
}

.phone-app-logo {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.phone-app-badge {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Scrollable Alert List in Phone */
.phone-alert-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: hidden;
  position: relative;
}

.alert-feed-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 2px;
  padding-left: 2px;
}

/* Mockup Notifications */
.phone-alert-card {
  background: rgba(18, 22, 33, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

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

.alert-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-card-asset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.75rem;
}

.asset-badge {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
}

.asset-badge.eth { background: rgba(0, 240, 255, 0.15); color: var(--primary); }
.asset-badge.pepe { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.asset-badge.ondo { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.asset-badge.sol { background: rgba(245, 158, 11, 0.15); color: var(--warning); }

.alert-card-time {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.alert-card-title {
  font-weight: 600;
  font-size: 0.75rem;
  color: #fff;
}

.alert-card-desc {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* Stats Section */
.stats-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(13, 16, 25, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.stat-val.highlight {
  color: var(--success);
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.stat-lbl {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Features/Signal Funnel Section */
.funnel {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.funnel::before {
  content: '';
  position: absolute;
  top: 15%;
  right: -10%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
  animation: ambientDrift 28s infinite ease-in-out;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--primary-glow);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.funnel-card {
  position: relative;
  overflow: hidden;
}

.funnel-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.8;
}

.funnel-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.funnel-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Today Sample / Live Data Section */
.sample-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at bottom, rgba(99, 102, 241, 0.03) 0%, transparent 60%);
}

.sample-section::before {
  content: '';
  position: absolute;
  bottom: 5%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
  animation: ambientDriftReverse 32s infinite ease-in-out;
}

.tabs-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 99px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Premium Table Styles */
.table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: rgba(13, 16, 25, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.premium-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.premium-table th {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}

.premium-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.premium-table tr:last-child td {
  border-bottom: none;
}

.premium-table tr {
  transition: background-color 0.2s ease;
}

.premium-table tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.premium-table tr:hover td {
  color: #fff;
}

/* Table Specific Cell Styles */
.cell-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
}

.signal-dot.inflow { color: var(--primary); background-color: var(--primary); }
.signal-dot.add { color: var(--success); background-color: var(--success); }
.signal-dot.increase { color: var(--secondary); background-color: var(--secondary); }
.signal-dot.exit { color: var(--danger); background-color: var(--danger); }

.cell-asset {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}

.cell-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}

/* Ad Hooks / Push Notifications */
.hooks-section {
  padding: 100px 0;
}

.hooks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Push Notification Card */
.push-card {
  background: rgba(18, 22, 33, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.push-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.05);
}

.push-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.push-app-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.push-logo {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
  box-shadow: 0 0 8px var(--primary-glow);
}

.push-app-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.push-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.push-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.push-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.push-body {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Early Access Block */
.early-access {
  padding: 100px 0 140px;
  position: relative;
}

.early-access-card {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1) 0%, rgba(13, 16, 25, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 4rem 2rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.early-access-card h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.early-access-card p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 50px 0;
  background-color: rgba(4, 5, 7, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-disclaimer {
  max-width: 600px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero {
    padding: 110px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .funnel-grid, .hooks-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  /* 移动端细化背景网格 */
  body {
    background-size: 36px 36px;
    background-image: 
      linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-attachment: fixed;
  }

  /* 调整移动端环境光范围 */
  body::before {
    width: 480px;
    height: 480px;
    top: -50px;
    right: -50px;
    opacity: 0.18;
  }
  body::after {
    width: 480px;
    height: 480px;
    top: 35%;
    left: -100px;
    opacity: 0.18;
  }

  /* 减少卡片内边距，拓宽移动端文本渲染区域，增加半透明科技边框 */
  .glass-card {
    padding: 1.5rem;
    border-color: rgba(0, 240, 255, 0.12);
  }
  
  .early-access-card {
    padding: 2.5rem 1.5rem;
  }
  
  .push-card {
    padding: 1rem;
    border-color: rgba(99, 102, 241, 0.12);
  }

  /* 优化移动端表格间距 */
  .premium-table td {
    padding: 1rem 0.85rem;
  }
  .premium-table th {
    padding: 0.85rem 0.85rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-val {
    font-size: 1.8rem;
  }
  
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* 针对极窄屏幕（如 iPhone SE 320px）的缩放保护 */
@media (max-width: 360px) {
  .phone-mockup {
    transform: scale(0.88);
    transform-origin: center center;
    margin-top: -35px;
    margin-bottom: -35px;
  }
}

/* Safari Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 7, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  max-width: 420px;
  width: 90%;
  padding: 2rem;
  border-radius: 24px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.modal-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.modal-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.copy-box {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 1rem;
}

.copy-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  outline: none;
}

.copy-box button {
  background: #fff;
  color: #000;
  border: none;
  font-weight: 700;
  padding: 0 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.copy-box button:hover {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.copy-toast {
  font-size: 0.8rem;
  color: var(--success);
  margin-bottom: 1.5rem;
  display: none;
  font-weight: 600;
}

.modal-tip {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  line-height: 1.4;
}

.modal-tip span {
  color: var(--warning);
  font-weight: 700;
}
