/* =========================================================
   MOBILE APP STYLESHEET — Light Theme
   Applies only on screens ≤ 767px (phones / small tablets)
   ========================================================= */

@media screen and (max-width: 767px) {

  /* -------------------------------------------------------
     0. GLOBAL RESETS & TOKENS
  ------------------------------------------------------- */
  :root {
    --app-primary:      #e63946;
    --app-primary-dark: #c1121f;
    --app-bg:           #f4f6fb;
    --app-surface:      #ffffff;
    --app-text:         #1a1a2e;
    --app-muted:        #6b7280;
    --app-border:       #e5e7eb;
    --app-radius:       16px;
    --app-shadow:       0 4px 20px rgba(0,0,0,.08);
    --app-header-h:     60px;
    --app-nav-h:        64px;
  }

  * { -webkit-tap-highlight-color: transparent; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--app-bg);
    padding-top: var(--app-header-h);
    padding-bottom: var(--app-nav-h);
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.6;
    color: var(--app-text);
  }

  .body-content-area {
    overflow-x: hidden;
  }

  /* Section spacing — tighter on mobile */
  .sp_pt_120 { padding-top: 48px !important; }
  .sp_pb_120 { padding-bottom: 48px !important; }

  /* Containers full-width with safe horizontal padding */
  .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* -------------------------------------------------------
     1. FIXED APP HEADER
  ------------------------------------------------------- */
  .sp_header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--app-surface) !important;
    box-shadow: 0 1px 0 var(--app-border), 0 2px 12px rgba(0,0,0,.06);
  }

  /* Hide ticker tape info bar */
  .sp_header_info_bar { display: none !important; }

  .sp_header_main {
    padding: 0 !important;
  }

  .sp_header_main .container {
    max-width: 100% !important;
  }

  /* Navbar layout */
  .sp_header_main .navbar {
    height: var(--app-header-h);
    padding: 0 18px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Logo */
  .sp_header_main .site-logo img {
    height: 34px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
  }

  /* Hide desktop auth buttons in header (shown in bottom nav) */
  .sp_header_main .navbar-action { display: none !important; }

  /* Hamburger / toggler */
  .sp_header_main .navbar-toggler {
    border: none !important;
    background: none !important;
    padding: 6px !important;
    margin-left: auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--app-bg) !important;
  }

  .menu-toggle,
  .menu-toggle::before,
  .menu-toggle::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--app-text);
    border-radius: 2px;
    transition: all .25s;
    position: relative;
  }
  .menu-toggle::before { content: ''; top: -6px; position: absolute; }
  .menu-toggle::after  { content: ''; top:  6px; position: absolute; }

  /* Collapse menu — app drawer style */
  .navbar-collapse {
    position: fixed !important;
    top: var(--app-header-h);
    left: 0;
    right: 0;
    bottom: var(--app-nav-h);
    background: var(--app-surface);
    z-index: 9998;
    overflow-y: auto;
    padding: 20px 18px 30px;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: none;
  }

  .navbar-collapse.show {
    transform: translateX(0);
    display: block !important;
  }

  /* Nav links */
  .sp_site_menu { flex-direction: column !important; gap: 0 !important; }

  .sp_site_menu li a,
  .sp_site_menu > li > a {
    display: block;
    padding: 14px 0 !important;
    font-size: 16px !important;
    font-weight: 600;
    color: var(--app-text) !important;
    border-bottom: 1px solid var(--app-border);
    letter-spacing: -.01em;
  }

  .sp_site_menu li a:hover { color: var(--app-primary) !important; }

  /* Sub-menus */
  .sp_site_menu .submenu,
  .sp_site_menu .sub-menu {
    padding-left: 16px;
    border-left: 2px solid var(--app-primary);
    margin: 4px 0 8px;
  }

  /* Language select in nav */
  .navbar-collapse .custom-select-form {
    margin-top: 20px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--app-border);
    font-size: 14px;
  }

  /* -------------------------------------------------------
     2. BOTTOM NAVIGATION BAR (App Tab Bar)
  ------------------------------------------------------- */
  .app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--app-nav-h);
    background: var(--app-surface);
    border-top: 1px solid var(--app-border);
    display: flex !important;
    align-items: stretch;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  }

  .app-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--app-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .02em;
    transition: color .2s;
    padding-bottom: 4px;
    min-width: 0;
  }

  .app-bottom-nav a i {
    font-size: 20px;
    line-height: 1;
  }

  .app-bottom-nav a.active,
  .app-bottom-nav a:hover {
    color: var(--app-primary);
  }

  .app-bottom-nav a.active i {
    transform: scale(1.1);
  }

  /* CTA tab — special pill style */
  .app-bottom-nav a.nav-cta {
    color: var(--app-primary);
    font-weight: 700;
  }

  .app-bottom-nav a.nav-cta i {
    background: var(--app-primary);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(230,57,70,.4);
    transform: translateY(-6px);
  }

  /* -------------------------------------------------------
     3. HERO / BANNER SECTION
  ------------------------------------------------------- */
  .sp_banner {
    padding-top: 28px !important;
    padding-bottom: 0 !important;
    min-height: auto !important;
    background-size: cover;
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    position: relative;
  }

  /* Title */
  .sp_banner_title,
  .sp_banner .sp_banner_title {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: -.03em !important;
    margin-bottom: 12px !important;
    text-align: center;
  }

  .sp_banner_description {
    font-size: 14px !important;
    line-height: 1.65 !important;
    text-align: center;
    margin-top: 8px !important;
    opacity: .85;
  }

  /* Banner CTA buttons — pill style full width */
  .sp_banner .mt-sm-5,
  .sp_banner .mt-4 {
    margin-top: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    width: 100%;
    align-items: center;
  }

  .sp_banner .btn {
    width: 100% !important;
    max-width: 300px;
    border-radius: 50px !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    box-shadow: 0 6px 20px rgba(230,57,70,.35);
  }

  .sp_banner .sp_light_border_btn {
    box-shadow: none;
  }

  /* Banner image */
  .sp_banner_thumb,
  .sp_banner_el {
    display: block !important;
    text-align: center;
    margin-top: 28px;
    position: relative !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
  }

  .sp_banner_thumb img,
  .sp_banner_el img {
    width: 85% !important;
    max-width: 280px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.25));
    animation: floatImg 3s ease-in-out infinite;
  }

  @keyframes floatImg {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
  }

  /* Check list */
  .sp_check_list {
    display: none; /* hide on banner for cleaner mobile hero */
  }

  /* -------------------------------------------------------
     4. SECTION HEADERS — pill badge + title
  ------------------------------------------------------- */
  .sp_theme_top {
    margin-bottom: 24px !important;
    text-align: center;
  }

  .sp_theme_top_caption {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(230,57,70,.1);
    color: var(--app-primary);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
  }

  .sp_theme_top_title {
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -.02em !important;
  }

  /* -------------------------------------------------------
     5. OVERVIEW / STATS SECTION
  ------------------------------------------------------- */
  .overview-section {
    border-radius: var(--app-radius);
    margin: 0 12px;
    padding: 32px 20px !important;
  }

  .overview-section > .container {
    padding: 0 !important;
  }

  .overview-section .sp_theme_top_title {
    font-size: 20px !important;
    margin-bottom: 8px;
  }

  .sp_overview_wrapper {
    margin-top: 20px;
  }

  .sp_overview_wrapper .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin: 0 -4px;
  }

  .sp_overview_wrapper .col-xl-3,
  .sp_overview_wrapper .col-6 {
    flex: 0 0 auto;
    width: 42% !important;
    scroll-snap-align: start;
    padding: 0 6px;
  }

  .sp_overview_item {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 14px;
    padding: 16px 14px;
    text-align: center;
  }

  .sp_overview_amount {
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.1;
  }

  .sp_overview_caption {
    font-size: 11px !important;
    margin-top: 4px;
    opacity: .8;
    letter-spacing: .03em;
    text-transform: uppercase;
  }

  /* -------------------------------------------------------
     6. PLANS / PRICING SECTION
  ------------------------------------------------------- */
  .plan-section {
    background: var(--app-bg);
  }

  .plan-section .items-wrapper {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0 !important;
    padding-bottom: 16px;
    margin: 0 -4px;
    /* Hide scrollbar */
    scrollbar-width: none;
  }
  .plan-section .items-wrapper::-webkit-scrollbar { display: none; }

  .plan-section .items-wrapper > [class*="col-"] {
    flex: 0 0 auto !important;
    width: 78% !important;
    scroll-snap-align: center;
    padding: 0 8px;
  }

  .sp_pricing_item {
    background: var(--app-surface) !important;
    border-radius: 20px !important;
    padding: 22px 18px !important;
    box-shadow: var(--app-shadow) !important;
    border: 1.5px solid var(--app-border) !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .2s;
  }

  .sp_pricing_item:active { transform: scale(.98); }

  /* Pricing header */
  .sp_pricing_item .pricing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--app-border);
  }

  .sp_pricing_item .pricing-header .left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .sp_pricing_item .pricing-header .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(230,57,70,.1);
    color: var(--app-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }

  .sp_pricing_item .package-name {
    font-size: 15px !important;
    font-weight: 700;
    margin: 0;
  }

  .sp_pricing_item .pricing-header .right .package-price {
    font-size: 22px !important;
    font-weight: 800;
    color: var(--app-primary);
    white-space: nowrap;
  }

  /* Features list */
  .sp_pricing_item .package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex: 1;
  }

  .sp_pricing_item .package-features li {
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px dashed var(--app-border);
    color: var(--app-text);
  }

  .sp_pricing_item .package-features li:last-child { border: none; }

  /* Plan CTA */
  .sp_pricing_item .pricing-footer .btn,
  .sp_pricing_item > .btn {
    width: 100% !important;
    border-radius: 50px !important;
    padding: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-top: auto;
  }

  /* Scroll indicator dots for plans */
  .plan-section .text-center.mt-5 { margin-top: 24px !important; }

  /* -------------------------------------------------------
     7. HOW IT WORKS / STEPS SECTION
  ------------------------------------------------------- */
  .work-section {
    background: var(--app-bg);
  }

  .work-section .row.gy-5 {
    gap: 0 !important;
  }

  .sp_work_item {
    display: flex !important;
    align-items: flex-start;
    gap: 16px;
    padding: 20px !important;
    padding-left: 0 !important;
    background: var(--app-surface);
    border-radius: 16px;
    box-shadow: var(--app-shadow);
    margin-bottom: 16px;
  }

  .sp_work_number {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    border-radius: 14px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--app-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230,57,70,.3);
    margin-left: 16px;
    flex-shrink: 0;
  }

  .sp_work_content {
    flex: 1;
    padding-right: 16px;
  }

  .sp_work_content img {
    width: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    object-fit: contain;
    margin-bottom: 8px;
  }

  .sp_work_content .title {
    font-size: 15px !important;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .sp_work_content p {
    font-size: 13px !important;
    color: var(--app-muted);
    margin: 0;
  }

  /* -------------------------------------------------------
     8. ABOUT SECTION
  ------------------------------------------------------- */
  .about-section {
    background: var(--app-surface);
    border-radius: 24px;
    margin: 0 12px;
  }

  .about-thumb {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--app-shadow);
    margin-bottom: 24px;
  }

  .about-thumb img { width: 100% !important; border-radius: 20px; }

  .about-section .sp_check_list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  .about-section .sp_check_list li {
    background: rgba(230,57,70,.08);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--app-primary);
  }

  .about-section .btn {
    width: 100% !important;
    border-radius: 50px !important;
    margin-top: 20px !important;
  }

  /* -------------------------------------------------------
     9. WHY CHOOSE US / BENEFITS SECTION
  ------------------------------------------------------- */
  .choose-section,
  .benefit-section {
    background: var(--app-bg);
  }

  .choose-section .items-wrapper,
  .benefit-section .row.gy-4 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .sp_choose_item,
  .sp_benefit_item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px;
    background: var(--app-surface) !important;
    border-radius: 16px !important;
    padding: 18px !important;
    box-shadow: var(--app-shadow) !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .sp_choose_icon,
  .sp_benefit_icon {
    width: 50px !important;
    height: 50px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(230,57,70,.08);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sp_choose_icon img,
  .sp_benefit_icon img {
    width: 30px !important;
    height: 30px;
    object-fit: contain;
  }

  .sp_choose_content,
  .sp_benefit_content {
    flex: 1;
    padding-left: 0 !important;
    margin-top: 0 !important;
    width: auto !important;
  }

  .sp_choose_content .title,
  .sp_benefit_content .title {
    font-size: 15px !important;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .sp_choose_content p,
  .sp_benefit_content p {
    font-size: 13px !important;
    color: var(--app-muted);
    margin: 0;
  }

  /* Hide middle phone image in benefits */
  .sp_benefit_thumb { display: none !important; }

  /* -------------------------------------------------------
     10. TEAM / TESTIMONIAL SECTION
  ------------------------------------------------------- */
  .team-section .row,
  .testimonial-section .row {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    scrollbar-width: none;
  }
  .team-section .row::-webkit-scrollbar,
  .testimonial-section .row::-webkit-scrollbar { display: none; }

  .team-section .row > [class*="col-"],
  .testimonial-section .row > [class*="col-"] {
    flex: 0 0 auto !important;
    width: 72% !important;
    scroll-snap-align: start;
  }

  /* -------------------------------------------------------
     11. REFERRAL SECTION
  ------------------------------------------------------- */
  .sp_referral_item {
    background: var(--app-surface);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--app-shadow);
    margin-bottom: 12px;
  }

  .sp_referral_item .sp_referral_item_title {
    font-size: 16px !important;
    font-weight: 700;
    padding-left: 20px !important;
  }

  .sp_referral_item p {
    font-size: 13px !important;
    color: var(--app-muted);
    margin: 6px 0 0;
  }

  /* -------------------------------------------------------
     12. BRAND SLIDER (hidden on mobile)
  ------------------------------------------------------- */
  .sp_brand_wrapper {
    padding: 20px 0 !important;
    overflow: hidden;
  }

  /* -------------------------------------------------------
     13. CONTACT SECTION
  ------------------------------------------------------- */
  .contact-section .form-control {
    border-radius: 12px !important;
    border: 1.5px solid var(--app-border) !important;
    padding: 13px 16px !important;
    font-size: 14px !important;
    margin-bottom: 12px;
  }

  .contact-section .form-control:focus {
    border-color: var(--app-primary) !important;
    box-shadow: 0 0 0 3px rgba(230,57,70,.12) !important;
  }

  .contact-section textarea.form-control {
    min-height: 110px;
    resize: none;
  }

  .contact-section .btn {
    width: 100% !important;
    border-radius: 50px !important;
    padding: 14px !important;
    font-weight: 700 !important;
  }

  /* -------------------------------------------------------
     14. BLOG / CARDS
  ------------------------------------------------------- */
  .blog-section .row {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    scrollbar-width: none;
  }
  .blog-section .row::-webkit-scrollbar { display: none; }

  .blog-section .row > [class*="col-"] {
    flex: 0 0 auto !important;
    width: 82% !important;
    scroll-snap-align: start;
  }

  /* -------------------------------------------------------
     15. FOOTER — compact app style
  ------------------------------------------------------- */
  .footer-section {
    border-radius: 24px 24px 0 0 !important;
    padding-top: 32px !important;
    overflow: hidden;
  }

  .footer-section .row > [class*="col-"] {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Site logo in footer */
  .sp_footer_item .site-logo img {
    height: 36px;
  }

  .sp_footer_item p {
    font-size: 13px !important;
    opacity: .8;
  }

  /* Footer title */
  .sp_footer_item_title {
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 12px;
    margin-top: 24px;
  }

  /* Footer links — horizontal scroll row */
  .sp_footer_menu {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    list-style: none;
    padding: 0 !important;
    margin: 0;
  }

  .sp_footer_menu li a {
    display: inline-block;
    background: rgba(255,255,255,.08);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 13px !important;
    white-space: nowrap;
  }

  /* Newsletter */
  .sp_subscription_form {
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border-radius: 50px;
    padding: 4px 4px 4px 16px;
  }

  .sp_subscription_form .form-control {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
    font-size: 13px !important;
    color: inherit;
    flex: 1;
  }

  .sp_subscription_form .subs-btn {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background: var(--app-primary);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  /* Social links */
  .sp_social_links {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
  }

  .sp_social_links li a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
  }

  /* Back to top */
  .back-to-top {
    display: none !important;
  }

  /* Copyright */
  .sp_copy_right_area {
    padding: 16px 0 !important;
    font-size: 12px !important;
    opacity: .7;
  }

  /* -------------------------------------------------------
     16. BREADCRUMB
  ------------------------------------------------------- */
  .sp_breadcrumb_wrapper {
    padding: 16px 0 !important;
    margin-top: 0 !important;
  }

  /* -------------------------------------------------------
     17. GLOBAL BUTTON IMPROVEMENTS
  ------------------------------------------------------- */
  .btn {
    border-radius: 50px !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    transition: transform .15s, box-shadow .15s !important;
  }

  .btn:active {
    transform: scale(.97) !important;
  }

  .sp_theme_btn {
    background: var(--app-primary) !important;
    border-color: var(--app-primary) !important;
    box-shadow: 0 4px 14px rgba(230,57,70,.35) !important;
  }

  /* -------------------------------------------------------
     18. MISC UTILITIES
  ------------------------------------------------------- */

  /* App-style separator */
  .sp_separator_bg {
    border-radius: 24px;
    margin: 0 12px;
  }

  /* Trade section */
  .trade-section .row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Smooth page load */
  @keyframes fadeInPage {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .body-content-area > section,
  .body-content-area > div {
    animation: fadeInPage .4s ease both;
  }

  /* Scroll-reveal via wow.js — keep on mobile */
  .wow { visibility: visible !important; animation-play-state: running !important; }

  /* -------------------------------------------------------
     19. PULL-TO-REFRESH INDICATOR
  ------------------------------------------------------- */
  .ptr-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    opacity: 0;
    transition: opacity .2s;
    color: var(--app-muted);
    font-size: 13px;
    gap: 8px;
  }

} /* end @media max-width: 767px */

/* =========================================================
   EXTRA SMALL (≤ 390px — iPhone SE / small phones)
   ========================================================= */
@media screen and (max-width: 390px) {
  .sp_banner_title,
  .sp_banner .sp_banner_title {
    font-size: 1.55rem !important;
  }

  .sp_theme_top_title {
    font-size: 20px !important;
  }

  .plan-section .items-wrapper > [class*="col-"] {
    width: 88% !important;
  }

  .sp_overview_wrapper .col-xl-3,
  .sp_overview_wrapper .col-6 {
    width: 55% !important;
  }
}

/* =========================================================
   SCROLL SNAP PILLS — horizontal scroll hint dots
   Shown below swipeable carousels on mobile
   ========================================================= */
@media screen and (max-width: 767px) {

  /* Horizontal scroll hint gradient on right edge */
  .plan-section .items-wrapper::after,
  .team-section .row::after,
  .blog-section .row::after {
    content: '';
    flex: 0 0 16px;
    display: block;
  }

  /* Swipe label */
  .swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 11px;
    margin-top: 8px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .swipe-hint::before,
  .swipe-hint::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: #d1d5db;
  }

  /* -------------------------------------------------------
     SECTION DIVIDERS — subtle pill dividers
  ------------------------------------------------------- */
  section + section {
    margin-top: 0;
  }

  /* -------------------------------------------------------
     IMAGE LAZY LOAD — skeleton shimmer
  ------------------------------------------------------- */
  img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
  }

  @keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
  }

  /* -------------------------------------------------------
     HERO STATS MINI BAR (below banner on mobile)
  ------------------------------------------------------- */
  .sp_hero_stats_bar {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    margin: -20px 16px 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
  }

  .sp_hero_stats_bar .stat-item {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    border-right: 1px solid #f3f4f6;
  }

  .sp_hero_stats_bar .stat-item:last-child {
    border-right: none;
  }

  .sp_hero_stats_bar .stat-value {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a2e;
    display: block;
    line-height: 1;
    margin-bottom: 3px;
  }

  .sp_hero_stats_bar .stat-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
  }

  /* -------------------------------------------------------
     MODAL improvements for mobile
  ------------------------------------------------------- */
  .modal-dialog {
    margin: auto 12px 0 !important;
    max-width: calc(100% - 24px) !important;
  }

  .modal.fade .modal-dialog {
    transform: translateY(100%) !important;
    transition: transform .3s cubic-bezier(.4,0,.2,1) !important;
  }

  .modal.show .modal-dialog {
    transform: translateY(0) !important;
  }

  .modal-content {
    border-radius: 24px 24px 0 0 !important;
    border: none !important;
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }

  .modal-header {
    padding: 20px 20px 16px !important;
    border-bottom: 1px solid #f3f4f6 !important;
  }

  .modal-body {
    padding: 20px !important;
  }

  .modal-footer {
    padding: 16px 20px !important;
    border-top: 1px solid #f3f4f6 !important;
    gap: 10px;
  }

  .modal-footer .btn {
    flex: 1;
    border-radius: 50px !important;
    padding: 12px !important;
    font-weight: 700 !important;
  }

  /* Drag handle above bottom sheet modal */
  .modal-content::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    margin: 12px auto 0;
  }

  /* -------------------------------------------------------
     HAPTIC-FEEL — active states on touch
  ------------------------------------------------------- */
  .sp_pricing_item:active,
  .sp_work_item:active,
  .sp_choose_item:active,
  .sp_benefit_item:active {
    transform: scale(.98) !important;
    transition: transform .1s !important;
  }

  .btn:active {
    transform: scale(.96) !important;
    transition: transform .1s !important;
  }

  /* -------------------------------------------------------
     SAFE AREA INSETS (notch / home indicator)
  ------------------------------------------------------- */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .app-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}
}
