/* ============================================================
   PUMP FUN BOOST • RESPONSIVE NİRVANA
   Mobile-first tasarım • 320 -> 1440+
   YEŞİL TEMA
============================================================ */

/* ================== GLOBAL TOUCH FIX ================== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Buton ve tıklanabilir alanlarda touch rahatlığı */
button,
a,
.nav-link,
.btn-primary,
.btn-secondary,
.btn-package,
.icon-btn {
  min-height: 44px;
  min-width: 44px;
}

/* ================== BASE MOBILE (320px ve üstü) ================== */
/* Default: Telefon tasarımı. Desktop için üstte media query var. */

/* NAVBAR */
.nav-container {
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* MOBILE: Left controls first, logo last */
.nav-left-controls {
  order: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hide user-menu on mobile - use mobile nav overlay instead */
.nav-left-controls .user-menu {
  display: none !important;
}

.nav-logo {
  order: 1;
  margin-left: auto;
}

.nav-links,
.nav-auth {
  display: none;
}

.mobile-menu {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HERO */
.hero {
  min-height: auto;
  padding-top: 80px;
  padding-bottom: 32px;
}

.hero-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.hero-badge {
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.hero-description {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.btn-large {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.stat-number {
  font-size: 1.7rem;
}

.hero-visual {
  max-width: 420px;
  margin: 0 auto;
}

/* TOKEN CARD - YEŞİL BORDER */
.main-token-card {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.token-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* FEATURE / PACKAGES SECTION */
.features,
.boost-packages,
.dashboard-preview,
.cta-section {
  padding: 2.5rem 0;
}

.features .container,
.boost-packages .container,
.dashboard-preview .container,
.cta-section .container,
.footer .container {
  padding: 0 1rem;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.section-subtitle {
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* FEATURES bölümünü 2 sütun yap – mobil uyumlu */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 0.5rem;
}

/* Mobilde kartları biraz küçült – taşma olmasın */
.feature-card {
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.feature-card h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.feature-card p {
  font-size: 0.85rem;
  line-height: 1.25;
}

/* FOOTER */
.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}

.social-links {
  justify-content: center;
}

/* Floating cardlar küçük ekranda boşuna GPU yer */
.floating-cards {
  display: none;
}

/* ================== Mobile Navigation Overlay ================== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Original: rgba(15, 23, 42, 0.95) */
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  z-index: 2000;
  transition: all 0.25s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85%;
  height: 100%;
  background: var(--dark);
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1.5rem 1rem;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  color: var(--gray-light);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.mobile-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-btn {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
}

.btn-login.mobile-btn {
  background: transparent;
  border: 1px solid var(--gray);
  color: var(--light);
}

.btn-signup.mobile-btn {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  color: #000;
}

/* ================== 375px – 424px (küçük ama usable telefonlar) ================== */
@media (min-width: 375px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .hero-container {
    gap: 2.1rem;
  }

  .token-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ================== 425px – 599px (standart telefon) ================== */
@media (min-width: 425px) {
  :root {
    --font-size-6xl: 2.4rem;
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.7rem;
  }

  .hero-container {
    max-width: 520px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-token-card {
    padding: 1.4rem;
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }
}

/* ================== 600px – 767px (büyük mobil / küçük tablet) ================== */
@media (min-width: 600px) {
  :root {
    --font-size-6xl: 2.7rem;
    --font-size-5xl: 2.2rem;
    --font-size-4xl: 1.9rem;
  }

  .nav-container {
    padding: 0 1.25rem;
  }

  .hero-container {
    max-width: 640px;
    padding: 0 1.25rem;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    align-items: center;
  }

  .btn-large {
    max-width: 320px;
  }

  .hero-visual {
    max-width: 460px;
  }

  .features .container,
  .boost-packages .container,
  .dashboard-preview .container,
  .cta-section .container,
  .footer .container {
    padding: 0 1.25rem;
  }

  .features-grid,
  .packages-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: left;
  }

  .social-links {
    justify-content: flex-start;
  }
}

/* ================== 768px – 1023px (tablet) ================== */
@media (min-width: 768px) {

  html,
  body {
    overflow-x: hidden;
  }

  .nav-container {
    padding: 0 1.5rem;
  }

  .hero {
    padding-top: 90px;
    padding-bottom: 48px;
  }

  .hero-container {
    max-width: 960px;
    grid-template-columns: 1.1fr 0.9fr;
    text-align: left;
    align-items: center;
  }

  .hero-actions {
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-stats {
    max-width: 520px;
    margin: 1.5rem 0;
  }

  .hero-visual {
    max-width: 480px;
    margin: 0 0 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .packages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ================== 1024px – 1199px (küçük desktop) ================== */
@media (min-width: 1024px) {

  .nav-links,
  .nav-auth {
    display: flex;
  }


  .mobile-menu {
    display: none;
  }

  /* DESKTOP NAVBAR REORDERING */
  /* Logo First */
  .nav-logo {
    order: 0;
    margin-right: var(--space-xl);
  }

  /* Links Second */
  .nav-links {
    order: 1;
    margin-right: auto;
    /* Push rest to right */
    display: flex;
  }

  /* Auth/User Menu (LeftControls) Third */
  .nav-auth {
    order: 2;
    display: flex;
  }

  .nav-left-controls {
    order: 3;
    margin-left: var(--space-md);
  }

  /* Ensure User Menu is visible on desktop if inside left-controls */
  .nav-left-controls .user-menu {
    display: flex !important;
    /* Override inline style if needed, but JS toggles it */
  }

  .mobile-nav-overlay {
    display: none;
  }

  .nav-container {
    padding: 0 2rem;
  }

  .hero-container {
    max-width: 1040px;
    gap: 3rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .packages-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ================== 1200px+ (büyük ekran / full masaüstü) ================== */
@media (min-width: 1200px) {
  .hero {
    min-height: 100vh;
    padding-top: 96px;
    padding-bottom: 64px;
  }

  .hero-container {
    max-width: 1180px;
    gap: 3.5rem;
  }

  .hero-title {
    font-size: 3.3rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .packages-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ================== High DPI / Reduced motion ================== */
@media (min-resolution: 192dpi) {
  .hero-background::before {
    background-image:
      radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.18) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18) 0%, transparent 50%);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   PUMP FUN BOOST — MOBILE OPTIMIZED (0–480px)
   Sadece mobil için sıkılaştırılmış tasarım
   YEŞİL TEMA
============================================================ */

@media (max-width: 480px) {

  /* GLOBAL */
  body {
    font-size: 13px;
  }

  /* NAVBAR */
  .nav-container {
    height: 56px;
    padding: 0 0.75rem;
  }

  .navbar.scrolled {
    /* Original: rgba(15, 23, 42, 0.9) */
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
  }

  .logo img {
    max-height: 20px;
  }

  .logo-text {
    font-size: 0.82rem;
    font-weight: 600;
  }

  .mobile-menu svg {
    width: 22px;
    height: 22px;
  }

  /* Mobilde login/signup yazıları büyümesin */
  .mobile-nav-link {
    font-size: 0.85rem;
    padding: 0.7rem 0.9rem;
  }

  .mobile-user-menu {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-user-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .mobile-user-details {
    display: flex;
    flex-direction: column;
  }

  .mobile-user-details .user-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
  }

  .mobile-user-details .user-email {
    font-size: 0.75rem;
    color: var(--gray);
  }

  .mobile-user-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mobile-btn {
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
  }

  /* HERO */
  .hero {
    padding-top: 60px;
    padding-bottom: 24px;
  }

  .hero-container {
    max-width: 380px;
    gap: 1.4rem;
    padding: 0 0.75rem;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .hero-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
  }

  .btn-large {
    padding: 0.65rem 0.8rem;
    font-size: 0.85rem;
  }

  .hero-stats {
    gap: 0.6rem;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .hero-visual {
    max-width: 300px;
  }

  /* TOKEN CARD */
  .main-token-card {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
  }

  .token-stats {
    gap: 0.55rem;
  }

  /* FEATURES / PACKAGES */
  .features,
  .boost-packages,
  .dashboard-preview,
  .cta-section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .feature-card,
  .package-card {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  /* FOOTER */
  .footer-content {
    gap: 1.2rem;
  }

  .footer .container {
    padding: 0 0.75rem;
  }

  .social-links a {
    width: 32px;
    height: 32px;
  }

  .section-title {
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    text-align: center;
    word-break: break-word;
  }

  .section-subtitle {
    font-size: 0.82rem;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 1.4rem;
    word-break: break-word;
  }

  /* Paketler mobilde yatay yan yana grid */
  .packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* yan yana 2 paket */
    gap: 0.8rem;
    padding: 0 0.5rem;
  }

  /* Paket kartlarını ufaltıyoruz */
  .package-card {
    padding: 0.75rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .package-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
  }

  .package-card p {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .package-features li {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
  }

  .package-price {
    font-size: 1.1rem;
    margin: 0.4rem 0;
  }

  .btn-package {
    padding: 0.55rem 0.6rem;
    font-size: 0.8rem;
  }

  /* Feature kartları da aynı dizilime gelsin */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 0 0.5rem;
  }

  .feature-card {
    padding: 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .feature-card h3 {
    font-size: 1rem;
  }

  .feature-card p {
    font-size: 0.8rem;
  }

  .nav-container {
    height: 48px;
    padding: 0 0.45rem;
    gap: 0.5rem;
  }

  /* Logo kısmı küçültülüyor */
  .logo,
  .nav-logo {
    gap: 0.25rem;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  .logo img {
    max-height: 18px;
  }

  .logo-text {
    font-size: 0.78rem;
    font-weight: 600;
  }

  /* Login & Signup alanı küçültme */
  .nav-auth button,
  .btn-login,
  .btn-signup {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.78rem !important;
    border-radius: 9px !important;
  }

  /* Login ikonunu küçült */
  .btn-login svg,
  .btn-signup svg {
    width: 14px;
    height: 14px;
  }

  /* Sign up genişliği fazla → daralt */
  .btn-signup {
    padding: 0.35rem 0.7rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%) !important;
  }

  /* Mobilde hamburger menü daha küçük */
  .mobile-menu svg {
    width: 20px;
    height: 20px;
  }

  /* Navbar içindeki elemanları dikey ortala */
  .nav-container {
    display: flex;
    align-items: center;
  }
}

.boost-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 0 1rem 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 1rem
}

.boost-slider::-webkit-scrollbar {
  display: none;
}

.boost-slide {
  scroll-snap-align: center;
  flex: 0 0 75%;
  max-width: 75%;
  padding-top: 0.5rem;
}


.package-card {
  width: 100%;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.package-header h3 {
  font-size: 1.2rem;
}

.package-price .amount {
  font-size: 1.4rem;
}

@media (min-width: 768px) {
  .boost-slide {
    flex: 0 0 30%;
    max-width: 30%;
  }
}

#boost .section-header {
  margin-top: 1.8rem;
  margin-bottom: 1.8rem;
  padding: 0 1.2rem;
}

#boost .section-title {
  font-size: 1.55rem;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

#boost .section-subtitle {
  font-size: 0.9rem;
  line-height: 1.35;
  margin-top: 0.4rem;
  margin-bottom: 1.8rem;
  text-align: center;
  opacity: 0.9;
  padding: 0 1rem;
}

@media (max-width: 360px) {
  #boost .section-title {
    font-size: 1.45rem;
  }

  #boost .section-subtitle {
    font-size: 0.83rem;
    margin-bottom: 2rem;
  }
}

/* iPhone 12–15 / büyük Android cihazlar */
@media (min-width: 375px) and (max-width: 430px) {
  #boost .section-title {
    font-size: 1.6rem;
  }

  #boost .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.9rem;
  }
}

/* Tablet görünüm */
@media (min-width: 600px) {
  #boost .section-title {
    font-size: 1.8rem;
  }

  #boost .section-subtitle {
    font-size: 1rem;
  }
}

/* iPhone SE gibi küçük cihazlara ekstra uyum */
@media (max-width: 350px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }

  .feature-card {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .feature-card h3 {
    font-size: 0.9rem;
  }

  .feature-card p {
    font-size: 0.78rem;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.toast.hidden {
  opacity: 0;
}