:root {
  --bg: #050810;
  --bg2: #0a0f1e;
  --card: #0d1525;
  --card2: #111b30;
  --border: #1e2d4a;
  --purple: #9945ff;
  --green: #14f195;
  --cyan: #00d4ff;
  --text: #e8edf5;
  --muted: #7a8aaa;
  --accent: #9945ff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========== BACKGROUND ========== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(
      rgba(153, 69, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(153, 69, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.bg-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    ellipse,
    rgba(153, 69, 255, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.bg-glow2 {
  position: fixed;
  bottom: -200px;
  right: -100px;
  width: 600px;
  height: 500px;
  background: radial-gradient(
    ellipse,
    rgba(20, 241, 149, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-links a.active {
  color: var(--green);
}

.btn-connect {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--purple), #6e2dfa);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-connect:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ========== PAGES ========== */
.page {
  display: none;
  padding-top: 68px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.page.active {
  display: block;
}

/* ========== HOME PAGE ========== */
.hero {
  text-align: center;
  padding: 80px 2rem 60px;
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(153, 69, 255, 0.1);
  border: 1px solid rgba(153, 69, 255, 0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 28px;
  font-family: "Space Mono", monospace;
  letter-spacing: 0.5px;
}
.hero-badge::before {
  content: "🚀";
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    var(--green) 50%,
    var(--purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--purple), #6e2dfa);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(153, 69, 255, 0.4);
}

.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  border-color: var(--purple);
  background: rgba(153, 69, 255, 0.05);
}
.btn-secondary .play-icon {
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #000;
}

/* TOKEN FORM */
.token-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem 60px;
}
.section-title {
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.token-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-group label .req {
  color: var(--purple);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}
.form-group .hint {
  font-size: 0.75rem;
  color: var(--muted);
}

.form-full {
  grid-column: 1 / -1;
}

.option-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.option-card:hover {
  border-color: var(--purple);
}
.option-card.active {
  border-color: var(--purple);
  background: rgba(153, 69, 255, 0.05);
}
.option-card .opt-left h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.option-card .opt-left p {
  font-size: 0.78rem;
  color: var(--muted);
}
.option-card .opt-price {
  background: rgba(20, 241, 149, 0.1);
  border: 1px solid rgba(20, 241, 149, 0.3);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: "Space Mono", monospace;
  font-weight: 700;
  white-space: nowrap;
}
.toggle-btn {
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  flex-shrink: 0;
}
.toggle-btn.on {
  background: var(--purple);
}
.toggle-btn::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}
.toggle-btn.on::after {
  left: 23px;
}

.option-group-title {
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.8rem;
  color: var(--text);
}
.option-group-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.revoke-note {
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(153, 69, 255, 0.05);
  border: 1px solid rgba(153, 69, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 1rem;
  line-height: 1.6;
}

.recipient-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  margin-top: 1.2rem;
}
.recipient-row .form-group {
  flex: 1;
}

.launch-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--purple), #6e2dfa);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 1.5rem;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  cursor: pointer;
}
.launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(153, 69, 255, 0.4);
}

.fee-display {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.fee-display strong {
  color: var(--green);
  font-family: "Space Mono", monospace;
}

/* WHY SECTION */
.why-section {
  padding: 60px 2rem;
  text-align: center;
  background: rgba(13, 21, 37, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-section .section-label {
  font-size: 0.78rem;
  font-family: "Space Mono", monospace;
  color: var(--green);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.why-section h2 {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.why-section > p {
  color: var(--muted);
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem;
  text-align: left;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(153, 69, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
  max-width: 700px;
  margin: 0 auto;
}
.stat-item {
  text-align: center;
}
.stat-item .stat-val {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

/* FAQ */
.faq-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 2rem;
}
.faq-section .section-label {
  font-size: 0.78rem;
  font-family: "Space Mono", monospace;
  color: var(--green);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.faq-section h2 {
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.faq-section > p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-q {
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s;
}
.faq-q:hover {
  background: rgba(153, 69, 255, 0.05);
}
.faq-q .faq-arrow {
  font-size: 1rem;
  transition: transform 0.2s;
  color: var(--purple);
}
.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}
.faq-a {
  padding: 0 1.2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 1.2rem 1rem;
}

.faq-cta {
  text-align: center;
  padding: 2rem 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* ========== CREATE TOKEN PAGE ========== */
.create-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 2rem;
}
.page-header {
  margin-bottom: 2.5rem;
}
.page-header h1 {
  font-family: "Syne", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header p {
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ========== COURSE PAGE ========== */
.course-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 2rem;
}
.course-page h1 {
  font-family: "Syne", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #fff, var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.course-page .sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 3rem;
  font-size: 1rem;
}

.video-container {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
  position: relative;
  /* aspect-ratio: 16/9; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder {
  text-align: center;
  color: var(--muted);
}
.video-placeholder .play-btn {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--purple), var(--green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
  cursor: pointer;
  transition: transform 0.2s;
  border: none;
  color: #fff;
}
.video-placeholder .play-btn:hover {
  transform: scale(1.1);
}
.video-placeholder h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.video-placeholder p {
  font-size: 0.9rem;
}

.course-overview h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--green));
}
.step-num {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: var(--purple);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.step-card h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ========== LIQUIDITY PAGE ========== */
.lp-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 2rem;
  text-align: center;
}
.lp-page h1 {
  font-family: "Syne", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.lp-page .sub {
  color: var(--muted);
  margin-bottom: 3rem;
}

.coming-soon-badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-family: "Space Mono", monospace;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.coming-soon-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2rem;
  margin-bottom: 2rem;
}
.coming-soon-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.coming-soon-card h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
}
.coming-soon-card p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

.lp-partner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}
.lp-partner h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.lp-partner h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.lp-partner p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.lp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}
.lp-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
.lp-col h3 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.lp-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lp-col ul li {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-col ul li::before {
  content: "•";
  color: var(--green);
  font-weight: 700;
}

/* ========== FOOTER ========== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.page.active .hero,
.page.active .token-section,
.page.active .create-page,
.page.active .course-page,
.page.active .lp-page {
  animation: fadeInUp 0.4s ease both;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .lp-two-col {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .stats-row {
    gap: 2rem;
  }
}


/* Expandable Fields */
.expandable-fields {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.expandable-fields.open {
  max-height: 600px;
  opacity: 1;
}
.expand-inner {
  background: rgba(153, 69, 255, 0.04);
  border: 1px solid rgba(153, 69, 255, 0.2);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
}
.expand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .expand-grid { grid-template-columns: 1fr; }
}










/* ============================
   WALLET MODAL
   ============================ */
.wallet-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1rem;
}
.wallet-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.wallet-modal {
  background: #0d1525;
  border: 1px solid #1e2d4a;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
  scrollbar-color: #1e2d4a transparent;
}
.wallet-overlay.open .wallet-modal {
  transform: translateY(0) scale(1);
}

/* Header */
.wallet-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid #1e2d4a;
}
.wallet-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wallet-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #9945FF, #14F195);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.wallet-modal-title h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}
.wallet-network {
  font-size: 0.72rem;
  color: #14F195;
  background: rgba(20,241,149,0.1);
  border: 1px solid rgba(20,241,149,0.25);
  border-radius: 20px;
  padding: 2px 10px;
  font-family: 'Space Mono', monospace;
}
.wallet-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid #1e2d4a;
  color: #7a8aaa;
  border-radius: 8px;
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.wallet-close:hover { background: rgba(153,69,255,0.15); color: #fff; border-color: #9945FF; }

/* Balance Card */
.wallet-balance-card {
  margin: 1.2rem 1.5rem;
  background: linear-gradient(135deg, rgba(153,69,255,0.12), rgba(20,241,149,0.06));
  border: 1px solid rgba(153,69,255,0.25);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  text-align: center;
}
.balance-label {
  font-size: 0.75rem;
  color: #7a8aaa;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Space Mono', monospace;
  margin-bottom: 6px;
}
.balance-amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.balance-unit {
  font-size: 1.2rem;
  color: #14F195;
}
.balance-usd {
  font-size: 0.85rem;
  color: #7a8aaa;
  margin: 4px 0 12px;
}
.balance-address-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid #1e2d4a;
  border-radius: 8px;
  padding: 5px 12px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: #7a8aaa;
  margin-top: 0.3rem;
}

/* Tabs */
.wallet-tabs {
  display: flex;
  gap: 4px;
  padding: 0 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #1e2d4a;
}
.wallet-tab {
  background: none;
  border: none;
  color: #7a8aaa;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.wallet-tab:hover { color: #e8edf5; }
.wallet-tab.active { color: #9945FF; border-bottom-color: #9945FF; }

/* Tab Content */
.wallet-tab-content { display: none; padding: 0 1.5rem 1.5rem; }
.wallet-tab-content.active { display: block; }

/* Info Rows */
.info-section { display: flex; flex-direction: column; gap: 1rem; }
.info-row {
  background: #0a0f1e;
  border: 1px solid #1e2d4a;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.info-label {
  font-size: 0.75rem;
  color: #7a8aaa;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.info-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.info-value {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: #c8d4e8;
  word-break: break-all;
  flex: 1;
  min-width: 0;
  line-height: 1.6;
}
.mono { font-family: 'Space Mono', monospace !important; }
.blur-text { filter: blur(5px); transition: filter 0.3s; user-select: none; }
.blur-text.revealed { filter: none; user-select: text; }

/* Seed Phrase Grid */
.seed-phrase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0;
  transition: filter 0.3s;
}
.seed-word {
  background: rgba(153,69,255,0.08);
  border: 1px solid rgba(153,69,255,0.2);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-family: 'Space Mono', monospace;
  color: #c8d4e8;
  display: flex;
  gap: 6px;
  align-items: center;
}
.seed-word .word-num { color: #9945FF; font-size: 0.65rem; min-width: 14px; }
.seed-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Buttons */
.copy-btn {
  background: rgba(153,69,255,0.1);
  border: 1px solid rgba(153,69,255,0.25);
  color: #9945FF;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.copy-btn:hover { background: rgba(153,69,255,0.2); }
.copy-btn.copied { background: rgba(20,241,149,0.1); border-color: #14F195; color: #14F195; }

.reveal-btn {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: #00d4ff;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.78rem;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.reveal-btn:hover { background: rgba(0,212,255,0.15); }

.danger-warning {
  margin-top: 8px;
  font-size: 0.72rem;
  color: #f97316;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 6px;
  padding: 5px 10px;
}

/* Receive Tab */
.receive-section { text-align: center; }
.receive-note { color: #7a8aaa; font-size: 0.85rem; margin-bottom: 1.2rem; }
.qr-placeholder {
  width: 160px; height: 160px;
  margin: 0 auto 1.2rem;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.qr-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-mock {
  width: 120px; height: 120px;
  background-image:
    repeating-linear-gradient(0deg, #000 0px, #000 8px, #fff 8px, #fff 12px),
    repeating-linear-gradient(90deg, #000 0px, #000 8px, #fff 8px, #fff 12px);
  background-blend-mode: multiply;
  border: 3px solid #000;
  border-radius: 4px;
}
.qr-inner span { font-size: 0.65rem; color: #333; font-family: 'Space Mono', monospace; }
.receive-address-box {
  background: #0a0f1e;
  border: 1px solid #1e2d4a;
  border-radius: 10px;
  padding: 1rem;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  font-size: 0.72rem;
  word-break: break-all;
  color: #c8d4e8;
}
.copy-btn-large {
  background: linear-gradient(135deg, #9945FF, #6e2dfa);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 8px 20px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}
.copy-btn-large:hover { opacity: 0.85; }
.copy-btn-large.copied { background: linear-gradient(135deg, #14F195, #00d4ff); color: #000; }

/* Send Tab */
.send-section { display: flex; flex-direction: column; gap: 1rem; }
.send-section .form-group label { font-size: 0.82rem; font-weight: 600; color: #e8edf5; margin-bottom: 5px; display: block; }
.send-section input {
  width: 100%;
  background: #0a0f1e;
  border: 1px solid #1e2d4a;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e8edf5;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.send-section input:focus { border-color: #9945FF; }
.send-section input::placeholder { color: #7a8aaa; }
.amount-row { display: flex; gap: 8px; }
.amount-row input { flex: 1; }
.max-btn {
  background: rgba(153,69,255,0.1);
  border: 1px solid rgba(153,69,255,0.3);
  color: #9945FF;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: 'Space Mono', monospace;
  transition: all 0.2s;
}
.max-btn:hover { background: rgba(153,69,255,0.2); }
.send-fee-note { font-size: 0.75rem; color: #7a8aaa; text-align: right; margin-top: -6px; }
.send-confirm-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #9945FF, #6e2dfa);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.send-confirm-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(153,69,255,0.35); }
.send-status {
  text-align: center;
  font-size: 0.85rem;
  min-height: 20px;
  color: #14F195;
  font-family: 'Space Mono', monospace;
}



/* Pre-Wallet Popup */
.prewallet-modal {
  background: #0d1525;
  border: 1px solid #1e2d4a;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.wallet-overlay.open .prewallet-modal {
  transform: translateY(0) scale(1);
}
.prewallet-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}
.prewallet-modal h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.prewallet-modal p {
  color: #7a8aaa;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.prewallet-btns {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.prewallet-create-btn {
  padding: 13px;
  background: linear-gradient(135deg, #9945FF, #6e2dfa);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.prewallet-create-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(153,69,255,0.4); }
.prewallet-create-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.prewallet-download-btn {
  padding: 12px;
  background: rgba(20,241,149,0.08);
  border: 1px solid rgba(20,241,149,0.25);
  border-radius: 10px;
  color: #14F195;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.prewallet-download-btn:hover { background: rgba(20,241,149,0.15); }
.prewallet-warning {
  font-size: 0.72rem !important;
  color: #f97316 !important;
  background: rgba(249,115,22,0.08);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 !important;
}



.network-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.network-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11px;
}

.net-btn {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 11px;
  padding: 2px 4px;
  border-radius: 10px;
  transition: color 0.2s;
}

.net-btn.active {
  color: #14F195;
  font-weight: 600;
}

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

.net-sep { color: #444; }
