/* ==========================================================================
   KAMU İHALE KARARLARI VE ONLİNE DANIŞMANLIK PLATFORMU
   Kurumsal Beyaz & Lacivert Tasarım Sistemi (CSS)
   Modal Pencereler, Toast Bildirimler, PDF Önizleme ve Ödeme Ekranı
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #EFF6FF;
  
  --navy-dark: #0F172A;         /* Koyu Lacivert / Slate */
  --navy-deep: #1E3A8A;         /* Derin Kurumsal Lacivert */
  --navy-hover: #172554;
  --blue-primary: #1E40AF;      /* Asil Kurumsal Mavi */
  --blue-vibrant: #2563EB;      /* Canlı Mavi */
  --blue-hover: #1D4ED8;        /* Hover Mavi */
  --blue-light: #EFF6FF;        /* Açık Mavi Zemin */
  --blue-border: #BFDBFE;       /* İnce Mavi Kenarlık */
  --blue-glow: rgba(37, 99, 235, 0.16);

  --turquoise-primary: #0284C7; /* Turkuaz / Cyan Vurgu */
  --turquoise-light: #E0F2FE;
  --turquoise-border: #7DD3FC;

  --orange-action: #EA580C;     /* Önemli Butonlar / Turuncu Vurgu */
  --orange-hover: #C2410C;
  --orange-light: #FFF7ED;
  --orange-border: #FDBA74;

  --amber-action: #D97706;      /* Sarı / Amber Vurgu */
  --red-action: #DC2626;        /* Kırmızı Uyarı */

  --text-primary: #0F172A;      /* Koyu Lacivert / Grafit Metin */
  --text-secondary: #475569;    /* Açıklama Metni */
  --text-tertiary: #64748B;     /* İkincil Açıklama */
  --text-inverted: #FFFFFF;

  --border-hairline: #E2E8F0;
  --border-subtle: #DBEAFE;
  --border-focus: #2563EB;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06), 0 1px 4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 14px 36px rgba(37, 99, 235, 0.09), 0 2px 8px rgba(15, 23, 42, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy-dark);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

a {
  color: var(--navy-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--navy-hover);
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--blue-primary);
  color: #FFFFFF;
  border-color: var(--blue-primary);
}

.btn-primary:hover {
  background-color: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.28);
}

.btn-orange {
  background-color: var(--orange-action);
  color: #FFFFFF;
  border-color: var(--orange-action);
}

.btn-orange:hover {
  background-color: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.32);
}

.btn-turquoise {
  background-color: var(--turquoise-primary);
  color: #FFFFFF;
  border-color: var(--turquoise-primary);
}

.btn-turquoise:hover {
  background-color: #0369A1;
  border-color: #0369A1;
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--blue-vibrant);
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--blue-light);
  color: var(--navy-deep);
  border: 1px solid var(--blue-border);
}

.btn-secondary:hover {
  background-color: #DBEAFE;
  border-color: #93C5FD;
}

.btn-outline {
  background-color: transparent;
  color: var(--blue-primary);
  border: 1.5px solid var(--blue-primary);
}

.btn-outline:hover {
  background-color: var(--blue-light);
}

.btn-danger {
  background-color: #DC2626;
  color: #FFFFFF;
}

.btn-danger:hover {
  background-color: #B91C1C;
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* Header */
.corporate-header, .apple-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-shield-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #1E40AF 0%, #0284C7 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.25);
}

.logo-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.logo-title-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}
.logo-title-main span {
  color: #1E40AF;
}
.logo-title-main .domain-ext {
  font-size: 0.78rem;
  color: #2563EB;
  font-weight: 700;
  margin-left: 2px;
}

.logo-sub-desc {
  font-size: 0.7rem;
  color: #64748B;
  font-weight: 500;
  white-space: nowrap;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-guide-link {
  color: #1E40AF;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-guide-link:hover {
  background: #DBEAFE;
  border-color: #93C5FD;
}

.btn-outline-nav {
  border-radius: 9999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.84rem;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  background: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
}
.btn-outline-nav:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}

.btn-primary-nav {
  background-color: #2563EB;
  border: 1.5px solid #2563EB;
  color: #FFFFFF;
  border-radius: 9999px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all 0.2s;
}
.btn-primary-nav:hover {
  background-color: #1D4ED8;
  border-color: #1D4ED8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--blue-vibrant);
}

.logo-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  display: block;
  margin-top: -2px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--blue-primary);
  font-weight: 600;
}

/* ==========================================================================
   KURUMSAL MAVİ / TURKUAZ HERO, ARŞİV VE ARAMA STİLLERİ
   ========================================================================== */

.openlicense-hero {
  background: radial-gradient(circle at 50% 10%, rgba(191, 219, 254, 0.5) 0%, rgba(239, 246, 255, 0.7) 45%, #FFFFFF 85%);
  padding: 70px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E40AF;
  margin-bottom: 20px;
}

.hero-title-openlicense {
  font-size: 3.1rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 920px;
  margin: 0 auto 16px;
}

.hero-title-openlicense .highlight-blue {
  color: var(--blue-primary);
}

.hero-title-openlicense .highlight-green {
  color: var(--blue-primary);
}

.hero-subtitle-openlicense {
  font-size: 1.1rem;
  color: #475569;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.pill-search-box-wrapper {
  max-width: 680px;
  margin: 0 auto 16px;
  background: #FFFFFF;
  border-radius: 9999px;
  border: 1.5px solid #BFDBFE;
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.09);
  display: flex;
  align-items: center;
  padding: 6px 8px 6px 24px;
  transition: all 0.2s ease;
}

.pill-search-box-wrapper:focus-within {
  border-color: #2563EB;
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.2);
}

.pill-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: #0F172A;
  background: transparent;
  padding: 10px 0;
}

.pill-search-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange-action);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pill-search-btn:hover {
  background: var(--orange-hover);
  transform: scale(1.05);
}

/* 6-Kart Rankings / Emsal Kararlar Grid */
.rankings-section {
  max-width: 1200px;
  margin: 50px auto 80px;
  padding: 0 24px;
  text-align: center;
}

.rankings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0 36px;
}

.ranking-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(6, 25, 23, 0.03);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.ranking-card:hover {
  transform: translateY(-4px);
  border-color: #BFDBFE;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.1);
}

.ranking-logo-container {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.star-rating-row {
  display: flex;
  gap: 3px;
  color: #F59E0B;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.ranking-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
  line-height: 1.35;
}

.ranking-card-sub {
  font-size: 0.8rem;
  color: #64748B;
  margin-bottom: 14px;
}

.ranking-tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.ranking-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  font-weight: 600;
}

/* Doğrulama Çağrısı Kutusu (Verification Callout) */
.verification-callout-section {
  max-width: 960px;
  margin: 0 auto 80px;
  padding: 0 24px;
  text-align: center;
}

.verification-callout-card {
  background: #FFFFFF;
  border: 1.5px solid #BFDBFE;
  border-radius: 24px;
  padding: 48px 36px;
  box-shadow: 0 10px 40px rgba(30, 64, 175, 0.08);
}

/* Derin Kurumsal Lacivert Footer */
.forest-dark-footer {
  background-color: var(--forest-footer);
  color: #CBD5E1;
  padding: 70px 24px 30px;
  margin-top: auto;
  border-top: 1px solid #1E293B;
}

.forest-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 50px;
}

.forest-footer-col h5 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.forest-footer-col ul {
  list-style: none;
}

.forest-footer-col ul li {
  margin-bottom: 10px;
}

.forest-footer-col ul li a {
  color: #94A3B8;
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.forest-footer-col ul li a:hover {
  color: #34D399;
}

.forest-footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hukuki Belge / Sözleşme Görüntüleme */
.legal-document-view {
  font-family: 'Inter', sans-serif;
  color: #1E293B;
  line-height: 1.65;
  text-align: justify;
}

.contract-article {
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.contract-article h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-ticker-bar {
  background-color: var(--navy-dark);
  color: #E2E8F0;
  padding: 8px 24px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
}

/* Kartlar */
.card {
  background: #FFFFFF;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
}

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

/* Tablolar */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  padding: 12px 16px;
  background-color: #F8FAFC;
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-hairline);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--navy-dark);
}

.data-table tr:hover {
  background-color: #F8FAFC;
}

/* Rozetler */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-navy { background-color: var(--navy-light); color: var(--navy-deep); }
.badge-success { background-color: #DCFCE7; color: #166534; }
.badge-danger { background-color: #FEE2E2; color: #991B1B; }
.badge-warning { background-color: #FEF3C7; color: #92400E; }
.badge-gray { background-color: #F1F5F9; color: #475569; }

/* Form Elemanları */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--navy-dark);
  background-color: #FFFFFF;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--navy-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

/* Admin Dikey Sol Menü Düzeni */
.admin-layout-container {
  display: flex;
  min-height: calc(100vh - 64px);
  background-color: #F8FAFC;
  max-width: 100vw;
  overflow-x: hidden;
}

.admin-sidebar {
  width: 290px;
  background-color: var(--navy-dark);
  color: #FFFFFF;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1E293B;
}

.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid #1E293B;
}

.admin-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: #94A3B8;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background-color: #1E293B;
  color: #FFFFFF;
}

.admin-nav-item.active {
  background-color: var(--navy-deep);
  color: #FFFFFF;
  font-weight: 600;
}

.admin-main-content {
  flex: 1;
  padding: 24px 28px;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   PROFESYONEL TOAST VE MODAL DİYALOG SİSTEMİ (BROWSER ALERT YERİNE)
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 440px;
  border-left: 5px solid var(--navy-deep);
  animation: slideInRight 0.25s ease;
}

.toast.toast-success { border-left-color: #16A34A; }
.toast.toast-error { border-left-color: #DC2626; }
.toast.toast-info { border-left-color: var(--navy-deep); }

.toast-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-dark);
}

.toast-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal Arka Plan & Pencere */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 650px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  background: #F8FAFC;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   GERÇEKÇİ RESMİ FORMATLI PDF İNCELEME NOTU BELGE ÖNİZLEMESİ
   ========================================================================== */

.pdf-paper-preview {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  padding: 36px 40px;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1E293B;
  line-height: 1.6;
}

.pdf-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-size: 2.8rem;
  color: rgba(220, 38, 38, 0.08);
  font-weight: 900;
  letter-spacing: 0.1em;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.pdf-header-seal {
  text-align: center;
  border-bottom: 2px double #0F172A;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.delicate-seal-container,
.gold-badge-container {
  display: inline-block;
  text-align: center;
  user-select: none;
  transition: transform 0.2s ease;
}
.gold-badge-container:hover {
  transform: scale(1.04);
}

/* Chat */
.chat-message-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  width: 100%;
}
.chat-message-row.align-right { align-items: flex-end; }
.chat-message-row.align-left { align-items: flex-start; }

.chat-bubble {
  max-width: 78%;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-bubble.sent {
  background-color: var(--navy-deep);
  color: #FFFFFF;
  border-bottom-right-radius: 2px;
}

.chat-bubble.received {
  background-color: #F1F5F9;
  color: var(--navy-dark);
  border: 1px solid var(--border-hairline);
  border-bottom-left-radius: 2px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.apple-footer {
  margin-top: auto;
  background-color: #F8FAFC;
  border-top: 1px solid var(--border-hairline);
  padding: 28px 24px;
  font-size: 0.8rem;
  color: #64748B;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 900px) {
  .admin-layout-container { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RESMİ A4 BELGE YAZDIRMA (PRINT MEDIA) KURALLARI
   ========================================================================== */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  @page {
    size: A4 portrait;
    margin: 10mm 15mm;
  }
  body * {
    visibility: hidden !important;
  }
  #printablePdfPaper, #printablePdfPaper * {
    visibility: visible !important;
  }
  #printablePdfPaper {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12mm 15mm !important;
    box-shadow: none !important;
    border: none !important;
    background: #FFFFFF !important;
    font-size: 11pt !important;
  }
  .modal-backdrop, .modal-window {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .modal-header, .modal-footer, header, footer, .btn, .status-ticker-bar, .toast-container {
    display: none !important;
  }
}

/* ==========================================================================
   OPENLICENSE ESİNTİLİ TASARIM SİSTEMİ & ARAMA ANİMASYONU
   ========================================================================== */

/* Hero Alanı ve Luminous Nane Radyal Işıma */
.openlicense-hero {
  position: relative;
  padding: 60px 24px 50px;
  text-align: center;
  background: radial-gradient(circle at 50% 25%, rgba(209, 250, 229, 0.45) 0%, rgba(240, 253, 244, 0.3) 45%, #FFFFFF 85%);
  overflow: hidden;
}

/* Büyük Saydam Arka Plan Filigranı (Görseldeki Faint Background Text) */
.hero-bg-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8.5rem;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.38);
  letter-spacing: 0.12em;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  z-index: 0;
}

/* Yüzen Dekoratif İkonlar (Görseldeki Mini İkonlar) */
.floating-decor-icon {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.85;
  animation: gentleFloat 4s ease-in-out infinite alternate;
}
@keyframes gentleFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(4deg); }
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
  border-radius: 9999px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1E40AF;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.hero-title-openlicense {
  font-size: 2.9rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.03em;
  line-height: 1.18;
  max-width: 820px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}
.hero-title-openlicense .highlight-green,
.hero-title-openlicense .highlight-blue {
  color: var(--blue-primary);
  background: linear-gradient(135deg, #1E40AF 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-openlicense {
  font-size: 1.1rem;
  color: #64748B;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Oval Pill Arama Kutusu (OpenLicense Tarzı) */
.pill-search-box-wrapper {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 9999px;
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  padding: 6px 8px 6px 26px;
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  transition: all 0.25s ease;
}
.pill-search-box-wrapper:focus-within {
  border-color: #2563EB;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.22);
}

.pill-search-input {
  border: none;
  outline: none;
  font-size: 1.02rem;
  color: #0F172A;
  background: transparent;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 14px;
  font-family: inherit;
}
.pill-search-input::placeholder {
  color: #94A3B8;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-hover-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 20px;
  right: 20px;
  background: #0F172A;
  color: #F8FAFC;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  pointer-events: none;
  word-break: break-word;
}
.search-hover-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 32px;
  width: 12px;
  height: 12px;
  background: #0F172A;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
}

.pill-search-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--orange-action);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s ease, transform 0.18s ease;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}
.pill-search-btn:hover {
  background-color: var(--orange-hover);
  transform: scale(1.05);
}

/* ==========================================================================
   İZOLE ARAMA EKRANI & SİNEMATİK YARI SAYDAM ARAMA ANİMASYONU
   ========================================================================== */

.search-active-container {
  display: none;
  max-width: 960px;
  margin: 20px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.cinematic-search-modal-box {
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(30, 64, 175, 0.12);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Havada Uçuşan Yarı Saydam KİK Belgeleri */
.flying-docs-stage {
  position: relative;
  height: 240px;
  width: 100%;
  max-width: 540px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Translucent Dossier / Dosya Çevirme Animasyonu */
.dossier-folder {
  width: 160px;
  height: 190px;
  background: rgba(239, 246, 255, 0.9);
  border: 2px solid #2563EB;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  z-index: 4;
}

.dossier-label {
  background: #1E40AF;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.flipping-page {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed #BFDBFE;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transform-origin: left center;
  animation: flipDossierPage 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 6px;
}

@keyframes flipDossierPage {
  0% { transform: rotateY(0deg); opacity: 0.95; }
  50% { transform: rotateY(-110deg); opacity: 0.5; }
  100% { transform: rotateY(0deg); opacity: 0.95; }
}

.page-text-line {
  height: 5px;
  background: #E2E8F0;
  border-radius: 3px;
  width: 100%;
}
.page-text-line.short { width: 65%; background: #93C5FD; }

/* Havada Uçan Saydam Karar Sayfaları */
.floating-sheet {
  position: absolute;
  width: 90px;
  height: 120px;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  padding: 8px;
  backdrop-filter: blur(4px);
}
.sheet-1 {
  top: 10px;
  left: 30px;
  animation: floatSheet1 3s ease-in-out infinite alternate;
  transform: rotate(-12deg);
}
.sheet-2 {
  bottom: 15px;
  right: 40px;
  animation: floatSheet2 3.5s ease-in-out infinite alternate;
  transform: rotate(14deg);
}
.sheet-3 {
  top: 25px;
  right: 60px;
  animation: floatSheet3 2.8s ease-in-out infinite alternate;
  transform: rotate(-6deg);
}

@keyframes floatSheet1 {
  0% { transform: translateY(0) rotate(-12deg); opacity: 0.75; }
  100% { transform: translateY(-18px) rotate(-18deg); opacity: 0.95; }
}
@keyframes floatSheet2 {
  0% { transform: translateY(0) rotate(14deg); opacity: 0.75; }
  100% { transform: translateY(-22px) rotate(8deg); opacity: 0.95; }
}
@keyframes floatSheet3 {
  0% { transform: translateY(0) rotate(-6deg); opacity: 0.7; }
  100% { transform: translateY(-14px) rotate(-2deg); opacity: 0.9; }
}

/* Yarı Saydam İnceleme Büyüteci ve Lazer Çizgisi */
.inspecting-glass-beam {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 3px solid #2563EB;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.14);
  backdrop-filter: blur(2px);
  z-index: 6;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
  animation: inspectScan 2.4s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes inspectScan {
  0% { transform: translate(-70px, -40px) scale(0.95); }
  50% { transform: translate(60px, 10px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(1); }
}

/* Dinamik Karar Kodu Ticker'ı */
.live-decision-ticker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 9999px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1E40AF;
  margin-bottom: 16px;
}

/* Durum Başlığı */
.search-anim-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 8px;
}
.search-anim-step {
  font-size: 0.95rem;
  color: #64748B;
  max-width: 520px;
  margin: 0 auto;
}

/* ==========================================================================
   CEVAP ALANI: 1. CÜMLE & BUZLU (BLUR) YILLIK LİSANS PAYWALL KARTI
   ========================================================================== */

.single-sentence-answer-box {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-top: 5px solid #1E40AF;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.09);
  overflow: hidden;
  text-align: left;
  margin: 24px auto;
  max-width: 1080px;
}

.answer-header-band {
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
  border-bottom: 1px solid #DBEAFE;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.first-sentence-highlight {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.65;
  padding: 24px 28px;
  background: #FFFFFF;
  border-left: 5px solid #DC2626;
  border-bottom: 1px solid #F1F5F9;
}

/* Buzlu Kısım ve Üzerindeki Dönüşüm Kartı */
.blurred-deep-analysis-wrapper {
  position: relative;
  padding: 28px;
  background: #F8FAFC;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blurred-text-preview {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
  opacity: 0.55;
  color: #334155;
  line-height: 1.7;
}

.paywall-floating-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 620px;
  background: rgba(255, 255, 255, 0.98);
  border: 2px solid #2563EB;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.22);
  padding: 32px 28px;
  text-align: center;
  z-index: 5;
  backdrop-filter: blur(12px);
}

/* ==========================================================================
   RANKINGS (2x3 GRID) & OPENLICENSE ELEMANLARI
   ========================================================================== */

.rankings-section {
  padding: 80px 24px 70px;
  text-align: center;
  background: #FFFFFF;
  position: relative;
}

.rankings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1140px;
  margin: 36px auto 44px;
}

/* 3 Sütunlu Canlı Bilgi Masası: Kararlar | Mevzuat | Duyurular */
.rankings-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1160px;
  margin: 36px auto 44px;
  text-align: left;
}

.three-col-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.three-col-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.1);
  border-color: #BFDBFE;
}

.three-col-header {
  padding: 18px 22px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.three-col-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.three-col-list {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.item-entry-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.18s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.item-entry-card:hover {
  background: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
  transform: translateX(2px);
}

.item-entry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: #64748B;
}

.item-entry-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
}

.item-entry-desc {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.45;
}

.three-col-footer {
  padding: 12px 18px;
  background: #FAFDFB;
  border-top: 1px solid #F1F5F9;
  text-align: center;
}

/* ==========================================================================
   MINIMAL VE DİNGİN KARAR, MEVZUAT & DUYURU SATIRLARI (CLOUD-WHITE STYLE)
   0 Kaos, 0 Gürültü, Tamamen Beyaz, Sakin ve Dingin Atmosfer
   ========================================================================== */
.minimal-clean-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.minimal-clean-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  border-color: #CBD5E1;
}

.minimal-clean-header {
  padding: 18px 20px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.minimal-clean-header h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  letter-spacing: -0.01em;
}

.minimal-clean-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.minimal-clean-row {
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.minimal-clean-row:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateX(2px);
}

.minimal-row-content {
  flex: 1;
  min-width: 0;
}
.minimal-row-meta {
  font-size: 0.74rem;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.minimal-row-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

/* Standart Tek Tip Durum Rozetleri (Aynı Boyut ve Tipte) */
.minimal-status-pill {
  width: 96px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: -0.01em;
}
/* Olumlu: Yeşil */
.status-pill-positive {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}
/* Olumsuz: Kırmızı */
.status-pill-negative {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}
/* Arasında / İnceleme: Sarı/Kehribar */
.status-pill-neutral {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.minimal-clean-footer {
  padding: 12px 18px;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
  text-align: center;
}
.minimal-clean-footer a {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748B;
  text-decoration: none;
  transition: color 0.15s;
}
.minimal-clean-footer a:hover {
  color: #0F172A;
}

.ranking-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ranking-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30, 64, 175, 0.1);
  border-color: #BFDBFE;
}

.ranking-logo-container {
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid #F8FAFC;
  border-radius: 10px;
  background: #F8FAFC;
}

.star-rating-row {
  color: #F59E0B;
  font-size: 1.1rem;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.ranking-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 4px;
}

.ranking-card-sub {
  font-size: 0.82rem;
  color: #64748B;
  margin-bottom: 14px;
}

.ranking-tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.ranking-tag {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  color: #475569;
  font-weight: 500;
}

/* Verification Callout */
.verification-callout-section {
  padding: 60px 24px 80px;
  text-align: center;
  background: #FFFFFF;
}

.verification-callout-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

/* Kurumsal Koyu Lacivert Footer (#0F172A) */
.forest-dark-footer,
.corporate-navy-footer {
  background-color: #0F172A;
  color: #CBD5E1;
  padding: 60px 24px 28px;
  margin-top: auto;
}

.forest-footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1.3fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forest-footer-col h5 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.forest-footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forest-footer-col ul li a {
  color: #94A3B8;
  font-size: 0.85rem;
  transition: color 0.18s ease;
}
.forest-footer-col ul li a:hover {
  color: #38BDF8;
}

.forest-footer-bottom {
  max-width: 1140px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #64748B;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .rankings-grid { grid-template-columns: 1fr; }
  .forest-footer-container { grid-template-columns: 1fr; }
  .hero-title-openlicense { font-size: 2.1rem; }
}

/* ==========================================================================
   RESMÎ KARAR & MEVZUAT DETAY MODALLARI İÇİN TASARIM
   ========================================================================== */
.public-content-box {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.public-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.public-meta-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 14px;
}

.public-meta-label {
  font-size: 0.72rem;
  color: #64748B;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.public-meta-val {
  font-size: 0.95rem;
  color: #0F172A;
  font-weight: 700;
}

.structured-chunk-card {
  background: #FFFFFF;
  border-left: 4px solid #1E40AF;
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-top: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.structured-chunk-card.iddia {
  border-left-color: #2563EB;
}
.structured-chunk-card.savunma {
  border-left-color: #F59E0B;
}
.structured-chunk-card.gerekce {
  border-left-color: #0284C7;
}
.structured-chunk-card.hukum {
  border-left-color: #7C3AED;
  background: #FDFBFF;
}

.archive-entry-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.archive-entry-card:hover {
  border-color: #2563EB;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

/* ==========================================================================
   DANIŞMAN MASASI & RANDEVU YÖNETİMİ DÜZENİ (GENİŞ, ORTALI VE DİKEY SÜTUNLU)
   ========================================================================== */
.panel-container {
  width: 100%;
  max-width: 1640px;
  margin: 20px auto;
  padding: 0 24px;
}

.consultant-grid-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1260px) {
  .consultant-grid-layout {
    grid-template-columns: 1fr;
  }
}

.consultant-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.consultant-metric-badge {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.slot-manage-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.slot-manage-card.available {
  border-color: #BFDBFE;
  background: #EFF6FF;
}

.slot-manage-card.blocked {
  border-color: #FECACA;
  background: #FEF2F2;
}

.pending-request-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #F59E0B;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.pending-request-card.approved {
  border-left-color: #2563EB;
}

.pending-request-card.rejected {
  border-left-color: #EF4444;
  opacity: 0.7;
}


/* =========================================================================
   CANLI GÖRÜŞME ODASI – PRO CHAT STİLLERİ
   ========================================================================= */

/* Oturum Üst Aksiyonlar */
.session-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.session-end-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid #FECACA;
  background: #FEF2F2;
  color: #DC2626;
  cursor: pointer;
  transition: all 0.2s ease;
}
.session-end-btn:hover {
  background: #FEE2E2;
  border-color: #EF4444;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid #FDBA74;
  background: #FFF7ED;
  color: #C2410C;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pdf-download-btn:hover {
  background: #FFEDD5;
  border-color: #FB923C;
  color: #9A3412;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.18);
}

/* Chat Mesaj Satırları ve Balonları */
.chat-message-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  animation: fadeInMsg 0.2s ease;
}
.chat-message-row.align-right {
  align-items: flex-end;
}
.chat-message-row.align-left {
  align-items: flex-start;
}
@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-sender-info {
  font-size: 0.74rem;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 4px;
}
.chat-bubble,
.chat-bubble-received,
.chat-bubble-sent {
  max-width: 78%;
  padding: 13px 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: break-word;
}
.chat-bubble-sent,
.chat-bubble.sent {
  background: #1E3A8A !important;
  color: #FFFFFF !important;
  border-radius: 18px 18px 4px 18px !important;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.18) !important;
}
.chat-bubble-received,
.chat-bubble.received {
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #0F172A !important;
  border-radius: 18px 18px 18px 4px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

/* @ Etiket Dropdown */
.at-mention-wrapper {
  position: relative;
  flex: 1;
}

.at-mention-dropdown {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 420px;
  max-height: 320px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
  z-index: 500;
  padding: 8px;
}
.at-mention-dropdown.active {
  display: block;
  animation: atDropIn 0.2s ease;
}

@keyframes atDropIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.at-mention-dropdown .at-section-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 12px 4px;
}

.at-mention-dropdown .at-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.85rem;
  color: #0F172A;
}
.at-mention-dropdown .at-item:hover {
  background: #EFF6FF;
}
.at-mention-dropdown .at-item .at-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.at-mention-dropdown .at-item .at-label {
  font-weight: 600;
  line-height: 1.3;
}
.at-mention-dropdown .at-item .at-desc {
  font-size: 0.74rem;
  color: #64748B;
  font-weight: 400;
}

/* Tıklanabilir Yasal Etiket Pill (mesaj balonları içinde) */
.legal-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(37, 99, 235, 0.15);
  color: #1E40AF;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.legal-tag:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: #2563EB;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.18);
}

/* Beyaz arka planlı balonlardaki legal tag */
.chat-bubble-received .legal-tag,
.chat-bubble.received .legal-tag {
  background: rgba(37, 99, 235, 0.12);
}

/* Koyu arka planlı balonlardaki legal tag */
.chat-bubble-sent .legal-tag,
.chat-bubble.sent .legal-tag {
  background: rgba(255, 255, 255, 0.2);
  color: #BFDBFE;
  border-color: rgba(255, 255, 255, 0.3);
}
.chat-bubble-sent .legal-tag:hover,
.chat-bubble.sent .legal-tag:hover {
  background: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

/* Yasal Referans Detay Modalı */
.legal-ref-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.legal-ref-modal-backdrop.active {
  display: flex;
}
.legal-ref-modal {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 720px;
  width: 95%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.3);
  animation: modalPop 0.25s ease;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
.legal-ref-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0F172A;
  color: #FFFFFF;
  border-radius: 20px 20px 0 0;
}
.legal-ref-modal-body {
  padding: 24px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #334155;
}

/* Chat Oturum Sonlandırıldı Overlay */
.session-ended-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  gap: 16px;
  border-radius: 20px;
}
.session-ended-overlay .ended-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #EFF6FF;
  border: 2px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* =========================================================================
   FİRMA PROFİL & HESAP YÖNETİMİ ÇEKMECESİ (SLIDE-OVER DRAWER)
   ========================================================================= */
.profile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.profile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.profile-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.15);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.profile-drawer.active {
  right: 0;
}

.profile-drawer-header {
  padding: 20px 24px;
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile-drawer-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
}
.profile-drawer-footer {
  padding: 16px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* =========================================================================
   YÜZEN CANLI GÖRÜŞME WIDGETI (SAĞ ALTTAN YÜZEN RANDEVU KARTI)
   ========================================================================= */
.floating-appointment-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  background: #FFFFFF;
  border: 2px solid #2563EB;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.22);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: floatIn 0.35s ease-out;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 390px;
}
.floating-appointment-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.28);
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.floating-widget-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10B981;
  position: relative;
  flex-shrink: 0;
}
.floating-widget-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: pulse 1.5s infinite;
}

/* =========================================================================
   DANIŞMAN ÇOKLU GÖRÜŞME ODASI SEKME SATIRI (MULTI-SESSION TABS)
   ========================================================================= */
.consultant-session-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #F1F5F9;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow-x: auto;
  border: 1px solid #E2E8F0;
}

.session-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.session-tab-item:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}
.session-tab-item.active {
  background: #1E3A8A;
  color: #FFFFFF;
  border-color: #1E3A8A;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
}
.session-tab-item .session-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.session-tab-item.active .session-status-dot {
  background: #34D399;
  box-shadow: 0 0 6px #34D399;
}
.session-tab-item:not(.active) .session-status-dot {
  background: #94A3B8;
}
.session-tab-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: transparent;
  border: 1.5px dashed #94A3B8;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.session-tab-add-btn:hover {
  background: #E2E8F0;
  border-color: #64748B;
  color: #0F172A;
}
.session-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.72rem;
  margin-left: 6px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  transition: all 0.2s ease;
}
.session-tab-close:hover {
  background: #EF4444;
  color: #FFFFFF;
}
.session-tab-item.active .session-tab-close {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}
.session-tab-item.active .session-tab-close:hover {
  background: #DC2626;
  color: #FFFFFF;
}

.session-notice-alert {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  animation: fadeIn 0.3s ease;
}
.session-notice-alert.red {
  background: #FEF2F2;
  border: 1.5px solid #FECACA;
  color: #991B1B;
}
.session-notice-alert.blue {
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  color: #1E40AF;
}
.session-notice-alert.yellow {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  color: #92400E;
}

/* Sol Dikey Sütun Firma Bilgi Kutucukları */
.firm-dossier-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
  transition: all 0.2s ease;
}
.firm-dossier-card:hover {
  border-color: #BFDBFE;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}
.firm-dossier-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1E40AF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #E2E8F0;
}

/* =========================================================================
   NATIVE-APP GRADE MOBILE RESPONSIVE ENGINE (ALL SCREENS & VIEWPORTS)
   Designed for smartphone displays (360px - 480px, including 6.7" phones)
   ========================================================================= */

/* 1. Global Viewport & Anti-Overflow Armor */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

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

/* Stop iOS Safari from zooming in on input focus */
input, select, textarea {
  font-size: 16px !important;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 14px;
}

/* Touch-Friendly Tap Targets */
button, .btn, .cockpit-nav-pill, .admin-nav-item, .ranking-tag {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Desktop Navbar User Pill & Initial Avatar */
.navbar-user-pill {
  cursor: pointer;
  background: #FFFFFF;
  border: 1.5px solid #BFDBFE;
  border-radius: 9999px;
  padding: 4px 14px 4px 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.06);
}
.navbar-user-pill:hover {
  border-color: #2563EB;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.user-avatar-initial {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #1E40AF;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

/* =========================================================================
   TABLET & MOBILE BREAKPOINT (<= 860px)
   ========================================================================= */
@media screen and (max-width: 860px) {
  
  /* Container resets */
  .container, .header-container, .cockpit-container, .panel-container, .main-layout {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Header & Navigation */
  .apple-header, .corporate-header {
    height: auto !important;
    min-height: 56px !important;
    padding: 10px 12px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }
  .header-container {
    padding: 8px 14px !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* MOBİLDE LOGO: YALNIZCA KÜÇÜK VE ŞIK BİR SİMGE */
  .logo-area {
    gap: 0 !important;
    flex-shrink: 0 !important;
  }
  .logo-area div:last-child,
  .logo-text-box,
  .logo-title-main,
  .logo-title,
  .logo-text,
  .logo-sub,
  .logo-sub-desc,
  .brand-pill div:last-child {
    display: none !important;
  }
  .logo-icon-box,
  .logo-badge,
  .brand-logo-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.15rem !important;
    border-radius: 10px !important;
    margin: 0 !important;
  }

  /* MOBİLDE TÜM MENÜ LİNKLERİ, TICKER VE ROZETLER GİZLENİR */
  .nav-links,
  nav ul,
  .status-ticker-bar,
  .nav-actions .badge,
  .desktop-only-badge,
  #headerNavHowItWorks {
    display: none !important;
  }

  /* MOBİL SAĞ AKSİYON BUTONLARI: TEK VE ŞIK BUTON */
  .header-right-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }
  .header-guide-link {
    display: none !important; /* Mobilde sadece Giriş Yap butonu kalır */
  }
  .btn-outline-nav {
    display: none !important;
  }
  .btn-primary-nav {
    padding: 7px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    border-radius: 9999px !important;
  }

  /* MOBİL GERİ DÖNÜŞ İKON BUTONU */
  .back-icon-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #EFF6FF !important;
    border: 1.5px solid #BFDBFE !important;
    color: #1E40AF !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
  }

  /* GİRİŞ YAPMIŞ FİRMA MOBİLDE SADECE TEK HARFLİ YUVARLAK AVATAR */
  .navbar-user-pill {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border: 2px solid #BFDBFE !important;
    background: transparent !important;
    box-shadow: 0 2px 8px rgba(30,64,175,0.12) !important;
    overflow: hidden !important;
  }
  .navbar-user-pill .user-avatar-initial {
    width: 100% !important;
    height: 100% !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .navbar-user-pill .user-info-text,
  .navbar-user-pill .user-role-badge,
  .navbar-user-pill .user-gear-icon,
  .navbar-user-pill #navUserCompanyName,
  .navbar-user-pill span:not(.user-avatar-initial),
  .desktop-only-dash-btn,
  #navbarUserActions a.btn-primary:not(.btn-primary-nav) {
    display: none !important; /* Mobilde avatara basılınca panele gidilir */
  }

  /* ABONELİK VE GENEL MOBİL BUTON TAŞMA ENGELLEME */
  .main-layout, main {
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
  .card, .pricing-hero-card {
    padding: 22px 14px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .btn, .btn-lg, .btn-primary, .btn-orange {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .btn-lg {
    padding: 13px 14px !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.35 !important;
  }

  /* Auth Header (giris.html & kayit.html) */
  .auth-header {
    padding: 10px 14px !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
  }
  .auth-header .brand-logo-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 1.1rem !important;
  }
  .auth-header .brand-pill div > div {
    font-size: 1.05rem !important;
  }
  .auth-header span {
    display: none !important;
  }
  .auth-header a {
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    padding: 6px 12px !important;
  }

  /* Index / Anasayfa */
  .openlicense-hero {
    padding: 32px 14px 24px 14px !important;
    overflow: hidden !important;
  }
  .hero-bg-watermark {
    font-size: 3.2rem !important;
    opacity: 0.02 !important;
  }
  .hero-title-openlicense {
    font-size: 1.55rem !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }
  .hero-subtitle-openlicense {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    margin-bottom: 20px !important;
  }
  .pill-search-box-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 4px 6px 4px 14px !important;
  }
  .pill-search-input {
    font-size: 14px !important;
    padding: 10px 4px !important;
  }
  .pill-search-btn {
    width: 42px !important;
    height: 42px !important;
    flex-shrink: 0 !important;
  }
  .rankings-3col-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .rankings-section {
    padding: 30px 12px !important;
  }
  .floating-sheet {
    display: none !important; /* Hide background decorative sheets on mobile */
  }

  /* SONUÇ BELGESİ VE ARAMA SONUCU MOBİL UYUMU */
  .single-sentence-answer-box {
    border-radius: 14px !important;
    margin: 14px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-top-width: 4px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  }
  .answer-header-band {
    padding: 14px 14px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .answer-header-band > div {
    width: 100% !important;
    min-width: 0 !important;
  }
  #displayQueryTitle {
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    margin-top: 4px !important;
    white-space: normal !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }
  #resultRiskBadge {
    font-size: 0.74rem !important;
    padding: 5px 12px !important;
    white-space: normal !important;
    display: inline-block !important;
    max-width: 100% !important;
  }
  .first-sentence-highlight {
    padding: 16px 14px !important;
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    border-left-width: 4px !important;
  }
  .blurred-deep-analysis-wrapper {
    padding: 14px 12px !important;
    min-height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .blurred-text-preview {
    filter: blur(6px) !important;
    max-height: 130px !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
  }
  .paywall-floating-card {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15) !important;
  }
  .paywall-floating-card h3 {
    font-size: 1.12rem !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }
  .paywall-floating-card p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }
  .paywall-floating-card a.btn,
  .paywall-floating-card .btn-orange {
    width: 100% !important;
    font-size: 0.92rem !important;
    padding: 12px 14px !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    border-radius: 12px !important;
    text-align: center !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* PDF ÖNİZLEME BELGE MODALI MOBİL UYUMU */
  #pdfDocumentModal .modal-window {
    width: 96vw !important;
    max-width: 96vw !important;
    padding: 0 !important;
    border-radius: 14px !important;
    max-height: 94vh !important;
  }
  #pdfDocumentModal .modal-body {
    padding: 10px !important;
  }
  .pdf-paper-preview {
    padding: 16px 12px !important;
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    border-radius: 8px !important;
  }
  .pdf-watermark {
    font-size: 1.4rem !important;
  }
  #pdfModalGoldSealContainer svg {
    width: 40px !important;
    height: 40px !important;
  }

  /* Modals */
  .modal-window {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 12px auto !important;
    padding: 20px 16px !important;
    max-height: 90vh !important;
    border-radius: 18px !important;
  }

  /* Grid Resets */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Firma Paneli (panel.html) */
  #firmCompactBar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  #firmCompactBar > div {
    width: 100% !important;
    justify-content: space-between !important;
  }

  /* Cockpit Modül Sekmeleri: Native Uygulama Tarzı Yatay Kaydırılabilir Bar */
  .cockpit-pills-bar,
  div:has(> #tabFirmOverviewBtn),
  div:has(> .cockpit-nav-pill) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px !important;
    padding: 10px 12px !important;
    background: #FFFFFF !important;
    border-radius: 14px !important;
    margin-bottom: 18px !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  }
  .cockpit-pills-bar::-webkit-scrollbar,
  div:has(> #tabFirmOverviewBtn)::-webkit-scrollbar,
  div:has(> .cockpit-nav-pill)::-webkit-scrollbar {
    display: none !important;
  }
  .cockpit-nav-pill {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 9px 16px !important;
    font-size: 0.82rem !important;
    border-radius: 9999px !important;
  }

  /* Overview Sekmesi */
  #firmTabOverview > div {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* Canlı Danışman Masası (firmChatActiveContainer) */
  #firmChatActiveContainer {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  #firmChatActiveContainer aside {
    height: auto !important;
    max-height: 260px !important;
    overflow-y: auto !important;
    padding-right: 0 !important;
  }
  #firmChatActiveContainer .card:last-child {
    height: 560px !important;
    max-height: calc(100vh - 180px) !important;
    border-radius: 16px !important;
  }
  #firmChatMessagesArea {
    padding: 14px !important;
    gap: 12px !important;
  }
  #firmChatInput {
    padding: 10px 16px !important;
    font-size: 15px !important;
  }

  /* Floating Appointment Widget */
  .floating-appointment-widget {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
  }

  /* Admin Paneli (admin.html) */
  .admin-layout-container {
    flex-direction: column !important;
  }
  .admin-sidebar {
    width: 100% !important;
    min-width: 100% !important;
    padding: 10px 12px !important;
    position: sticky !important;
    top: 56px !important;
    z-index: 800 !important;
    border-bottom: 1px solid #1E293B !important;
    border-right: none !important;
    background: #0F172A !important;
  }
  .admin-sidebar-header {
    display: none !important;
  }
  .admin-sidebar > div:last-child {
    display: none !important;
  }
  .admin-nav {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px !important;
    padding: 4px 0 !important;
  }
  .admin-nav::-webkit-scrollbar {
    display: none !important;
  }
  .admin-nav-item {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 8px 14px !important;
    border-radius: 9999px !important;
    font-size: 0.8rem !important;
  }
  .admin-main-content {
    padding: 16px 12px !important;
    width: 100% !important;
  }
  .admin-main-content > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Danışman Paneli (danisman.html) */
  .consultant-grid-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Randevu Paneli (randevu.html) */
  #bookingSlotsContainer > div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  #bookingSlotsContainer > div button {
    width: 100% !important;
    padding: 10px !important;
  }
}

/* =========================================================================
   COMPACT SMARTPHONE BREAKPOINT (<= 480px, e.g. iPhone, Galaxy, 6.7" phones)
   ========================================================================= */
@media screen and (max-width: 480px) {
  
  body {
    font-size: 14px !important;
  }

  .card, .step-card, .faq-card {
    padding: 18px 14px !important;
    border-radius: 14px !important;
  }

  .auth-card-glass {
    padding: 24px 18px !important;
    border-radius: 18px !important;
  }

  .hero-title-openlicense {
    font-size: 1.4rem !important;
  }

  .btn {
    font-size: 0.84rem !important;
  }

  /* Paywall Card on Mobile */
  #firmChatPaywallContainer,
  #firmChatExhaustedContainer {
    padding: 28px 16px !important;
    margin: 20px auto !important;
    border-radius: 18px !important;
  }
  #firmChatPaywallContainer h2 {
    font-size: 1.4rem !important;
  }
  #firmChatPaywallContainer > div:nth-of-type(2) {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }
  #firmChatPaywallContainer > div:nth-of-type(2) > div {
    text-align: center !important;
  }
  #firmChatPaywallContainer a.btn {
    width: 100% !important;
  }
}



