:root {
  --bg: #f7f9fb;
  --bg-2: #eef2f6;
  --card: rgba(255, 255, 255, 0.74);
  --card-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --muted: #475569;
  --brand: #dc2626;
  --brand-2: #b91c1c;
  --brand-text: #991b1b;
  --brand-dark: #111827;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 28px;
  --max: 1180px;
  --scrollbar-color: #dc2626;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: transparent !important;
  background-image:
    radial-gradient(circle at 18% 10%, rgba(220, 38, 38, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 22%, rgba(30, 41, 59, 0.06), transparent 30rem),
    linear-gradient(135deg, #f7f9fb, #ffffff 58%, #eef2f6) !important;
  background-position: 0 0, 0 0, 0 0 !important;
  background-repeat: repeat, repeat, repeat !important;
  background-size: auto, auto, auto !important;
  background-attachment: fixed !important;
  color: var(--text);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

button, input, textarea, select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

.section {
  padding: 110px 0;
  position: relative;
}

/* ---- Hero & Top Navigation (Exact Green Pi Works Layout) ---- */

.hero-section {
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  padding-bottom: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero-nav {
  z-index: 40;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 3.5vw, 44px);
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.hud-brand, .brand {
  letter-spacing: 0.04em;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font-family: 'Orbitron', 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  display: inline-flex;
}

.hud-brand:hover, .brand:hover {
  transform: translateY(-1px);
}

.hero-nav .hud-brand img {
  height: 68px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(15, 23, 42, 0.06));
}

.site-nav {
  color: var(--muted);
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  font-family: 'DM Sans', sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  display: flex;
}

.site-nav a:not(.nav-cta) {
  color: rgba(15, 23, 42, 0.82);
  border-radius: 999px;
  padding: 8px 12px;
  transition: opacity 0.2s, color 0.2s, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:not(.nav-cta):hover {
  opacity: 1;
  color: var(--brand);
  transform: scale(1.06);
}

.nav-cta, .site-nav a.nav-cta {
  border-radius: 24px;
  justify-content: center;
  align-items: center;
  margin-left: 2px;
  padding: 9px 22px;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: inline-flex;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.34);
  color: #ffffff !important;
  opacity: 1 !important;
  background: var(--brand) !important;
}

.nav-cta:hover, .site-nav a.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(220, 38, 38, 0.5);
  color: #ffffff !important;
  background: var(--brand-2) !important;
}

.lang-toggle-btn {
  letter-spacing: 0.04em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  user-select: none;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(220, 38, 38, 0.28);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  margin-left: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  color: var(--text) !important;
}

.lang-toggle-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
  color: #ffffff !important;
}

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

/* ---- 3D Cylindrical Carousel Container & Bottom Legend Pills ---- */

.hero-carousel-wrap {
  z-index: 5;
  pointer-events: auto;
  width: 100%;
  height: 100%;
  inset: 0;
  position: absolute !important;
}

.assid-project-carousel {
  isolation: isolate;
  background: transparent !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100% !important;
  height: 100vh !important;
  min-height: 100vh !important;
  display: flex;
  position: relative;
  overflow: visible !important;
}

.assid-project-carousel__stage {
  touch-action: pan-y;
  cursor: grab;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  overflow: visible;
  pointer-events: auto !important;
}

.weichie-canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.weichie-canvas-container canvas {
  outline: none;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.assid-project-carousel__legend {
  z-index: 40 !important;
  white-space: nowrap !important;
  flex-flow: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 95% !important;
  padding: 6px 12px !important;
  display: flex !important;
  position: absolute !important;
  bottom: 24px !important;
  left: 50% !important;
  overflow-x: auto !important;
  transform: translateX(-50%) !important;
}

.assid-project-carousel__legend span,
.assid-project-carousel__legend-btn {
  white-space: nowrap !important;
  color: #475569 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  user-select: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 999px !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  padding: 9px 18px !important;
  font-family: 'Space Grotesk', 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: inline-flex !important;
}

.assid-project-carousel__legend span:hover,
.assid-project-carousel__legend-btn:hover {
  color: var(--brand) !important;
  background: rgba(220, 38, 38, 0.06) !important;
  transform: translateY(-2px) !important;
}

.assid-project-carousel__legend span.is-active,
.assid-project-carousel__legend-btn.is-active {
  color: var(--brand) !important;
  background: rgba(220, 38, 38, 0.1) !important;
  font-weight: 700 !important;
  transform: none !important;
}

.assid-project-carousel__legend .assid-project-carousel__legend-icon {
  cursor: inherit !important;
  color: inherit !important;
  background: transparent !important;
  border: none !important;
  margin-right: 8px !important;
  padding: 0 !important;
  display: inline-flex !important;
  transform: none !important;
}

/* ---- Eyebrow Pill ---- */

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
}

.eyebrow-line,
.eyebrow > span:first-child:empty {
  background: var(--brand);
  border-radius: 2px;
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  display: block;
}

/* ---- Section 2: Hakkımızda & Misyonumuz (6-Card Grid) ---- */

.fullscreen-about-section {
  z-index: 10;
  flex-direction: column;
  justify-content: center;
  padding: 90px clamp(20px, 4vw, 60px) 0;
  display: flex;
  position: relative;
  background: transparent !important;
  border-top: none !important;
}

.about-mission-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 32px;
}

.about-mission-header .eyebrow {
  justify-content: center;
  margin-bottom: 10px;
}

.about-mission-header h2 {
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.85rem, 2.7vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.about-mission-header p {
  color: var(--muted);
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(14.5px, 1.1vw, 16.5px);
  line-height: 1.65;
}

.about-mission-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
}

@media (max-width: 1024px) {
  .about-mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .about-mission-grid {
    grid-template-columns: 1fr;
  }
}

.about-mission-card {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  display: flex;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.about-mission-card:hover {
  border-color: rgba(220, 38, 38, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.about-mission-card h3 {
  color: var(--text);
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
}

.about-mission-card p {
  color: var(--muted);
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---- Section 3: Trusted / Standards & Reference Marquee ---- */

.trusted {
  z-index: 10;
  background: transparent;
  padding: 90px 0 40px;
  position: relative;
  overflow: hidden;
}

.trusted__label {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-align: center;
  margin: 0 auto 24px;
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  display: block;
}

.trusted-marquee-container {
  background: transparent;
  width: 100%;
  padding: 10px 0;
  position: relative;
  overflow: hidden;
}

.trusted-marquee-track {
  user-select: none;
  width: max-content;
  display: flex;
}

.trusted-marquee-group {
  flex-shrink: 0;
  justify-content: space-around;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  animation: 28s linear infinite seamlessMarquee;
  display: flex;
}

@keyframes seamlessMarquee {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

.trusted-brand-pill {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  user-select: none;
  pointer-events: none;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 14px !important;
  height: 64px !important;
  padding: 10px 24px !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05) !important;
}

.trusted-brand-pill__badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.trusted-brand-pill__text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.trusted-brand-pill__text strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.trusted-brand-pill__text span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* ---- Section 4: Dedicated Contact & Quote Form Section ---- */

.dedicated-contact-section {
  z-index: 10;
  padding: 50px clamp(20px, 4vw, 60px) 60px;
  position: relative;
  background: transparent !important;
  border-top: none !important;
}

.dedicated-contact-grid {
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
}

@media (max-width: 992px) {
  .dedicated-contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.contact-info-block {
  flex-direction: column;
  gap: 18px;
  display: flex;
}

.contact-info-block h2 {
  color: var(--text);
  letter-spacing: -0.02em;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
}

.contact-info-block p {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}

.contact-direct-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.contact-direct-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.contact-direct-card:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.1);
}

.contact-direct-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.1);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-direct-card__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-direct-card__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.contact-direct-card__value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.contact-direct-card__hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.contact-form-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.contact-form-card h3 {
  color: var(--text);
  margin: 0 0 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 700;
}

.contact-form-card p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.contact-form-card label {
  color: var(--text);
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  color: var(--text);
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  width: 100%;
  padding: 11px 15px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  background: #ffffff;
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.contact-form-submit-btn {
  color: #ffffff;
  cursor: pointer;
  background: var(--brand);
  border: none;
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 14px 26px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  display: inline-flex;
  box-shadow: 0 6px 22px rgba(220, 38, 38, 0.32);
}

.contact-form-submit-btn:hover {
  background: var(--brand-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.45);
}

/* ---- Toast Notification ---- */

.gpw-toast {
  z-index: 9999;
  color: #ffffff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  background: #0f172a;
  border: 1px solid var(--brand);
  border-radius: 16px;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  padding: 16px 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, visibility 0.4s;
  display: flex;
  position: fixed;
  bottom: 32px;
  right: 32px;
  transform: translateY(100px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(220, 38, 38, 0.2);
}

.gpw-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gpw-toast-icon {
  color: #ffffff;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 20px;
  font-weight: 900;
  display: flex;
}

.gpw-toast-content {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.gpw-toast-content strong {
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
}

.gpw-toast-content p {
  color: #cbd5e1;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.gpw-toast-close {
  color: #94a3b8;
  cursor: pointer;
  opacity: 0.7;
  background: transparent;
  border: none;
  margin-left: auto;
  padding: 4px;
  font-size: 18px;
  line-height: 1;
  transition: opacity 0.2s;
}

.gpw-toast-close:hover {
  opacity: 1;
}

/* ---- Site Footer (Exact Green Pi Works Layout) ---- */

.site-footer {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 10;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  padding: 50px 0 28px;
  position: relative;
  background: rgba(255, 255, 255, 0.72) !important;
}

.footer-top {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 48px;
  padding-bottom: 36px;
  display: grid;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand-card {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.footer-brand-card img {
  height: 54px;
  width: auto;
  display: block;
}

.footer-brand-card p {
  color: var(--muted);
  max-width: 460px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
}

.footer-contact-open-grid {
  text-align: right;
  background: transparent;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  padding: 0;
  display: flex;
}

@media (max-width: 900px) {
  .footer-contact-open-grid {
    text-align: left;
    align-items: flex-start;
  }
}

.footer-contact-item {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  display: flex;
}

@media (max-width: 900px) {
  .footer-contact-item {
    align-items: flex-start;
  }
}

.footer-item-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
}

.footer-item-value {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

a.footer-item-value:hover {
  color: var(--brand);
  transform: translateX(-2px);
}

.footer-location-link {
  color: var(--text);
  text-align: right;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

@media (max-width: 900px) {
  .footer-location-link {
    text-align: left;
  }
}

.footer-location-link:hover {
  color: var(--brand);
  transform: translateX(-2px);
}

.footer-social-icons-row {
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  display: flex;
}

@media (max-width: 900px) {
  .footer-social-icons-row {
    justify-content: flex-start;
  }
}

.footer-social-icon-btn {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  color: var(--text) !important;
}

.footer-social-icon-btn svg {
  fill: currentColor;
  width: 18px;
  height: 18px;
}

.footer-social-icon-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 18px rgba(220, 38, 38, 0.3);
  color: #ffffff !important;
}

.footer-bottom {
  color: var(--muted);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  font-size: 13.5px;
  display: flex;
}

.footer-bottom p {
  margin: 0;
}

/* ---- Project Detail Modal (Exact Green Pi Works Modal) ---- */

.light-term-backdrop {
  z-index: 1000;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.75);
  justify-content: center;
  align-items: center;
  padding: 12px;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  position: fixed;
  inset: 0;
}

.light-term-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.light-term-window {
  color: var(--text);
  background: #ffffff;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 16px;
  flex-direction: column;
  width: min(1240px, 96vw);
  max-height: 92vh;
  margin: auto;
  font-family: 'DM Sans', sans-serif;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 60px rgba(220, 38, 38, 0.16);
}

.light-term-backdrop.is-open .light-term-window {
  transform: scale(1) translateY(0);
}

.light-term-header {
  user-select: none;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  justify-content: space-between;
  align-items: center;
  padding: 16px 26px;
  display: flex;
}

.proj-modal-title {
  color: var(--text);
  letter-spacing: 0.01em;
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.proj-modal-close {
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 22px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
}

.proj-modal-close:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.08);
}

.light-term-body {
  text-align: center;
  background: #ffffff;
  flex-direction: column;
  flex: 1;
  justify-content: flex-start;
  align-items: center;
  padding: 36px 44px;
  display: flex;
  overflow-y: auto;
}

.light-term-content-wrapper {
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1060px;
  margin: auto;
  display: flex;
}

.modal-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 48px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

@media (max-width: 768px) {
  .modal-features-grid {
    grid-template-columns: 1fr;
  }
  .light-term-body {
    padding: 24px 20px;
  }
  .hero-nav .hud-brand img {
    height: 48px;
  }
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

/* ---- Scrollbar ---- */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-color);
  background-clip: padding-box;
  border: 2px solid transparent;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--brand-2);
  background-clip: padding-box;
}


/* ============================================================================
   MEGASANAYİ CRM & 5 SAYFALIK PROFORMA FATURA SİSTEMİ
   ============================================================================ */

.crm-section {
  z-index: 15;
  padding: 90px clamp(16px, 3.5vw, 48px) 40px;
  position: relative;
}

.crm-shell {
  max-width: 1320px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

/* Top Bar: Brand + Role Switcher */
.crm-topbar {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.crm-topbar__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crm-topbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #f87171;
}

.crm-topbar__title h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.crm-role-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.crm-role-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.crm-role-btn:hover {
  color: #ffffff;
}

.crm-role-btn.is-active {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
}

.crm-role-banner {
  background: #fef2f2;
  border-bottom: 1px solid rgba(220, 38, 38, 0.18);
  color: #7f1d1d;
  padding: 11px 28px;
  font-size: 13.5px;
  line-height: 1.5;
}

/* KPI Row */
.crm-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 28px;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 1024px) {
  .crm-kpi-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .crm-kpi-bar {
    grid-template-columns: 1fr;
  }
}

.crm-kpi-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.crm-kpi-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.crm-kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
}

.crm-kpi-value small {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.crm-kpi-value--red {
  color: #dc2626;
}

.crm-kpi-sub {
  font-size: 12px;
  color: #64748b;
}

/* Tabs Bar */
.crm-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.crm-tabs-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-tab-btn {
  cursor: pointer;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #334155;
  border-radius: 10px;
  padding: 9px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.crm-tab-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.crm-tab-btn.is-active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.crm-tabs-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-btn {
  cursor: pointer;
  border-radius: 10px;
  padding: 9px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #ffffff;
  color: #0f172a;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.crm-btn:hover {
  background: #f8fafc;
  border-color: #0f172a;
}

.crm-btn--primary {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.crm-btn--primary:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #ffffff;
}

.crm-btn--dark {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.crm-btn--dark:hover {
  background: #1e293b;
  color: #ffffff;
}

.crm-tab-pane {
  display: none;
  padding: 24px 28px 32px;
}

.crm-tab-pane.is-active {
  display: block;
}

/* Smart Calculator Strip */
.crm-smart-calc {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.crm-smart-calc__head {
  flex: 1 1 260px;
}

.crm-smart-calc__head strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  color: #0f172a;
  margin-bottom: 3px;
}

.crm-smart-calc__head span {
  font-size: 12.5px;
  color: #475569;
}

.crm-smart-calc__inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.crm-smart-calc__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crm-smart-calc__field label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
}

.crm-smart-calc__field input {
  width: 110px;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
}

/* Editor Form Grid */
.crm-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .crm-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .crm-meta-grid {
    grid-template-columns: 1fr;
  }
}

.crm-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crm-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crm-field input,
.crm-field select,
.crm-field textarea {
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 600;
}

.crm-field input:focus,
.crm-field select:focus,
.crm-field textarea:focus {
  border-color: #dc2626;
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Catalog Add Bar */
.crm-add-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.crm-add-bar select {
  flex: 1 1 320px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
}

.crm-add-bar input {
  width: 95px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  text-align: center;
}

/* Interactive Proforma Table */
.crm-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
}

.crm-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.crm-items-table thead th {
  background: #7a121b;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.crm-items-table tbody tr {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.crm-items-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.crm-items-table tbody td {
  padding: 9px 10px;
  vertical-align: middle;
}

.crm-table-input {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.crm-table-input--name {
  width: 100%;
  min-width: 195px;
}

.crm-table-input--qty {
  width: 68px;
  text-align: center;
  font-weight: 800;
}

.crm-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.crm-qty-btn {
  cursor: pointer;
  width: 26px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #f1f5f9;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crm-qty-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.crm-row-del-btn {
  cursor: pointer;
  border: none;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 800;
}

.crm-row-del-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

.crm-badge-coating {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  font-weight: 700;
  font-size: 11.5px;
}

/* Editor Bottom Summary & Terms */
.crm-editor-bottom {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .crm-editor-bottom {
    grid-template-columns: 1fr;
  }
}

.crm-logistics-alert {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}

.crm-summary-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  overflow: hidden;
}

.crm-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  font-size: 13.5px;
}

.crm-summary-row strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
}

.crm-summary-row--maroon {
  background: #7a121b;
  color: #ffffff;
  font-weight: 800;
  font-size: 15.5px;
  padding: 13px 16px;
}

.crm-summary-row--maroon strong {
  font-size: 18px;
  color: #ffffff;
}

/* Pipeline Table */
.crm-status-select {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.crm-status-pill--approved {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.crm-status-pill--sent {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.crm-status-pill--draft {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.crm-action-btn {
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}

.crm-action-btn--primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.crm-action-btn--danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* ============================================================================
   5 SAYFALIK A4 PROFORMA FATURA & TEKNİK ŞARTNAME (PDF BİREBİR TASARIMI)
   ============================================================================ */

.pf-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 14px;
  margin-bottom: 22px;
}

.pf-pages-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: #cbd5e1;
  padding: 28px 16px;
  border-radius: 16px;
  overflow-x: auto;
}

.pf-a4-page {
  width: 794px;
  min-height: 1122px;
  background: #ffffff;
  color: #0f172a;
  padding: 34px 38px;
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.22);
  border: 1px solid #94a3b8;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: 'DM Sans', Arial, sans-serif;
}

.pf-top-maroon-banner {
  background: #7a121b;
  color: #ffffff;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 11px 16px;
  margin-bottom: 14px;
}

.pf-customer-box {
  border: 1px solid #cbd5e1;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 16px;
  padding: 14px;
  align-items: center;
}

.pf-logo-col {
  text-align: center;
  border-right: 1px solid #e2e8f0;
  padding-right: 12px;
}

.pf-logo-img {
  max-height: 62px;
  margin: 0 auto 6px;
}

.pf-logo-sub {
  font-size: 9.5px;
  font-weight: 800;
  color: #0f172a;
}

.pf-logo-addr {
  font-size: 8.5px;
  color: #475569;
  margin-top: 2px;
}

.pf-info-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pf-info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  font-size: 11.5px;
  padding: 3px 8px;
  background: #f8fafc;
}

.pf-info-row:nth-child(even) {
  background: #f1f5f9;
}

.pf-info-row span {
  color: #475569;
  font-weight: 600;
}

.pf-info-row strong {
  color: #0f172a;
  font-weight: 700;
}

.pf-cert-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-top: none;
  margin-bottom: 12px;
}

.pf-cert-diamond {
  border: 2.5px solid #b91c1c;
  color: #b91c1c;
  font-weight: 900;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
}

.pf-cert-ce {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
}

.pf-cert-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #2563eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 7.5px;
  line-height: 1.05;
  color: #1e3a8a;
}

.pf-cert-circle--amber { border-color: #d97706; color: #92400e; }
.pf-cert-circle--green { border-color: #16a34a; color: #166534; }
.pf-cert-circle--teal { border-color: #0d9488; color: #115e59; }
.pf-cert-circle--dark { border-color: #334155; color: #0f172a; }
.pf-cert-circle--blue { border-color: #0284c7; color: #0c4a6e; }

.pf-system-bar {
  display: grid;
  grid-template-columns: 1fr 165px 115px;
  gap: 4px;
}

.pf-system-bar__title {
  background: #7a121b;
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
}

.pf-system-bar__no {
  background: #7a121b;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  font-size: 10.5px;
}

.pf-system-bar__no strong {
  font-size: 12.5px;
}

.pf-system-bar__date {
  background: #fef08a;
  color: #0f172a;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-system-subbar {
  background: #7a121b;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  margin-top: 3px;
  margin-bottom: 10px;
  width: 284px;
  margin-left: auto;
}

.pf-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.pf-items-table thead th {
  background: #7a121b;
  color: #ffffff;
  padding: 7px 6px;
  font-weight: 700;
  font-size: 10px;
  border: 1px solid #7a121b;
}

.pf-items-table tbody td {
  padding: 6px 6px;
  border-bottom: 1px solid #e2e8f0;
}

.pf-items-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.pf-td-left { text-align: left; }
.pf-td-center { text-align: center; }
.pf-td-right { text-align: right; }

.pf-totals-layout {
  display: grid;
  grid-template-columns: 1fr 410px;
  margin-top: 8px;
  align-items: center;
}

.pf-watermark-mark {
  font-family: 'Orbitron', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.05);
  text-align: center;
  user-select: none;
}

.pf-mid-bar {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pf-mid-bar--light {
  background: #f1f5f9;
  color: #0f172a;
}

.pf-mid-bar--maroon {
  background: #7a121b;
  color: #ffffff;
}

.pf-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-top: 8px;
}

.pf-sum-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 11.5px;
  border-bottom: 1px solid #e2e8f0;
}

.pf-sum-row--grand {
  background: #7a121b;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  padding: 9px 12px;
}

.pf-sec-head {
  background: #7a121b;
  color: #ffffff;
  font-weight: 800;
  font-size: 12.5px;
  padding: 7px 12px;
  margin-top: 10px;
}

.pf-sec-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  font-size: 11.5px;
  line-height: 1.55;
}

.pf-sec-box--plain {
  background: transparent;
  border: none;
  padding: 8px 2px;
}

.pf-bank-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pf-bank-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  font-size: 11.5px;
}

.pf-brand-badges-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 10px;
  margin: 8px 0;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.pf-made-badge {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 10px;
}

.pf-made-badge strong {
  color: #7a121b;
  font-size: 12px;
}

.pf-tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.2px;
  line-height: 1.5;
}

.pf-table-caption {
  font-size: 12px;
  font-weight: 800;
  margin: 8px 0 6px;
  color: #0f172a;
}

.pf-std-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.2px;
}

.pf-std-table thead th {
  background: #7a121b;
  color: #ffffff;
  padding: 6px 8px;
  text-align: center;
}

.pf-std-table tbody td {
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.pf-std-table tbody tr:nth-child(even) {
  background: #fdf2f2;
}

.pf-num-list {
  padding-left: 18px;
  font-size: 11.5px;
  line-height: 1.65;
  color: #0f172a;
}

.pf-sample-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 12px 0;
}

.pf-sample-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
}

.pf-sample-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
}

.pf-other-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin-top: 10px;
  font-size: 11.2px;
  line-height: 1.55;
}

.pf-other-services-grid h5 {
  color: #7a121b;
  font-size: 12px;
  margin-bottom: 4px;
}

.pf-other-services-grid ul {
  list-style: none;
}

.pf-signatures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 14px;
  align-items: end;
  text-align: center;
}

.pf-stamp-box {
  width: 100%;
  height: 92px;
  border: 1px solid #64748b;
  background: #ffffff;
}

.pf-sig-label {
  font-size: 11.5px;
  font-weight: 800;
  margin-top: 6px;
  color: #0f172a;
}

.pf-page-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 10px;
  color: #64748b;
}

/* PRINT STYLES: Sadece 5 Sayfalık Proforma Faturayı A4 Olarak Yazdır */
@media print {
  body * {
    visibility: hidden !important;
  }
  #crmProformaPagesContainer,
  #crmProformaPagesContainer * {
    visibility: visible !important;
  }
  #crmProformaPagesContainer {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  .pf-a4-page {
    width: 100% !important;
    min-height: 275mm !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 12mm 14mm !important;
    page-break-after: always !important;
    break-after: page !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .pf-a4-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }
}


/* ---- Gizli CRM Modal & Tek Sayfa Proforma Ek Stilleri ---- */

.secret-crm-trigger {
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  opacity: 0.35;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}

.secret-crm-trigger:hover {
  opacity: 1;
  background: #ffffff;
  border-color: rgba(220, 38, 38, 0.35);
}

.crm-secret-backdrop {
  z-index: 2000;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px clamp(12px, 2.5vw, 32px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.crm-secret-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.crm-shell--modal {
  width: 100%;
  max-width: 1360px;
  margin: auto;
  background: #ffffff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.crm-modal-close-btn {
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.crm-modal-close-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* Tek Sayfa A4 Proforma Düzeni */
.pf-a4-page--single {
  width: 794px;
  height: 1122px;
  max-height: 1122px;
  min-height: 1122px;
  padding: 26px 32px;
  overflow: hidden;
  justify-content: flex-start;
}

.pf-single-left-notes {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding-right: 16px;
  height: 100%;
}

.pf-single-note-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.45;
  color: #1e293b;
}

.pf-single-note-box strong {
  display: block;
  color: #7a121b;
  font-size: 10.5px;
  margin-bottom: 3px;
}

.pf-single-note-box p {
  margin: 0 0 3px;
}

.pf-single-sigs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pf-single-sig-box {
  border: 1px solid #94a3b8;
  height: 78px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  background: #ffffff;
}

.pf-single-sig-box span {
  font-size: 9.5px;
  font-weight: 800;
  color: #7a121b;
}

.pf-single-sig-box small {
  font-size: 8.5px;
  color: #475569;
  font-weight: 600;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }
  .pf-a4-page--single {
    width: 210mm !important;
    height: 296mm !important;
    max-height: 296mm !important;
    min-height: 296mm !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }
}


/* ---- Yeni Ürün Ekleme / Düzenleme Kutusu Stilleri ---- */

.crm-new-product-box {
  background: linear-gradient(135deg, #fff1f2 0%, #fff 100%);
  border: 1.5px solid rgba(220, 38, 38, 0.28);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.06);
}

.crm-new-product-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.2fr 0.9fr 0.8fr 0.9fr 0.8fr;
  gap: 10px;
  align-items: end;
}

@media (max-width: 1100px) {
  .crm-new-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .crm-new-product-grid {
    grid-template-columns: 1fr;
  }
}

.crm-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

.crm-row-btn {
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #f8fafc;
  color: #0f172a;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.crm-row-btn:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.crm-row-btn--del {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.crm-row-btn--del:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}
