/* =====================================================
   AWP PRINTWISE – MOBILE UX LAYER
   Scope: Mobile ONLY (≤768px)
   Desktop: Completely untouched
   Purpose: Native app feel, zero regression
===================================================== */

@media (max-width: 768px) {
  /* ====================================================
     SPRINT 1: MOBILE HEADER
  ==================================================== */

  /* Hide desktop header completely on mobile */
  #awp-main-header {
    display: none !important;
  }

  /* Mobile Header - Fixed, minimal - Düz Parlak Koyu Turuncu */
  #awp-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ff8300;
    /* Düz renk arka plan - gradient yok */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    padding-top: env(safe-area-inset-top);
    height: calc(60px + env(safe-area-inset-top));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  /* Mobile Logo - Sol tarafta */
  #mobile-logo {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    flex-shrink: 0;
  }

  /* Header sağ taraf - Butonlar */
  #awp-mobile-header-right {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    margin-left: auto;
  }

  /* Logo ve butonlar arası boşluk için */
  #awp-mobile-header {
    gap: 16px;
  }

  /* Hamburger Menu Button - Beyaz İkon */
  #mobile-hamburger-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
  }

  #mobile-hamburger-btn:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.95);
  }

  #mobile-hamburger-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
  }

  /* Dil Seçimi Butonu - Hamburger ve Login arasında */
  #mobile-lang-selector-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    padding: 6px;
    box-sizing: border-box;
  }

  #mobile-lang-selector-btn:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.95);
  }

  #mobile-lang-selector-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
  }

  #mobile-lang-selector-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
  }

  /* Üyelik butonları (Giriş / Kayıt / Hesabım) */
  #mobile-login-btn,
  #mobile-register-btn,
  #mobile-account-btn,
  .mobile-auth-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
  }

  #mobile-login-btn:active,
  #mobile-register-btn:active,
  #mobile-account-btn:active,
  .mobile-auth-btn:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.95);
  }

  #mobile-login-btn .icon-circle,
  #mobile-register-btn .icon-circle,
  #mobile-account-btn .icon-circle,
  .mobile-auth-btn .icon-circle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
  }

  #mobile-login-btn svg,
  #mobile-register-btn svg,
  #mobile-account-btn svg,
  .mobile-auth-btn svg {
    width: 20px !important;
    height: 20px !important;
    color: white !important;
    fill: none !important;
    stroke: white !important;
  }

  /* Add top padding to body to account for fixed header - only on mobile */
  #awp-printwise-root,
  #awp-printwise-root.awp-form-engine-page {
    margin-top: 0 !important;
    padding-top: calc(64px + env(safe-area-inset-top) + 24px);
  }

  /* Mobil: Kenar boşlukları - ekran kenarlarından padding (sadece içerik alanları) */
  #awp-printwise-root main,
  #awp-printwise-root .awp-product-grid-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-left: calc(16px + env(safe-area-inset-left)) !important;
    padding-right: calc(16px + env(safe-area-inset-right)) !important;
  }

  /* PWA Standalone mode - extra padding for status bar */
  @media (display-mode: standalone) {
    #awp-printwise-root {
      padding-top: calc(60px + env(safe-area-inset-top) + 20px);
    }

    #awp-mobile-header {
      height: calc(60px + env(safe-area-inset-top) + 20px);
      padding-top: calc(env(safe-area-inset-top) + 20px);
    }

    main {
      padding-top: calc(24px + 20px) !important;
    }
  }

  /* Modül başlıkları için dengeli boşluk */
  main {
    margin-top: 0 !important;
    padding-top: 20px !important;
  }

  .calculator-tab-content {
    padding-top: 12px;
  }

  .module-ders-notu-heading,
  .module-rulo-baski-heading,
  .module-dijital-baski-heading,
  .module-katalog-heading {
    margin-top: 0;
    padding-top: 4px;
  }

  /* Modül kart başlıkları için ek boşluk */
  .card-header-orange,
  .ders-notu-module-header,
  .rulo-module-header,
  .dijital-module-header,
  .katalog-module-header {
    margin-top: 0 !important;
  }

  /* ====================================================
     SPRINT 2: HAMBURGER MODAL
  ==================================================== */

  /* Modal Overlay — dock/header üstü, checkout altında */
  #mobile-nav-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10005000;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #mobile-nav-modal.active {
    display: block;
  }

  /* Modal Content — açık desenli bg üzerinde beyaz metin okunaklı kalsın */
  #mobile-nav-modal-content {
    position: relative;
    isolation: isolate;
    background-color: #3b1d6e;
    background-repeat: repeat;
    background-position: center;
    background-size: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px 0 calc(100px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: #fff;
    opacity: 1;
    visibility: visible;
  }

  #mobile-nav-modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(27, 12, 54, 0.88) 0%, rgba(59, 29, 110, 0.82) 45%, rgba(27, 12, 54, 0.9) 100%);
  }

  #mobile-nav-modal-content > * {
    position: relative;
    z-index: 1;
  }

  #mobile-nav-modal.active #mobile-nav-modal-content {
    opacity: 1;
    visibility: visible;
  }

  /* Modal Header */
  #mobile-nav-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  #mobile-nav-modal-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
  }

  #mobile-nav-modal-close:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.95);
  }

  #mobile-nav-modal-close svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
  }

  /* Language Section */
  #mobile-nav-languages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
  }

  #mobile-nav-languages-title {
    color: white;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .mobile-nav-lang-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
  }

  .mobile-nav-lang-btn {
    width: 60px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    padding: 2px;
    box-sizing: border-box;
  }

  .mobile-nav-lang-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: scale(1.05);
    border-width: 3px;
    padding: 1px;
  }

  .mobile-nav-lang-btn:active {
    transform: scale(0.95);
  }

  .mobile-nav-lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
  }

  /* Currency Toggle Section */
  #mobile-nav-currency {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
  }

  #mobile-nav-currency-title {
    color: white;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .mobile-nav-currency-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-nav-currency-label {
    color: white;
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-nav-currency-toggle {
    position: relative;
    width: 52px;
    height: 28px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
  }

  .mobile-nav-currency-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .mobile-nav-currency-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .mobile-nav-currency-toggle input:checked + .mobile-nav-currency-slider {
    transform: translateX(24px);
  }

  /* Online Tasarım / Stüdyo — menü üst CTA */
  #mobile-nav-studio {
    padding: 0 20px;
  }

  #mobile-nav-studio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 14px 18px;
    border: 1px solid rgba(253, 186, 116, 0.55);
    border-radius: 12px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 55%, #fb923c 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
      0 0 0 1px rgba(249, 115, 22, 0.25),
      0 8px 22px rgba(234, 88, 12, 0.35);
    -webkit-tap-highlight-color: transparent;
  }

  #mobile-nav-studio-btn:active {
    transform: scale(0.98);
  }

  #mobile-nav-studio-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
  }

  #mobile-nav-studio-btn[hidden] {
    display: none !important;
  }

  /* Tab Buttons Section – bankacılık uygulaması tarzı, şık modül kartları */
  #mobile-nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }

  #mobile-nav-tabs-title {
    color: rgba(255, 255, 255, 0.95);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
  }

  .mobile-nav-tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
    justify-items: stretch;
  }

  /* Her buton ayrı kart: yuvarlatılmış, gölge, cam efekti */
  .mobile-nav-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 108px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }

  /* Ürün Market butonu (5. eleman) tam genişlik, vurgulu */
  .mobile-nav-tab-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 72px;
    flex-direction: row;
    gap: 14px;
    padding: 16px 20px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
  }

  .mobile-nav-tab-btn:last-child:nth-child(odd) .mobile-nav-tab-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .mobile-nav-tab-btn:last-child:nth-child(odd) .mobile-nav-tab-text {
    font-size: 13px;
    text-align: center;
  }

  .mobile-nav-tab-btn.active {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: none;
  }

  .mobile-nav-tab-btn:last-child:nth-child(odd).active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
  }

  .mobile-nav-tab-btn:active {
    transform: scale(0.98);
  }

  /* İkon: kart içi yuvarlatılmış kutu (modül + Ürün Market) */
  .mobile-nav-tab-btn .mobile-nav-tab-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mobile-nav-tab-btn img.mobile-nav-tab-icon {
    display: block;
  }

  .mobile-nav-tab-btn:last-child:nth-child(odd) .mobile-nav-tab-icon {
    border-radius: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.12);
  }

  .mobile-nav-tab-btn svg.mobile-nav-tab-icon {
    width: 24px;
    height: 24px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    flex-shrink: 0;
  }

  .mobile-nav-tab-btn svg.mobile-nav-tab-icon path,
  .mobile-nav-tab-btn svg.mobile-nav-tab-icon circle {
    stroke: currentColor;
  }

  .mobile-nav-tab-btn:last-child:nth-child(odd) svg.mobile-nav-tab-icon {
    width: 22px;
    height: 22px;
    padding: 8px;
  }

  .mobile-nav-tab-text {
    color: rgba(255, 255, 255, 0.98);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.25;
  }

  /* Footer Content Section - Menü içerisinde, profesyonel UX/UI */
  #mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px 20px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px 6px 0 0;
  }

  #mobile-nav-footer-title {
    color: rgba(255, 255, 255, 0.98);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
  }

  .mobile-nav-footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-footer-link:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .mobile-nav-footer-link svg {
    width: 20px;
    height: 20px;
    fill: white;
    flex-shrink: 0;
    opacity: 0.9;
  }

  .mobile-nav-footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    padding-top: 16px;
    letter-spacing: 0.02em;
  }

  /* Harita Bölümü */
  #mobile-nav-maps {
    margin-top: 16px;
    padding: 16px 20px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  #mobile-nav-maps-title {
    color: rgba(255, 255, 255, 0.98);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #mobile-nav-maps-title svg {
    width: 16px;
    height: 16px;
    fill: white;
    opacity: 0.9;
  }

  #mobile-nav-maps-preview {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 140px;
    max-height: 180px;
    position: relative;
    transition: box-shadow 0.2s ease;
  }

  #mobile-nav-maps-preview {
    cursor: pointer;
  }

  #mobile-nav-maps-preview:active {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  }

  #mobile-nav-maps-preview iframe {
    width: 100%;
    height: 100%;
    min-height: 140px;
    border: 0;
    pointer-events: none;
  }

  /* Sosyal Medya İkonları */
  #mobile-nav-social {
    margin-top: 16px;
    padding: 16px 20px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  #mobile-nav-social-title {
    color: rgba(255, 255, 255, 0.98);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
  }

  .mobile-nav-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .mobile-nav-social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-social-icon:active {
    background: rgba(255, 255, 255, 0.14);
  }

  .mobile-nav-social-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
  }

  /* Quick Share Button in Hamburger Menu */
  #mobile-nav-quick-share {
    padding: 0 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
  }

  .mobile-nav-share-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-share-button:active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(0.98);
  }

  .mobile-nav-share-button svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  /* ====================================================
     QUICK SHARE MODAL
  ==================================================== */

  #mobile-quick-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  #mobile-quick-share-modal.active {
    opacity: 1;
    visibility: visible;
  }

  #mobile-quick-share-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  #mobile-quick-share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  #mobile-quick-share-modal-title {
    font-size: 20px;
    font-weight: 900;
    color: #111827;
    margin: 0;
  }

  #mobile-quick-share-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  #mobile-quick-share-modal-close:active {
    background: #e5e7eb;
    transform: scale(0.95);
  }

  #mobile-quick-share-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #374151;
    stroke-width: 2.5;
  }

  #mobile-quick-share-modal-body {
    padding: 20px;
    box-sizing: border-box;
  }

  .mobile-share-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  .mobile-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 6px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    box-sizing: border-box;
    min-height: 90px;
    margin: 0;
  }

  .mobile-share-option:active {
    transform: scale(0.96);
    background: #f3f4f6;
    border-color: #d1d5db;
  }

  .mobile-share-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
  }

  .mobile-share-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  /* WhatsApp - Green */
  .mobile-share-icon.whatsapp {
    background: #25d366;
    color: white;
  }

  /* Viber - Purple */
  .mobile-share-icon.viber {
    background: #665cac;
    color: white;
  }

  /* Email - Gray */
  .mobile-share-icon.email {
    background: #6b7280;
    color: white;
  }

  /* Copy - Orange */
  .mobile-share-icon.copy {
    background: #ff8300;
    color: white;
  }

  /* SMS - Purple */
  .mobile-share-icon.sms {
    background: #8b5cf6;
    color: white;
  }

  /* QR Code - Indigo */
  .mobile-share-icon.qr {
    background: #4f46e5;
    color: white;
  }

  /* Facebook - Blue */
  .mobile-share-icon.facebook {
    background: #1877f2;
    color: white;
  }

  /* Twitter - Black */
  .mobile-share-icon.twitter {
    background: #000000;
    color: white;
  }

  /* Instagram - Gradient (using linear gradient) */
  .mobile-share-icon.instagram {
    background: #e1306c;
    background: linear-gradient(
      45deg,
      #f09433 0%,
      #e6683c 25%,
      #dc2743 50%,
      #cc2366 75%,
      #bc1888 100%
    );
    color: white;
  }

  .mobile-share-label {
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    margin: 0 auto;
    padding: 0 4px;
    line-height: 1.3;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    word-break: break-word;
  }

  /* QR Code Container */
  #mobile-share-qr-container {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
  }

  #mobile-share-qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  #mobile-share-qr-code img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .mobile-share-qr-close {
    margin-top: 16px;
    padding: 10px 20px;
    background: #ff8300;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-share-qr-close:active {
    background: #e67500;
    transform: scale(0.98);
  }

  /* Body scroll lock for share modal */
  body.mobile-share-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
  }

  /* Müşteri Bilgileri ve Dosya Yükleme Modal - Fullscreen (Hamburger gibi) */
  #mobile-customer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #mobile-customer-modal.active {
    display: block;
  }

  #mobile-customer-modal-content {
    background: #f9fafb;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    padding-bottom: 100px;
  }

  /* Modal Header - Koyu Turuncu Zemin, Simetrik Dizilim - Kompakt */
  #mobile-customer-modal-header {
    position: sticky;
    top: 0;
    background: #ff8300;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-height: 56px;
  }

  #mobile-customer-modal-header h2 {
    color: white;
    font-size: 16px;
    font-weight: 900;
    margin: 0;
    flex: 1;
    text-align: center;
  }

  #mobile-customer-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    position: relative;
  }

  #mobile-customer-modal-close:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
  }

  #mobile-customer-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  #mobile-customer-modal-body {
    padding: 0;
    max-width: 100%;
    margin: 0;
  }

  /* Modal içerik container - UI8 tarzı kenar boşlukları */
  #mobile-customer-modal-content {
    padding: 0;
    max-width: 100%;
  }

  /* Müşteri Bilgileri Başlığı - Koyu Turuncu Zemin - UI8 Kompakt Grid */
  #mobile-customer-modal #customer-info-title {
    background: #ff8300;
    color: white;
    padding: 12px 16px;
    margin: 0 auto;
    border-radius: 6px 6px 0 0;
    font-size: 15px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 32px);
    width: 100%;
    margin-top: 16px;
    margin-bottom: 0;
  }

  #mobile-customer-modal #customer-info-title svg {
    width: 18px;
    height: 18px;
    fill: white;
    flex-shrink: 0;
  }

  /* Müşteri Bilgileri Kartı - UI8 Kompakt Grid, Kenar Boşlukları */
  #mobile-customer-modal .bg-white.mobile-customer-card {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
    margin: 0 auto;
    padding: 0;
    max-width: calc(100% - 32px);
    width: 100%;
    margin-bottom: 12px;
  }

  /* Müşteri Bilgileri Input Alanları - UI8 Kompakt Grid */
  #mobile-customer-modal .bg-white.mobile-customer-card .grid,
  #mobile-customer-modal .mobile-single-column {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 16px;
    margin-top: 0;
    max-width: 100%;
  }

  /* Input alanları - Kompakt, Dengeli */
  #mobile-customer-modal .bg-white.mobile-customer-card input,
  #mobile-customer-modal .bg-white.mobile-customer-card select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 6px;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    transition: all 0.2s;
  }

  #mobile-customer-modal .bg-white.mobile-customer-card input:focus,
  #mobile-customer-modal .bg-white.mobile-customer-card select:focus {
    border-color: #ff8300;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 131, 0, 0.15);
    background: #ffffff;
  }

  #mobile-customer-modal .bg-white.mobile-customer-card input::placeholder {
    color: #9ca3af;
  }

  #mobile-customer-modal .bg-white.mobile-customer-card label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    display: block;
  }

  /* Error mesajları */
  #mobile-customer-modal .bg-white.mobile-customer-card .text-red-500 {
    font-size: 12px;
    margin-top: 4px;
  }

  /* Dosya Yükleme Başlığı - UI8 Kompakt Grid, Kenar Boşlukları */
  #mobile-customer-modal #upload-title {
    background: #ff8300;
    color: white;
    padding: 12px 16px;
    margin: 0 auto;
    border-radius: 6px 6px 0 0;
    font-size: 15px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    max-width: calc(100% - 32px);
    width: 100%;
  }

  #mobile-customer-modal #upload-title svg {
    width: 18px;
    height: 18px;
    fill: white;
    flex-shrink: 0;
  }

  /* Dosya Yükleme Kartı - UI8 Kompakt Grid */
  #mobile-customer-modal .bg-white.mobile-upload-card {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: none;
    margin: 0 auto;
    padding: 0;
    margin-bottom: 12px;
    max-width: calc(100% - 32px);
    width: 100%;
  }

  /* Dosya Yükleme İçeriği - UI8 Kompakt Padding, Dengeli Kenar Boşlukları */
  #mobile-customer-modal .bg-white.mobile-upload-card > div:not(#upload-title) {
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Dosya Yükleme Alanı - UI8 Kompakt, Küçültülmüş, Kenar Boşlukları */
  #mobile-customer-modal #upload-area {
    border: 2px dashed #ff8300 !important;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    background: rgba(255, 131, 0, 0.04);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    cursor: pointer;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  #mobile-customer-modal #upload-area:hover {
    border-color: #ff8300;
    background: rgba(255, 131, 0, 0.08);
  }

  /* Yükleme Alanı İkonu - UI8 Kompakt, Küçültülmüş */
  #mobile-customer-modal #upload-area svg {
    width: 36px !important;
    height: 36px !important;
    color: #ff8300 !important;
    fill: none !important;
    stroke: #ff8300 !important;
    stroke-width: 2;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Yükleme Alanı Yazıları - Turuncu, Görünür, UI8 Kompakt, Küçültülmüş */
  #mobile-customer-modal #upload-description {
    color: #ff8300 !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-align: center;
    line-height: 1.4;
  }

  #mobile-customer-modal #upload-hint {
    color: #ff8300 !important;
    font-size: 12px !important;
    opacity: 0.9 !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    text-align: center;
    line-height: 1.4;
  }

  /* Yükleme alanındaki tüm yazılar görünür - Turuncu renk, Tailwind class'larını override et */
  #mobile-customer-modal #upload-area p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ff8300 !important;
  }

  /* Upload description ve hint özel stilleri - Zemin beyaz olduğu için turuncu renk */
  /* Tailwind text-gray-700 ve text-gray-500 class'larını override et */
  #mobile-customer-modal #upload-area #upload-description,
  #mobile-customer-modal #upload-area #upload-hint {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    color: #ff8300 !important;
  }

  #mobile-customer-modal #upload-area #upload-description {
    color: #ff8300 !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    opacity: 1 !important;
  }

  /* text-gray-700 class'ını override et */
  #mobile-customer-modal #upload-area #upload-description.text-gray-700 {
    color: #ff8300 !important;
  }

  #mobile-customer-modal #upload-area #upload-hint {
    color: #ff8300 !important;
    font-size: 12px !important;
    opacity: 0.9 !important;
    font-weight: 500 !important;
  }

  /* text-gray-500 class'ını override et */
  #mobile-customer-modal #upload-area #upload-hint.text-gray-500 {
    color: #ff8300 !important;
  }

  /* text-sm class'ı ile birlikte kullanılan text-gray-500 */
  #mobile-customer-modal #upload-area p.text-sm.text-gray-500 {
    color: #ff8300 !important;
  }

  /* font-semibold class'ı ile birlikte kullanılan text-gray-700 */
  #mobile-customer-modal #upload-area p.font-semibold.text-gray-700 {
    color: #ff8300 !important;
  }

  /* Upload butonu metni görünür - Gradient zemin üzerinde beyaz metin */
  #mobile-customer-modal #btn-upload-text {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
  }

  /* Upload butonu wrapper - Gradient zemin olduğu için beyaz metin */
  #mobile-customer-modal #btn-upload-visual {
    color: white !important;
  }

  #mobile-customer-modal #btn-upload-visual * {
    color: white !important;
  }

  /* Tüm Tailwind text color class'larını override et - Upload area içinde */
  #mobile-customer-modal #upload-area [class*="text-gray"],
  #mobile-customer-modal #upload-area [class*="text-slate"],
  #mobile-customer-modal #upload-area [class*="text-zinc"] {
    color: #ff8300 !important;
  }

  /* Upload area içindeki tüm paragraflar için turuncu renk */
  #mobile-customer-modal #upload-area p[class*="text-"] {
    color: #ff8300 !important;
  }

  /* Yükleme Butonu - UI8 Kompakt, Küçültülmüş */
  #mobile-customer-modal #btn-upload-wrapper {
    margin-top: 6px;
    display: block !important;
    visibility: visible !important;
    width: 100%;
    box-sizing: border-box;
  }

  #mobile-customer-modal #btn-upload-visual {
    background: linear-gradient(135deg, #ff8300 0%, #e56f00 100%);
    color: white;
    border-radius: 50px;
    padding: 8px 18px;
    font-weight: 900;
    font-size: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0 auto;
    box-shadow: 0 2px 6px rgba(255, 131, 0, 0.3);
    transition: all 0.3s;
  }

  #mobile-customer-modal #btn-upload-visual:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(255, 131, 0, 0.2);
  }

  #mobile-customer-modal #btn-upload-text {
    color: white;
    font-weight: 900;
  }

  /* Yüklenen Dosyalar Listesi - flex kart stili (calculator ile uyumlu) */
  #mobile-customer-modal #uploaded-files {
    margin-top: 12px;
    padding: 0;
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    visibility: visible !important;
    width: 100%;
    box-sizing: border-box;
  }

  #mobile-customer-modal #uploaded-files > .awp-file-upload-preview {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
  }

  /* Butonlar - UI8 2'li Grid Sistemi, Sağ-Sol Boşluklar, Yan Yana */
  #mobile-customer-modal .grid.mobile-action-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 16px !important;
    background: white;
    margin: 0 auto;
    margin-top: 0;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-width: calc(100% - 32px);
    width: 100%;
    box-sizing: border-box;
  }

  /* Butonlar yan yana, eşit genişlik, grid içinde */
  #mobile-customer-modal #btn-submit-order,
  #mobile-customer-modal #btn-pdf-action {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 10px !important;
    min-height: 48px;
    font-size: 14px;
    font-weight: 900;
    padding: 12px 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    flex: 1 1 auto !important;
  }

  /* Grid container içindeki tüm elementler yan yana */
  #mobile-customer-modal .grid.mobile-action-buttons > * {
    display: block !important;
  }

  /* HTML'deki inline style override - border-radius */
  #btn-submit-order,
  #btn-pdf-action {
    border-radius: 10px !important;
  }

  #mobile-customer-modal #btn-submit-order svg,
  #mobile-customer-modal #btn-pdf-action svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  /* Global #fileInput — modal dışında da tam ekran kaplamasın */
  #fileInput {
    position: fixed !important;
    left: -9999px !important;
    top: 0 !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -1 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    cursor: default !important;
    display: block !important;
  }

  /* Upload title - HTML'deki inline style */
  #upload-title {
    font-weight: 900 !important;
  }

  /* Modal içindeki tüm elementler görünür olmalı */
  #mobile-customer-modal .bg-white {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #mobile-customer-modal .grid {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #mobile-customer-modal #customer-info-title,
  #mobile-customer-modal #upload-title,
  #mobile-customer-modal #btn-submit-order,
  #mobile-customer-modal #btn-pdf-action {
    display: block !important;
    visibility: visible !important;
  }

  #mobile-customer-modal input,
  #mobile-customer-modal select,
  #mobile-customer-modal textarea,
  #mobile-customer-modal button {
    display: block !important;
    visibility: visible !important;
  }

  #mobile-customer-modal #upload-area {
    display: flex !important;
    visibility: visible !important;
  }

  /* Müşteri bilgileri ve dosya yükleme bölümlerini mobilde gizle - JS ile yapılıyor */
  .mobile-customer-section-hidden {
    display: none !important;
  }

  .mobile-action-buttons-hidden {
    display: none !important;
  }

  /* Müşteri bilgileri alanından butonlara kadar tüm alanları gizle */
  .calculator-tab-content .bg-white:has(#customer-info-title),
  .calculator-tab-content .bg-white:has(#upload-title),
  .calculator-tab-content .grid:has(#btn-submit-order),
  .calculator-tab-content .grid:has(#btn-pdf-action) {
    display: none !important;
  }

  /* Modal içindeki elementler görünür olmalı - TÜM GİZLEME KURALLARINI EZ */
  #mobile-customer-modal .mobile-customer-section-hidden,
  #mobile-customer-modal .mobile-action-buttons-hidden {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #mobile-customer-modal .bg-white {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #mobile-customer-modal .grid {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Modal içindeki tüm input, select, textarea görünür */
  #mobile-customer-modal input:not([type="file"]),
  #mobile-customer-modal select,
  #mobile-customer-modal textarea {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* File input özel durumu */
  #mobile-customer-modal input[type="file"] {
    display: block !important;
    visibility: visible !important;
    opacity: 0 !important; /* File input görünmez olmalı ama tıklanabilir */
    position: absolute !important;
  }

  /* Modal içindeki tüm başlıklar ve içerik görünür */
  #mobile-customer-modal #customer-info-title,
  #mobile-customer-modal #upload-title,
  #mobile-customer-modal #upload-area,
  #mobile-customer-modal #uploaded-files,
  #mobile-customer-modal #btn-upload-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #mobile-customer-modal #upload-area {
    display: flex !important;
  }

  /* Fallback for browsers without :has() support */
  @supports not selector(:has(*)) {
    /* JS will handle hiding these elements */
  }

  /* ====================================================
     SPRINT 3: HIDE FOOTER ON MOBILE
  ==================================================== */

  footer {
    display: none !important;
  }

  /* ====================================================
     SPRINT 3: STICKY ACTION BUTTON - Küçük ve Kibar, Ekrana Ortalı
  ==================================================== */

  #mobile-sticky-action-btn {
    position: relative;
    padding: 12px 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    z-index: 1;
  }

  /* Sabit alt bar – İnce bar, sayfa ile her yerde görünür */
  body.awp-has-mobile-bottom-bar {
    padding-bottom: calc(52px + 12px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-buttons-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: calc(44px + env(safe-area-inset-bottom));
    padding: 6px 16px calc(6px + env(safe-area-inset-bottom));
    padding-left: calc(16px + env(safe-area-inset-left));
    padding-right: calc(16px + env(safe-area-inset-right));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
  }

  .mobile-bottom-bar-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 28px;
    flex-shrink: 0;
  }

  .mobile-bottom-bar-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
  }

  .mobile-bottom-bar-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
  }

  /* Orta: sepet ikon + fiyat yan yana */
  .mobile-bottom-bar-btn.mobile-bottom-bar-cart {
    flex-direction: row;
    gap: 8px;
    padding: 4px 10px;
    min-height: 36px;
  }

  .mobile-bottom-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px 8px;
    min-height: 40px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-bar-btn:active {
    transform: scale(0.96);
    background: rgba(0, 0, 0, 0.05);
  }

  .mobile-bottom-bar-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .mobile-bottom-bar-icon {
    width: 20px;
    height: 20px;
  }

  .mobile-bottom-bar-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 14px;
    height: 14px;
    padding: 0 3px;
    border-radius: 7px;
    background: #e53935;
    color: #fff;
    font-size: 9px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  .mobile-bottom-bar-badge[style*="display: none"] {
    display: none !important;
  }

  .mobile-bottom-bar-label {
    font-size: 11px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
  }

  /* Paylaş – DOM sırasına göre yerleşir */
  .mobile-bottom-bar-share-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    flex-shrink: 0;
  }

  .mobile-bottom-bar-right #mobile-sticky-action-btn {
    order: 0;
  }

  .mobile-bottom-bar-share-slot .awp-pwa-share-btn {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
  }

  .mobile-bottom-bar-left .awp-pwa-install-btn-floating {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
  }

  /* Buton container içeriği – sağ slotta */
  #mobile-sticky-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #mobile-sticky-action-btn > * {
    margin: 0;
  }

  #mobile-sticky-action-btn button {
    width: auto;
    min-width: 100px;
    max-width: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
      0 2px 8px rgba(102, 126, 234, 0.25),
      0 1px 4px rgba(102, 126, 234, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
    -webkit-tap-highlight-color: transparent;
    min-height: 40px;
    height: 40px;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  #mobile-sticky-action-btn button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
    );
    transition: left 0.5s;
  }

  #mobile-sticky-action-btn button:hover::before {
    left: 100%;
  }

  #mobile-sticky-action-btn button:active {
    transform: scale(0.96) translateY(1px);
    box-shadow:
      0 2px 8px rgba(102, 126, 234, 0.25),
      0 1px 4px rgba(102, 126, 234, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }

  #mobile-sticky-action-btn button:focus {
    outline: none;
    box-shadow:
      0 4px 12px rgba(102, 126, 234, 0.3),
      0 2px 6px rgba(102, 126, 234, 0.2),
      0 0 0 3px rgba(102, 126, 234, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }

  /* PWA butonları – İnce bar için görünür, mevcut butonların yarısı (24x24) */
  .mobile-bottom-buttons-wrapper .awp-pwa-share-btn,
  .mobile-bottom-buttons-wrapper .awp-pwa-install-btn-floating {
    z-index: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
    position: static !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 6px !important;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-buttons-wrapper .awp-pwa-share-btn svg,
  .mobile-bottom-buttons-wrapper .awp-pwa-install-btn-floating svg {
    width: 16px !important;
    height: 16px !important;
  }

  .mobile-bottom-buttons-wrapper .awp-pwa-share-btn:active,
  .mobile-bottom-buttons-wrapper .awp-pwa-install-btn-floating:active {
    background: rgba(0, 0, 0, 0.05);
  }

  /* Alt barda her zaman görünür – standalone / normal tarayıcı fark etmez */
  .mobile-bottom-buttons-wrapper .awp-pwa-install-btn-floating,
  .mobile-bottom-buttons-wrapper .awp-pwa-share-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Standalone modda (PWA dışında) Ana site butonu da görünür */
  @media (display-mode: standalone) {
    .awp-pwa-install-btn-floating {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
  }

  @supports (-webkit-touch-callout: none) {
    .awp-pwa-install-btn-floating {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
  }

  /* Devam butonu – Sağ slotta, dar */
  #mobile-sticky-action-btn {
    z-index: 1 !important;
    position: relative !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-sizing: border-box;
  }

  /* Butonlar container'ı - En altta, 3 buton aynı hizada */
  .mobile-bottom-buttons-container {
    position: relative;
    width: 100%;
    min-height: calc(56px + 20px + env(safe-area-inset-bottom));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Modal açıldığında butonların üstünde göster */
  #mobile-customer-modal {
    z-index: 999999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  /* Alt bar modal'ın altında; içerik bar altında kalmaması için body padding kullanıldı */
  .mobile-bottom-buttons-wrapper {
    z-index: 999 !important;
    position: fixed !important;
  }

  /* Devam butonu – İnce bar ile uyumlu */
  #mobile-sticky-action-btn button {
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
  }

  /* ====================================================
     SPRINT 3: MODULE VISIBILITY
  ==================================================== */

  /* Ensure only active module is visible */
  .calculator-tab-content {
    display: none !important;
  }

  .calculator-tab-content.active {
    display: block !important;
  }

  /* ====================================================
     SPRINT 6: BODY SCROLL LOCK (when modal open)
  ==================================================== */

  body.mobile-nav-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  /* Safe area support for iOS */
  #awp-mobile-header {
    padding-top: env(safe-area-inset-top);
    height: calc(60px + env(safe-area-inset-top));
  }

  #mobile-sticky-action-btn {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  /* 100vh fix for mobile browsers */
  #mobile-nav-modal-content {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }

  /* ====================================================
     COMPANIES & STUDENTS INFO MODALS
     Premium Design - The Heart of Our Plugin
  ==================================================== */

  /* Target Audience Buttons in Hamburger Menu */
  #mobile-nav-target-audience {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .mobile-nav-audience-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: white;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
  }

  /* İlk buton üst köşeler yuvarlatılmış */
  .mobile-nav-audience-btn:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  /* Son buton alt köşeler yuvarlatılmış */
  .mobile-nav-audience-btn:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }

  /* Tek buton ise tüm köşeler yuvarlatılmış */
  .mobile-nav-audience-btn:only-child {
    border-radius: 6px;
  }

  .mobile-nav-audience-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
    );
    transition: left 0.5s;
  }

  .mobile-nav-audience-btn:active::before {
    left: 100%;
  }

  .mobile-nav-audience-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
  }

  .mobile-nav-audience-btn:active {
    transform: scale(0.98);
  }

  /* Şirketler Butonu - Mavi Cam Efekti */
  .mobile-nav-companies-btn {
    background: rgba(37, 99, 235, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  }

  .mobile-nav-companies-btn:active {
    background: rgba(37, 99, 235, 0.35);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  }

  /* Öğrenciler Butonu - Yeşil Cam Efekti */
  .mobile-nav-students-btn {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  }

  .mobile-nav-students-btn:active {
    background: rgba(16, 185, 129, 0.35);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  }

  /* Info Modals - Premium Glass Design */
  .mobile-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 3000;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .mobile-info-modal.active {
    display: block;
    opacity: 1;
  }

  .mobile-info-modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    width: 100%;
    padding: 0;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    position: relative;
  }

  /* Modal Header - Premium Design */
  .mobile-info-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px 20px;
    padding-top: calc(24px + env(safe-area-inset-top));
    position: relative;
    overflow: hidden;
  }

  .mobile-info-modal-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
      circle,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 70%
    );
    animation: pulse 3s ease-in-out infinite;
  }

  @keyframes pulse {
    0%,
    100% {
      transform: scale(1);
      opacity: 0.5;
    }
    50% {
      transform: scale(1.1);
      opacity: 0.8;
    }
  }

  .mobile-info-modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }

  .mobile-info-modal-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
  }

  .companies-icon {
    background: linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.3) 0%,
      rgba(59, 130, 246, 0.2) 100%
    );
  }

  .students-icon {
    background: linear-gradient(
      135deg,
      rgba(16, 185, 129, 0.3) 0%,
      rgba(34, 197, 94, 0.2) 100%
    );
  }

  .mobile-info-modal-title-section {
    position: relative;
    z-index: 1;
  }

  .mobile-info-modal-title {
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
  }

  .mobile-info-modal-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
  }

  .mobile-info-modal-close {
    position: absolute;
    top: 24px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
  }

  .mobile-info-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2.5;
  }

  .mobile-info-modal-close:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
  }

  /* Modal Body */
  .mobile-info-modal-body {
    padding: 24px 20px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  /* Feature Cards - Premium Design */
  .mobile-info-feature-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.08),
      0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .mobile-info-feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .mobile-info-feature-card:active {
    transform: translateY(-2px);
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.12),
      0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .mobile-info-feature-card:active::before {
    opacity: 1;
  }

  .mobile-info-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  }

  .mobile-info-feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
  }

  .mobile-info-feature-content h3 {
    font-size: 20px;
    font-weight: 900;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.3;
  }

  .mobile-info-feature-content p {
    font-size: 15px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.6;
  }

  .mobile-info-feature-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-info-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }

  .feature-item-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
  }

  .mobile-info-feature-item strong {
    display: block;
    font-size: 15px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 4px;
  }

  .mobile-info-feature-item p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
  }

  /* Body scroll lock for info modals */
  body.mobile-info-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
  }

  /* Email HTML Modal */
  .mobile-email-html-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-email-html-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .mobile-email-html-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    margin: 20px auto;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
  }

  .mobile-email-html-modal.active .mobile-email-html-modal-content {
    transform: scale(1) translateY(0);
  }

  .mobile-email-html-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .mobile-email-html-modal-header h2 {
    font-size: 20px;
    font-weight: 900;
    color: #111827;
    margin: 0;
  }

  .mobile-email-html-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-email-html-modal-close:active {
    background: #e5e7eb;
    transform: scale(0.95);
  }

  .mobile-email-html-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #374151;
    stroke-width: 2.5;
  }

  .mobile-email-html-modal-body {
    padding: 20px;
    box-sizing: border-box;
  }

  .mobile-email-html-preview {
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .mobile-email-html-preview img {
    width: 100%;
    height: auto;
    display: block;
  }

  .mobile-email-html-code-container {
    margin-bottom: 20px;
  }

  .mobile-email-html-code-container textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: "Courier New", monospace;
    font-size: 12px;
    resize: vertical;
    background: #f9fafb;
    color: #111827;
    line-height: 1.5;
  }

  .mobile-email-html-copy-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  }

  .mobile-email-html-copy-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  }

  /* Body scroll lock for email HTML modal */
  body.mobile-email-html-modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
  }
}

/* ====================================================
   DESKTOP SUPPORT: Checkout Modal & Continue Button
   Same behavior as mobile, works on all screen sizes
==================================================== */

/* Müşteri Bilgileri ve Dosya Yükleme Modal - Fullscreen (Mobile & Desktop) */
#mobile-customer-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-customer-modal.active {
  display: block;
}

#mobile-customer-modal-content {
  background: #f9fafb;
  min-height: 100vh;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding-bottom: 100px;
}

/* Modal Header - Koyu Turuncu Zemin */
#mobile-customer-modal-header {
  position: sticky;
  top: 0;
  background: #ff8300;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-height: 56px;
}

#mobile-customer-modal-header h2 {
  color: white;
  font-size: 16px;
  font-weight: 900;
  margin: 0;
  flex: 1;
  text-align: center;
}

#mobile-customer-modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  position: relative;
}

#mobile-customer-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

#mobile-customer-modal-close:active {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0.95);
}

#mobile-customer-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2.5;
  fill: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#mobile-customer-modal-body {
  padding: 0;
  max-width: 100%;
  margin: 0;
}

/* STICKY ACTION BUTTON - Desktop & Mobile */
#mobile-sticky-action-btn {
  position: relative;
  padding: 12px 16px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  z-index: 1;
  margin-top: 20px;
  margin-bottom: 0;
}

/* Alt bar – Mobilde fixed (mobile-ux-layer içinde tanımlı); burada sadece fallback */
.mobile-bottom-buttons-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#mobile-sticky-action-btn > * {
  margin-left: auto;
  margin-right: auto;
}

#mobile-sticky-action-btn button {
  width: auto;
  min-width: 140px;
  max-width: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 12px rgba(102, 126, 234, 0.3),
    0 2px 6px rgba(102, 126, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  -webkit-tap-highlight-color: transparent;
  min-height: 56px;
  height: 56px;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#mobile-sticky-action-btn button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

#mobile-sticky-action-btn button:hover::before {
  left: 100%;
}

#mobile-sticky-action-btn button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 16px rgba(102, 126, 234, 0.4),
    0 3px 8px rgba(102, 126, 234, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#mobile-sticky-action-btn button:active {
  transform: scale(0.96) translateY(1px);
  box-shadow:
    0 2px 8px rgba(102, 126, 234, 0.25),
    0 1px 4px rgba(102, 126, 234, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

#mobile-sticky-action-btn button:focus {
  outline: none;
  box-shadow:
    0 4px 12px rgba(102, 126, 234, 0.3),
    0 2px 6px rgba(102, 126, 234, 0.2),
    0 0 0 3px rgba(102, 126, 234, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Desktop'ta müşteri bilgileri ve dosya yükleme alanlarını gizle */
@media (min-width: 769px) {
  /* Müşteri bilgileri ve dosya yükleme bölümlerini desktop'ta gizle */
  .calculator-tab-content .bg-white:has(#customer-info-title),
  .calculator-tab-content .bg-white:has(#upload-title),
  .calculator-tab-content .grid:has(#btn-submit-order),
  .calculator-tab-content .grid:has(#btn-pdf-action) {
    display: none !important;
  }

  /* Safe area desteği desktop'ta gerekmez, padding düzeltmesi */
  #mobile-sticky-action-btn {
    padding-bottom: 20px;
  }

  .mobile-bottom-buttons-wrapper {
    padding-bottom: 20px;
    min-height: calc(56px + 20px);
  }
}

/* Modal açıldığında butonların üstünde göster */
#mobile-customer-modal {
  z-index: 999999 !important;
}

.mobile-bottom-buttons-wrapper {
  z-index: 999 !important;
}

/* Modal içindeki elementler görünür olmalı */
#mobile-customer-modal .mobile-customer-section-hidden,
#mobile-customer-modal .mobile-action-buttons-hidden {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Desktop: mobil alt bar tamamen gizlenir */
@media (min-width: 769px) {
  .mobile-bottom-buttons-wrapper {
    display: none !important;
  }

  body.awp-has-mobile-bottom-bar {
    padding-bottom: 0 !important;
  }
}

/* Modal content: slide-up when parent is active (display:none → display avoids transitioning overlay) */
#mobile-customer-modal.active #mobile-customer-modal-content {
  animation: awpMobileSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-info-modal.active .mobile-info-modal-content {
  animation: awpMobileSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-nav-modal.active #mobile-nav-modal-content {
  animation: awpMobileSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  visibility: visible;
}

#mobile-quick-share-modal.active #mobile-quick-share-modal-content {
  animation: awpMobileSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =====================================================
   MOBİL APP SHELL — kompakt header + bankacılık tipi dock
===================================================== */
@media (max-width: 768px) {
  :root {
    --awp-mobile-chrome-h: 64px;
    --awp-mobile-chrome-gap: 20px;
    --awp-mobile-chrome-bg: linear-gradient(
      135deg,
      #0b122b 0%,
      #1e3a8a 52%,
      #0f172a 100%
    );
    --awp-mobile-chrome-border: rgba(99, 102, 241, 0.28);
    --awp-mobile-chrome-btn-bg: rgba(255, 255, 255, 0.1);
    --awp-mobile-chrome-btn-border: rgba(99, 102, 241, 0.22);
  }

  #awp-mobile-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1100 !important;
    box-sizing: border-box;
    height: calc(var(--awp-mobile-chrome-h) + env(safe-area-inset-top)) !important;
    padding: env(safe-area-inset-top) 12px 0 !important;
    gap: 8px !important;
    background: var(--awp-mobile-chrome-bg) !important;
    border-bottom: 1px solid var(--awp-mobile-chrome-border) !important;
    box-shadow:
      0 8px 32px rgba(11, 18, 43, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  #awp-mobile-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(129, 140, 248, 0.45) 50%,
      transparent 100%
    );
    pointer-events: none;
  }

  #mobile-logo {
    display: block;
    width: auto !important;
    height: 38px !important;
    max-width: min(145px, calc(100vw - 174px)) !important;
    object-fit: contain !important;
    object-position: left center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
  }

  #awp-mobile-header-right {
    gap: 4px !important;
    min-width: 0;
  }

  #mobile-hamburger-btn,
  #mobile-lang-selector-btn,
  #mobile-login-btn,
  #mobile-register-btn,
  #mobile-account-btn,
  .mobile-auth-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }

  #mobile-hamburger-btn:active,
  #mobile-lang-selector-btn:active,
  #mobile-login-btn:active,
  #mobile-register-btn:active,
  #mobile-account-btn:active,
  .mobile-auth-btn:active {
    background: rgba(255, 255, 255, 0.18) !important;
  }

  #mobile-hamburger-btn svg,
  #mobile-login-btn svg,
  #mobile-register-btn svg,
  #mobile-account-btn svg,
  .mobile-auth-btn svg {
    width: 20px !important;
    height: 20px !important;
    color: #f8fafc !important;
    stroke: #f8fafc !important;
  }

  #mobile-lang-selector-btn {
    padding: 5px !important;
  }

  #mobile-lang-selector-btn img {
    border-radius: 8px !important;
  }

  #awp-printwise-root,
  #awp-printwise-root.awp-form-engine-page {
    margin-top: 0 !important;
    padding-top: calc(
      var(--awp-mobile-chrome-h) + env(safe-area-inset-top) + var(--awp-mobile-chrome-gap)
    ) !important;
  }

  #awp-printwise-root main,
  #awp-printwise-root main.max-w-3xl {
    margin-top: 0 !important;
    padding-top: 12px !important;
  }

  .calculator-tab-content.active {
    padding-top: 0;
  }

  .module-ders-notu-top,
  .module-rulo-baski-top,
  .module-dijital-baski-top,
  .module-katalog-top,
  .awp-fe-layout__intro {
    padding-top: 0;
  }

  .module-ders-notu-heading,
  .module-rulo-baski-heading,
  .module-dijital-baski-heading,
  .module-katalog-heading,
  .awp-fe-heading {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #0f172a !important;
    scroll-margin-top: calc(var(--awp-mobile-chrome-h) + env(safe-area-inset-top) + 16px);
    position: relative;
    z-index: 2;
  }

  body.awp-has-mobile-bottom-bar {
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }

  .mobile-bottom-buttons-wrapper {
    position: fixed !important;
    z-index: 1099 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    min-height: calc(72px + env(safe-area-inset-bottom)) !important;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)) !important;
    padding-left: max(6px, env(safe-area-inset-left)) !important;
    padding-right: max(6px, env(safe-area-inset-right)) !important;
    gap: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch !important;
    border: none !important;
    border-top: 1px solid var(--awp-mobile-chrome-border) !important;
    border-radius: 0 !important;
    background: var(--awp-mobile-chrome-bg) !important;
    box-shadow:
      0 -8px 32px rgba(11, 18, 43, 0.42),
      inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .mobile-bottom-buttons-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(129, 140, 248, 0.45) 50%,
      transparent 100%
    );
    pointer-events: none;
  }

  .mobile-bottom-bar-nav-item,
  .mobile-bottom-bar-left,
  .mobile-bottom-bar-center,
  .mobile-bottom-bar-right,
  .mobile-bottom-bar-share-slot,
  .mobile-bottom-bar-assistant-slot,
  .mobile-bottom-bar-pwa-slot,
  .mobile-bottom-bar-whatsapp-slot {
    position: relative;
    min-width: 0 !important;
    width: auto !important;
    min-height: 58px !important;
    height: 58px !important;
    display: flex !important;
    flex: none !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
  }

  .mobile-bottom-bar-nav-label {
    display: block;
    width: 100%;
    padding: 0 2px;
    color: rgba(248, 250, 252, 0.88) !important;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-bottom-bar-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--awp-mobile-chrome-btn-border) !important;
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: var(--awp-mobile-chrome-btn-bg) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
  }

  .mobile-bottom-bar-icon-btn:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.18) !important;
  }

  .mobile-bottom-bar-pwa-btn,
  .mobile-bottom-bar-whatsapp-btn,
  .mobile-bottom-bar-menu-btn {
    color: #f8fafc !important;
    background: var(--awp-mobile-chrome-btn-bg) !important;
    border: 1px solid var(--awp-mobile-chrome-btn-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }

  .mobile-bottom-buttons-wrapper .awp-pwa-share-btn,
  .mobile-bottom-bar-assistant-slot .awp-assistant-fab {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--awp-mobile-chrome-btn-border) !important;
    border-radius: 12px !important;
    background: var(--awp-mobile-chrome-btn-bg) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transform: none !important;
    color: #f8fafc !important;
  }

  .mobile-bottom-buttons-wrapper .awp-pwa-share-btn {
    background: var(--awp-mobile-chrome-btn-bg) !important;
  }

  .mobile-bottom-buttons-wrapper .awp-pwa-share-btn svg,
  .mobile-bottom-bar-pwa-btn svg,
  .mobile-bottom-bar-whatsapp-btn svg,
  .mobile-bottom-bar-menu-btn svg,
  .mobile-bottom-bar-assistant-slot .awp-assistant-fab svg {
    width: 20px !important;
    height: 20px !important;
  }

  .mobile-bottom-bar-btn.mobile-bottom-bar-cart {
    width: 100%;
    min-width: 0;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 3px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-radius: 0;
    background: transparent;
  }

  .mobile-bottom-bar-icon-wrap {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 12px;
    color: #f8fafc !important;
    background: var(--awp-mobile-chrome-btn-bg) !important;
    border: 1px solid var(--awp-mobile-chrome-btn-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    flex-shrink: 0;
  }

  .mobile-bottom-bar-icon {
    width: 20px !important;
    height: 20px !important;
  }

  /* Sepet tutarı hizayı bozmasın — tek satır etiket; tutar title/aria'da */
  .mobile-bottom-bar-cart-total {
    display: none !important;
  }

  /* Tüm nav öğelerinde ikon+etiket aynı dikey ritim */
  .mobile-bottom-bar-nav-item > .mobile-bottom-bar-icon-btn,
  .mobile-bottom-bar-nav-item > .awp-pwa-share-btn,
  .mobile-bottom-bar-nav-item .awp-assistant-fab,
  .mobile-bottom-bar-nav-item .mobile-bottom-bar-icon-wrap,
  .mobile-bottom-bar-nav-item .mobile-bottom-bar-action-icon {
    margin: 0 auto !important;
  }

  .mobile-bottom-bar-assistant-slot .awp-assistant {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    font-size: inherit;
  }

  .mobile-bottom-bar-assistant-slot .awp-assistant-fab {
    color: #f8fafc !important;
    background: var(--awp-mobile-chrome-btn-bg) !important;
    border: 1px solid var(--awp-mobile-chrome-btn-border) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  }

  .mobile-bottom-bar-assistant-slot .awp-assistant-fab-label {
    display: none !important;
  }

  .mobile-bottom-bar-assistant-slot .awp-assistant-panel {
    position: fixed !important;
    left: max(8px, env(safe-area-inset-left)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    /* --awp-vv-offset: sanal klavye yüksekliği kadar (assistant-chat.js). Panel
       her zaman klavyenin üstünde, yazı alanı görünür kalacak şekilde kayar. */
    bottom: calc(84px + env(safe-area-inset-bottom) + var(--awp-vv-offset, 0px)) !important;
    width: auto !important;
    height: min(72dvh, calc(var(--awp-vv-height, 100dvh) - 168px)) !important;
    max-height: min(72dvh, calc(var(--awp-vv-height, 100dvh) - 168px)) !important;
    border-radius: 18px !important;
    z-index: 1001 !important;
  }

  #mobile-sticky-action-btn {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }

  #mobile-sticky-action-btn button,
  #mobile-action-btn {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 58px !important;
    height: 58px !important;
    padding: 2px !important;
    gap: 2px;
    flex-direction: column;
    border-radius: 12px !important;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 9px !important;
    font-weight: 800 !important;
  }

  #mobile-sticky-action-btn button::before {
    display: none !important;
  }

  .mobile-bottom-bar-action-icon {
    display: block;
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
  }

  /* Yüzen kopyalar — alt menüde toplanır */
  body.awp-has-mobile-bottom-bar > #awp-pwa-share-btn,
  body.awp-has-mobile-bottom-bar > #awp-pwa-install-btn-floating,
  body.awp-has-mobile-bottom-bar > #awp-assistant-root,
  .awp-mobile-external-floating-hidden {
    display: none !important;
  }

  /* WhatsApp eklentisi: yüzen FAB gizle, popup çalışsın (stüdyo açıkken tamamen kapalı) */
  body:not(.awp-ps-studio-open):not(.awp-ps-fullscreen-body) #wa.wa__widget_container {
    display: block !important;
    visibility: visible !important;
    pointer-events: none !important;
  }

  body:not(.awp-ps-studio-open):not(.awp-ps-fullscreen-body) #wa .wa__btn_popup {
    display: none !important;
    pointer-events: none !important;
  }

  body.awp-ps-studio-open #wa,
  body.awp-ps-studio-open #wa.wa__widget_container,
  body.awp-ps-studio-open .wa__btn_popup,
  body.awp-ps-fullscreen-body #wa,
  body.awp-ps-fullscreen-body #wa.wa__widget_container,
  body.awp-ps-fullscreen-body .wa__btn_popup {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }

  body:not(.awp-ps-studio-open):not(.awp-ps-fullscreen-body) #wa .wa__popup_chat_box {
    display: none !important;
    pointer-events: auto !important;
    z-index: 1002 !important;
    left: max(12px, env(safe-area-inset-left)) !important;
    right: auto !important;
    bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }

  body:not(.awp-ps-studio-open):not(.awp-ps-fullscreen-body) #wa .wa__popup_chat_box.wa__active {
    display: block !important;
  }

  body.awp-ps-studio-open #wa .wa__popup_chat_box,
  body.awp-ps-fullscreen-body #wa .wa__popup_chat_box {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (max-width: 360px) {
  #mobile-logo {
    max-width: min(112px, calc(100vw - 144px)) !important;
  }

  #mobile-register-btn {
    display: none !important;
  }

  .mobile-bottom-bar-nav-label,
  #mobile-sticky-action-btn button,
  #mobile-action-btn {
    font-size: 8px !important;
  }
}

@media (max-width: 768px) and (display-mode: standalone) {
  #awp-mobile-header {
    height: calc(var(--awp-mobile-chrome-h, 64px) + env(safe-area-inset-top)) !important;
    padding-top: env(safe-area-inset-top) !important;
  }

  #awp-printwise-root,
  #awp-printwise-root.awp-form-engine-page {
    margin-top: 0 !important;
    padding-top: calc(
      var(--awp-mobile-chrome-h, 64px) + env(safe-area-inset-top) + var(--awp-mobile-chrome-gap, 24px)
    ) !important;
  }
}

@keyframes awpMobileSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes awpMobileSlideDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(40px); opacity: 0; }
}

#mobile-customer-modal.closing #mobile-customer-modal-content {
  animation: awpMobileSlideDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.mobile-info-modal.closing .mobile-info-modal-content {
  animation: awpMobileSlideDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
#mobile-nav-modal.closing #mobile-nav-modal-content {
  animation: awpMobileSlideDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
#mobile-quick-share-modal.closing #mobile-quick-share-modal-content {
  animation: awpMobileSlideDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
#mobile-companies-modal.closing .mobile-info-modal-content {
  animation: awpMobileSlideDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
#mobile-students-modal.closing .mobile-info-modal-content {
  animation: awpMobileSlideDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}
