/* ==========================================================================
   SplitTrip premium product website styles
   ========================================================================== */

/* Design Variables */
:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  
  /* Color Palette - Minimalist Premium */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-accent-light: #f0fdf4;
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #64748b; /* Slate 500 */
  --text-light: #94a3b8; /* Slate 400 */
  
  --accent-color: #56AB83; /* SplitTrip Emerald Badge */
  --accent-hover: #459470;
  --accent-glow: rgba(86, 171, 131, 0.15);
  
  --dark-btn-bg: #09090b; /* Zinc 950 */
  --dark-btn-hover: #18181b;
  
  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.15);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08), 0 0 40px rgba(0, 0, 0, 0.02);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  
  /* Nav Height */
  --nav-height: 80px;
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Common Layout Containers */
.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Nav Bar Styles */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-nav.scrolled {
  height: 70px;
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.85);
}

.nav-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 1001;
}

.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--text-main);
  transition: width 0.2s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-nav-web {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-medium);
  transition: all 0.2s ease;
}

.btn-nav-web:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-main);
}

.btn-nav-download {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--dark-btn-bg);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-nav-download:hover {
  background-color: var(--dark-btn-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Mobile Nav Toggle button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  z-index: 1001;
}

/* Mobile Navigation Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: var(--shadow-xl);
}

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

.mobile-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.5rem;
  font-weight: 700;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 80%;
  margin-top: 24px;
}

.btn-nav-web-mobile,
.btn-nav-download-mobile {
  text-decoration: none;
  text-align: center;
  padding: 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
}

.btn-nav-web-mobile {
  border: 1.5px solid var(--text-main);
  color: var(--text-main);
}

.btn-nav-download-mobile {
  background-color: var(--dark-btn-bg);
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 780px;
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background-color: transparent;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}

.badge-container {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease-out;
}

.version-badge {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 24px;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto 48px auto;
  line-height: 1.6;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Hero Download Buttons (Pills styled precisely as in Google Antigravity screenshot) */
.btn-primary,
.btn-secondary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.btn-primary {
  background-color: var(--dark-btn-bg);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background-color: var(--dark-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: #ffffff;
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.btn-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.btn-text-container {
  display: flex;
  flex-direction: column;
}

.btn-subtext {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.6;
  text-transform: uppercase;
}

.btn-maintext {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-arrow {
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow {
  transform: translate(1px, -1px);
}

/* Feature Showcase & Interactive Mockup */
.showcase-section {
  padding: 100px 0;
  background-color: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: flex-start;
}

.showcase-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 0;
}

.showcase-option {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background-color: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  opacity: 0.6; /* Dim inactive items for premium focus effect */
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.showcase-option:hover {
  background-color: rgba(255, 255, 255, 0.6);
  border-color: var(--border-light);
  opacity: 0.85;
}

.showcase-option.active {
  background-color: #ffffff;
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  opacity: 1;
}

.option-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.showcase-option.active .option-icon {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  box-shadow: 0 0 15px var(--accent-glow);
}

.option-details h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.option-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Phone Mockup Screen CSS Frame */
.showcase-mockup {
  position: sticky;
  top: 120px;
  z-index: 10;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  perspective: 1000px;
  transform: rotateY(-5deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-mockup:hover {
  transform: rotateY(0deg) scale(1.03);
}

.screenshot {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transform: scale(0.96) translateY(8px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.screenshot.active {
  opacity: 1;
  z-index: 2;
  transform: scale(1) translateY(0);
}



/* How Section */
.how-section {
  padding: 100px 0;
  background-color: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.step-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Security & Privacy Section */
.security-section {
  padding: 120px 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.security-card-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.badge-green {
  display: inline-block;
  background-color: var(--bg-accent-light);
  border: 1px solid rgba(86, 171, 131, 0.2);
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.security-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.security-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.security-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.security-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.security-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.security-bullets li strong {
  font-weight: 700;
}

/* Specs Table */
.security-specs-table {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--bg-secondary);
}

.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
}

.table-row:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

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

.spec-value {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.spec-value.highlight-zero {
  color: var(--accent-hover);
  background-color: var(--bg-accent-light);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(86, 171, 131, 0.2);
}

/* CTA Banner Bottom */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, rgba(241, 245, 249, 0.85) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-primary-dark,
.btn-secondary-dark {
  text-decoration: none;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.btn-primary-dark {
  background-color: var(--dark-btn-bg);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

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

.btn-secondary-dark {
  border: 1.5px solid var(--text-main);
  color: var(--text-main);
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.btn-secondary-dark:hover {
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

/* Footer Styles */
footer {
  background-color: #09090b;
  color: #ffffff;
  padding: 80px 0 0 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  padding-bottom: 60px;
}

.footer-brand {
  max-width: 450px;
}

.footer-brand .logo-text {
  color: #ffffff;
}

.brand-desc {
  font-size: 0.9rem;
  color: #a1a1aa;
  margin-top: 16px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.link-group h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #71717a;
  margin-bottom: 20px;
}

.link-group a {
  display: block;
  text-decoration: none;
  color: #a1a1aa;
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.link-group a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #27272a;
  padding: 30px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #71717a;
  font-size: 0.8rem;
}

.tech-stack-tag {
  font-weight: 600;
  color: #a1a1aa;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .showcase-mockup {
    order: -1;
    position: relative;
    top: 0;
    max-width: 320px;
    margin-bottom: 0;
  }

  /* Convert vertical card list → horizontal scrollable icon tab strip */
  .showcase-nav {
    flex-direction: row;
    gap: 8px;
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding: 4px 4px 8px 4px;
  }
  .showcase-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }
  .showcase-option {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    min-width: 90px;
    flex-shrink: 0;
    text-align: center;
    opacity: 0.6;
  }
  .showcase-option.active {
    opacity: 1;
  }
  /* Hide description text — keep only icon + title */
  .showcase-option .option-details p {
    display: none;
  }
  .showcase-option .option-details h3 {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
  }
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  /* Menu Toggles */
  .nav-menu, .nav-actions {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  

  
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Tighten showcase section on small phones */
  .showcase-section {
    padding: 60px 0;
  }
  
  .security-card-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   iOS PWA Modal Styles
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-premium), 0 30px 60px -15px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}

.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.modal-close-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-header svg {
  color: var(--text-main);
}

.modal-intro {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-badge {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.modal-steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

.modal-steps strong {
  font-weight: 700;
}

.url-copy-box {
  background-color: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
}

.url-copy-box a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: color 0.2s ease;
}

.url-copy-box a:hover {
  color: var(--accent-color);
}

.share-icon-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  padding: 4px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  vertical-align: middle;
}

.modal-footer {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
}

.btn-modal-open {
  text-decoration: none;
  background: linear-gradient(135deg, var(--dark-btn-bg) 0%, var(--dark-btn-hover) 100%);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}

.btn-modal-open:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

