/* ==========================================================================
   MOPi World - Premium CSS Stylesheet
   Theme: Sci-Fi Cyberpunk / Glassmorphism Dark Theme
   ========================================================================== */

/* --- Custom Variables & Tokens --- */
:root {
  --color-bg-dark: #07090e;
  --color-primary: #8a2be2;      /* Neon Violet */
  --color-secondary: #00f0ff;    /* Neon Cyan */
  --color-accent: #ff007f;       /* Neon Magenta */
  --color-gold: #ffb700;         /* Neon Gold */
  --color-text-main: #f0f3f8;
  --color-text-muted: #9faec1;
  --color-glass-bg: rgba(13, 17, 28, 0.65);
  --color-glass-border: rgba(255, 255, 255, 0.08);
  --color-glass-glow: rgba(0, 240, 255, 0.15);
  --font-family-headings: 'Outfit', sans-serif;
  --font-family-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-dark);
  background-image: url('assets/background.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Semi-transparent Dark Background Blend to preserve contrast */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(7, 9, 14, 0.6) 0%, rgba(7, 9, 14, 0.92) 80%);
  z-index: -1;
  pointer-events: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--color-text-muted);
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* --- Layout Utility --- */
.section-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 0;
}

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

/* --- Glassmorphic Container Overlays --- */
.glass-section {
  position: relative;
  background: var(--color-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-glass-border);
  border-bottom: 1px solid var(--color-glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 2px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 8px 32px var(--color-glass-glow);
  transform: translateY(-4px);
}

/* --- Common Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-headings);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #a020f0 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a020f0 0%, #b833ff 100%);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--color-glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid var(--color-secondary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.1rem;
  border-radius: var(--border-radius-md);
}

.btn-small {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-glow {
  animation: buttonPulse 2s infinite alternate;
}

@keyframes buttonPulse {
  0% { box-shadow: 0 0 10px rgba(138, 43, 226, 0.4); }
  100% { box-shadow: 0 0 22px rgba(138, 43, 226, 0.8), 0 0 10px rgba(0, 240, 255, 0.4); }
}

/* --- Header Section --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-glass-border);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

#logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-family-headings);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: 0.05em;
  background: linear-gradient(to right, #fff 30%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

nav ul li a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

nav ul li a:hover {
  color: var(--color-secondary);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  padding: 60px 0;
}

.hero-content {
  z-index: 10;
}

.hero-title {
  font-size: 4.8rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1.05;
  color: #fff;
  position: relative;
}

/* Animated Title Glow */
.animate-glow {
  background: linear-gradient(135deg, #ffffff 10%, #a060ff 50%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleColorShift 8s infinite alternate;
}

@keyframes titleColorShift {
  0% { filter: drop-shadow(0 0 2px rgba(138, 43, 226, 0.3)); }
  100% { filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.6)); }
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 35px;
  color: var(--color-text-muted);
}

.hero-cta-buttons {
  display: flex;
  gap: 16px;
}

/* --- Photo Switcher (Slideshow) --- */
.hero-media {
  display: flex;
  justify-content: center;
}

.photo-switcher-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 380px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  background: rgba(7, 9, 14, 0.4);
}

.photo-switcher-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.15);
  pointer-events: none;
  z-index: 2;
}

.photo-switcher-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.03);
  z-index: 1;
}

.photo-switcher-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.switcher-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.6) 60%, transparent 100%);
  color: #fff;
  font-family: var(--font-family-headings);
  font-weight: 700;
  font-size: 1.3rem;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.switcher-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 17, 28, 0.8);
  border: 1px solid var(--color-glass-border);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition-smooth);
}

.switcher-arrow:hover {
  background: var(--color-secondary);
  color: var(--color-bg-dark);
  box-shadow: 0 0 15px var(--color-secondary);
  border-color: transparent;
}

.switcher-arrow-left { left: 16px; }
.switcher-arrow-right { right: 16px; }

.switcher-dots {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.switcher-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.switcher-dot.active {
  background: var(--color-secondary);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px var(--color-secondary);
}

/* --- About & Information Section --- */
.about-section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-content {
  max-width: 800px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 50%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-info-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.02);
  padding: 24px 30px;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

/* --- Double Video Showcase --- */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.video-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.video-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-glass-border);
  background: rgba(255, 255, 255, 0.01);
}

.video-header h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-youtube { color: #ff0000; }
.icon-play { color: var(--color-secondary); }

.video-placeholder-container,
.video-iframe-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  flex-grow: 1;
}

.video-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-custom-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.play-icon-overlay {
  font-size: 4rem;
  color: rgba(255, 0, 0, 0.85);
  margin-bottom: 16px;
  transition: var(--transition-smooth);
  cursor: pointer;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.3));
}

.video-custom-thumb:hover .play-icon-overlay {
  color: #ff0000;
  transform: scale(1.1);
  filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.6));
}

.thumb-text p {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 16px;
  max-width: 380px;
}

/* --- P2E Goals Section --- */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.goal-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.goal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(138, 43, 226, 0.15);
  border: 1px solid rgba(138, 43, 226, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
  transition: var(--transition-smooth);
}

.goal-card:hover .goal-icon {
  background: var(--color-secondary);
  border-color: transparent;
  color: var(--color-bg-dark);
  box-shadow: 0 0 20px var(--color-secondary);
  transform: rotate(360deg);
}

.goal-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #fff;
}

.goal-card p {
  font-size: 0.92rem;
}

/* --- Whitepaper Subsection --- */
.whitepaper-subsection {
  margin-top: 60px;
  overflow: hidden;
  border-color: rgba(255, 0, 127, 0.15);
  text-align: center;
  padding: 50px 40px;
}

.whitepaper-subsection:hover {
  border-color: rgba(255, 0, 127, 0.3);
  box-shadow: 0 8px 32px rgba(255, 0, 127, 0.15);
}

.wp-icon-wrap {
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

.wp-header {
  max-width: 680px;
  margin: 0 auto;
}

.wp-header h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 16px;
}

.wp-header p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.wp-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.wp-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.03);
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid var(--color-glass-border);
}

.wp-badge i {
  color: #4285F4;
}

/* --- Roadmap Section --- */
.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 50px;
}

.roadmap-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.roadmap-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(0, 240, 255, 0.08);
}

.roadmap-image-container:hover {
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
}

.roadmap-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.2));
  transition: var(--transition-smooth);
}

.roadmap-img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 0 25px rgba(0, 240, 255, 0.4));
}

.roadmap-timeline-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
}

.timeline-badge {
  background: var(--color-glass-border);
  color: var(--color-secondary);
  font-family: var(--font-family-headings);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--color-secondary);
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.timeline-content h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #fff;
}

.timeline-content p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* --- Developer Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-member-card {
  text-align: center;
  padding: 30px 20px;
}

.member-avatar-wrapper {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  overflow: hidden;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
  transition: var(--transition-smooth);
}

.team-member-card:hover .member-avatar-wrapper {
  border-color: var(--color-secondary);
  box-shadow: 0 0 25px var(--color-secondary);
  transform: scale(1.05);
}

.member-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 6px;
}

.member-role {
  display: inline-block;
  font-family: var(--font-family-headings);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.member-bio {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* --- Social Media links --- */
.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.social-card {
  display: flex;
  align-items: center;
  padding: 24px;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
}

.social-icon-wrapper {
  font-size: 2.2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-glass-border);
  transition: var(--transition-smooth);
}

.social-details h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 4px;
}

.social-details p {
  font-size: 0.85rem;
}

.social-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
}

.social-card:hover .social-arrow {
  transform: translateX(6px);
  color: #fff;
}

/* Brand specific card hovers */
.youtube-card:hover {
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 8px 32px rgba(255, 0, 0, 0.15);
}
.youtube-card:hover .social-icon-wrapper {
  color: #ff0000;
  border-color: rgba(255, 0, 0, 0.3);
  background: rgba(255, 0, 0, 0.05);
}

.x-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}
.x-card:hover .social-icon-wrapper {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.facebook-card:hover {
  border-color: rgba(24, 119, 242, 0.4);
  box-shadow: 0 8px 32px rgba(24, 119, 242, 0.15);
}
.facebook-card:hover .social-icon-wrapper {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.3);
  background: rgba(24, 119, 242, 0.05);
}

.instagram-card:hover {
  border-color: rgba(225, 48, 108, 0.4);
  box-shadow: 0 8px 32px rgba(225, 48, 108, 0.15);
}
.instagram-card:hover .social-icon-wrapper {
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.3);
  background: rgba(225, 48, 108, 0.05);
}

/* --- Supporting Organizations --- */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.partner-logo-box {
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.01);
  border-color: rgba(255, 255, 255, 0.04);
}

.partner-name {
  font-family: var(--font-family-headings);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

/* Brand-specific partner card hover glows */
.partner-binance:hover {
  border-color: rgba(240, 185, 11, 0.5);
  box-shadow: 0 8px 30px rgba(240, 185, 11, 0.2);
  background: rgba(240, 185, 11, 0.04);
}
.partner-solana:hover {
  border-color: rgba(153, 69, 255, 0.5);
  box-shadow: 0 8px 30px rgba(153, 69, 255, 0.2);
  background: rgba(153, 69, 255, 0.04);
}
.partner-opensea:hover {
  border-color: rgba(32, 129, 226, 0.5);
  box-shadow: 0 8px 30px rgba(32, 129, 226, 0.2);
  background: rgba(32, 129, 226, 0.04);
}
.partner-pancake:hover {
  border-color: rgba(31, 199, 212, 0.5);
  box-shadow: 0 8px 30px rgba(31, 199, 212, 0.2);
  background: rgba(31, 199, 212, 0.04);
}
.partner-ethereum:hover {
  border-color: rgba(98, 126, 234, 0.5);
  box-shadow: 0 8px 30px rgba(98, 126, 234, 0.2);
  background: rgba(98, 126, 234, 0.04);
}

.partner-logo-box:hover .partner-name {
  color: var(--color-secondary);
}

/* --- Interactive Wallet Modal --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  width: 90%;
  max-width: 440px;
  position: relative;
  padding: 40px 30px;
  animation: modalSlide 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.modal-content h2 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-content h2 i {
  color: var(--color-secondary);
}

.modal-desc {
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wallet-option-btn {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  border-radius: var(--border-radius-md);
  padding: 16px;
  cursor: pointer;
  border: 1px solid var(--color-glass-border);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-family: var(--font-family-body);
  font-weight: 600;
  gap: 16px;
}

.wallet-icon-svg {
  width: 24px;
  height: 24px;
}

.wallet-icon-fallback {
  font-size: 1.5rem;
  color: #ab9ff2;
}

.badge {
  margin-left: auto;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-family: var(--font-family-headings);
  font-weight: 600;
}

.badge-popular {
  background: rgba(0, 240, 255, 0.15);
  color: var(--color-secondary);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

/* Spinner and Loaders */
.wallet-loading {
  text-align: center;
  padding: 40px 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 240, 255, 0.1);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.wallet-loading p {
  font-size: 0.95rem;
  color: #fff;
}

/* Wallet Success screen */
.wallet-success {
  text-align: center;
  padding: 20px 0 10px 0;
}

.success-icon {
  font-size: 3.5rem;
  color: #00ff66;
  text-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
  margin-bottom: 12px;
}

.wallet-success h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.wallet-addr {
  font-family: monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  border: 1px solid var(--color-glass-border);
  color: var(--color-secondary);
}

.wallet-balances {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 260px;
  margin: 0 auto;
}

.balance-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.balance-item:last-child {
  border: none;
}

.bal-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.bal-value {
  font-weight: 700;
  color: #fff;
}

/* --- Footer --- */
footer {
  background: #04060a;
  border-top: 1px solid var(--color-glass-border);
  padding: 60px 0 20px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo-desc {
  max-width: 380px;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-secondary);
}

.footer-desc {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul li a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-links ul li a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  .hero-cta-buttons {
    justify-content: center;
  }
  .photo-switcher-container {
    margin: 0 auto;
  }
  .roadmap-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .roadmap-image-container {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 12px 16px;
  }
  nav {
    display: none; /* Hide nav links on mobile for simplicity, keep CTA actions */
  }
  .hero-title {
    font-size: 3.2rem;
  }
  .videos-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 2rem;
  }
}
