/* ==========================================================================
   BETASAN - APPLE-INSPIRED PREMIUM CORPORATE MEDICAL DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Apple Signature Color Palette */
  --apple-bg:          #FFFFFF;
  --apple-card-bg:     #FFFFFF;
  --apple-surface:     #F5F5F7;
  --apple-surface-2:   #E8E8ED;
  --apple-dark:        #1D1D1F;
  --apple-dark-hover:  #000000;
  --apple-gray-dark:   #424245;
  --apple-gray-text:   #86868B;
  --apple-gray-light:  #D2D2D7;
  --apple-border:      rgba(0, 0, 0, 0.08);
  --apple-border-subtle: rgba(0, 0, 0, 0.04);
  
  /* Accent & Action */
  --apple-blue:        #0071E3;
  --apple-blue-hover:  #0077ED;
  --apple-blue-tint:   #EFF6FF;
  --apple-navy:        #1E3A8A;
  
  /* Typography */
  --font-apple:        -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
  
  /* Radius */
  --radius-xs:         6px;
  --radius-sm:         12px;
  --radius-md:         18px;
  --radius-lg:         24px;
  --radius-xl:         32px;
  --radius-pill:       980px;

  /* Shadows */
  --shadow-subtle:     0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card:       0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover:      0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-glass:      0 8px 32px rgba(0, 0, 0, 0.08);

  /* Layout */
  --nav-height:        64px;
  --container-max:     1200px;
  --transition-apple:  all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
}
body {
  font-family: var(--font-apple);
  background: var(--apple-bg);
  color: var(--apple-dark);
  line-height: 1.5;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
  position: relative;
}
section, main, footer, header {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: clip !important;
  box-sizing: border-box !important;
}
img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; transition: var(--transition-apple); }
button, input, select, textarea { font-family: inherit; }

/* ── Container ── */
.container {
  width: 100% !important;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box !important;
}
@media (max-width: 600px) {
  .container {
    padding: 0 16px !important;
    width: 100% !important;
  }
}

/* ── Apple Tipografi & Başlıklar ── */
.apple-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--apple-blue);
  margin-bottom: 12px;
  display: block;
}

.apple-headline {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--apple-dark);
  margin-bottom: 16px;
}
.apple-headline span {
  color: var(--apple-blue);
}

.apple-subhead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--apple-gray-text);
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto 32px;
}

.section-header {
  text-align: center;
  margin: 0 auto 60px;
  max-width: 800px;
}

/* ── Apple Butonları (Pill Buttons) ── */
.btn-apple-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--apple-dark);
  color: #FFFFFF !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-apple);
}
.btn-apple-primary:hover {
  background: var(--apple-blue);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3);
}

.btn-apple-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--apple-surface);
  color: var(--apple-dark) !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--apple-border);
  cursor: pointer;
  transition: var(--transition-apple);
}
.btn-apple-secondary:hover {
  background: #FFFFFF;
  border-color: var(--apple-gray-light);
  transform: scale(1.02);
}

.btn-apple-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--apple-blue);
  cursor: pointer;
  transition: var(--transition-apple);
}
.btn-apple-link:hover {
  text-decoration: underline;
  gap: 8px;
}

/* ── Buzlu Cam Apple Navbar (Frosted Glass) ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--apple-border);
  z-index: 1000;
  transition: var(--transition-apple);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

/* ── Apple Yüzen Ada Logo Kapsülü (Floating Island Brand Capsule) ── */
.logo, .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  padding: 6px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  text-decoration: none;
}
.logo:hover, .nav-logo:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  border-color: rgba(30, 58, 138, 0.25);
}
.logo-img, .nav-logo-img {
  height: 42px !important;
  max-height: 42px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.04));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--apple-dark);
  opacity: 0.8;
  transition: var(--transition-apple);
  position: relative;
}
.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--apple-blue);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--apple-blue);
  border-radius: 1px;
}

.lang-dropdown { position: relative; }
.lang-btn {
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--apple-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glass);
  padding: 6px;
  display: none;
  min-width: 130px;
  z-index: 100;
}
.lang-menu.open { display: block; }
.lang-opt {
  display: block;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  color: var(--apple-dark);
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.lang-opt:hover, .lang-opt.active {
  background: var(--apple-surface);
  color: var(--apple-blue);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--apple-dark);
  margin: 5px 0;
  border-radius: 1px;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  max-height: calc(100vh - var(--nav-height));
  max-height: calc(100dvh - var(--nav-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #FFFFFF;
  border-bottom: 1px solid var(--apple-border);
  padding: 24px;
  flex-direction: column;
  gap: 18px;
  z-index: 999;
}
.mobile-menu.open { display: flex; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
}

@media (max-width: 600px) {
  .logo, .nav-logo {
    padding: 4px 8px;
    border-radius: 10px;
    max-width: 155px;
    flex-shrink: 1;
  }
  .logo-img, .nav-logo-img {
    height: 30px !important;
    max-height: 30px !important;
    max-width: 125px !important;
  }
  .lang-btn {
    padding: 4px 8px;
    font-size: 0.76rem;
    flex-shrink: 0;
  }
  .mobile-toggle {
    padding: 6px;
    margin-left: 2px;
  }
}

/* ── Apple Tarzı Sayfa Başlığı (Page Hero) ── */
.page-hero {
  background: var(--apple-surface);
  padding-top: calc(var(--nav-height) + 50px);
  padding-bottom: 50px;
  text-align: center;
  border-bottom: 1px solid var(--apple-border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--apple-gray-text);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--apple-blue); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--apple-gray-light); }

/* ── Apple Bento Grid Showcase ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.bento-card {
  background: var(--apple-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--apple-border-subtle);
  padding: 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.08);
}
.bento-card-white {
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
}
.bento-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--apple-blue);
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  width: fit-content;
}
.bento-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--apple-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}
.bento-desc {
  font-size: 0.98rem;
  color: var(--apple-gray-text);
  line-height: 1.55;
  margin-bottom: 24px;
}
.bento-img-wrap {
  margin-top: auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bento-img {
  max-height: 220px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.bento-card:hover .bento-img {
  transform: scale(1.05);
}

/* Bento Column Spans */
.col-span-12 { grid-column: span 12; }
.col-span-8  { grid-column: span 8; }
.col-span-6  { grid-column: span 6; }
.col-span-4  { grid-column: span 4; }

@media (max-width: 991px) {
  .col-span-8, .col-span-6, .col-span-4 { grid-column: span 12; }
}

/* ── Apple Store Tarzı Filtre & Kategori Hapları ── */
.apple-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 40px;
}
.apple-pill-btn {
  background: var(--apple-surface);
  color: var(--apple-gray-dark);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-apple);
}
.apple-pill-btn:hover {
  background: var(--apple-surface-2);
  color: var(--apple-dark);
}
.apple-pill-btn.active {
  background: var(--apple-dark);
  color: #FFFFFF;
}

/* ── Apple Store Minimalist Ürün Kartları ── */
.apple-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 991px) {
  .apple-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .apple-products-grid { grid-template-columns: 1fr; }
}

.apple-product-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--apple-border);
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  position: relative;
}
.apple-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 0, 0, 0.12);
}
.apple-card-img-wrap {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: #FFFFFF;
}
.apple-card-img {
  max-height: 180px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.apple-product-card:hover .apple-card-img {
  transform: scale(1.05);
}

/* ── Ürün Kartı Görselsiz Mod (Adaptive No-Image Card) ── */
.apple-product-card.has-no-image .apple-card-img-wrap {
  display: none !important;
}
.apple-product-card.has-no-image {
  min-height: 240px;
  justify-content: space-between;
  border-top: 3px solid var(--apple-blue);
  background: linear-gradient(180deg, rgba(0, 113, 227, 0.02) 0%, #FFFFFF 100%);
}
.apple-product-card.has-no-image .apple-card-desc {
  -webkit-line-clamp: 4;
}

.apple-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--apple-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.apple-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--apple-dark);
  margin-bottom: 8px;
}
.apple-card-desc {
  font-size: 0.9rem;
  color: var(--apple-gray-text);
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.apple-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--apple-border);
}
.apple-card-variants {
  font-size: 0.8rem;
  color: var(--apple-gray-text);
  background: var(--apple-surface);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

/* ── Apple Ürün Detay Sayfası (Product Page) ── */
.apple-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: flex-start;
  margin-top: 40px;
}
@media (max-width: 991px) {
  .apple-detail-grid { grid-template-columns: 1fr; }
}

/* ── Ürün Detay Görselsiz Düzen (Adaptive No-Image Product Detail) ── */
.apple-detail-grid.has-no-image,
.detail-grid.has-no-image {
  grid-template-columns: 1fr !important;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.apple-detail-grid.has-no-image .apple-gallery-sticky,
.detail-grid.has-no-image .detail-image-box {
  display: none !important;
}
.inline-trust-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.apple-gallery-sticky {
  position: sticky;
  top: calc(var(--nav-height) + 30px);
  background: var(--apple-surface);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  border: 1px solid var(--apple-border-subtle);
}
.apple-gallery-img {
  max-height: 380px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.apple-info-panel {
  display: flex;
  flex-direction: column;
}
.apple-variant-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--apple-dark);
  margin: 24px 0 12px;
}
.apple-variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.apple-variant-pill {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--apple-gray-light);
  background: #FFFFFF;
  color: var(--apple-dark);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-apple);
}
.apple-variant-pill:hover {
  border-color: var(--apple-dark);
}
.apple-variant-pill.active {
  border-color: var(--apple-blue);
  background: var(--apple-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.25);
}

.apple-specs-box {
  background: var(--apple-surface);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  border: 1px solid var(--apple-border-subtle);
}
.apple-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--apple-border);
}
.apple-spec-row:last-child { border-bottom: none; }
.apple-spec-label { color: var(--apple-gray-text); }
.apple-spec-val { font-weight: 600; color: var(--apple-dark); }

/* ── Apple Teknik Tablo (Clean Spec Table) ── */
.apple-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 16px;
}
.apple-spec-table th {
  text-align: left;
  padding: 16px;
  font-weight: 600;
  color: var(--apple-gray-text);
  border-bottom: 1px solid var(--apple-border);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.apple-spec-table td {
  padding: 16px;
  color: var(--apple-dark);
  border-bottom: 1px solid var(--apple-border);
}
.apple-spec-table tr:last-child td { border-bottom: none; }

/* ── Apple Footer (Minimalist & Clean) ── */
.apple-footer {
  background: var(--apple-surface);
  border-top: 1px solid var(--apple-border);
  padding: 60px 0 32px;
  margin-top: 100px;
  font-size: 0.84rem;
  color: var(--apple-gray-text);
}
.apple-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--apple-border);
}
@media (max-width: 768px) {
  .apple-footer-grid { grid-template-columns: 1fr 1fr; }
}
.apple-footer-col-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--apple-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.apple-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.apple-footer-link {
  color: var(--apple-gray-text);
  transition: var(--transition-apple);
}
.apple-footer-link:hover {
  color: var(--apple-dark);
}
.apple-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERTİFİKA FİLİGRAN VE İNDİRME KORUMA SİSTEMİ (PROTECTED CERTIFICATE SYSTEM)
════════════════════════════════════════════════════════════════════════════ */
.cert-protected-card {
  background: #FFFFFF;
  border-radius: 28px;
  border: 1px solid var(--apple-border);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-apple);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cert-protected-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--apple-blue);
}

.cert-preview-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #F8FAFC;
  border: 1px solid rgba(0, 0, 0, 0.08);
  height: 280px;
  margin-bottom: 24px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

.cert-doc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
}

.cert-watermark-grid {
  position: absolute;
  inset: -60%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  transform: rotate(-30deg);
  opacity: 0.38;
  z-index: 10;
}

.wm-line {
  font-family: var(--font-apple);
  font-weight: 900;
  font-size: 0.95rem;
  color: #1E3A8A;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  letter-spacing: 3px;
  margin: 12px 0;
  text-transform: uppercase;
  user-select: none;
}

.cert-clickshield {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 20;
  cursor: zoom-in;
}

/* Modal Koruma Stili */
.cert-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.cert-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.cert-modal-box {
  background: #FFFFFF;
  border-radius: 28px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.cert-modal-backdrop.active .cert-modal-box {
  transform: scale(1);
}

.cert-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--apple-surface);
  border: 1px solid var(--apple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-apple);
}
.cert-modal-close:hover {
  background: #000;
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   KRİSTAL NETLİKTE TİPOGRAFİ & BUTON KONTRAST MOTORU
════════════════════════════════════════════════════ */
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", "Outfit", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  color: #0F172A;
}

/* Yüksek Kontrastlı Beyaz Butonlar (Yazı Asla Kaybolmaz) */
.btn-white-contrast {
  background: #FFFFFF !important;
  color: #1E3A8A !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15) !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  border-radius: 980px !important;
}
.btn-white-contrast:hover {
  background: #F8FAFC !important;
  color: #0F2459 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.22) !important;
}

/* Dil Seçici Dropdown Geliştirmesi */
.lang-dropdown {
  position: relative;
  display: inline-block;
  z-index: 1000;
}
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 6px;
  min-width: 140px;
  flex-direction: column;
  gap: 4px;
}
.lang-dropdown:hover .lang-menu,
.lang-menu.show {
  display: flex !important;
}
.lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #1E293B;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}
.lang-opt:hover {
  background: #F1F5F9;
  color: #1E3A8A;
}
.lang-opt.active {
  background: #EFF6FF;
  color: #1E3A8A;
  font-weight: 700;
}

/* Arapça (RTL) Desteği */
[dir="rtl"] {
  direction: rtl !important;
  text-align: right !important;
}
[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}
[dir="rtl"] .breadcrumb {
  direction: rtl;
}

/* ── Apple Horizontal Carousel Slider ── */
.apple-slider-section {
  padding: 80px 0 90px;
  background: var(--apple-surface);
  overflow: hidden !important;
  contain: paint !important;
  width: 100% !important;
  max-width: 100vw !important;
}
.apple-slider-header {
  max-width: var(--container-max);
  margin: 0 auto 40px;
  padding: 0 24px;
  width: 100% !important;
  box-sizing: border-box !important;
}
.apple-slider-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--apple-dark);
  line-height: 1.15;
}
.apple-slider-header h2 span {
  color: var(--apple-gray-text);
  font-weight: 600;
}
.apple-slider-wrap {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100% !important;
  max-width: 100vw !important;
  overflow: hidden !important;
  contain: paint !important;
  box-sizing: border-box !important;
}
.apple-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  cursor: grab;
  width: 100%;
  max-width: 100%;
}
.apple-slider-track:active {
  cursor: grabbing;
}
.apple-slider-track::-webkit-scrollbar {
  display: none;
}
.apple-slider-card {
  flex: 0 0 380px;
  min-width: 320px;
  max-width: 400px;
  background: var(--apple-card-bg);
  border-radius: 28px;
  border: 1px solid var(--apple-border);
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  transition: var(--transition-apple);
  text-decoration: none;
  color: inherit;
}
.apple-slider-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, 0.12);
}
.apple-slider-card-body {
  padding: 32px 28px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.apple-slider-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--apple-blue);
  margin-bottom: 10px;
}
.apple-slider-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--apple-dark);
  line-height: 1.25;
  margin-bottom: 10px;
}
.apple-slider-desc {
  font-size: 0.92rem;
  color: var(--apple-gray-text);
  line-height: 1.55;
  flex: 1;
}
.apple-slider-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.apple-slider-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}
.apple-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--apple-gray-light);
  background: var(--apple-card-bg);
  color: var(--apple-dark);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-apple);
  user-select: none;
}
.apple-slider-btn:hover {
  background: var(--apple-dark);
  color: #FFFFFF;
  border-color: var(--apple-dark);
}
.apple-slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Responsive */
/* ── Mobil ve Tablet Kapsamlı Responsive Kuralları ── */
@media (max-width: 768px) {
  .apple-slider-card {
    flex: 0 0 82vw;
    min-width: 260px;
    max-width: 320px;
  }
  .apple-slider-wrap {
    padding: 0 16px;
  }
  .apple-slider-title {
    font-size: 1.2rem;
  }
  .apple-slider-card-img {
    height: 180px;
  }
  .apple-slider-card-body {
    padding: 24px 20px 16px;
  }
  .apple-slider-section {
    padding: 60px 0 70px;
  }

  /* Bento Grid Mobil Optimizasyonu */
  .bento-grid {
    gap: 16px;
    margin-top: 24px;
  }
  .bento-card {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }
  .bento-title {
    font-size: 1.3rem;
  }
  .bento-card [style*="font-size:4rem"] {
    font-size: 2.6rem !important;
  }

  /* Tipografi & Hero */
  .apple-headline {
    font-size: clamp(1.85rem, 6.5vw, 2.5rem) !important;
    word-break: break-word;
    hyphens: auto;
  }
  .apple-subhead {
    font-size: 1.05rem !important;
    padding: 0 8px;
  }
  .hero-video-container {
    margin-top: 24px !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Ürün Detay & Tablolar */
  .apple-detail-grid {
    gap: 32px;
  }
  .apple-gallery-sticky {
    position: static;
    padding: 24px;
    border-radius: var(--radius-lg);
  }
  .apple-gallery-img {
    max-height: 260px;
  }
  .apple-spec-table {
    min-width: 460px;
  }
}

@media (max-width: 480px) {
  .btn-apple-primary, .btn-apple-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.95rem;
  }
  .apple-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .apple-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .apple-variant-pill {
    width: 100%;
    text-align: center;
  }
}

/* ── İhracat Kartı ve Fabrika Tanıtım Responsive Grid ── */
.export-card-grid {
  background: #FFFFFF;
  border-radius: 28px;
  border: 1px solid var(--apple-border);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.about-factory-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .export-card-grid {
    grid-template-columns: 1fr !important;
    padding: 28px 20px !important;
    gap: 28px !important;
  }
  .about-factory-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* Tablo Yatay Kaydırma Kapsayıcısı */
.table-responsive, .codes-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   KÜRESEL MOBİL SAVUNMA & SIFIR TAŞMA KALKANI (GLOBAL MOBILE FAILSAFE LAYER)
   ════════════════════════════════════════════════════════════════════════════ */

/* Form ve 2 Sütunlu Izgaraların Responsive Standardı */
.form-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .form-grid-2col,
  form div[style*="grid-template-columns:1fr 1fr"],
  form div[style*="grid-template-columns: 1fr 1fr"],
  form div[style*="grid-template-columns: 1fr  1fr"],
  div[style*="grid-template-columns: 1.1fr 0.9fr"],
  div[style*="grid-template-columns:1.1fr 0.9fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"],
  div[style*="grid-template-columns:1.2fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Form butonlarının mobilde tam genişlik oturması */
  form button[type="submit"],
  form button[type="button"].reveal-btn,
  form button[type="button"].btn-apple-primary {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* Aşırı Padding & Kenar Boşluğu Savunma Kuralı */
@media (max-width: 768px) {
  div[style*="padding:48px"],
  div[style*="padding: 48px"],
  div[style*="padding:50px"],
  div[style*="padding: 50px"],
  div[style*="padding:40px"],
  div[style*="padding: 40px"] {
    padding: 24px 16px !important;
    border-radius: 20px !important;
    margin-top: 36px !important;
  }
}

/* Yatay Kaydırma ve Tablo Zırhı */
.apple-spec-table-wrap,
div[style*="overflow-x:auto"],
div[style*="overflow-x: auto"] {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Küçük Ekranlarda Ülke Rozetleri (Pills) Sarma Güvencesi */
.export-pills-wrap,
div[style*="flex-wrap:wrap"] {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

