/* =====================================================
   MOBILE STYLES - style-mobile.css
   Use this file for screens 768px and below
   Apply with: @media (max-width: 768px)
   ===================================================== */

@media (max-width: 768px) {

  /* =====================================================
     GLOBAL MOBILE RESET
     ===================================================== */
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    font-size: 13px;
  }

  body {
    padding-top: 70px;
  }

  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* =====================================================
     BACKGROUND ADJUSTMENTS
     ===================================================== */
  .bg-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }

  .stars {
    width: 100%;
    max-width: 100%;
    animation: none !important;
  }

  .gradient-orb {
    display: none !important;
  }

  /* =====================================================
     HEADER - FIXED WITH HAMBURGER MENU
     ===================================================== */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    padding: 8px 3%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    z-index: 10000;
  }

  .header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    height: 100%;
  }

  /* Logo - Smaller on mobile */
  .logo {
    width: auto;
    justify-content: flex-start;
  }

  .logo img {
    width: 36px !important;
    height: 36px !important;
    animation: none;
  }

  .logo h1 {
    font-size: 1rem;
  }

  /* Hamburger menu button */
  /* BEAUTIFUL MOBILE HAMBURGER BUTTON */

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 50%;
  background: linear-gradient(145deg, #2c4d6f, #1a2f45);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);

  border: none;
  cursor: pointer;

  transition: transform .2s ease, box-shadow .2s ease;
}

/* bars */
.hamburger span {
  width: 20px;
  height: 3px;
  background: #ffffff;
  border-radius: 10px;
  transition: .3s ease;
}

/* spacing between bars */
.hamburger span:nth-child(2) {
  margin: 4px 0;
}

/* hover animation */
.hamburger:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}


  /* Navigation - Slide-in menu */
  nav ul {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 2500;
  }

  nav ul.active {
    transform: translateX(0);
  }

  nav a {
    font-size: 0.85rem;
  }

  /* Sign In / User Button */
  .user-menu {
    width: auto;
    margin-left: 8px;
    flex-shrink: 0;
  }

  .user-button,
  .profile-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* =====================================================
     HERO SECTION
     ===================================================== */
  .hero {
    margin-top: 0;
    padding: 20px 16px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
  }

  .hero p {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  /* Hero buttons */
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero .btn-primary,
  .hero .btn-secondary {
    width: 100%;
    max-width: 300px;
    padding: 7px 18px;
    font-size: 12px;
  }

  /* =====================================================
     BUTTONS - GLOBAL MOBILE SIZE
     ===================================================== */
  button,
  .btn,
  .btn-primary,
  .btn-secondary,
  a.btn {
    padding: 7px 16px;
    font-size: 12px;
    border-radius: 999px;
    min-height: auto;
    height: auto;
    line-height: 1.2;
  }

  /* =====================================================
     SECTION TYPOGRAPHY
     ===================================================== */
  h1 {
    font-size: 20px;
    line-height: 1.25;
  }

  h2,
  .section-title h2 {
    font-size: clamp(1.4rem, 5vw, 1.7rem);
    line-height: 1.2;
  }

  h3 {
    font-size: 15px;
  }

  p {
    font-size: 12px;
    line-height: 1.4;
  }

  /* =====================================================
     SERVICES SECTION
     ===================================================== */
  .services {
    padding: 5rem 4%;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-items: center;
  }

  .service-card {
    width: 100%;
    max-width: 340px;
    padding: 1.6rem;
    margin: 0 auto;
  }

  .service-card h3 {
    font-size: 0.95rem;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    margin-bottom: 6px;
  }

  .service-tooltip {
    left: 10px;
    width: calc(100% - 20px);
    font-size: 0.9rem;
  }

  /* =====================================================
     FEATURES SECTION
     ===================================================== */
  .features {
    padding: 5rem 4%;
  }

  .features-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
  }

  .features-grid::-webkit-scrollbar {
    height: 6px;
  }

  .features-grid::-webkit-scrollbar-thumb {
    background: #c4c4c4;
    border-radius: 10px;
  }

  .feature-item {
    padding: 14px;
    border-radius: 14px;
    flex: 0 0 280px;
  }

  .feature-item h4 {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .feature-item p {
    font-size: 12px;
    line-height: 1.4;
  }

  .feature-icon {
    font-size: 2.2rem;
  }

  /* =====================================================
     PRICING SECTION - ONE PLAN PER ROW
     ===================================================== */
  .pricing-wrapper,
  .pricing-container,
  .pricing-section,
  .pricing-cards-mobile {
    display: block !important;
    width: 100%;
  }

  .pricing-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin-bottom: 18px;
    padding: 20px;
    box-sizing: border-box;
  }

  .pricing-card h3 {
    white-space: normal !important;
    word-break: normal !important;
    font-size: 1.4rem;
    text-align: center;
  }

  .pricing-amount {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap !important;
    font-size: 1.8rem;
    max-width: 100%;
  }

  .pricing-amount span {
    font-size: 0.85rem;
  }

  .pricing-features {
    margin: 1rem 0;
    text-align: left;
    font-size: 0.9rem;
  }

  .pricing-features li {
    font-size: 0.75rem;
    padding: 0.35rem 0;
    word-break: break-word;
  }

  .pricing-card .btn-primary {
    width: 100%;
    margin-top: 12px;
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }

  .pricing-badge {
    position: static !important;
    transform: none !important;
    margin: 0 auto 10px;
    display: inline-block;
    font-size: 0.6rem;
    padding: 0.18rem 0.5rem;
  }

  /* =====================================================
     MODAL - MOBILE OPTIMIZED
     ===================================================== */
  .modal {
    padding: 0.5rem;
  }

  .modal-content {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 95%;
    max-width: 100%;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 2rem;
    border-radius: 18px;
  }

  #subscriptionModal {
    align-items: flex-start;
    padding: 1rem;
  }

  #subscriptionModal .modal-content {
    padding: 1.25rem;
  }

  #subscriptionModal * {
    max-width: 100%;
  }

  #subscriptionTitle {
    font-size: 1.45rem;
  }

  /* =====================================================
     CONTACT FORM - MOBILE
     ===================================================== */
  .contact {
    padding: 5rem 4%;
  }

  .contact-form {
    padding: 1.8rem;
  }

  .contact-form input {
    padding: 0.9rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .contact-form textarea {
    display: none !important;
  }

  .contact-form .form-group {
    margin-bottom: 1.2rem;
  }

  .contact-form .btn-primary {
    width: 100%;
    padding: 0.8rem;
    font-size: 0.85rem;
  }

  /* =====================================================
     USER DROPDOWN - MOBILE
     ===================================================== */
  .user-dropdown {
    width: 92vw;
    right: 50%;
    transform: translateX(50%);
  }

  .user-dropdown.user-menu {
    width: 92vw;
  }

  /* =====================================================
     CTA SECTION
     ===================================================== */
  .cta-section {
    padding: 5rem 4%;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  /* =====================================================
     FOOTER
     ===================================================== */
  footer {
    padding: 2rem 4%;
  }

  .footer-marquee {
    font-size: 0.9rem;
  }

  /* =====================================================
     FORM INPUTS
     ===================================================== */
  input,
  textarea {
    padding: 8px 10px;
    font-size: 12px;
  }

  textarea {
    min-height: 90px;
  }

  /* =====================================================
     MY APPS MODAL BEAUTIFICATION
     ===================================================== */
  #subscriptionModal.my-apps-mode .modal-content {
    padding: 1.6rem;
  }

  #subscriptionModal.my-apps-mode .pricing-card {
    padding: 1.4rem;
  }

  #subscriptionModal.my-apps-mode #subscriptionTitle {
    font-size: 1.45rem;
  }

  /* =====================================================
     PLAN / APP CARDS
     ===================================================== */
  .choose-plan-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.4rem;
  }

  .choose-plan-container > div {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 1.5rem 1.2rem;
  }

  .choose-plan-container button {
    width: 100%;
  }

  /* =====================================================
     SECTION SPACING
     ===================================================== */
  section {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  /* =====================================================
     UTILITY CLASSES
     ===================================================== */
  .service-card.no-jump,
  .service-card.no-jump:hover {
    transform: none !important;
    box-shadow: 0 5px 20px rgba(30,58,95,0.05) !important;
    border-color: #e6e1dc !important;
    z-index: 1 !important;
  }

  .service-card.no-jump .service-icon {
    animation: none !important;
  }

  .service-card.no-jump::before,
  .service-card.no-jump:hover::before {
    animation: none !important;
    opacity: 0 !important;
  }

  html.disable-hover .service-card:hover,
  html.disable-hover .service-card.show-tooltip {
    transform: translate3d(0, 0, 0) !important;
    box-shadow: 0 5px 18px rgba(30,58,95,0.05) !important;
    border-color: #e6e1dc !important;
  }

  html.disable-hover .service-card .service-tooltip {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(6px) !important;
  }

  /* =====================================================
     PASSWORD FIELD TOGGLE
     ===================================================== */
  .password-field {
    position: relative;
  }

  .password-field input {
    width: 100%;
    padding-right: 2.5rem;
  }

  .toggle-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1rem;
    color: #2c4d6f;
  }

  /* =====================================================
     OTP CONTAINER
     ===================================================== */
  .otp-container {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin: 1.2rem 0;
  }

  .otp-input {
    width: 40px !important;
    height: 40px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0 !important;
  }

  /* =====================================================
     MODAL LINK COLORS
     ===================================================== */
  .modal-content a,
  .modal-content a:link,
  .modal-content a:visited,
  .forgot-password a {
    color: #2c4d6f;
    font-weight: 700;
    text-decoration: none;
  }

  .modal-content a:hover,
  .forgot-password a:hover {
    color: #1a2332;
    text-decoration: underline;
  }

  /* =====================================================
     SERVICE FEATURES BOX
     ===================================================== */
  .service-features-box {
    background: linear-gradient(180deg,
                rgba(44, 77, 111, 0.06) 0%,
                rgba(61, 90, 115, 0.03) 100%);
    border: 1px solid rgba(44, 77, 111, 0.18);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
  }

  .service-features-title {
    color: #2c4d6f;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
  }

  .service-features-list {
    color: #123147;
    line-height: 1.8;
    font-weight: 600;
    font-size: 0.85rem;
  }

  #serviceFeaturesList,
  #serviceFeaturesList * {
    color: #1a2332;
    opacity: 1;
    font-weight: 600;
  }
 /* Title fix for mobile */
.page-title,
.modal-title,
.section-title,
h2#subscriptionTitle {
  text-align: center !important;
  width: 100%;
  display: block;
}

/* Prevent title from hiding under fixed header */
/*.page-title,*/
/*.section-title,*/
/*h2#subscriptionTitle {*/
  /*margin-top: 90px !important;*/
  /*scroll-margin-top: 100px;*/
/*}*/
#services .section-title,
#services h2,
#services p,
.service-title,
.page-title {
  text-align: center !important;
  width: 100%;
}
/*#services,*/
/*.services {*/
/*  padding-top: 110px !important; */
/*}*/
/* ---- FIX TITLE VISIBILITY & CENTER ---- */

/*section.services > p:first-of-type {*/
/*  text-align: center !important;*/
/*  display: block;*/
/*  width: 100%;*/
/*  font-weight: 700;*/
/*  margin-top: 110px !important; */
/*}*/
body {
  padding-top: 60px !important;
}

.services {
  padding-top: 40px !important;
}
/* ---------- SUBSCRIPTION MODAL TITLE FIX ---------- */

/*#subscriptionModal .modal-content {*/
  /*margin-top: 80px !important; */
/*}*/

/*#subscriptionTitle,*/
/*#subscriptionSubtitle {*/
/*  text-align: center !important;*/
/*  width: 100%;*/
/*  display: block;*/
/*}*/
/* --------- MOBILE MODAL POSITION FIX --------- */
/*.modal .modal-content {*/
  /*margin-top: 80px !important; */
/*}*/
/* --------- MODAL TITLES CENTER --------- */
.modal-content h2,
.modal-content p {
  text-align: center !important;
  width: 100%;
  display: block;
}
/* -------- SERVICE FEATURES TITLE -------- */
.service-features-title {
  text-align: center !important;
}

.service-features-list {
  text-align: left !important;
}
.modal .modal-content {
  margin-top: 95px !important;
}
/* place hamburger at right end */
.header-content {
  justify-content: space-between !important;
}

/* push logo left, everything else right */
.logo {
  margin-right: auto;
}

/* ensure hamburger sits on the right */
.hamburger {
  margin-left: 10px;
  order: 3;
}
/* hide sign in button on mobile header */
/*.user-button {*/
/*  display: none !important;*/
/*}*/

  
}









/* ===============================
   MY APPS PAGE – MOBILE
   =============================== */

.my-apps-page {
  padding: 30px 16px;
}

.my-apps-header h2 {
  font-size: 1.6rem;
}

.my-apps-header p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.my-apps-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-card {
  padding: 20px 18px;
  border-radius: 14px;
}

.app-card h3 {
  font-size: 1.05rem;
}

.app-card button {
  padding: 14px;
  font-size: 0.95rem;
}

/* Bigger tap target */
.back-home-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}
/* ==================================
   MY APPLICATIONS – MOBILE
   ================================== */

.my-apps-page {
  padding: 30px 16px;
}

.my-apps-header h2 {
  font-size: 1.6rem;
}

.my-apps-header p {
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.my-apps-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.app-card {
  padding: 20px 18px;
  border-radius: 16px;
}

.app-card h3 {
  font-size: 1.05rem;
}

.app-card button {
  padding: 14px;
  font-size: 0.95rem;
}

.back-home-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

@media (max-width: 768px) {

  .demo-section {
    padding: 5rem 4%;
  }

  .demo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .demo-card {
    padding: 1.8rem;
  }

  .demo-card h3 {
    font-size: 1.1rem;
  }

  .demo-card p {
    font-size: 0.9rem;
  }

  .demo-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.9rem;
  }
}

/* =====================================================
   PROFILE DROPDOWN – MOBILE
   ===================================================== */

@media (max-width: 768px) {

  .user-dropdown {
    width: 92vw;
    right: 4vw;
    top: 58px;
    border-radius: 16px;
  }

  .user-info {
    padding: 16px;
  }

  .user-info .username {
    font-size: 0.95rem;
  }

  .user-info .email {
    font-size: 0.8rem;
  }

  .profile-actions li {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

}

/* =====================================================
   PROFILE SETTINGS MODAL – MOBILE
   ===================================================== */

@media (max-width: 768px) {

  .profile-settings {
    max-width: 95%;
    width: 95%;
  }

  .settings-section h3 {
    font-size: 1rem;
  }

  .danger-zone {
    padding: 14px;
  }

  .danger-btn {
    width: 100%;
    font-size: 0.9rem;
  }

}


@media (max-width: 768px) {

  .user-dropdown {
    right: 10px;
    left: 10px;
    width: auto;
  }

  .profile-actions li {
    font-size: 15px;
    padding: 14px;
  }

  /* Profile modal */
  .modal-content.profile-settings {
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
  }

  .danger-zone {
    margin-top: 20px;
  }

  .danger-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
  }
}




@media (max-width: 600px) {
  #profileSettingsModal .btn-danger {
    width: 100%;
  }
}

/* ===============================
   DELETE ACCOUNT BUTTON (MOBILE)
   =============================== */

@media (max-width: 768px) {
  #profileSettingsModal .btn-danger {
    width: 100%;          /* full width on mobile */
    padding: 14px;
    font-size: 15px;
    border-radius: 18px;
  }
}
/* ===============================
   MOBILE PROFILE DROPDOWN FIX
   =============================== */

@media (max-width: 768px) {

  .user-menu {
    position: relative;
  }

  .user-dropdown {
    position: fixed;          /* KEY FIX */
    top: 70px;                /* below header */
    right: 12px;
    left: 12px;               /* full width */
    width: auto;
    max-width: none;

    z-index: 9999;
  }

}


header,
nav {
  overflow: visible;
}



@media (max-width: 768px) {
  .user-dropdown {
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  }
}


/* ===============================
   MOBILE PROFILE DROPDOWN FINAL FIX
   =============================== */

@media (max-width: 768px) {

  .user-dropdown {
    position: fixed;
    top: 72px;              /* just below header */
    left: 50%;
    transform: translateX(-50%);
    
    width: calc(100% - 24px);
    max-width: 360px;

    border-radius: 16px;
    z-index: 9999;
  }

}


/* =========================================
   GENAI MODAL - MOBILE OPTIMIZED
========================================= */

.genai-modal {
  padding: 1.8rem;
  border-radius: 18px;
  max-height: 90vh;
  overflow-y: auto;
}

.genai-title {
  font-size: 1.4rem;
  line-height: 1.3;
}

.genai-subtitle {
  font-size: 0.85rem;
  margin-bottom: 1.8rem;
}

.genai-grid {
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.genai-card {
  padding: 1.4rem;
  min-height: auto;
}

.genai-card h3 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.genai-card ul,
.genai-card ol {
  font-size: 0.85rem;
  line-height: 1.6;
}

.genai-cta {
  flex-direction: column;
  gap: 1rem;
}

.genai-cta button {
  width: 100%;
}





