/* ============================================================
   Day Strike Trading — Mobile / responsive (site-wide)
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  min-width: 0;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

/* Comfortable tap targets */
a,
button,
.btn,
.btn-gold,
.btn-ghost,
.btn-checkout,
.member-tab,
.nav-login,
.dash-nav-link,
input[type="submit"],
input[type="button"] {
  touch-action: manipulation;
}

@media (max-width: 720px) {
  .btn,
  .btn-gold,
  .btn-ghost,
  .btn-checkout,
  .nav-login {
    min-height: 44px;
  }
}

/* ----- Public site nav ----- */
@media (max-width: 720px) {
  .nav {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 16px;
    gap: 8px;
  }

  .nav .brand-logo--mark {
    height: 52px !important;
    max-height: 52px !important;
    min-width: 44px !important;
  }

  .nav-end {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 10px;
    margin-left: 0;
  }

  /* Show links on phone (site.css hides them) */
  .nav-links {
    display: flex !important;
    flex: 1 1 100%;
    order: 3;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    padding: 6px 0 2px;
    margin: 0;
  }

  .nav-links a {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 6px 0;
  }

  .nav-login {
    padding: 10px 16px;
    font-size: 11px;
    white-space: nowrap;
  }
}

/* ----- Member / dashboard nav ----- */
@media (max-width: 720px) {
  .dash-nav {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 16px;
    gap: 8px;
  }

  .dash-nav-logo img {
    height: 48px !important;
    max-height: 48px !important;
  }

  .dash-nav-end {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 6px 14px;
    justify-content: flex-start;
  }

  .dash-nav-link {
    padding: 8px 0;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .dash-main,
  .futures-hub-main,
  .account-main {
    padding: 32px 16px 72px !important;
  }

  .dash-title,
  .futures-hub-title {
    font-size: clamp(28px, 8vw, 40px) !important;
  }

  .dash-sub,
  .futures-hub-lead {
    max-width: none !important;
  }
}

/* ----- Member tabs (scroll on narrow screens) ----- */
.member-tabs {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.member-tabs::-webkit-scrollbar {
  display: none;
}

@media (max-width: 720px) {
  .member-tab {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 9px;
    letter-spacing: 0.1em;
    white-space: nowrap;
  }
}

/* ----- Buttons & forms ----- */
@media (max-width: 600px) {
  .btn-gold,
  .btn-ghost,
  .btn-checkout,
  .dash-futures-primary-actions .btn-gold--lg,
  .dash-futures-primary-actions .btn-ghost,
  .dash-options-actions .btn-gold,
  .dash-options-actions .btn-ghost,
  .product-actions .btn-gold,
  .product-actions .btn-ghost,
  .product-actions--stacked .btn-gold,
  .product-actions--stacked .btn-ghost,
  .license-form-card .btn-gold,
  .pkg-download-btn,
  .dash-quick-links .btn-gold,
  .dash-quick-links .btn-ghost {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    justify-content: center;
  }

  .license-input {
    max-width: 100% !important;
    width: 100%;
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  .auth-form input,
  .auth-form button,
  .checkout-form input,
  .checkout-form select,
  .checkout-form button {
    font-size: 16px;
  }

  .machines-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .license-guide li {
    padding-left: 44px;
    padding-right: 12px;
  }

  .license-success {
    padding: 28px 18px;
  }

  .license-success-id {
    font-size: 14px;
    word-break: break-all;
    max-width: 100%;
  }
}

/* ----- Homepage (index.html) ----- */
@media (max-width: 720px) {
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    height: auto;
    min-height: 520px;
  }

  .hero-grid {
    padding: 20px 16px 36px !important;
  }

  .hero-headline {
    max-width: none !important;
    font-size: clamp(30px, 9.5vw, 44px) !important;
  }

  .hero-sub,
  .hero-sub-detail {
    max-width: none !important;
    font-size: 15px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-ctas .btn,
  .hero-indicator-cta .btn {
    width: 100%;
    min-width: 0 !important;
    justify-content: center;
  }

  .hero-indicator-cta {
    width: 100%;
  }

  .hero-video-slot {
    width: 100%;
    max-width: none;
  }

  .pricing-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .bundle-row {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 18px !important;
  }

  .bundle-row .btn {
    width: 100%;
  }

  .indicator-guide-overlay {
    height: 100dvh;
    height: 100svh;
  }

  .indicator-guide-back {
    top: max(10px, env(safe-area-inset-top, 0px));
    left: max(10px, env(safe-area-inset-left, 0px));
  }

  .split-panel {
    min-height: auto !important;
    padding: 48px 20px !important;
  }

  .split-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .split-actions .btn,
  .split-buy {
    width: 100%;
    min-width: 0 !important;
    text-align: center;
    justify-content: center;
  }

  .split-link {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .hero-eyebrow,
  .eyebrow {
    letter-spacing: 0.18em;
    font-size: 10px;
  }
}

/* ----- Checkout ----- */
@media (max-width: 600px) {
  .checkout-wrap {
    margin: 24px auto 48px !important;
    padding: 0 16px !important;
  }

  .checkout-card {
    padding: 24px 18px !important;
  }

  .card-row {
    grid-template-columns: 1fr !important;
  }

  .checkout-price {
    font-size: 30px !important;
  }
}

/* ----- Auth pages ----- */
@media (max-width: 600px) {
  .auth-body {
    padding: 20px 16px !important;
    align-items: flex-start;
  }

  .auth-wrap {
    max-width: 100%;
  }

  .auth-card {
    padding: 28px 20px !important;
  }

  .auth-logo--full img {
    width: min(240px, 85vw) !important;
  }
}

/* ----- Vertical / legal ----- */
@media (max-width: 720px) {
  .vertical-main,
  .legal-main {
    padding: 48px 20px 80px !important;
  }

  .vertical-title {
    font-size: clamp(40px, 12vw, 72px) !important;
  }

  .content-slot {
    margin-bottom: 48px;
  }
}

/* ----- Account & product cards ----- */
@media (max-width: 720px) {
  .product-card,
  .dash-futures-primary-inner,
  .dash-options-secondary-inner,
  .account-upgrade-hero {
    padding: 24px 18px !important;
  }

  .account-upgrade-title {
    font-size: clamp(22px, 6vw, 28px) !important;
  }

  .futures-hub-primary-head,
  .dash-futures-primary-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----- Admin ----- */
@media (max-width: 720px) {
  .admin-panel {
    padding: 24px 16px 64px !important;
  }

  .admin-stats {
    grid-template-columns: 1fr !important;
  }

  .admin-add-form {
    grid-template-columns: 1fr !important;
  }

  .admin-table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 640px;
  }
}

/* ----- Utilities ----- */
@media (max-width: 720px) {
  .site-footer {
    padding: 48px 20px 32px !important;
  }

  .site-footer-links {
    flex-direction: column;
    gap: 12px;
  }

  pre,
  code {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
