/* ANKAPARK Analysis Page - Animated Styles */

/* ==================== HERO SECTION ==================== */
.analiz-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 20px;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(220, 38, 38, 0.6);
  border-radius: 50%;
  bottom: -10px;
  animation: particleFloat 5s ease-in-out infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0);
    opacity: 0;
  }
}

.analiz-hero .container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #fca5a5;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.hero-title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-accent {
  color: #dc2626;
  text-shadow: 0 0 40px rgba(220, 38, 38, 0.5);
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px 40px;
  min-width: 180px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 900;
  color: white;
  font-family: 'JetBrains Mono', monospace;
}

.hero-stat-value::before {
  content: '$';
  font-size: 20px;
  opacity: 0.7;
}

.hero-stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

.hero-stat-danger {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.5);
}

.hero-stat-danger .hero-stat-value {
  color: #fca5a5;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  margin: 10px auto 0;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ==================== ANIMATIONS ==================== */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease forwards;
  animation-delay: 0.3s;
}

.animate-slide-up-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUp 1s ease forwards;
  animation-delay: 0.6s;
}

.animate-scale-in {
  opacity: 0;
  transform: scale(0.9);
  animation: scaleIn 1s ease forwards;
  animation-delay: 0.9s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== PRICE SECTION ==================== */
.price-section {
  background: linear-gradient(180deg, #f9fafb 0%, #e5e7eb 100%);
}

.intro-text {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 18px;
  color: #4b5563;
  line-height: 1.8;
}

.price-table-wrapper {
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.price-table th {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  padding: 20px;
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-table td {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 16px;
}

.price-table tbody tr {
  transition: background 0.3s ease;
}

.price-table tbody tr:hover {
  background: #fef2f2;
}

.row-total {
  background: #fef2f2 !important;
  font-weight: 700;
}

.row-total td {
  border-top: 3px solid #dc2626;
}

.diff-negative {
  color: #dc2626;
  font-weight: 700;
}

.row-animate {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
  transition-delay: var(--delay);
}

.visible .row-animate {
  opacity: 1;
  transform: translateX(0);
}

.price-highlight {
  display: flex;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  padding: 30px;
  border-radius: 16px;
  margin-top: 40px;
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.3);
}

.highlight-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.highlight-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}

.highlight-text {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
}

/* ==================== UNITS SECTION ==================== */
.units-section {
  background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
  color: white;
}

.units-overview {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.unit-category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  min-width: 220px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.unit-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.category-red {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}

.category-orange {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.1);
}

.category-yellow {
  border-color: rgba(234, 179, 8, 0.5);
  background: rgba(234, 179, 8, 0.1);
}

.category-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.category-number {
  font-size: 64px;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
}

.category-red .category-number { color: #ef4444; }
.category-orange .category-number { color: #f59e0b; }
.category-yellow .category-number { color: #eab308; }

.category-title {
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-cost {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Units Detail Sections */
.units-detail {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-icon {
  font-size: 36px;
}

.detail-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.unit-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.unit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
  transition-delay: var(--delay);
}

.visible .card-animate {
  opacity: 1;
  transform: translateY(0);
}

.unit-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.unit-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.unit-cost {
  font-size: 20px;
  font-weight: 900;
  color: #fca5a5;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}

.unit-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-never {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.total-cost-box {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-radius: 12px;
  padding: 20px 30px;
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

.total-cost-box strong {
  font-size: 24px;
  font-family: 'JetBrains Mono', monospace;
}

.total-big {
  font-size: 22px;
}

.total-big strong {
  font-size: 32px;
}

/* Dismantled List */
.dismantled-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dismantled-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 16px 24px;
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
  transition: all 0.3s ease;
}

.dismantled-item:hover {
  background: rgba(245, 158, 11, 0.1);
  transform: translateX(10px);
}

.item-animate {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
  transition-delay: var(--delay);
}

.visible .item-animate {
  opacity: 1;
  transform: translateX(0);
}

.item-name {
  font-weight: 600;
}

.item-cost {
  font-family: 'JetBrains Mono', monospace;
  color: #fbbf24;
  font-weight: 700;
}

/* Never Operated Grid */
.never-operated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.big-unit-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(234, 179, 8, 0.05) 100%);
  border: 2px solid rgba(234, 179, 8, 0.3);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.big-unit-card:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 179, 8, 0.6);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.big-unit-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.big-unit-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.big-unit-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.big-unit-cost {
  font-size: 22px;
  font-weight: 900;
  color: #fbbf24;
  font-family: 'JetBrains Mono', monospace;
}

/* ==================== GALLERY SECTION ==================== */
.gallery-section {
  background: #f9fafb;
}

.gallery-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: #4b5563;
  line-height: 1.8;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 40px 16px 16px;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.load-more-btn {
  display: block;
  margin: 40px auto 0;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.load-more-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

.load-more-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

/* ==================== DAMAGE SECTION ==================== */
.damage-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
}

.damage-report {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.damage-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.damage-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.damage-court {
  font-size: 20px;
  font-weight: 700;
}

.damage-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.damage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.damage-item:hover {
  background: rgba(220, 38, 38, 0.1);
  transform: translateX(10px);
}

.damage-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.damage-icon {
  font-size: 24px;
}

.damage-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #fca5a5;
}

.damage-total {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-radius: 16px;
}

.damage-total-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.damage-total-amount {
  font-size: 48px;
  font-weight: 900;
  font-family: 'JetBrains Mono', monospace;
}

.damage-note {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 12px;
}

.damage-warning {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 24px;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.warning-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.warning-text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* ==================== SUMMARY SECTION ==================== */
.summary-section {
  background: linear-gradient(180deg, #f9fafb 0%, white 100%);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.summary-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: #dc2626;
}

.summary-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.summary-value {
  font-size: 36px;
  font-weight: 900;
  color: #dc2626;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 8px;
}

.summary-label {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.summary-desc {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.final-message {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-radius: 20px;
}

.final-message p {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 24px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    align-items: center;
  }

  .hero-stat {
    width: 100%;
    max-width: 300px;
  }

  .price-table th,
  .price-table td {
    padding: 12px;
    font-size: 14px;
  }

  .price-highlight {
    flex-direction: column;
    text-align: center;
  }

  .units-overview {
    flex-direction: column;
    align-items: center;
  }

  .unit-category {
    width: 100%;
    max-width: 300px;
  }

  .units-detail {
    padding: 24px;
  }

  .total-cost-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .dismantled-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .damage-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .damage-total-amount {
    font-size: 32px;
  }

  .damage-warning {
    flex-direction: column;
    text-align: center;
  }
}

/* ==================== MOBILE TABLE ==================== */
@media (max-width: 640px) {
  .price-table thead {
    display: none;
  }

  .price-table tbody tr {
    display: block;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .price-table td {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
  }

  .price-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
  }
}

/* ==================== DETAILED TABLES SECTION ==================== */
.detailed-tables-section {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* Accordion Styles */
.table-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.accordion-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: #dc2626;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
}

.accordion-header.active {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.accordion-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.accordion-title {
  flex: 1;
  font-size: 18px;
}

.accordion-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.accordion-arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 24px;
  background: #fafafa;
  border-top: 1px solid #e5e7eb;
}

.accordion-content.show,
.accordion-header.active + .accordion-content {
  display: block;
}

/* Detail Table Styles */
.detail-table-wrapper {
  overflow-x: auto;
  margin: 0 -12px;
  padding: 0 12px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.detail-table thead {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: white;
}

.detail-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.detail-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.detail-table tbody tr {
  transition: background 0.2s ease;
}

.detail-table tbody tr:hover {
  background: #fef2f2;
}

.detail-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.detail-table tbody tr:nth-child(even):hover {
  background: #fef2f2;
}

.detail-table .number {
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
  white-space: nowrap;
}

.detail-table .highlight-row {
  background: #fef3c7 !important;
}

.detail-table .highlight-row:hover {
  background: #fde68a !important;
}

.detail-table .highlight-cell {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  font-weight: 700;
}

.detail-table .total-row {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
  font-weight: 700;
}

.detail-table .total-row td {
  border-top: 3px solid #dc2626;
  padding: 16px;
}

.detail-table .subtotal-row {
  background: #f3f4f6 !important;
  font-weight: 600;
}

.detail-table .grand-total {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  color: white;
}

.detail-table .grand-total td {
  color: white;
}

.detail-table .grand-total .highlight-cell {
  background: rgba(255, 255, 255, 0.2);
  color: #bbf7d0;
}

/* Summary Table Specific */
.summary-table td:first-child {
  min-width: 200px;
}

.summary-table small {
  display: block;
  color: #6b7280;
  font-weight: 400;
  margin-top: 4px;
}

/* Table Note */
.table-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
  font-size: 15px;
  line-height: 1.6;
}

.table-note .diff-amount {
  color: #dc2626;
  font-size: 18px;
}

/* Responsive Tables */
@media (max-width: 768px) {
  .accordion-header {
    padding: 16px;
    flex-wrap: wrap;
  }

  .accordion-title {
    font-size: 15px;
    width: 100%;
    order: 2;
    margin-top: 8px;
  }

  .accordion-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .detail-table {
    font-size: 12px;
  }

  .detail-table th,
  .detail-table td {
    padding: 10px 12px;
  }

  .detail-table th {
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .detail-table thead {
    display: none;
  }

  .detail-table tbody tr {
    display: block;
    margin-bottom: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  .detail-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    text-align: right;
  }

  .detail-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #374151;
    text-align: left;
    margin-right: 12px;
  }

  .detail-table .total-row td {
    justify-content: center;
  }

  .summary-table td:first-child {
    min-width: auto;
  }
}

/* ==================== PRODUCT GALLERY STYLES ==================== */
.product-info-box {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.supplier-info {
  font-size: 14px;
  line-height: 1.8;
}

.supplier-info strong {
  color: #93c5fd;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #dc2626;
}

.product-card.robot-card {
  border-color: #8b5cf6;
}

.product-card.robot-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.2);
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-image::after {
  content: '🔍 Büyütmek için tıkla';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 30px 10px 10px;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-image::after {
  opacity: 1;
}

.product-details {
  padding: 16px;
}

.product-details h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.product-size {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.product-features {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

.product-price {
  font-size: 14px;
  font-weight: 700;
  color: #059669;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
}

/* Price Comparison Note */
.price-comparison-note {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #f59e0b;
}

.comparison-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row.total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid #f59e0b;
  border-bottom: none;
}

.comparison-label {
  font-weight: 600;
  color: #92400e;
}

.comparison-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 16px;
}

.comparison-value.paid {
  color: #dc2626;
}

.comparison-value.real {
  color: #059669;
}

.comparison-value.diff {
  color: #dc2626;
  font-size: 18px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(220, 38, 38, 0.8);
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
  .product-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }

  .product-image {
    height: 160px;
  }

  .comparison-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ==================== RESPONSIVE HARDENING ==================== */
.hero-badge,
.intro-text,
.gallery-intro,
.warning-text,
.table-note,
.accordion-title,
.product-details h4,
.unit-name,
.big-unit-name {
  overflow-wrap: anywhere;
}

.hero-title,
.section-title,
.detail-title,
.highlight-title {
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.price-table-wrapper,
.detail-table-wrapper {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
  .analiz-hero {
    min-height: min(100svh, 920px);
    padding: 92px 16px 72px;
  }

  .hero-title {
    font-size: clamp(34px, 8vw, 64px);
  }

  .hero-subtitle {
    margin-bottom: 36px;
    font-size: clamp(16px, 2.8vw, 22px);
  }

  .hero-stat {
    min-width: 160px;
    padding: 20px 24px;
  }

  .hero-stat-value {
    font-size: 28px;
  }

  .hero-scroll-indicator {
    bottom: 20px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    margin: 40px 0;
    padding: 38px 16px;
  }

  .accordion-content,
  .damage-report,
  .units-detail,
  .final-message {
    padding: 28px;
  }
}

@media (max-width: 900px) {
  .section-title {
    width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    border-radius: 14px;
    border-top-width: 2px;
    border-bottom-width: 2px;
    text-align: center;
  }

  .units-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .never-operated-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .product-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero-badge {
    max-width: 100%;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 8px 14px;
    margin-bottom: 20px;
  }

  .hero-stats {
    gap: 14px;
  }

  .hero-stat {
    width: 100%;
    max-width: 380px;
    padding: 16px 18px;
  }

  .hero-stat-value {
    font-size: 25px;
  }

  .section-title {
    margin: 30px 0;
    padding: 28px 14px;
    font-size: clamp(22px, 7vw, 32px);
  }

  .price-highlight {
    padding: 20px;
    gap: 14px;
  }

  .highlight-title {
    font-size: 20px;
  }

  .accordion-header {
    padding: 14px;
    gap: 10px;
  }

  .accordion-title {
    font-size: 14px;
    line-height: 1.35;
  }

  .accordion-badge {
    margin-left: auto;
  }

  .detail-table-wrapper,
  .price-table-wrapper {
    margin: 0 -16px;
    padding: 0 16px 4px;
  }

  .summary-card {
    padding: 22px;
  }

  .summary-value {
    font-size: 30px;
  }

  .summary-label {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .analiz-hero {
    min-height: min(100svh, 820px);
    padding: 84px 12px 64px;
  }

  .hero-title {
    font-size: clamp(30px, 10vw, 44px);
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .hero-subtitle br {
    display: none;
  }

  .hero-stat-value::before {
    font-size: 16px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .intro-text,
  .gallery-intro,
  .final-message p {
    font-size: 15px;
    line-height: 1.65;
  }

  .price-highlight {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .highlight-icon {
    font-size: 34px;
  }

  .highlight-title {
    font-size: 18px;
  }

  .highlight-text {
    font-size: 14px;
  }

  .price-table,
  .detail-table {
    min-width: 100%;
  }

  .price-table td,
  .detail-table td {
    gap: 12px;
    align-items: flex-start;
    text-align: right;
  }

  .price-table td.is-empty-cell,
  .detail-table td.is-empty-cell,
  .price-table td:empty,
  .detail-table td:empty {
    display: none;
  }

  .price-table td::before,
  .detail-table td::before {
    min-width: 42%;
    font-size: 12px;
    text-align: left;
    color: #6b7280;
  }

  .detail-table .total-row td {
    justify-content: space-between;
  }

  .detail-table .total-row td,
  .detail-table .subtotal-row td,
  .detail-table .grand-total td {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .detail-table .total-row td::before,
  .detail-table .subtotal-row td::before,
  .detail-table .grand-total td::before {
    color: rgba(255, 255, 255, 0.86);
  }

  .detail-table .total-row td strong,
  .detail-table .subtotal-row td strong,
  .detail-table .grand-total td strong,
  .detail-table .grand-total .highlight-cell,
  .detail-table .total-row .highlight-cell,
  .detail-table .subtotal-row .highlight-cell {
    color: #ffffff;
  }

  .detail-table .grand-total .highlight-cell,
  .detail-table .total-row .highlight-cell,
  .detail-table .subtotal-row .highlight-cell {
    background: rgba(255, 255, 255, 0.12);
  }

  .summary-table td:first-child {
    font-size: 12px;
    line-height: 1.4;
  }

  .summary-table small {
    font-size: 11px;
  }

  .product-gallery-grid,
  .units-grid,
  .never-operated-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 190px;
  }

  .big-unit-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .big-unit-icon {
    font-size: 38px;
  }

  .dismantled-item {
    align-items: flex-start;
    text-align: left;
    padding: 14px 16px;
  }

  .total-cost-box {
    padding: 16px;
    font-size: 16px;
  }

  .total-cost-box strong {
    font-size: 20px;
  }

  .total-big {
    font-size: 18px;
  }

  .total-big strong {
    font-size: 24px;
  }

  .damage-report {
    padding: 18px;
  }

  .damage-item {
    padding: 14px;
  }

  .damage-total {
    padding: 20px 14px;
  }

  .damage-total-amount {
    font-size: 26px;
  }

  .damage-warning {
    padding: 16px;
  }

  .table-note {
    padding: 14px;
    font-size: 14px;
  }

  .cta-button {
    width: 100%;
    text-align: center;
    padding: 14px 22px;
    font-size: 16px;
  }

  .lightbox {
    padding: 10px;
  }

  .lightbox img {
    max-width: 95%;
    max-height: 82vh;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 12px;
  }

  .section-title {
    font-size: clamp(20px, 7vw, 28px);
    padding: 20px 12px;
    margin: 24px 0;
  }

  .accordion-badge {
    width: 100%;
    text-align: center;
    margin-top: 4px;
  }

  .accordion-arrow {
    margin-left: auto;
  }
}
