/**
 * LGS Puan Hesaplama & Lise Tercih Rehberi - CSS Tasarım Mimarisi
 * Yazı Tipi: Montserrat
 * Geliştirici: TALAT ALTIN
 * Konsept: DNA Eğitim Modern Tasarım Dili
 */

:root {
  --lgs-dark: #0f172a;
  --lgs-dark-soft: #1e293b;
  --lgs-orange: #ff7b09;
  --lgs-orange-hover: #ff5100;
  --lgs-orange-gradient: linear-gradient(135deg, #ff7b09 0%, #ff5100 100%);
  --lgs-orange-light: #fff7ed;
  --lgs-orange-subtle: rgba(255, 123, 9, 0.08);
  
  --lgs-border: #e2e8f0;
  --lgs-line: #f1f5f9;
  --lgs-muted: #64748b;
  --lgs-bg: #f8fafc;
  --lgs-white: #ffffff;
  
  --lgs-green: #10b981;
  --lgs-green-light: #ecfdf5;
  --lgs-blue: #0284c7;
  --lgs-blue-light: #f0f9ff;
  --lgs-purple: #8b5cf6;
  --lgs-purple-light: #f5f3ff;
  
  --lgs-radius-xl: 24px;
  --lgs-radius-lg: 16px;
  --lgs-radius-md: 12px;
  --lgs-radius-sm: 8px;
  
  --lgs-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --lgs-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --lgs-shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}

.lgs-dna-wrapper {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: var(--lgs-dark);
  background: transparent;
  max-width: 1240px;
  margin: 20px auto;
  padding: 0 14px;
  box-sizing: border-box;
  letter-spacing: -0.2px;
}

.lgs-dna-wrapper * {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  font-family: inherit;
}

/* Header Banner */
.lgs-hero-header {
  background: linear-gradient(135deg, #10141f 0%, #1a2233 100%);
  border-radius: var(--lgs-radius-xl);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
  color: var(--lgs-white);
  box-shadow: 0 16px 40px rgba(16, 20, 31, 0.2);
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lgs-hero-header::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 123, 9, 0.35) 0%, rgba(255, 81, 0, 0) 70%);
  pointer-events: none;
}

.lgs-hero-header::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 20%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.lgs-header-content {
  position: relative;
  z-index: 2;
}

.lgs-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 123, 9, 0.16);
  border: 1px solid rgba(255, 123, 9, 0.45);
  color: #ff9f43;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.lgs-header-title {
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 0 0 10px 0;
  color: var(--lgs-white);
}

.lgs-header-title span {
  background: var(--lgs-orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lgs-header-desc {
  font-size: 13.5px;
  color: #94a3b8;
  max-width: 680px;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
}

/* Nav Tabs - Modern 3x2 Grid */
#lgs-calculator-root .lgs-nav-tabs,
.lgs-dna-wrapper .lgs-nav-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  background: var(--lgs-white) !important;
  padding: 10px !important;
  border-radius: 20px !important;
  box-shadow: var(--lgs-shadow-sm) !important;
  border: 1.5px solid var(--lgs-border) !important;
  margin-bottom: 22px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#lgs-calculator-root .lgs-tab-btn,
.lgs-dna-wrapper .lgs-tab-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  background: #f8fafc !important;
  border: 1.5px solid #f1f5f9 !important;
  padding: 12px 6px !important;
  min-height: 64px !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  outline: none !important;
}

#lgs-calculator-root .lgs-tab-btn .tab-icon,
.lgs-dna-wrapper .lgs-tab-btn .tab-icon {
  font-size: 20px !important;
  line-height: 1 !important;
  display: block !important;
}

#lgs-calculator-root .lgs-tab-btn .tab-title,
.lgs-dna-wrapper .lgs-tab-btn .tab-title {
  font-size: 11.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  display: block !important;
  white-space: normal !important;
  word-break: break-word !important;
  color: #334155 !important;
}

#lgs-calculator-root .lgs-tab-btn:hover,
.lgs-dna-wrapper .lgs-tab-btn:hover {
  color: var(--lgs-orange) !important;
  background: var(--lgs-orange-light) !important;
  border-color: #fed7aa !important;
}

#lgs-calculator-root .lgs-tab-btn.active,
.lgs-dna-wrapper .lgs-tab-btn.active {
  background: var(--lgs-orange-gradient) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.35) !important;
}

#lgs-calculator-root .lgs-tab-btn.active .tab-title,
.lgs-dna-wrapper .lgs-tab-btn.active .tab-title {
  color: #ffffff !important;
}

/* Layout Grid */
.lgs-main-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Section Cards */
.lgs-card {
  background: var(--lgs-white);
  border-radius: var(--lgs-radius-xl);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--lgs-border);
  box-shadow: var(--lgs-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.lgs-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--lgs-line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.lgs-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--lgs-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lgs-card-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--lgs-radius-md);
  background: #f1f5f9;
  font-size: 16px;
}

.lgs-card-net-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--lgs-orange);
  background: var(--lgs-orange-light);
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid #fed7aa;
}

/* Test Giriş Satırı */
.lgs-test-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--lgs-radius-md);
  margin-bottom: 8px;
  background: #fafafa;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.lgs-test-item:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.lgs-test-name {
  font-weight: 750;
  font-size: 13.5px;
  color: var(--lgs-dark);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lgs-test-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--lgs-muted);
}

.lgs-inputs-pair {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 145px !important;
  flex-shrink: 0 !important;
}

.lgs-input-box {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  position: static !important;
  width: 50% !important;
}

.lgs-input-box input {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  line-height: 40px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  text-align: center !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  font-family: inherit !important;
  color: #0f172a !important;
  background: #ffffff !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  outline: none !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

.lgs-input-box input::-webkit-outer-spin-button,
.lgs-input-box input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.lgs-input-box input:focus {
  border-color: var(--lgs-orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 123, 9, 0.18) !important;
}

.lgs-input-box.correct input:focus {
  border-color: var(--lgs-green) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
}

.lgs-input-box.wrong input:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.lgs-input-label-tag {
  position: static !important;
  transform: none !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background: #f1f5f9 !important;
  color: var(--lgs-muted) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 3px 0 !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.lgs-input-box.correct .lgs-input-label-tag {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

.lgs-input-box.wrong .lgs-input-label-tag {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

/* Bilgi Kartı */
.lgs-info-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 16px 20px;
}

.lgs-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lgs-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

.lgs-info-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Butonlar */
.lgs-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.lgs-btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lgs-white);
  border: 1.5px solid #cbd5e1;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 750;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--lgs-shadow-sm);
}

.lgs-btn-reset:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

/* SAĞ PANEL: Canlı Sonuç Kartları */
.lgs-sidebar-results {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Canlı Puan Kartı */
.lgs-score-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--lgs-radius-xl);
  padding: 24px;
  color: var(--lgs-white);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.lgs-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lgs-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.5px;
}

.lgs-live-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: lgsPulse 1.5s infinite;
}

@keyframes lgsPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.lgs-puan-display-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.lgs-score-mini {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--lgs-radius-md);
  padding: 12px 10px;
  text-align: center;
}

.lgs-score-mini.primary {
  grid-column: span 3;
  background: rgba(255, 123, 9, 0.15);
  border: 1.5px solid rgba(255, 123, 9, 0.45);
  padding: 16px;
}

.lgs-score-mini .tur-ad {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.lgs-score-mini.primary .tur-ad {
  color: #ff9f43;
  letter-spacing: 0.6px;
  font-size: 11.5px;
}

.lgs-score-mini .puan-sayi {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
}

.lgs-score-mini.primary .puan-sayi {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -1px;
  background: var(--lgs-orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Yüzdelik Dilim ve Sıralama Kartları */
.lgs-ranking-card {
  border-radius: var(--lgs-radius-xl);
  padding: 20px 22px;
  color: var(--lgs-white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lgs-percentile-box {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.lgs-rank-box {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

.lgs-ranking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lgs-ranking-title {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e0e7ff;
}

.lgs-rank-box .lgs-ranking-title {
  color: #d1fae5;
}

.lgs-ranking-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 99px;
  letter-spacing: 0.4px;
}

.lgs-ranking-val {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 4px;
}

.lgs-ranking-sub {
  font-size: 11px;
  opacity: 0.85;
  line-height: 1.4;
}

/* Motivasyon Kartı */
.lgs-motivation-card {
  border-radius: var(--lgs-radius-xl);
  padding: 20px;
  border: 1.5px solid transparent;
  transition: all 0.3s ease;
}

.lgs-motivation-card.status-good {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.lgs-motivation-card.status-neutral {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.lgs-motivation-card.status-need-effort {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.lgs-motivation-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lgs-motivation-emoji {
  font-size: 24px;
}

.lgs-motivation-title {
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}

.lgs-motivation-quote {
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: 8px;
}

.lgs-motivation-advice {
  font-size: 11.5px;
  font-weight: 600;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 8px;
  line-height: 1.5;
}

/* Kazanabileceğin Liseler Listesi */
.lgs-recommendations-card {
  background: var(--lgs-white);
  border-radius: var(--lgs-radius-xl);
  padding: 20px;
  border: 1px solid var(--lgs-border);
  box-shadow: var(--lgs-shadow-sm);
}

.lgs-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lgs-line);
}

.lgs-rec-header h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--lgs-dark);
  margin: 0;
}

.lgs-rec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.lgs-rec-list::-webkit-scrollbar {
  width: 5px;
}
.lgs-rec-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}

.lgs-rec-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: var(--lgs-radius-md);
  border-left: 3.5px solid var(--lgs-orange);
  transition: all 0.2s;
  gap: 10px;
}

.lgs-rec-item:hover {
  background: #f1f5f9;
  transform: translateX(2px);
}

.lgs-rec-item.chance-high {
  border-left-color: var(--lgs-green);
}

.lgs-rec-item.chance-mid {
  border-left-color: var(--lgs-blue);
}

.lgs-rec-item.chance-low {
  border-left-color: var(--lgs-orange);
}

.lgs-rec-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lgs-rec-name {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--lgs-dark);
}

.lgs-rec-details {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--lgs-muted);
}

.lgs-rec-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.lgs-rec-item.chance-high .lgs-rec-badge {
  background: #dcfce7;
  color: #166534;
}

.lgs-rec-item.chance-mid .lgs-rec-badge {
  background: #e0f2fe;
  color: #075985;
}

.lgs-rec-item.chance-low .lgs-rec-badge {
  background: #ffedd5;
  color: #9a3412;
}

/* İmza & Footer */
.lgs-author-footer {
  text-align: center;
  padding: 25px 0 15px;
  color: var(--lgs-muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.lgs-author-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lgs-white);
  border: 1.5px solid #fed7aa;
  padding: 8px 18px;
  border-radius: 999px;
  color: #c2410c;
  box-shadow: 0 4px 14px rgba(255, 123, 9, 0.08);
  max-width: 95%;
  box-sizing: border-box;
  text-align: center;
}

.lgs-author-chip svg {
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  flex-shrink: 0;
  color: var(--lgs-orange);
  display: inline-block;
  vertical-align: middle;
}

.lgs-author-text {
  display: inline;
  font-size: 13px;
  font-weight: 700;
  color: #c2410c;
  line-height: 1.35;
  text-align: center;
  word-break: normal;
  white-space: normal;
}

.lgs-author-text strong {
  font-weight: 900;
  color: #9a3412;
  white-space: nowrap;
}

.lgs-author-footer small {
  font-size: 11px;
  color: #94a3b8;
  display: block;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .lgs-author-chip {
    padding: 7px 14px;
    border-radius: 999px;
    gap: 6px;
  }
  .lgs-author-text {
    font-size: 11.5px;
    line-height: 1.3;
  }
  .lgs-author-chip svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
  }
}

/* ==========================================================================
   MOBİL ÖZEL STİLLER (768px ve altı)
   ========================================================================== */
@media (max-width: 992px) {
  .lgs-main-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .lgs-dna-wrapper {
    margin: 10px auto 25px auto;
    padding: 0 10px;
  }

  .lgs-hero-header {
    padding: 24px 18px;
    border-radius: 18px;
    margin-bottom: 16px;
  }

  .lgs-header-title {
    font-size: 21px;
    margin-bottom: 6px;
  }

  .lgs-header-desc {
    font-size: 12px;
    line-height: 1.5;
  }

  /* MOBİLDE KESİNLİKLE YAN YANA 3'LÜ KARE KARTLAR */
  #lgs-calculator-root .lgs-nav-tabs,
  .lgs-dna-wrapper .lgs-nav-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 8px !important;
    border-radius: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #lgs-calculator-root .lgs-tab-btn,
  .lgs-dna-wrapper .lgs-tab-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 4px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-align: center !important;
    gap: 4px !important;
    min-height: 60px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #lgs-calculator-root .lgs-tab-btn .tab-icon,
  .lgs-dna-wrapper .lgs-tab-btn .tab-icon {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  #lgs-calculator-root .lgs-tab-btn .tab-title,
  .lgs-dna-wrapper .lgs-tab-btn .tab-title {
    white-space: normal !important;
    line-height: 1.15 !important;
    display: block !important;
    font-size: 10.5px !important;
  }

  .lgs-card {
    padding: 18px 14px;
    border-radius: 18px;
    margin-bottom: 15px;
  }

  .lgs-card-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .lgs-card-title {
    font-size: 13.5px;
  }

  .lgs-test-item {
    padding: 10px 10px;
    gap: 10px;
  }

  .lgs-test-name {
    font-size: 12px;
  }

  .lgs-test-sub {
    font-size: 9.5px;
  }

  .lgs-inputs-pair {
    width: 130px !important;
    gap: 6px !important;
  }

  .lgs-input-box input {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    line-height: 38px !important;
    font-size: 16px !important;
    border-radius: 8px !important;
  }

  .lgs-input-label-tag {
    font-size: 9px !important;
    padding: 2px 0 !important;
  }

  .lgs-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  #lgs-calculator-root .lgs-nav-tabs,
  .lgs-dna-wrapper .lgs-nav-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 6px !important;
  }

  #lgs-calculator-root .lgs-tab-btn,
  .lgs-dna-wrapper .lgs-tab-btn {
    padding: 8px 2px !important;
    min-height: 54px !important;
    border-radius: 10px !important;
  }

  #lgs-calculator-root .lgs-tab-btn .tab-icon,
  .lgs-dna-wrapper .lgs-tab-btn .tab-icon {
    font-size: 16px !important;
  }

  #lgs-calculator-root .lgs-tab-btn .tab-title,
  .lgs-dna-wrapper .lgs-tab-btn .tab-title {
    font-size: 10px !important;
    line-height: 1.1 !important;
  }
}
