/* ════════════════════════════════════════════════════════════
   ALPHA LINK PRO — Mobile & Responsive CSS
   Breakpoints: 320 / 375 / 425 / 480 / 640 / 768 / 900 / 1024 / 1200 / 1440
   Rule: Desktop (>1024px) is NEVER touched here.
   Only layout, spacing, readability improvements at each bp.
════════════════════════════════════════════════════════════ */

/* ── 0. Global overflow + base guards ──────────────────── */
html, body { max-width: 100%; overflow-x: hidden; }
* { min-width: 0; box-sizing: border-box; }
img, video, iframe, canvas { max-width: 100%; }

/* ════════════════════════════════════════════════════════
   TOP BAR — hide on mobile (saves 36px + announce bar space)
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .apex-topbar { display: none !important; }
}

/* ════════════════════════════════════════════════════════
   ANNOUNCE BAR — responsive multilingual layout
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .announce-bar {
    font-size: 11px;
    padding: 7px 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3px 6px;
    line-height: 1.45;
    text-align: center;
  }
  .announce-bar .sep { display: none; }
  /* Hide Telegram section on small screens — keeps bar on one compact line */
  .announce-extra { display: none; }
  .announce-bar a { white-space: nowrap; }
}
@media (max-width: 480px) {
  .announce-bar { font-size: 10.5px; padding: 6px 12px; }
}
@media (max-width: 375px) {
  .announce-bar { font-size: 10px; padding: 6px 10px; }
}

/* ════════════════════════════════════════════════════════
   NAVBAR — keep Login + Get Started visible
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nav-actions .nav-login {
    display: inline-flex !important;
    padding: 7px 14px;
    font-size: 12px;
  }
  .apex-nav .container { gap: 10px; padding: 0 16px; }
  .nav-logo-sub { display: none; }
}

@media (max-width: 480px) {
  .apex-nav .container { padding: 0 12px; gap: 8px; }
  .nav-logo-name { font-size: 13.5px; }
  .nav-actions .nav-login  { padding: 6px 11px; font-size: 11.5px; }
  .nav-register            { padding: 7px 13px !important; font-size: 11.5px !important; }
  .nav-hamburger           { padding: 3px; }
}

/* Mobile drawer overlay backdrop */
.nav-mobile-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 940;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.nav-mobile-backdrop.visible { display: block; }

/* Mobile nav: close-btn + links sizing */
@media (max-width: 1024px) {
  .nav-mobile-link {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .nav-mobile-actions a { min-height: 46px; }
  .nav-mobile-actions { gap: 10px; }
}

/* ════════════════════════════════════════════════════════
   CONTAINER / SECTION SPACING
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .container, .container-sm { padding: 0 20px; }
  .container-lg { padding: 0 20px; }
}
@media (max-width: 768px) {
  .container, .container-sm { padding: 0 16px; }
  .apex-section    { padding: 64px 0; }
  .apex-section-sm { padding: 48px 0; }
  .apex-section-lg { padding: 80px 0; }
  .section-header  { margin-bottom: 40px; }
  .section-header h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); }
  .section-header p  { font-size: 0.95rem; }
}
@media (max-width: 425px) {
  .container, .container-sm { padding: 0 14px; }
  .apex-section    { padding: 52px 0; }
  .apex-section-lg { padding: 64px 0; }
  .section-header  { margin-bottom: 32px; }
}

/* ════════════════════════════════════════════════════════
   HOMEPAGE — Hero
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero { padding: 80px 0 60px; min-height: auto; }
  .hero-right { display: none !important; }
  .hero-inner { grid-template-columns: 1fr !important; text-align: center; }
  .hero-left  { align-items: center; }
  .hero-eyebrow { align-self: center; }
  .hero-desc    { margin-left: auto; margin-right: auto; }
  .hero-ctas    { justify-content: center; }
  .hero-trust-strip { justify-content: center; }
}
@media (max-width: 768px) {
  .hero { padding: 70px 0 50px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-desc  { font-size: 0.94rem; max-width: 100% !important; }
  .hero-ctas  { gap: 10px; }
  .hero-ctas .btn-xl { width: 100%; justify-content: center; }
  .hero-trust-strip  { flex-wrap: wrap; }
  .hts-item { flex: 1; min-width: 80px; border-right: none !important; border-bottom: 1px solid var(--border); }
  .hts-item:last-child { border-bottom: none; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 0 44px; }
  .hero-title { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .hero-eyebrow { font-size: 9.5px; padding: 5px 12px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}
@media (max-width: 375px) {
  .hero-title { font-size: clamp(1.65rem, 10vw, 2rem); }
}

/* ════════════════════════════════════════════════════════
   STATS BAND
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .stats-band-inner { grid-template-columns: 1fr 1fr !important; }
  .stat-col { border-right: none !important; border-bottom: 1px solid var(--border); padding: 32px 16px; }
  .stat-col:nth-child(odd)  { border-right: 1px solid var(--border) !important; }
  .stat-col:last-child, .stat-col:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .stat-num { font-size: 2rem; }
}
@media (max-width: 425px) {
  .stats-band-inner { grid-template-columns: 1fr 1fr !important; }
  .stat-num { font-size: 1.8rem; }
}

/* ════════════════════════════════════════════════════════
   SERVICES GRID
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr !important; }
  .svc-card { padding: 28px 22px; }
}

/* ════════════════════════════════════════════════════════
   BOT PANELS GRID
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bots-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 640px) {
  .bots-grid { grid-template-columns: 1fr !important; }
  .bot-panel { animation: none !important; }
  .bot-panel-body { padding: 22px 20px 16px; }
  .bot-panel-name { font-size: 1.65rem; }
}

/* ════════════════════════════════════════════════════════
   MARKET CARDS (5-col → 3 → 2 → 1)
════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .market-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
  .market-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
}
@media (max-width: 480px) {
  .market-grid { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════
   HOW IT WORKS
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .how-steps { grid-template-columns: repeat(3, 1fr) !important; gap: 36px; }
  .how-steps::before { display: none; }
}
@media (max-width: 640px) {
  .how-steps { grid-template-columns: 1fr 1fr !important; gap: 28px; }
}
@media (max-width: 425px) {
  .how-steps { grid-template-columns: 1fr !important; gap: 20px; }
}

/* ════════════════════════════════════════════════════════
   FREEBOT SECTION
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .freebot-wrap { grid-template-columns: 1fr !important; gap: 40px; }
  .freebot-left { text-align: center; }
  .freebot-pills { justify-content: center; }
  .freebot-left > p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 640px) {
  .freebot-wrap { gap: 28px; }
  .freebot-panel { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════
   WHY / FEATURES / TESTIMONIALS
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .why-grid   { grid-template-columns: 1fr 1fr !important; }
  .testi-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 640px) {
  .why-grid   { grid-template-columns: 1fr !important; }
  .testi-grid { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════
   FAQ
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .faq-wrap { grid-template-columns: 1fr !important; gap: 32px; }
}

/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .footer-cta-btns { flex-direction: column; align-items: stretch; padding: 0 20px; gap: 12px; }
  .footer-cta-btn  { justify-content: center; }
  .footer-grid     { grid-template-columns: 1fr 1fr !important; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid     { grid-template-columns: 1fr !important; gap: 24px; }
  .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* ════════════════════════════════════════════════════════
   AUTH PAGES — Login / Register / Forgot Password
   Mobile: transparent right panel → glass card floats over
   animated canvas background
════════════════════════════════════════════════════════ */
@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(26px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes auth-brand-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes auth-field-slide {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Hidden by default — shown at ≤900px */
.auth-mobile-brand { display: none; }

@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr !important;
    min-height: 100vh !important;
    padding-top: 0 !important;
  }
  .auth-left { display: none !important; }

  /* Let the canvas show through by making the panel transparent */
  .auth-right {
    background: transparent !important;
    padding: 28px 20px 52px !important;
    min-height: 100vh;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
  }

  /* Brand mark shown above the card on mobile */
  .auth-mobile-brand {
    display: flex !important;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    max-width: 420px;
    width: 100%;
    animation: auth-brand-in 0.4s cubic-bezier(0.16,1,0.3,1) 0.05s both;
  }
  .amb-mark {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--red) 0%, #bf1020 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 900; color: #fff;
    box-shadow: 0 6px 20px rgba(232,25,44,0.4);
    flex-shrink: 0;
  }
  .amb-text { font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1.2; }
  .amb-text span { color: var(--blue); }
  .amb-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; letter-spacing: 0.04em; }

  /* Glass card */
  .auth-form-wrap {
    background: rgba(7,8,17,0.86) !important;
    backdrop-filter: blur(32px) !important;
    -webkit-backdrop-filter: blur(32px) !important;
    border: 1px solid rgba(79,124,255,0.14) !important;
    border-radius: 22px !important;
    padding: 32px 26px !important;
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.03),
      0 28px 80px rgba(0,0,0,0.6),
      0 0 60px rgba(79,124,255,0.04) !important;
    animation: auth-card-in 0.55s cubic-bezier(0.16,1,0.3,1) 0.1s both !important;
    max-width: 420px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* Stagger form group animation */
  .auth-form .af-group:nth-child(1) { animation: auth-field-slide 0.4s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
  .auth-form .af-group:nth-child(2) { animation: auth-field-slide 0.4s cubic-bezier(0.16,1,0.3,1) 0.27s both; }
  .auth-form .af-group:nth-child(3) { animation: auth-field-slide 0.4s cubic-bezier(0.16,1,0.3,1) 0.34s both; }
  .auth-form .af-group:nth-child(4) { animation: auth-field-slide 0.4s cubic-bezier(0.16,1,0.3,1) 0.38s both; }
  .auth-form .af-group:nth-child(5) { animation: auth-field-slide 0.4s cubic-bezier(0.16,1,0.3,1) 0.41s both; }

  /* Input fields: larger touch targets */
  .af-input { font-size: 15px; padding: 14px 14px 14px 44px; }
  .af-submit { padding: 15px; font-size: 15px; }
  .af-label  { font-size: 11px; }

  .auth-header-nav { display: none; }
  .auth-header-inner { padding: 0 20px; }
}

@media (max-width: 640px) {
  .auth-right { padding: 24px 16px 44px !important; }
  .auth-form-wrap { padding: 28px 20px !important; border-radius: 18px !important; }
  .auth-form-head h2 { font-size: 1.5rem; }
  .af-grid { grid-template-columns: 1fr !important; }
  .fp-wrap { padding: 32px 20px !important; }
}

@media (max-width: 375px) {
  .auth-right { padding: 20px 14px 36px !important; }
  .auth-form-wrap { padding: 24px 16px !important; }
  .auth-form-head h2 { font-size: 1.35rem; }
  .amb-text { font-size: 0.9rem; }
}

/* ════════════════════════════════════════════════════════
   DASHBOARD — Sidebar + Topbar
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    top: 0; left: 0; bottom: 0;
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 190;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  .sidebar-overlay.visible { display: block; }

  /* Hamburger button injected by dash-mobile.js */
  .dash-menu-btn {
    display: flex !important;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: rgba(79,124,255,0.08);
    border: 1px solid rgba(79,124,255,0.15);
    border-radius: 8px; cursor: pointer;
    color: var(--text-2); font-size: 15px;
    flex-shrink: 0; transition: all 0.2s;
    margin-right: 6px;
  }
  .dash-menu-btn:hover { background: rgba(79,124,255,0.16); color: var(--blue); }
  .dash-main { margin-left: 0 !important; }
  .dash-content { padding: 16px 14px !important; }
  .dash-topbar  { padding: 0 14px; gap: 8px; }
  .dash-topbar-title { font-size: 13px; gap: 6px; }
}

/* ── Dashboard stat grids ── */
@media (max-width: 1000px) {
  .stat-cards-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .kpi-row         { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .mid-row         { grid-template-columns: 1fr !important; }
  .bottom-row      { grid-template-columns: 1fr !important; }
  .bot-cards-grid  { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
  .stat-cards-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .kpi-row         { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .bot-cards-grid  { grid-template-columns: 1fr !important; }
  .stat-card-value { font-size: 20px; }
}
@media (max-width: 380px) {
  .stat-cards-grid { grid-template-columns: 1fr !important; }
  .kpi-row         { grid-template-columns: 1fr !important; }
}

/* ── Dashboard card internals ── */
@media (max-width: 768px) {
  .dash-card-header  { padding: 13px 16px; flex-wrap: wrap; gap: 8px; }
  .dash-card-body    { padding: 14px 16px; }
  .dash-card-header h3 { font-size: 13px; }
  .dash-form-row     { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════
   DASHBOARD — Tables (horizontal scroll)
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .dash-table-wrap, .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r);
  }
  .dash-table {
    min-width: 540px;
    font-size: 12px;
  }
  .dash-table th { padding: 10px 12px; font-size: 10px; }
  .dash-table td { padding: 10px 12px; font-size: 12px; }
}

/* ════════════════════════════════════════════════════════
   MARKETPLACE
════════════════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .marketplace-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .marketplace-grid { grid-template-columns: 1fr !important; }
  .signal-grid      { grid-template-columns: 1fr !important; }
  .market-plan-price { font-size: 26px; }
}

/* ════════════════════════════════════════════════════════
   BILLING
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .billing-grid { grid-template-columns: 1fr !important; }
  .subscription-card { padding: 20px; }
}

/* ════════════════════════════════════════════════════════
   PROFILE
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr !important; }
  .pf-row { grid-template-columns: 1fr !important; }
  .av-stats { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════
   API KEYS
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .ak-layout { grid-template-columns: 1fr !important; }
  .api-key-value  { flex-direction: column; align-items: flex-start; gap: 8px; }
  .api-key-actions { flex-wrap: wrap; }
  .key-actions    { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .f-mono, [class*="mono"], code, .api-key-value {
    word-break: break-all;
    overflow-wrap: break-word;
    max-width: 100%;
  }
}

/* ════════════════════════════════════════════════════════
   SUPPORT
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .support-layout,
  .ticket-detail-layout { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════
   ADMIN PANEL
════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .admin-grid,
  .admin-two-col    { grid-template-columns: 1fr !important; }
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table, .dash-table { min-width: 640px; font-size: 12px; }
  .admin-controls,
  .admin-actions    { flex-wrap: wrap; gap: 8px; }
  .admin-search-row { flex-direction: column; gap: 8px; }
  .admin-search-row input { width: 100%; }
  .admin-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .admin-tab  { white-space: nowrap; }
}
@media (max-width: 480px) {
  .admin-stats-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 380px) {
  .admin-stats-grid { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════
   TRADES PAGE
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .trades-filters { flex-wrap: wrap; gap: 8px; }
  .trades-filters select,
  .trades-filters input { flex: 1; min-width: 120px; }
  .trades-stat-row { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 425px) {
  .trades-stat-row { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════
   FREE BOT TERMINAL — Mobile Layout
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bot-sidebar { width: 220px; }
}
@media (max-width: 900px) {
  .bot-sidebar { width: 190px; }
  .bot-terminal { height: auto !important; min-height: calc(100svh - 70px); }
}
@media (max-width: 768px) {
  .bot-terminal {
    flex-direction: column;
    height: auto !important;
    min-height: calc(100svh - 70px);
    position: relative;
  }
  .bot-sidebar {
    width: 100% !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    max-height: 58px;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(.4,0,.2,1);
  }
  .bot-sidebar.expanded { max-height: 520px; }
  .bs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 14px 16px;
  }
  .bs-header::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 13px;
    color: var(--text-3);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 8px;
  }
  .bot-sidebar.expanded .bs-header::after { transform: rotate(180deg); }
  .bot-main {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  .kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .fg-row.c2,
  .fg-row.c3,
  .fg-row.c4 { grid-template-columns: 1fr 1fr !important; }
  .bot-subheader { padding: 10px 14px; }
  .bsh-left { gap: 8px; flex-wrap: wrap; }
  .bot-page.active { padding: 14px; }
  .bs-nav, .bs-account { display: block !important; }
  .digit-grid,
  .pred-grid  { grid-template-columns: repeat(5, 1fr) !important; gap: 4px !important; }
  .digit-cell { padding: 6px 4px !important; font-size: 11px !important; }
  .logs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .logs-table      { min-width: 480px; font-size: 11px; }
  .logs-table th, .logs-table td { padding: 8px 10px; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr 1fr !important; }
  .fg-row.c3,
  .fg-row.c4 { grid-template-columns: 1fr !important; }
  .bot-subheader { flex-direction: column; align-items: flex-start; gap: 8px; }
  .notif-strip { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════
   PUBLIC PAGES — Bots / About / Services / Pricing / FAQ
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .bots-hero, .pricing-hero, .page-hero {
    padding: 64px 0 44px;
    text-align: center;
  }
  .page-hero h1, .bots-hero h1, .pricing-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .bot-plan-grid     { grid-template-columns: 1fr !important; }
  .bot-detail-layout { grid-template-columns: 1fr !important; }
  .pricing-grid      { grid-template-columns: 1fr !important; gap: 16px; }
  .pricing-card      { max-width: 400px; margin: 0 auto; }
  .pricing-toggle    { flex-wrap: wrap; justify-content: center; }
  .about-hero-grid   { grid-template-columns: 1fr !important; }
  .about-team-grid   { grid-template-columns: repeat(2, 1fr) !important; }
  .services-features-grid { grid-template-columns: 1fr !important; }
  .contact-grid      { grid-template-columns: 1fr !important; }
  .faq-layout        { grid-template-columns: 1fr !important; }
  .faq-sidebar       { position: static !important; }
}
@media (max-width: 480px) {
  .about-team-grid { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════
   CART / CHECKOUT
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .checkout-grid   { grid-template-columns: 1fr !important; }
  .cart-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ════════════════════════════════════════════════════════
   BUTTON + TEXT OVERFLOW GUARDS
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .dash-table td, .dash-table th { word-break: break-word; }
  .ir-val, .kpi-value, .stat-card-value, .bsa-balance {
    word-break: break-all;
    overflow-wrap: break-word;
  }
  .subscription-card { padding: 18px; }
  .sub-name { font-size: 18px; }
  .notice-bar { font-size: 12px; }
  [class*="two-col"],
  [class*="2-col"],
  [class*="grid-2"] { grid-template-columns: 1fr !important; }
  .bot-card-actions,
  .key-actions,
  .api-key-actions  { flex-wrap: wrap; }
}

/* ════════════════════════════════════════════════════════
   CANVAS — reduce opacity on mobile for readability
   Auth pages benefit from higher opacity (glass card contrast)
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #page-bg-canvas  { opacity: 0.5 !important; }
}

/* ════════════════════════════════════════════════════════
   ACCESSIBILITY — minimum tap targets
════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bs-btn,
  .sidebar-link,
  .nav-mobile-link  { min-height: 44px; }
  .btn, .btn-sm,
  .dash-notif-btn,
  .dash-avatar-btn  { min-height: 36px; }
}

/* ════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON — adjust on mobile
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .wa-float { bottom: 18px; right: 16px; }
  .wa-float-label { display: none; }
}

/* ════════════════════════════════════════════════════════
   MULTILINGUAL RESPONSIVE SYSTEM
   Scoped entirely inside media queries — never overrides
   desktop globals. Prevents ES/FR/PT layout breaks.
════════════════════════════════════════════════════════ */

/* ── Desktop nav compression (1025–1280px) ──────────────
   Shrinks nav link font + padding before hamburger kicks
   in, so translated labels (30–50% longer) don't wrap.
─────────────────────────────────────────────────────── */
@media (min-width: 1025px) and (max-width: 1280px) {
  .nav-link {
    font-size: 12px;
    padding: 6px 9px;
    letter-spacing: 0;
  }
  .nav-links { gap: 2px; }
  .apex-nav .container { gap: 8px; }
  .nav-logo-name { font-size: 14px; }
}
@media (min-width: 1025px) and (max-width: 1120px) {
  .nav-link { font-size: 11.5px; padding: 6px 6px; }
  .nav-links { gap: 0; }
  .nav-actions .nav-login  { padding: 7px 12px; font-size: 11.5px; }
  .nav-register            { padding: 7px 12px !important; font-size: 11.5px !important; }
}

/* ── Hero eyebrow pill — keeps compact shape on mobile ── */
@media (max-width: 768px) {
  .hero-eyebrow {
    font-size: 9.5px;
    padding: 5px 12px;
    letter-spacing: 0.1em;
    max-width: calc(100% - 8px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 480px) {
  .hero-eyebrow {
    font-size: 9px;
    padding: 5px 10px;
    letter-spacing: 0.08em;
  }
}

/* ── Hero title at tablet / mobile ── */
@media (max-width: 1024px) {
  .hero-title { line-height: 1.13; }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.85rem, 7.5vw, 2.9rem);
    line-height: 1.14;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(1.75rem, 8.5vw, 2.4rem); }
}

/* ── Section headers ── */
@media (max-width: 1024px) {
  .section-header h2 { font-size: clamp(1.55rem, 4.5vw, 2.2rem); }
  .page-hero h1, .bots-hero h1, .pricing-hero h1 { overflow-wrap: break-word; }
}
@media (max-width: 768px) {
  .section-header h2 { font-size: clamp(1.55rem, 6vw, 2.1rem); overflow-wrap: break-word; }
  .section-header p  { font-size: 0.92rem; line-height: 1.7; overflow-wrap: break-word; }
}
@media (max-width: 425px) {
  .section-header h2 { font-size: clamp(1.45rem, 7vw, 1.85rem); }
}

/* ── Mobile drawer — translated links wrap cleanly ── */
@media (max-width: 1024px) {
  .nav-mobile-link {
    white-space: normal;
    line-height: 1.3;
    min-height: 48px;
    height: auto;
    align-items: flex-start;
    padding-top: 13px;
    padding-bottom: 13px;
  }
  .nav-mobile-actions .btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

/* ── Footer multilingual text guards ── */
@media (max-width: 768px) {
  .footer-col h5 {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .footer-col ul li a {
    overflow-wrap: break-word;
    word-break: break-word;
    display: block;
  }
  .footer-brand > p {
    overflow-wrap: break-word;
    font-size: 0.875rem;
    line-height: 1.65;
  }
  .footer-cta-strip h3 {
    overflow-wrap: break-word;
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
  .footer-cta-strip p { overflow-wrap: break-word; font-size: 0.875rem; }
  .footer-cta-btn {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .footer-bottom-links a {
    overflow-wrap: break-word;
  }
}

/* ── Cards — overflow guards on mobile ── */
@media (max-width: 768px) {
  .apex-card, .svc-card, .bot-panel, .pricing-card,
  .why-card, .testi-card, .market-card, .how-step,
  .pay-card, .bot-cta-block {
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .svc-card h3, .bot-panel-name, .pricing-card h3,
  .why-card h4, .market-card-name {
    overflow-wrap: break-word;
  }
  .bot-tier-tag {
    white-space: normal;
    flex-wrap: wrap;
    height: auto;
    min-height: 26px;
    padding: 4px 10px;
    line-height: 1.3;
  }
}

/* ── Auth forms — longer translated labels / buttons ── */
@media (max-width: 640px) {
  .af-label {
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.3;
    white-space: normal;
  }
  .af-submit {
    white-space: normal;
    line-height: 1.3;
    min-height: 50px;
  }
  .auth-form-head h2 { overflow-wrap: break-word; }
  .auth-divider span { overflow-wrap: break-word; }
}

/* ── Dashboard sidebar — translated labels wrap cleanly ── */
@media (max-width: 900px) {
  .sidebar-link {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
    height: auto;
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .sidebar-section-label {
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
  }
  .dash-topbar-title { overflow-wrap: break-word; min-width: 0; }
}

/* ── Bots page — compare table & card names ── */
@media (max-width: 768px) {
  .compare-table td, .compare-table th {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .pay-card-name, .bot-detail-name { overflow-wrap: break-word; }
}

/* ── FAQ accordion — long translated Q&A ── */
@media (max-width: 640px) {
  .faq-card-q {
    overflow-wrap: break-word;
    line-height: 1.4;
  }
  .faq-card-a {
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.7;
  }
}

/* ── Trust strip — short translated labels wrap at 640px ── */
@media (max-width: 640px) {
  .hts-lbl {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    font-size: 9px;
    line-height: 1.3;
  }
  .hts-item { padding: 12px 8px; min-width: 64px; }
}

/* ── Pricing toggle chips — height-flexible for longer text ── */
@media (max-width: 640px) {
  .pricing-toggle .toggle-opt,
  .pricing-toggle label {
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    height: auto;
    min-height: 34px;
    padding: 6px 12px;
  }
}

/* ════════════════════════════════════════════════════════
   DASHBOARD NAV LABEL — hide long labels on small screens
════════════════════════════════════════════════════════ */
@media (max-width: 320px) {
  .sidebar-nav-label { font-size: 8px; letter-spacing: 0.1em; }
  .sidebar-link      { font-size: 12px; padding: 9px 14px; }
}

/* ════════════════════════════════════════════════════════
   MOBILE ANIMATION SYSTEM v2 — Hero, Cards, Interactions
════════════════════════════════════════════════════════ */

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes mob-slide-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mob-slide-down {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mob-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes mob-glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.1); }
}
@keyframes mob-bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(9px); opacity: 1; }
}
@keyframes mob-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mob-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes mob-bar-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes mob-pop {
  0%   { transform: scale(1.14) translateY(-4px); }
  100% { transform: scale(1) translateY(0); }
}
@keyframes mob-glow-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,25,44,0.0); }
  50%       { box-shadow: 0 0 0 5px rgba(232,25,44,0.18); }
}

/* ── Hero Entrance — staggered per-element ─────────────── */
@media (max-width: 1024px) {
  .hero-eyebrow     { animation: mob-slide-down 0.55s cubic-bezier(0.34,1.56,0.64,1) 0.05s both; }
  .hero-title       { animation: mob-slide-up   0.65s cubic-bezier(0.34,1.20,0.64,1) 0.18s both; }
  .hero-desc        { animation: mob-fade-in    0.55s ease 0.34s both; }
  .hero-ctas        { animation: mob-slide-up   0.55s cubic-bezier(0.34,1.20,0.64,1) 0.46s both; }
  .hero-trust-strip { animation: mob-slide-up   0.5s  ease 0.58s both; }
  .mob-hero-live    { animation: mob-card-in    0.55s cubic-bezier(0.34,1.20,0.64,1) 0.68s both; }

  /* Ambient glow elements pulse on mobile */
  .hero-glow-left  { animation: mob-glow-pulse 6s ease-in-out infinite; }
  .hero-glow-right { animation: mob-glow-pulse 6s ease-in-out infinite; animation-delay: -3s; }
}

/* ── Hero Layout & Trust Strip on Mobile ───────────────── */
@media (max-width: 768px) {
  /* Gradient background on mobile hero */
  .hero {
    background:
      radial-gradient(ellipse at 25% 0%,   rgba(79,124,255,0.09) 0%, transparent 55%),
      radial-gradient(ellipse at 80% 60%, rgba(232,25,44,0.06) 0%, transparent 50%),
      #040608 !important;
  }

  /* Trust strip → 2×2 grid */
  .hero-trust-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    border-radius: 14px;
    overflow: hidden;
  }
  .hts-item {
    border-right: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 13px 14px !important;
    min-width: unset !important;
  }
  .hts-item:nth-child(2n)    { border-right: none !important; }
  .hts-item:nth-child(3),
  .hts-item:nth-child(4)     { border-bottom: none !important; }
  .hts-val { font-size: 1.15rem !important; }
  .hts-lbl { font-size: 9.5px !important; }

  /* Keep only 2 hero CTAs */
  .hero-ctas .btn:nth-child(3) { display: none !important; }

  /* Make both remaining CTAs equal width */
  .hero-ctas { gap: 10px !important; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
}

/* ── Mobile Hero Live Stats (replaces hidden terminal) ─── */
.mob-hero-live { display: none; }

@media (max-width: 1024px) {
  .mob-hero-live {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
    width: 100%;
  }
  .mhl-card {
    background: rgba(11,13,28,0.85);
    border: 1px solid var(--border-md);
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .mhl-card.featured {
    border-color: rgba(79,124,255,0.3);
    box-shadow: 0 0 0 1px rgba(79,124,255,0.12), 0 8px 24px rgba(79,124,255,0.1);
  }
  .mhl-card.featured::before {
    content: '';
    position: absolute; inset: 0; border-radius: 12px;
    background: linear-gradient(100deg, transparent 30%, rgba(79,124,255,0.09) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: mob-shimmer 2.6s ease-in-out infinite;
    pointer-events: none;
  }
  .mhl-live-dot {
    position: absolute; top: 7px; right: 7px;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 1.5s ease-in-out infinite;
  }
  .mhl-val {
    font-family: var(--f-head);
    font-size: 1.3rem; font-weight: 800;
    line-height: 1; margin-bottom: 4px;
    letter-spacing: -0.025em;
  }
  .mhl-lbl {
    font-size: 9px; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.07em;
    font-family: var(--f-mono);
  }
}
@media (max-width: 480px) {
  .mob-hero-live { gap: 7px; margin-top: 18px; }
  .mhl-card { padding: 12px 8px; }
  .mhl-val  { font-size: 1.15rem; }
}

/* ── Scroll Indicator ────────────────────────────────────── */
.mob-scroll-indicator { display: none; }

@media (max-width: 768px) {
  .mob-scroll-indicator {
    display: flex;
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    flex-direction: column; align-items: center; gap: 5px;
    z-index: 3; pointer-events: none;
    animation: mob-fade-in 0.6s ease 1.2s both;
  }
  .mob-scroll-indicator .msi-line {
    width: 1.5px; height: 24px;
    background: linear-gradient(to bottom, transparent, rgba(79,124,255,0.6));
    border-radius: 2px;
  }
  .mob-scroll-indicator i {
    font-size: 12px; color: rgba(79,124,255,0.7);
    animation: mob-bounce-down 2s ease-in-out infinite;
  }
}

/* ── Touch Feedback ──────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Cards: scale down on tap */
  .apex-card, .svc-card, .why-card, .testi-card,
  .bot-panel, .market-card, .pricing-card,
  .faq-card, .faq-item { -webkit-tap-highlight-color: transparent; }

  .apex-card:active, .svc-card:active, .why-card:active,
  .testi-card:active,  .bot-panel:active, .market-card:active,
  .pricing-card:active, .faq-item:active {
    transform: scale(0.982);
    transition: transform 0.12s ease !important;
  }

  /* Buttons: firm tap press */
  .btn:active {
    transform: scale(0.94) !important;
    transition: transform 0.1s ease !important;
  }
}

/* ── Snappier Reveal on Mobile ───────────────────────────── */
@media (max-width: 768px) {
  .reveal {
    transform: translateY(22px);
    transition: opacity 0.48s cubic-bezier(0.25,0.46,0.45,0.94),
                transform 0.48s cubic-bezier(0.25,0.46,0.45,0.94);
  }
  .delay-3 { transition-delay: 0.12s; }
  .delay-4 { transition-delay: 0.18s; }
  .delay-5 { transition-delay: 0.22s; }
}

/* ── Entry shimmer on visible cards ─────────────────────── */
@media (max-width: 768px) {
  .why-card.visible::after,
  .testi-card.visible::after,
  .svc-card.visible::after {
    content: '';
    position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(110deg, transparent 30%, rgba(79,124,255,0.05) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: mob-shimmer 1s ease-out 1 forwards;
    pointer-events: none; z-index: 0;
  }
}

/* ── Stats Counter Pop ───────────────────────────────────── */
@media (max-width: 768px) {
  .stat-col.visible .stat-num,
  .how-step.visible .how-num {
    animation: mob-pop 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
  }
}

/* ── Ticker: slightly slower on mobile ──────────────────── */
@media (max-width: 768px) {
  .ticker-track { animation-duration: 26s !important; }
}

/* ── Hamburger open/close animation ─────────────────────── */
@media (max-width: 1024px) {
  .nav-hamburger span {
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1),
                opacity 0.2s ease;
  }
  .nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Sticky Bottom CTA Bar ───────────────────────────────── */
.mob-cta-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 850;
  padding: 13px 18px;
  background: rgba(4,5,10,0.97);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-top: 1px solid rgba(79,124,255,0.15);
  box-shadow: 0 -6px 40px rgba(0,0,0,0.55), 0 -1px 0 rgba(79,124,255,0.1);
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.34,1.1,0.64,1);
  will-change: transform;
}
.mob-cta-bar.shown { transform: translateY(0); }

.mob-cta-inner {
  display: flex; align-items: center; gap: 12px;
  max-width: 480px; margin: 0 auto;
}
.mob-cta-text { flex: 1; min-width: 0; }
.mob-cta-title {
  font-family: var(--f-head); font-size: 13px; font-weight: 700;
  color: var(--text); letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mob-cta-sub {
  font-size: 10px; color: var(--text-3); font-family: var(--f-mono);
}
.mob-cta-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 20px; border-radius: 9px;
  background: var(--red); color: #fff;
  font-family: var(--f-body); font-size: 13px; font-weight: 700;
  white-space: nowrap; text-decoration: none;
  box-shadow: 0 4px 18px rgba(232,25,44,0.38);
  animation: mob-glow-ring 2.8s ease-in-out infinite;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mob-cta-btn:active { transform: scale(0.95); }
.mob-cta-close {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-3); font-size: 10px;
  cursor: pointer; flex-shrink: 0;
  transition: all 0.18s ease;
}
.mob-cta-close:active { background: rgba(255,255,255,0.12); color: var(--text); }

@media (max-width: 1024px) {
  .mob-cta-bar { display: block; }
  /* Pad body so sticky bar never overlaps footer content */
  body.cta-bar-open { padding-bottom: 74px; }
}
@media (max-width: 480px) {
  .mob-cta-bar { padding: 11px 14px; }
  .mob-cta-title { font-size: 12px; }
  .mob-cta-btn { padding: 10px 15px; font-size: 12.5px; }
}

/* ── Section header scale on very small screens ─────────── */
@media (max-width: 375px) {
  .section-header h2 { font-size: clamp(1.5rem, 8vw, 2rem); line-height: 1.18; }
  .section-header p  { font-size: 0.88rem; }
}
