/* ============================================
   UZMANSEPETİ — Tasarım Sistemi
   Renk paleti: Lacivert + Metalik Altın + Beyaz/Gri
   ============================================ */

:root {
  /* Renkler */
  --primary: #002B5C;        /* Lacivert — ana renk */
  --primary-light: #003D7A;
  --primary-dark: #001f44;
  --bg: #F8F9FA;
  --surface: #ffffff;
  --text: #212529;
  --text-muted: #6C757D;
  --border: #E9ECEF;
  --border-dark: #dee2e6;
  --danger: #dc3545;
  --success: #198754;

  /* ===== METALİK ALTIN (uygulama geneli) ===== */
  /* Tek renk fallback (eski yerlerde kullanılıyor) */
  --accent: #D4AF37;
  --accent-dark: #AA771C;
  --accent-light: #f5e9c3;
  /* Gradyanlar — gerçek altın görünümü */
  --gold: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #D4AF37 50%, #AA771C 75%, #FCE9A6 100%);
  --gold-shine: linear-gradient(135deg, #BF953F 0%, #FCF6BA 30%, #D4AF37 50%, #AA771C 70%, #FBF5B7 100%);
  --gold-soft: linear-gradient(135deg, #F4D47C 0%, #D4AF37 50%, #B8860B 100%);
  --gold-dark: linear-gradient(135deg, #AA771C 0%, #BF953F 100%);
  /* Metinler için daha az parlak, okunaklı altın (koyu bronz ağırlıklı) */
  --gold-text: linear-gradient(135deg, #8A6411 0%, #B8860B 40%, #9A6F0E 70%, #7A5808 100%);

  /* Gölgeler */
  --shadow-sm: 0 1px 3px rgba(0, 43, 92, 0.06);
  --shadow: 0 4px 12px rgba(0, 43, 92, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 43, 92, 0.14);
  --shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.4);

  /* Ölçüler */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --container: 1200px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  border-bottom: 3px solid transparent;
  border-image: var(--gold) 1;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.logo-mark {
  background: var(--gold);
  background-size: 200% 200%;
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-gold);
  margin-right: 10px;
}

.logo span {
  color: inherit;
  font-weight: 800;
}

/* ===== SEKTOR TOGGLE ===== */
.sector-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  margin-left: 8px;
}

.sector-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-family: inherit;
}

.sector-btn:hover { color: #fff; }

.sector-btn.active {
  background: var(--gold);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(212,175,55,0.3);
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: #FCE9A6; }

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

/* ===== BUTONLAR (outline/border yok) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  outline: none;
}
.btn:focus { outline: none; }
.btn:focus-visible { outline: none; }

.btn-primary {
  background: var(--gold);
  background-size: 200% 200%;
  color: var(--primary);
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-shine);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-dark {
  background: var(--primary);
  color: #fff;
}
.btn-dark:hover { background: var(--primary-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}
.btn-ghost:hover { color: #FCE9A6; }

.btn-outline-dark {
  background: var(--bg);
  color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--gold-soft);
  color: var(--primary);
  font-weight: 700;
}

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 70px 0 120px;
  background: var(--surface);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-soft);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-tag i { color: var(--primary); }

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 .accent {
  color: #D4AF37;
}

.hero p {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-img img { width: 100%; height: 460px; object-fit: cover; }

/* ===== ARAMA KUTUSU ===== */
.search-box {
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border-top: 4px solid transparent;
  border-image: var(--gold) 1;
  border-radius: var(--radius);
  padding: 28px;
}

.search-box h3 {
  margin-bottom: 18px;
  font-size: 1.1rem;
  color: var(--primary);
}

.search-box h3 i {
  color: #AA771C;
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.search-tab {
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

.search-tab.active {
  color: var(--primary);
  border-image: var(--gold) 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .form-control {
  padding-right: 42px;
  width: 100%;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
  z-index: 1;
  transition: color 0.2s;
  background: #fff;
  border-radius: 4px;
  padding: 2px 4px;
  line-height: 1;
}

.toggle-pw:hover {
  color: var(--primary);
}

.form-control {
  padding: 11px 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: 0.2s;
  background: #fff;
  color: var(--text);
  width: 100%;
  min-width: 0;
}

select.form-control {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 30px;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 43, 92, 0.12);
}

.talep-list-box {
  max-height: 420px;
  overflow-y: auto;
}

/* ===== PROFİL ÖNİZLEME DÜZEN ===== */
.profil-edit-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.profil-edit-preview {
  position: sticky;
  top: 32px;
}

.preview-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-label i {
  color: var(--accent-dark);
}

.agent-card-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid transparent;
  border-image: var(--gold) 1;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.preview-avatar {
  width: 72px;
  height: 72px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 auto 14px;
  overflow: hidden;
  position: relative;
}

.preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-avatar.avatar-clickable {
  cursor: pointer;
  border: 3px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}

.preview-avatar.avatar-clickable:hover {
  border-color: var(--accent-dark);
  transform: scale(1.05);
}

.preview-avatar.avatar-clickable::after {
  content: '\f030';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  background: rgba(0, 43, 92, 0.5);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 50%;
}

.preview-avatar.avatar-clickable:hover::after {
  opacity: 1;
}

.preview-avatar-actions {
  text-align: center;
  margin-bottom: 8px;
}

.preview-avatar-actions span {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--danger);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.preview-avatar-actions span:hover {
  opacity: 1;
}

.preview-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.preview-title {
  font-size: 0.9rem;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 8px;
}

.preview-territory {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.preview-territory i {
  color: var(--accent-dark);
  margin-right: 4px;
}

.preview-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: center;
}

.preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.chip.accent {
  background: var(--gold-soft);
  color: var(--primary);
}

/* ===== TAG CONTAINER (multi-select chips) ===== */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag-container:empty {
  display: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-remove {
  cursor: pointer;
  font-size: 0.7rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.tag-remove:hover {
  opacity: 1;
}

/* ===== KVKK CHECKBOX ===== */
.kvkk-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}

.kvkk-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.kvkk-label a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

.modal-header h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.preview-stats {
  display: flex;
  justify-content: space-around;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-bottom: 12px;
}

.preview-stats div {
  text-align: center;
}

.preview-stats strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary);
}

.preview-stats span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preview-company {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.preview-company i {
  color: var(--accent-dark);
  margin-right: 4px;
}

.preview-published {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
}

.preview-published.draft {
  color: var(--danger);
  background: #f8d7da;
}

.preview-published.live {
  color: var(--success);
  background: #d1e7dd;
}

/* ===== AVATAR UPLOAD (in preview card) ===== */

/* ===== TOAST BİLDİRİM ===== */
#toastContainer {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  border-left: 4px solid var(--border-dark);
  font-size: 0.92rem;
  color: var(--text);
  animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1), toastOut 0.4s ease 3.6s forwards;
  max-width: 380px;
}

.toast i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast-success { border-left-color: var(--success); }
.toast-success i { color: var(--success); }

.toast-error { border-left-color: var(--danger); }
.toast-error i { color: var(--danger); }

.toast-info { border-left-color: var(--primary); }
.toast-info i { color: var(--primary); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(80px); }
}

textarea.form-control {
  resize: vertical;
  min-height: 60px;
}

/* ===== SECTION ===== */
section { padding: 80px 0; }
section.bg-soft { background: var(--bg); }

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
}

.section-tag {
  color: #AA771C;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
}

.section-head h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin: 10px 0 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== NASIL ÇALIŞIR ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--surface);
  padding: 40px 28px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
  transition: 0.3s;
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  background: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}

.step-icon i {
  color: #fff;
}

/* İkon ve vurgu rengi — düz altın */
.section-head i,
.panel-box h3 i,
.step-num,
.footer h5 i,
.stat-card .ic {
  color: #AA771C;
}

.step-num {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.step-card p { color: var(--text-muted); }

/* ===== ÖZELLİKLER ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: 0.2s;
  text-align: center;
}

.feature:hover { box-shadow: var(--shadow-sm); }

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--gold-soft);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}

.feature-icon i {
  color: #fff;
}
.feature h4 { color: var(--primary); margin-bottom: 8px; font-size: 1.05rem; }
.feature p { font-size: 0.92rem; color: var(--text-muted); }

/* ===== CTA ===== */
.cta {
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.cta .btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.cta .btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

.cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}

.cta h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta h2 .accent {
  color: #D4AF37;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  color: var(--text-muted);
  padding: 56px 0 24px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer .logo { color: var(--primary); margin-bottom: 16px; }
.footer h5 { color: var(--primary); margin-bottom: 14px; font-size: 1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer a { transition: 0.2s; }

.footer li i {
  color: #AA771C;
  width: 18px;
}

.footer a:hover {
  color: #AA771C;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-icons a {
  width: 38px; height: 38px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.2s;
}

.social-icons a:hover { background: #D4AF37; color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  text-align: center;
  font-size: 0.88rem;
}

/* ===== AUTH SAYFALARI ===== */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg);
}

.auth-card {
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  padding: 44px;
  border-top: 4px solid transparent;
  border-image: var(--gold) 1;
  border-radius: var(--radius-lg);
}

.auth-card.wide { max-width: 560px; }

.auth-card h1 {
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.auth-card .sub {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.auth-card .form-group { margin-bottom: 16px; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.auth-footer a {
  color: #AA771C;
  font-weight: 700;
}

/* Role seçim kartları */
.role-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

.role-card {
  border: 2px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
  position: relative;
}

.role-card:hover { border-color: var(--accent); }

.role-card.selected {
  border-image: var(--gold) 1;
  background: var(--gold-soft);
  background-image: linear-gradient(white, white), var(--gold-soft);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.role-card.founder {
  border-image: var(--gold) 1;
}

.role-card.founder .role-icon {
  color: #AA771C;
}
.role-card.founder .founder-tag {
  position: absolute; top: 10px; left: 10px;
  background: #D4AF37;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.role-card h4 { color: var(--primary); margin-bottom: 4px; }
.role-card p { font-size: 0.82rem; color: var(--text-muted); }

.role-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: var(--gold);
  color: var(--primary);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.role-card.selected .role-check { display: flex; }

/* Google ile giriş */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border-dark);
  padding: 11px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  color: var(--text);
}

.google-btn:hover { background: var(--bg); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 20px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-dark);
}

/* ===== ALERT ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: none;
}

.alert.show { display: block; }
.alert-error { background: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
.alert-success { background: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
.alert-info { background: #cfe2ff; color: #084298; border: 1px solid #b6d4fe; }

/* ===== UTIL ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.hidden { display: none !important; }

/* ===== PANEL (Dashboard) ===== */
.panel-wrap {
  display: grid;
  grid-template-columns: 250px 1fr;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 28px 18px;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar h4 {
  background: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  margin: 20px 12px 10px;
}

.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 4px; }
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.93rem;
  transition: 0.2s;
}
.sidebar-menu a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.sidebar-menu a.active {
  background: var(--gold);
  color: var(--primary);
  font-weight: 700;
}
.sidebar-menu a.active i {
  -webkit-text-fill-color: var(--primary);
}
.sidebar-menu a i { width: 20px; text-align: center; }

.panel-main { padding: 32px; background: var(--bg); overflow-y: auto; }
.panel-main h1 { color: var(--primary); font-size: 1.6rem; margin-bottom: 6px; }
.panel-main h1 i {
  background: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.panel-main .lead { color: var(--text-muted); margin-bottom: 28px; }

/* Panel içerik kutusu */
.panel-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.panel-box h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 16px; }

/* Stat kartları */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 4px solid transparent;
  border-image: var(--gold) 1;
}
.stat-card .ic { font-size: 1.3rem; margin-bottom: 10px; }
.stat-card .val { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-card .lbl { font-size: 0.85rem; color: var(--text-muted); }

/* Tablo / liste */
.req-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.req-row:last-child { border-bottom: none; }
.req-info { flex: 1; }
.req-info .t { font-weight: 700; color: var(--primary); }
.req-info .d { font-size: 0.85rem; color: var(--text-muted); }

.status-pill {
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-open { background: #fff3cd; color: #664d03; }
.status-matched { background: #cfe2ff; color: #084298; }
.status-closed { background: #d1e7dd; color: #0f5132; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state i { font-size: 2.5rem; color: var(--border-dark); margin-bottom: 12px; }

/* Danisman admin kartları */
.agent-card-admin {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.agent-card-admin:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.agent-card-admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.agent-card-admin-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.agent-card-admin-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
  margin-bottom: 14px;
}
.agent-card-admin-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.agent-card-admin-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.agent-card-admin-val {
  font-size: 0.9rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-card-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .agent-card-admin-body { grid-template-columns: 1fr; }
}

/* Form içi */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ===== MOBILE TOP BAR & BURGER ===== */
.panel-mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  border-bottom: 3px solid transparent;
  border-image: var(--gold) 1;
  height: 56px;
  align-items: center;
  padding: 0 16px;
}

.panel-burger {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  position: absolute;
  left: 16px;
}

.panel-burger:hover {
  background: rgba(255,255,255,0.15);
}

.panel-mobile-bar .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.sidebar-overlay.active {
  display: block;
}

@media (max-width: 900px) {
  .panel-wrap {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .panel-mobile-bar { display: flex; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .panel-main {
    padding: 16px;
    padding-top: 72px;
  }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .sector-toggle { display: none; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 8px 14px; font-size: 0.85rem; }

  .footer { display: none; }

  .hero { padding: 40px 0 60px; }
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 2rem; text-align: center; }
  .hero p { font-size: 1rem; }
  .hero-img { display: none; }

  .search-box { padding: 20px 16px; }

  .steps, .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .search-layout { grid-template-columns: 1fr; }
  .agent-grid { grid-template-columns: 1fr; }
  .filters { position: static; }

  .profile-top { flex-direction: column; align-items: center; text-align: center; }
  .profile-info { min-width: auto; }
  .profile-info h1 { justify-content: center; flex-wrap: wrap; }
  .profile-cta { justify-content: center; }
  .profile-body { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; text-align: center; }
  .hero p { font-size: 0.92rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .search-tabs { gap: 4px; }
  .search-tab { padding: 6px 12px; font-size: 0.85rem; }

  .steps, .feature-grid, .form-row { grid-template-columns: 1fr; }
  .step-card { padding: 28px 20px; }
  .step-icon { width: 56px; height: 56px; font-size: 1.4rem; }
  .section-head h2, .cta h2 { font-size: 1.7rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { font-size: 0.82rem; }

  .form-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
  .profil-edit-wrap { grid-template-columns: 1fr; }
  .profil-edit-preview { position: static; }

  .agent-card { padding: 18px 16px; }
  .agent-card-avatar { width: 64px; height: 64px; font-size: 1.3rem; }
  .agent-card-name { font-size: 0.95rem; }

  .cover { height: 140px; }
  .profile-header { margin-top: -50px; }
  .profile-card { padding: 20px 16px; }
  .profile-avatar { width: 80px; height: 80px; font-size: 1.8rem; }
  .profile-info h1 { font-size: 1.4rem; }
  .panel-block { padding: 16px; }

  .btn-lg { padding: 10px 18px; font-size: 0.9rem; }
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  border-top: 3px solid transparent;
  border-image: var(--gold) 1;
  z-index: 9999;
  height: 56px;
  align-items: center;
}

.mobile-bottom-nav .nav-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-bottom-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.3rem;
  text-decoration: none;
  transition: 0.2s;
}

.mobile-bottom-nav a:hover {
  background: rgba(255,255,255,0.1);
}

.mobile-bottom-nav .nav-side.nav-whatsapp a {
  font-size: 1.65rem;
}

.mobile-bottom-nav .nav-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .ontalep-overlay.active {
    padding-bottom: 68px;
  }
  .mobile-bottom-nav { display: flex; }
  body { padding-bottom: 60px; }
}

/* ===== PORTFÖY RESİM YÜKLEME ===== */
.portfoy-upload-zone {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
  background: var(--bg);
}

.portfoy-upload-zone:hover {
  border-color: var(--accent-dark);
  background: var(--accent-light);
  color: var(--primary);
}

.portfoy-upload-zone.portfoy-upload-zone-dragover {
  border-color: var(--accent-dark);
  background: var(--accent-light);
  color: var(--primary);
  transform: scale(1.01);
}

.portfoy-upload-zone i {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
}

.portfoy-upload-zone span {
  font-size: 0.9rem;
  font-weight: 500;
}

.portfoy-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.portfoy-img-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid var(--border);
  transition: border-color 0.2s;
}

.portfoy-img-item:hover {
  border-color: var(--accent-dark);
}

.portfoy-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfoy-img-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.portfoy-img-item:hover .portfoy-img-remove {
  opacity: 1;
}

.portfoy-img-remove:hover {
  background: var(--danger);
}

.portfoy-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.portfoy-thumb-placeholder {
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.portfoy-img-count {
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.portfoy-listing-row {
  gap: 12px;
}

.portfoy-listing-row .req-info {
  flex: 1;
}

.portfoy-listing-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

/* ===== KAPAK FOTO BELİRTİCİ ===== */
.portfoy-img-cover {
  border-color: var(--accent-dark) !important;
  box-shadow: 0 0 0 2px var(--accent);
}

.portfoy-cover-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gold);
  color: var(--primary);
  font-size: 0.6rem;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  z-index: 1;
}

.portfoy-cover-badge i {
  font-size: 0.55rem;
}

.portfoy-img-setcover {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  z-index: 2;
}

.portfoy-img-item:hover .portfoy-img-setcover {
  opacity: 1;
}

.portfoy-img-setcover:hover {
  color: var(--accent-dark);
}

.portfoy-img-cover .portfoy-img-setcover {
  opacity: 1;
  color: var(--accent-dark);
}

/* ===== PORTFÖY DETAY MODAL ===== */
.listing-detail-modal {
  max-width: 1000px !important;
  max-height: 90vh;
}

.listing-detail-body {
  display: grid !important;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
  padding: 24px !important;
}

/* ===== GALERİ (DETAY MODAL SOL) ===== */
.ld-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-main-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ld-main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
  cursor: pointer;
}

.ld-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 43, 92, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s;
  z-index: 2;
}

.ld-arrow:hover {
  background: var(--primary);
}

.ld-arrow-left {
  left: 10px;
}

.ld-arrow-right {
  right: 10px;
}

.ld-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 43, 92, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background 0.2s;
  z-index: 2;
}

.ld-fullscreen-btn:hover {
  background: var(--primary);
}

.ld-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  z-index: 2;
}

.ld-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ld-thumb {
  width: 60px;
  height: 45px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.ld-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ld-thumb-active {
  border-color: var(--accent-dark) !important;
}

.ld-thumb:hover {
  border-color: var(--accent);
}

.ld-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px 0;
}

.ld-no-img i {
  font-size: 2rem;
  color: var(--border-dark);
}

/* ===== DETAY BİLGİ (SAĞ) ===== */
.ld-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ld-info-status {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 12px;
}

.ld-info h2 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 0 0 10px;
  line-height: 1.3;
}

.ld-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  background: var(--gold-soft);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  width: fit-content;
  margin-bottom: 14px;
}

.ld-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.ld-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.ld-meta i {
  color: var(--accent-dark);
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
}

.ld-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.ld-location i {
  color: var(--accent-dark);
  margin-right: 4px;
}

.ld-desc {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* ===== TAM EKRAN GALERİ ===== */
.fullscreen-gallery {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

.fullscreen-gallery.active {
  display: flex;
}

.fullscreen-gallery img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #111;
}

.fg-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background 0.2s;
  z-index: 2;
}

.fg-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.fg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background 0.2s;
  z-index: 2;
}

.fg-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.fg-arrow-left {
  left: 20px;
}

.fg-arrow-right {
  right: 20px;
}

.fg-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 20px;
  border-radius: 100px;
  font-weight: 600;
}

/* ===== RESPONSIVE — DETAY MODAL ===== */
@media (max-width: 700px) {
  .listing-detail-body {
    grid-template-columns: 1fr !important;
  }

  .ld-main-img-wrap {
    aspect-ratio: 16/9;
  }

  .ld-thumbs {
    justify-content: flex-start;
  }

  .fg-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ===== PAYLAŞILAN İLAN GALERİ (uzman.html) ===== */
.share-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-main-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}

.share-no-img {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 2rem;
  background: var(--bg);
}

.share-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.share-thumb {
  width: 56px;
  height: 42px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.share-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.share-thumb-active {
  border-color: var(--accent-dark) !important;
}

.share-thumb:hover {
  border-color: var(--accent);
}

.share-info {
  display: flex;
  flex-direction: column;
}

@media (max-width: 700px) {
  .share-gallery + .share-info,
  .share-info {
    grid-template-columns: 1fr !important;
  }
}

/* ===== ÖN TALEP MODAL ===== */
.ontalep-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 43, 92, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ontalepFadeIn 0.35s ease;
  overflow-y: auto;
}

.ontalep-overlay.active {
  display: flex;
}

@keyframes ontalepFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ontalepSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ontalep-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 43, 92, 0.25);
  animation: ontalepSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  position: relative;
}

.ontalep-header {
  background: var(--primary);
  padding: 28px 28px 22px;
  text-align: center;
  position: relative;
}

.ontalep-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold);
}

.ontalep-header-icon {
  width: 56px;
  height: 56px;
  background: var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: var(--shadow-gold);
}

.ontalep-header h2 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.ontalep-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
}

.ontalep-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background 0.2s;
  z-index: 2;
}

.ontalep-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ontalep-body {
  padding: 28px;
}

.ontalep-body .form-group {
  margin-bottom: 16px;
}

.ontalep-body .form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ontalep-body .form-group label i {
  color: var(--accent-dark);
  font-size: 0.82rem;
}

.ontalep-success {
  text-align: center;
  padding: 20px 0;
  display: none;
}

.ontalep-success.active {
  display: block;
}

.ontalep-success-icon {
  width: 72px;
  height: 72px;
  background: #d1e7dd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  color: #0f5132;
}

.ontalep-success h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.ontalep-success p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 600px) {
  .ontalep-overlay {
    padding: 12px;
    align-items: center;
  }
  .ontalep-box {
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: calc(100% - 24px);
  }
  .ontalep-header {
    padding: 20px 18px 16px;
  }
  .ontalep-header h2 {
    font-size: 1.15rem;
  }
  .ontalep-header p {
    font-size: 0.85rem;
    white-space: normal;
  }
  .ontalep-header-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin: 0 auto 10px;
  }
  .ontalep-body {
    padding: 16px;
  }
  .ontalep-body .form-group {
    margin-bottom: 12px;
  }
  .ontalep-body .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ontalep-body .form-control {
    padding: 10px 12px;
    font-size: 16px;
  }
  .ontalep-body .kvkk-label {
    font-size: 0.82rem;
    margin-top: 12px;
  }
  .ontalep-body .btn-lg {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
  .ontalep-success-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
  .ontalep-success h3 {
    font-size: 1.05rem;
  }
}
