@media print {
  /* 1. Hide non-print elements */
  .no-print,
  header,
  footer,
  nav,
  aside,
  button,
  .btn,
  .whatsapp-widget,
  .cookie-consent,
  .coupon-popup,
  .story-share,
  .toaster-container,
  iframe,
  #google-merchant-badge,
  .admin-bar,
  [class*="WhatsAppWidget"],
  [class*="CookieConsent"],
  [class*="CouponPopup"],
  [class*="SocialProofToast"],
  [class*="MaintenanceOverlay"],
  [class*="VersionPopup"],
  [class*="Toaster"],
  [class*="WaitlistNotificationPopup"] {
    display: none !important;
  }

  /* Hide tabs in astrology page */
  div.flex.flex-wrap.border-b.border-white\/10.bg-\[\#0a0a0a\] {
    display: none !important;
  }
  
  /* Hide calculation controls and other interactive buttons */
  button.mt-10.flex.items-center.gap-2.mx-auto.text-brand-primary {
    display: none !important;
  }

  /* Hide VIP locked overlay screens and locked items to save paper if not purchased */
  .absolute.inset-0.bg-\[\#141414\]\/95.backdrop-blur-xl,
  .absolute.inset-0.bg-\[\#141414\]\/80.backdrop-blur-md,
  .absolute.inset-0.bg-\[\#141414\]\/70.backdrop-blur-md {
    display: none !important;
  }
  
  /* If VIP analysis is locked, hide the entire VIP section to avoid printing "Bu alan VIP analizde açılacaktır..." or locked containers */
  .bg-\[\#141414\]:has(.absolute.inset-0.bg-\[\#141414\]\/95.backdrop-blur-xl) {
    display: none !important;
  }

  /* 2. Color and Contrast Overrides */
  :root,
  .dark,
  .light,
  body {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    --brand-primary: #a37d10 !important; /* Elegant darker gold for high readability */
    --brand-secondary: #c09618 !important;
    --text-base: #1a1a1a !important;
    --text-muted: #4b5563 !important;
    --bg-base: #ffffff !important;
    --bg-surface: #f9fafb !important;
    --border-subtle: #e5e7eb !important;
  }

  body {
    min-height: auto !important;
    font-size: 12pt !important;
    line-height: 1.5 !important;
  }

  /* Remove all glow and radial blur background effects */
  div[class*="blur-"],
  div[class*="bg-brand-primary/10"],
  div[class*="bg-blue-500/5"],
  div.absolute.top-\[10\%\].left-\[-10\%\],
  div.absolute.bottom-\[10\%\].right-\[-10\%\] {
    display: none !important;
    background: none !important;
    filter: none !important;
  }

  /* General background resets to ensure no black boxes */
  .bg-\[\#141414\],
  .bg-\[\#0a0a0a\],
  .bg-surface,
  .bg-base,
  .bg-surface\/5,
  .bg-gradient-to-br,
  .bg-gradient-to-r {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border-color: #e5e7eb !important;
    box-shadow: none !important;
  }

  /* Border styling for boxes to look like a premium report */
  .border,
  .border-white\/10,
  .border-subtle,
  .border-l {
    border-color: #e5e7eb !important;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #111111 !important;
  }
  
  p, span, li, td, th, div {
    color: #222222 !important;
  }

  .text-brand-primary,
  .text-\[#D4AF37\],
  .text-gold {
    color: #936f0a !important;
  }

  .text-gray-400,
  .text-gray-300,
  .text-muted {
    color: #4b5563 !important;
  }

  /* Ensure progress bars print nicely */
  .h-2.w-full.bg-white\/10,
  .h-2.bg-gray-100,
  .h-2\.5.w-full.bg-white\/10 {
    background-color: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    height: 10px !important;
  }

  /* Make sure element profile progress fills have strong, readable colors */
  div[class*="from-red-600"],
  .bg-red-500 {
    background: #ef4444 !important;
    background-color: #ef4444 !important;
  }
  div[class*="from-green-600"],
  .bg-green-600 {
    background: #16a34a !important;
    background-color: #16a34a !important;
  }
  div[class*="from-sky-400"],
  .bg-blue-500,
  .bg-yellow-400 {
    background: #2563eb !important; /* Darker blue for sky/air to print well */
    background-color: #2563eb !important;
  }
  div[class*="from-teal-500"],
  .bg-purple-500,
  .bg-orange-500,
  .bg-teal-500 {
    background: #7c3aed !important;
    background-color: #7c3aed !important;
  }

  /* 3. Expand overflow containers so all contents print */
  .overflow-y-auto,
  .overflow-x-auto,
  .max-h-\[300px\] {
    max-height: none !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }

  /* 4. Page Break & Print Layout Structure */
  .print-page {
    page-break-after: always;
    break-after: page;
  }
  
  .print-avoid-break {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Force grid-placements to stack linearly on print to avoid layout overlap */
  .grid-cols-2,
  .grid-cols-3,
  .lg\:grid-cols-3,
  .lg\:grid-cols-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  /* Reset some paddings to save vertical space on paper */
  .py-20, .py-32, .mt-32, .mb-16 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }
  
  .space-y-12 > * + *,
  .space-y-16 > * + * {
    margin-top: 15px !important;
  }

  /* Summary cards line-up */
  .grid-cols-1.md\:grid-cols-3.gap-6 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 15px !important;
  }
  
  .grid-cols-1.md\:grid-cols-3.gap-6 > * {
    flex: 1 !important;
    padding: 15px !important;
  }

  /* Planet placement cards styling */
  .grid-cols-1.lg\:grid-cols-2.gap-8 {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .grid-cols-1.lg\:grid-cols-2.gap-8 > * {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 10px !important;
  }

  /* 5. Chart Wheel Premium Print Styling */
  svg radialGradient stop {
    stop-color: #ffffff !important;
  }
  
  svg circle[fill="url(#wheelGrad)"] {
    fill: #ffffff !important;
    stroke: #936f0a !important;
    stroke-width: 2px !important;
  }
  
  svg circle[fill="#2E1A47"] {
    fill: #fafaf9 !important;
    stroke: #dcdcdb !important;
  }
  
  svg circle[fill="#1A1D23"] {
    fill: #ffffff !important;
    stroke: #936f0a !important;
  }
  
  svg text {
    fill: #222222 !important;
    font-weight: 600 !important;
  }
  
  svg line {
    stroke: #bbbbbb !important;
  }
  
  /* Make aspect lines thick and high contrast */
  svg line[stroke*="rgba(239,68,68"] {
    stroke: #dc2626 !important;
    stroke-width: 2.5px !important;
  }
  
  svg line[stroke*="rgba(59,130,246"] {
    stroke: #2563eb !important;
    stroke-width: 2.5px !important;
  }

  /* Set max size for the chart wheel on print so it fits page 1 perfectly alongside summary cards */
  .w-full.max-w-\[800px\].mx-auto.aspect-square {
    max-width: 420px !important;
    margin: 10px auto !important;
    border: 2px solid #e5e7eb !important;
    background: #ffffff !important;
    box-shadow: none !important;
  }

  /* Chart Wheel decorative border removal */
  .w-full.max-w-\[800px\].mx-auto.aspect-square::after {
    display: none !important;
  }

  /* Esma callout styling */
  .bg-gradient-to-br.from-\[\#D4AF37\]\/10.to-transparent {
    border: 3px double #936f0a !important;
    border-radius: 20px !important;
    padding: 30px !important;
    background: #fffcf4 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
}
