  @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  :root {
    --bg: #0d0f14;
    --surface: #161820;
    --surface2: #1e2028;
    --border: #2a2d38;
    --border2: #353848;
    --text: #e8eaf0;
    --muted: #7a7e96;
    --accent: #f07820;
    --accent2: #d06010;
    --green: #4caf82;
    --red: #e05a5a;
    --blue: #5b8dee;
    --purple: #9b72e8;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { background: var(--bg); color: var(--text); font-family: 'Instrument Sans', sans-serif; font-size: 14px; min-height: 100vh; overflow-x: hidden; opacity: 0; transition: opacity .15s ease; }
  body.ready { opacity: 1; }
  .screen { display: none; }
  .screen.active { display: flex; height: 100vh; overflow: hidden; }
  .screen.active.scrollable { overflow-y: auto !important; }

  /* LOGIN */
  #login { align-items: center; justify-content: center; background: var(--bg); position: relative; overflow: hidden; }
  #login::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(232,164,74,0.08) 0%, transparent 70%); top: -100px; right: -100px; pointer-events: none; }
  #login::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(91,141,238,0.06) 0%, transparent 70%); bottom: -80px; left: -80px; pointer-events: none; }
  .login-box { width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 48px 40px; position: relative; z-index: 1; animation: fadeUp .5s ease; }
  .login-logo { margin-bottom: 6px; }
  .login-logo .logo-main { font-family: 'DM Serif Display', serif; font-size: 40px; color: var(--accent); letter-spacing: -.5px; line-height: 1; }
  .login-sub { color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 36px; margin-top: 4px; }
  .field { margin-bottom: 18px; }
  .field label { display: block; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
  .field input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; color: var(--text); font-family: 'Instrument Sans', sans-serif; font-size: 14px; outline: none; transition: border-color .2s; }
  .field input:focus { border-color: var(--accent); }
  .btn-primary { width: 100%; background: var(--accent); color: #0d0f14; border: none; border-radius: 8px; padding: 13px; font-family: 'Instrument Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 8px; transition: background .2s, transform .1s; }
  .btn-primary:hover { background: #f0b455; }
  .btn-primary:active { transform: scale(.98); }

  /* LAYOUT */
  #dashboard, #new-job, #job-detail, #eksperler, #eksper-detail, #kullanici, #rapor-kontrol, #harita-arsiv, #projeler, #yeni-proje, #proje-raporlar, #proje-detay { flex-direction: row; }
  #araclar, #emsal-okuma, #yi-ufe, #kira-stopaj, #daimi-irtifak, #daimi-gecici-irtifak, #munavebe, #hisse-arz { flex-direction: column; }
  .sidebar { width: 220px; min-height: 0; height: 100%; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; }
  .sidebar-logo { padding: 27px 22px 24px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; }
  .sidebar-logo .s-box { display: block; width: 100%; font-family: 'DM Serif Display', serif; font-size: 35px; color: var(--accent); letter-spacing: -.5px; line-height: 1; font-weight: 400; }
  .sidebar-logo .s-tag { display: block; font-family: 'DM Serif Display', serif; font-size: 15px; color: var(--accent); margin-top: 7px; font-style: italic; letter-spacing: .02em; opacity: .85; }
  .nav-section { padding: 16px 12px 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; margin: 1px 8px; cursor: pointer; color: var(--muted); font-size: 13.5px; transition: all .15s; }
  .nav-item:hover { background: var(--surface2); color: var(--text); }
  .nav-item.active { background: rgba(232,164,74,.12); color: var(--accent); }
  .nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
  .nav-badge { margin-left: auto; background: var(--accent); color: #0d0f14; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; }
  .sidebar-bottom { margin-top: auto; padding: 16px; border-top: 1px solid var(--border); }
  .user-card { display: flex; align-items: center; gap: 10px; }
  .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--purple)); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; flex-shrink: 0; }
  .user-name { font-size: 13px; color: var(--text); }
  .user-role { font-size: 11px; color: var(--muted); white-space: nowrap; }
  .logout-btn { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 4px; transition: color .2s; }
  .logout-btn:hover { color: var(--red); }
  .main { flex: 1; display: flex; flex-direction: column; overflow-y: auto; height: 100%; }
  .topbar { height: 60px; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 28px; gap: 12px; flex-shrink: 0; background: var(--bg); }
  .topbar-title { font-size: 16px; font-weight: 600; }
  .topbar-sub { color: var(--muted); font-size: 13px; }
  .topbar-actions { margin-left: auto; display: flex; gap: 8px; }
  .btn-sm { padding: 7px 14px; border-radius: 7px; font-size: 13px; font-family: 'Instrument Sans', sans-serif; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--surface2); color: var(--text); transition: all .15s; }
  .btn-sm:hover { border-color: var(--accent); color: var(--accent); }
  .btn-sm.primary { background: var(--accent); color: #0d0f14; border-color: var(--accent); font-weight: 600; }
  .btn-sm.primary:hover { background: #f0b455; color: #0d0f14; }
  .content { padding: 28px; flex: 1; }

  /* STATS */
  .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
  .stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; position: relative; overflow: hidden; animation: fadeUp .4s ease both; }
  .stat-card:nth-child(2) { animation-delay: .05s; }
  .stat-card:nth-child(3) { animation-delay: .1s; }
  .stat-card:nth-child(4) { animation-delay: .15s; }
  .stat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
  .stat-card.orange::after { background: var(--accent); }
  .stat-card.green::after { background: var(--green); }
  .stat-card.blue::after { background: var(--blue); }
  .stat-card.purple::after { background: var(--purple); }
  .stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
  .stat-value { font-family: 'DM Serif Display', serif; font-size: 36px; color: var(--text); line-height: 1; margin-bottom: 6px; }
  .stat-delta { font-size: 12px; color: var(--green); }
  .stat-delta.neg { color: var(--red); }

  /* FILTERS */
  .filters { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
  .filter-chip { padding: 6px 14px; border-radius: 20px; font-size: 12px; cursor: pointer; border: 1px solid var(--border); background: transparent; color: var(--muted); font-family: 'Instrument Sans', sans-serif; transition: all .15s; }
  .filter-chip:hover { border-color: var(--border2); color: var(--text); }
  .filter-chip.active { background: var(--accent); color: #0d0f14; border-color: var(--accent); font-weight: 600; }
  .search-box { margin-left: auto; position: relative; }
  .search-box input { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px 7px 34px; color: var(--text); font-family: 'Instrument Sans', sans-serif; font-size: 13px; outline: none; width: 220px; transition: border-color .2s; }
  .search-box input:focus { border-color: var(--accent); }
  .search-box svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 14px; height: 14px; }

  /* TABLE */
  .table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; animation: fadeUp .4s .2s ease both; }
  table { width: 100%; border-collapse: collapse; }
  thead tr { border-bottom: 1px solid var(--border); }
  th { text-align: left; padding: 12px 16px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; white-space: nowrap; }
  #dashboard th, #dashboard td { padding: 5px 3px; font-size: 10px; text-align: center; }
  tbody tr { border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
  tbody tr:last-child { border-bottom: none; }
  tbody tr:hover { background: var(--surface2); }
  /* Beyaz paneldeki tablolarda hover'ı hafif gri yap */
  [style*="background:#fff"] tbody tr:hover,
  [style*="background: #fff"] tbody tr:hover,
  .pd-arac-icerik [style*="background:#fff"] tbody tr:hover,
  #pd-mn-sonuc-wrap tbody tr:hover,
  #pd-agac-sonuc-wrap tbody tr:hover,
  #pd-yd-sonuc-wrap tbody tr:hover,
  #pd-hav-sonuc-wrap tbody tr:hover,
  #pd-tk-sonuc-wrap tbody tr:hover,
  #pd-mk-sonuc-wrap tbody tr:hover,
  #pd-mk-arta-sonuc-wrap tbody tr:hover,
  #mn-sonuc-wrap tbody tr:hover,
  #ad-sonuc-wrap tbody tr:hover,
  #hav-sonuc-wrap tbody tr:hover { background: #f0f0f0 !important; }
  [style*="background:#fff"] tbody tr,
  [style*="background: #fff"] tbody tr { cursor: default; }

  /* Mukayese (pd) — orijinal #mukayese stillerinin pd-mk-kapsayici karşılıkları */
  #pd-mk-kapsayici input[type="number"],
  #pd-mk-kapsayici input[type="text"]{background:var(--surface2);border:1px solid var(--border);border-radius:6px;padding:6px 8px;color:var(--text);font-size:12px;font-family:inherit;outline:none;}
  #pd-mk-kapsayici input:focus{border-color:var(--accent);}
  #pd-mk-tablo{width:100%;border-collapse:collapse;font-size:12px;}
  #pd-mk-tablo th{padding:8px 10px;background:var(--surface2);border:1px solid var(--border);font-weight:700;color:var(--muted);font-size:11px;text-transform:uppercase;white-space:nowrap;}
  #pd-mk-tablo td{padding:6px 8px;border:1px solid var(--border);vertical-align:middle;}
  #pd-mk-tablo tr.mk-toplam td{font-weight:700;background:var(--surface2);}
  #pd-mk-tablo tr.mk-sonuc td{font-weight:700;font-size:13px;}
  #pd-mk-tablo tfoot td{padding:8px 10px;border:1px solid var(--border);font-size:12px;color:var(--text);}
  #pd-mk-kapsayici .mk-sil-btn{background:none;border:none;color:var(--red);cursor:pointer;font-size:13px;padding:2px 6px;opacity:.6;}
  #pd-mk-kapsayici .mk-sil-btn:hover{opacity:1;}
  td { padding: 13px 16px; font-size: 13px; vertical-align: middle; }
  .td-id { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); }
  .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
  .badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
  .badge.tamamlandi { background: rgba(76,175,130,.15); color: var(--green); }
  .badge.devam { background: rgba(91,141,238,.15); color: var(--blue); }
  .badge.bekliyor { background: rgba(232,164,74,.15); color: var(--accent); }
  .badge.acil { background: rgba(224,90,90,.15); color: var(--red); }
  .type-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
  .type-badge.banka { background: rgba(155,114,232,.15); color: var(--purple); }
  .type-badge.mahkeme { background: rgba(232,164,74,.15); color: var(--accent); }
  .type-badge.ozel { background: rgba(76,175,130,.15); color: var(--green); }
  .deadline { font-family: 'DM Mono', monospace; font-size: 12px; }
  .deadline.urgent { color: var(--red); }
  .deadline.soon { color: var(--accent); }
  .deadline.ok { color: var(--muted); }

  /* FORM */
  .form-section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; animation: fadeUp .4s ease both; margin-bottom: 20px; }
  .form-section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 20px; font-weight: 600; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  .form-row.three { grid-template-columns: 1fr 1fr 1fr; }
  .form-row.single { grid-template-columns: 1fr; }
  .form-field { display: flex; flex-direction: column; }
  .form-field label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; }
  .form-field input, .form-field select, .form-field textarea { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); font-family: 'Instrument Sans', sans-serif; font-size: 13px; outline: none; transition: border-color .2s; }
  .form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
  .form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: 0.6; }
  input[type="date"] { color: var(--muted); }
  input[type="date"].dolu { color: #ffffff !important; }
  input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.6); cursor: pointer; }
  .form-field select { appearance: none; cursor: pointer; }
  .form-field textarea { resize: vertical; min-height: 80px; }

  /* Parcel table */
  .parcel-table-wrap { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
  .parcel-header { display: grid; grid-template-columns: 90px 100px 70px 70px 80px 90px 1fr 36px; padding: 9px 12px; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
  .parcel-row { display: grid; grid-template-columns: 90px 100px 70px 70px 80px 90px 1fr 36px; padding: 8px 12px; border-bottom: 1px solid var(--border); gap: 6px; align-items: center; }
  .parcel-row:last-child { border-bottom: none; }
  .parcel-row input { background: transparent; border: 1px solid transparent; border-radius: 4px; padding: 5px 6px; color: var(--text); font-family: 'Instrument Sans', sans-serif; font-size: 12px; width: 100%; outline: none; transition: border-color .2s; }
  .parcel-row input:focus { border-color: var(--border2); background: var(--bg); }
  .del-row { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 4px; font-size: 16px; transition: color .15s; }
  .del-row:hover { color: var(--red); }
  .add-row-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 12px; color: var(--accent); background: none; border: none; cursor: pointer; font-family: 'Instrument Sans', sans-serif; font-weight: 500; transition: color .15s; }
  .add-row-btn:hover { color: #f0b455; }

  /* Owner table */
  .owner-header { display: grid; grid-template-columns: 1fr 120px 90px 90px 90px 36px; padding: 9px 12px; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
  .owner-row { display: grid; grid-template-columns: 1fr 120px 90px 90px 90px 36px; padding: 8px 12px; border-bottom: 1px solid var(--border); gap: 6px; align-items: center; }
  .owner-row:last-child { border-bottom: none; }
  .owner-row input { background: transparent; border: 1px solid transparent; border-radius: 4px; padding: 5px 6px; color: var(--text); font-family: 'Instrument Sans', sans-serif; font-size: 12px; width: 100%; outline: none; transition: border-color .2s; }
  .owner-row input:focus { border-color: var(--border2); background: var(--bg); }

  /* DETAIL */
  .detail-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }
  .tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
  .tab { padding: 10px 18px; font-size: 13px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; white-space: nowrap; }
  .tab:hover { color: var(--text); }
  .tab.active { color: var(--accent); border-bottom-color: var(--accent); }
  .tab-content { display: none; animation: fadeUp .3s ease; }
  .tab-content.active { display: block; }
  .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
  .info-item { background: var(--surface2); border-radius: 8px; padding: 14px 16px; }
  .info-item label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: block; margin-bottom: 4px; }
  .info-item value { font-size: 14px; color: var(--text); display: block; }
  .sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
  .sidebar-card-title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
  .arac-kart { display:flex; align-items:center; gap:14px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:16px 18px; cursor:pointer; transition:all .18s; position:relative; }
  .arac-kart:hover { border-color:var(--accent); background:var(--surface2); transform:translateY(-1px); box-shadow:0 4px 16px rgba(0,0,0,.18); }
  .arac-ikon { width:44px; height:44px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
  .arac-baslik { font-size:13.5px; font-weight:600; color:var(--text); margin-bottom:3px; }
  .arac-aciklama { font-size:11.5px; color:var(--muted); line-height:1.4; }
  .arac-ok { margin-left:auto; font-size:20px; color:var(--muted); flex-shrink:0; padding-left:8px; }
  .timeline-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .timeline-item:last-child { border-bottom: none; }
  .timeline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 5px; }
  .timeline-dot.green { background: var(--green); }
  .timeline-text { font-size: 12px; line-height: 1.5; color: var(--text); }
  .timeline-time { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .file-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s; }
  .file-item:hover { border-color: var(--border2); }
  .file-icon { width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
  .file-icon.pdf { background: rgba(224,90,90,.15); }
  .file-icon.img { background: rgba(76,175,130,.15); }
  .file-name { font-size: 12px; color: var(--text); }
  .file-size { font-size: 11px; color: var(--muted); }
  .file-meta { margin-left: auto; text-align: right; }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  .page-transition { animation: fadeUp .3s ease; }

  /* EKSPERLER */
  .eksper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 28px; }
  .eksper-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; cursor: pointer; transition: border-color .2s, transform .15s; animation: fadeUp .4s ease both; }
  .eksper-card:hover { border-color: var(--accent); transform: translateY(-2px); }
  .eksper-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
  .eksper-avatar { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0; }
  .eksper-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
  .eksper-title { font-size: 12px; color: var(--muted); }
  .eksper-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 16px; }
  .eksper-stat { background: var(--surface2); border-radius: 8px; padding: 10px; text-align: center; }
  .eksper-stat-val { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--text); line-height: 1; }
  .eksper-stat-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
  .eksper-footer { display: flex; align-items: center; justify-content: space-between; }
  .eksper-status { display: flex; align-items: center; gap: 6px; font-size: 12px; }
  .status-dot { width: 7px; height: 7px; border-radius: 50%; }
  .status-dot.active { background: var(--green); box-shadow: 0 0 6px var(--green); }
  .status-dot.busy { background: var(--accent); }
  .status-dot.off { background: var(--muted); }

  /* EKSPER DETAIL */
  .eksper-detail-header { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 20px; display: flex; align-items: center; gap: 24px; }
  .eksper-detail-avatar { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #fff; flex-shrink: 0; }
  .eksper-detail-name { font-family: 'DM Serif Display', serif; font-size: 26px; color: var(--text); margin-bottom: 4px; }
  .eksper-detail-meta { font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
  .eksper-detail-meta span { display: flex; align-items: center; gap: 5px; }
  .eksper-big-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }

  /* ═══ MOBİL HAMBURGER BUTONU ═══ */
  .mob-hamburger { display:none; background:none; border:none; color:var(--text); cursor:pointer; padding:6px; border-radius:6px; flex-shrink:0; }
  .mob-hamburger:hover { background:var(--surface2); }
  .mob-sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:998; }

  /* ═══ MOBİL RESPONSIVE ═══ */
  @media (max-width: 768px) {
    .screen.active { flex-direction: column; }
    .sidebar { position:fixed; left:-260px; top:0; bottom:0; width:250px; z-index:999; transition:left .25s ease; box-shadow:4px 0 24px rgba(0,0,0,.3); }
    .sidebar.mob-open { left:0; }
    .mob-sidebar-overlay.mob-open { display:block; }
    .mob-hamburger { display:flex; align-items:center; justify-content:center; }
    .main { width:100%; }
    .topbar { padding:0 10px; height:auto; min-height:46px; gap:6px; flex-wrap:wrap; }
    .topbar-title { font-size:13px; }
    .topbar-sub { font-size:11px; }
    .topbar-actions { gap:4px; flex-wrap:wrap; }
    .topbar-actions .btn-sm { font-size:10px; padding:5px 8px; }
    .content { padding:10px !important; }
    .content.page-transition { max-width:100% !important; }
    .stats-grid { grid-template-columns:repeat(2,1fr); gap:8px; margin-bottom:16px; }
    .stat-card { padding:14px; }
    .stat-val { font-size:22px; }
    .form-row { grid-template-columns:1fr !important; gap:10px; }
    .form-row.three { grid-template-columns:1fr !important; }
    .detail-layout { grid-template-columns:1fr !important; }
    .info-grid { grid-template-columns:1fr !important; }
    .parcel-header, .parcel-row { overflow-x:auto; min-width:600px; font-size:10px; }
    .owner-header, .owner-row { overflow-x:auto; min-width:500px; font-size:10px; }
    .eksper-grid { grid-template-columns:1fr !important; }
    .eksper-detail-header { flex-direction:column; text-align:center; padding:16px; gap:12px; }
    .eksper-big-stats { grid-template-columns:repeat(2,1fr); }
    .arac-kart { padding:12px; gap:10px; }
    .arac-ikon { width:36px; height:36px; }

    /* ── Rapor Çalışma Alanı topbar ── */
    #proje-detay .topbar, #proje-raporlar .topbar { flex-wrap:wrap !important; padding:8px 10px !important; }
    #proje-detay .topbar > div:first-child { flex:1; min-width:0; }
    #proje-detay .topbar [style*="font-family:'DM Serif Display'"] { font-size:13px !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    #proje-detay .topbar [style*="display:flex"][style*="gap"] { gap:4px !important; flex-wrap:wrap !important; }
    #proje-detay .topbar button, #proje-raporlar .topbar button { font-size:11px !important; padding:6px 10px !important; }

    /* ── Bilgiler paneli form alanları ── */
    #pd-bilgiler-panel [style*="display:grid"] { grid-template-columns:1fr !important; }
    #pd-bilgiler-panel [style*="grid-template-columns:1fr 1fr"] { grid-template-columns:1fr !important; }
    #pd-bilgiler-panel [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns:1fr !important; }
    #pd-bilgiler-panel .form-field { min-width:0 !important; }

    /* ── Hesaplama araçları grid'leri ── */
    .mn-arta-row { grid-template-columns:1fr 1fr !important; gap:6px !important; }
    [style*="grid-template-columns:.9fr .7fr .7fr 65px"] { grid-template-columns:1fr 1fr !important; gap:6px !important; }

    /* ── Ağaç/Yapı satır grid'leri ── */
    .pd-agac-row, .yd-row, .pd-yd-row { display:flex !important; flex-wrap:wrap !important; gap:6px !important; }
    .pd-agac-row > div, .yd-row > div, .pd-yd-row > div { flex:1 1 45% !important; min-width:0 !important; }

    /* ── Evrak listesi ── */
    [style*="display:flex"][style*="border:1px solid"][style*="border-radius:10px"] { flex-wrap:wrap !important; gap:6px !important; padding:10px !important; }

    /* ── Tablo sarma ── */
    table { font-size:11px !important; }
    .ha-form-input { font-size:12px !important; }

    /* ── Harita arşiv — form grid ── */
    [style*="grid-template-columns:.9fr"] { grid-template-columns:1fr 1fr !important; }

    /* ── Modal genişlikleri ── */
    [style*="width:860px"], [style*="width:680px"], [style*="width:720px"], [style*="width:600px"], [style*="width:520px"], [style*="width:480px"] { width:96vw !important; max-width:96vw !important; }
    [style*="max-width:640px"] { max-width:96vw !important; }

    /* ── Proje kartları ── */
    .is-turu-kart { min-width:100% !important; }

    /* ── Login ekranı ── */
    #login { align-items:center; justify-content:center; }
    #login > div { width:90% !important; max-width:360px; }

    /* ── Scrollable screens ── */
    .screen.active.scrollable { padding:0; }
    .screen.active.scrollable > div { padding:10px !important; }

    /* ── Hesaplama sonuç panelleri ── */
    [style*="background:#fff;border-radius:14px;padding:24px"] { padding:12px !important; overflow-x:auto !important; }

    /* ── Hesaplama kopyala butonları ── */
    [style*="display:flex"][style*="justify-content:flex-end"][style*="gap:6px"] > button { font-size:10px !important; padding:5px 8px !important; }

    /* ── Toplam Kamulaştırma Bedeli kutucukları ── */
    #pd-toplam-kam-wrap [style*="display:grid"][style*="grid-template-columns:1fr 1fr 1fr 1fr"] { grid-template-columns:1fr 1fr !important; }

    /* ── Münavebe objektif değer artışı grid ── */
    .mn-obj-row, .pd-mn-obj-row { display:flex !important; flex-wrap:wrap !important; gap:4px !important; }

    /* ── Rapor çalışma alanı bölme başlıkları ── */
    [style*="text-transform:uppercase"][style*="letter-spacing"] { font-size:11px !important; }

    /* ── Hisse Arz önizleme tablosu ── */
    #pd-hav-onizleme, #hav-onizleme { overflow-x:auto !important; }

    /* ── Proje oluşturma form alanları ── */
    #prj-form-rest [style*="display:grid"] { grid-template-columns:1fr !important; }
    #prj-form-rest [style*="display:flex"][style*="gap"] { flex-wrap:wrap !important; }

    /* ── Genel flex-gap düzeltmeleri ── */
    [style*="display:flex"][style*="gap:20px"] { gap:10px !important; }
    [style*="padding:24px"] { padding:12px !important; }
    [style*="padding:28px"] { padding:14px !important; }
  }

  @media (max-width: 480px) {
    .stats-grid { grid-template-columns:1fr; }
    .topbar-actions .btn-sm { font-size:9px; padding:4px 6px; }
    .sidebar-logo .s-box { font-size:30px; }
    .nav-item { font-size:12px; padding:8px 10px; }
    .eksper-big-stats { grid-template-columns:1fr; }
    .mn-arta-row { grid-template-columns:1fr !important; }
    #pd-toplam-kam-wrap [style*="grid-template-columns"] { grid-template-columns:1fr !important; }
    .pd-agac-row > div, .yd-row > div, .pd-yd-row > div { flex:1 1 100% !important; }
  }
.ha-main-tab{display:flex;align-items:center;gap:7px;padding:12px 18px;font-size:13px;font-weight:500;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;transition:all .15s;white-space:nowrap;}
.ha-main-tab:hover{color:var(--text);}
.ha-main-tab-active{color:var(--accent)!important;border-bottom-color:var(--accent)!important;}
.ha-alt-tab{display:flex;align-items:center;gap:6px;padding:12px 14px;font-size:12px;font-weight:500;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;transition:all .15s;white-space:nowrap;}
.ha-alt-tab:hover{color:var(--text);}
.ha-alt-tab-active{color:var(--blue)!important;border-bottom-color:var(--blue)!important;}
.ha-liste-item{padding:12px 14px;border-radius:10px;margin-bottom:6px;cursor:pointer;border:1px solid var(--border);background:var(--surface2);transition:all .15s;}
.ha-liste-item:hover{border-color:var(--border2);background:#22263a;}
.ha-liste-item.ha-secili{border-color:var(--accent);background:rgba(240,120,32,.07);}
.ha-badge{display:inline-block;padding:2px 8px;border-radius:20px;font-size:10px;font-weight:600;letter-spacing:0.3px;text-transform:uppercase;}
.ha-form-label{font-size:11px;color:var(--muted);display:block;margin-bottom:5px;letter-spacing:0.3px;}
.ha-form-input{width:100%;background:var(--bg);border:1px solid var(--border);color:var(--muted);border-radius:8px;padding:9px 12px;font-size:13px;outline:none;font-family:inherit;transition:color .15s,font-weight .15s;}
.ha-form-input:focus{border-color:var(--accent);}
.ha-form-input.dolu,.ha-form-input:not(:placeholder-shown),.ha-form-input[value]:not([value=""]){color:#ffffff;font-weight:600;}
select.ha-form-input.dolu, select.ha-form-input:not([value=""]):not([value="undefined"]){color:#ffffff;font-weight:600;}
.ha-form-input option{color:var(--text);font-weight:400;}
.ha-detay-satir{display:flex;justify-content:space-between;font-size:12px;padding:5px 0;border-bottom:1px solid var(--border);}
.ha-detay-satir span:first-child{color:var(--muted);}
.ha-detay-satir span:last-child{font-weight:500;text-align:right;max-width:60%;}
.leaflet-container{background:#1a1d2e!important;}
  .ha-popup .leaflet-popup-content-wrapper{background:#1e2130;border:1px solid rgba(255,255,255,.12);border-radius:10px;box-shadow:0 8px 32px rgba(0,0,0,.7);padding:0;}
  .ha-popup .leaflet-popup-content{margin:12px 14px;}
  .ha-popup .leaflet-popup-tip-container .leaflet-popup-tip{background:#1e2130;}
  .ha-popup .leaflet-popup-close-button{color:#888!important;font-size:16px!important;top:5px!important;right:8px!important;}
  .leaflet-control-layers{background:var(--surface)!important;border:1px solid var(--border)!important;border-radius:10px!important;box-shadow:0 4px 20px rgba(0,0,0,.4)!important;color:var(--text)!important;font-family:'Instrument Sans',sans-serif!important;font-size:12px!important;}
  .leaflet-control-layers-toggle{background-color:var(--surface)!important;}
  .leaflet-control-layers-base label, .leaflet-control-layers-overlays label{color:var(--text)!important;padding:3px 0!important;display:flex!important;align-items:center!important;gap:6px!important;}
  .leaflet-control-layers-separator{border-top:1px solid var(--border)!important;margin:4px 0!important;}
  .leaflet-control-layers-expanded{padding:8px 12px!important;}
.leaflet-popup-content-wrapper{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 32px rgba(0,0,0,.5);}
.leaflet-popup-tip{background:var(--surface);}
.ha-evrak-satir{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--border);}
.ha-evrak-satir:last-child{border-bottom:none;}
.nav-admin-only { display: none !important; }
body.is-admin .nav-admin-only { display: flex !important; }

  /* Arşiv Kullanıcısı sidebar kısıtlaması */
  body.is-arsiv-kullanici .nav-hide-arsiv { display: none !important; }
  body.is-arsiv-kullanici .nav-show-arsiv { display: flex !important; }
  body.is-arsiv-kullanici .nav-projeler:not(.nav-show-arsiv):not([data-arsiv-injected]) { display: none !important; }
  body.is-arsiv-kullanici .nav-proje-agac:not(.nav-show-arsiv):not([data-arsiv-injected]) { display: none !important; }
  body.arsiv-harita-yetki-yok .arsiv-harita-nav { display: none !important; }
  /* Eksper sidebar kısıtlaması */
  body.is-eksper .nav-hide-eksper { display: none !important; }
  body.is-eksper .nav-show-eksper { display: flex !important; }
  /* Yİ-ÜFE Excel endeks yükleme — sadece admin görür */
  body:not(.is-admin) #yufe-endeks-yukle-wrap { display: none !important; }
  /* Proje içinde Yİ-ÜFE: sadece sonuç tablosu kalır; kartlar, rapor cümlesi ve excel yükleme gizlenir */
  #pd-yi-ufe-kapsayici #pd-yufe-endeks-yukle-wrap,
  #pd-yi-ufe-kapsayici #pd-yufe-kartlar-wrap,
  #pd-yi-ufe-kapsayici #pd-yufe-rapor-cumlesi-wrap { display: none !important; }
  /* Sidebar logo - login stili */


  /* Number input spinner gizle */
  input[type=number]::-webkit-inner-spin-button,
  input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ═══════════════════════════════════════════
   EKSPERANT — Açılış / Kapanış Küp Animasyonu
   ═══════════════════════════════════════════ */
.eksperant-opening, .eksperant-closing {
  position: fixed; inset: 0;
  background: #1C2333;
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
  perspective: 1100px; perspective-origin: 50% 30%;
}
.eksperant-opening .ek-track, .eksperant-closing .ek-track {
  position: relative; width: 440px; height: 48px;
  transform-style: preserve-3d; transform: rotateX(-25deg);
}
.eksperant-opening .ek-cube, .eksperant-closing .ek-cube {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px;
  transform-style: preserve-3d;
}
.eksperant-opening .ek-cube { transform: translateX(396px); animation: ek-open-cube 2.5s forwards linear; }
.eksperant-closing .ek-cube { transform: translateX(0) rotateZ(0); animation: ek-close-cube 2.5s 1s forwards linear; }

.eksperant-opening .ek-face, .eksperant-closing .ek-face {
  position: absolute; width: 44px; height: 44px; backface-visibility: hidden;
}
.eksperant-opening .ek-front,  .eksperant-closing .ek-front  { transform: translateZ(22px);                 background: #D97538; }
.eksperant-opening .ek-back,   .eksperant-closing .ek-back   { transform: rotateY(180deg) translateZ(22px); background: #8A441F; }
.eksperant-opening .ek-top,    .eksperant-closing .ek-top    { transform: rotateX(90deg)  translateZ(22px); background: #EF9158; }
.eksperant-opening .ek-bottom, .eksperant-closing .ek-bottom { transform: rotateX(-90deg) translateZ(22px); background: #6F3614; }
.eksperant-opening .ek-left,   .eksperant-closing .ek-left   { transform: rotateY(-90deg) translateZ(22px); background: #C26830; }
.eksperant-opening .ek-right,  .eksperant-closing .ek-right  { transform: rotateY(90deg)  translateZ(22px); background: #B85D28; }

.eksperant-opening .ek-letter, .eksperant-closing .ek-letter {
  position: absolute; top: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', 'Bodoni 72', 'Didot', Georgia, serif;
  font-size: 32px; font-weight: 700;
  color: #D97538; line-height: 1;
}
.eksperant-opening .ek-letter { opacity: 0; }
.eksperant-closing .ek-letter { opacity: 1; }

.eksperant-opening .ek-l1 { left: 44px;  animation: ek-open-l1 2.5s forwards ease-in-out; }
.eksperant-opening .ek-l2 { left: 88px;  animation: ek-open-l2 2.5s forwards ease-in-out; }
.eksperant-opening .ek-l3 { left: 132px; animation: ek-open-l3 2.5s forwards ease-in-out; }
.eksperant-opening .ek-l4 { left: 176px; animation: ek-open-l4 2.5s forwards ease-in-out; }
.eksperant-opening .ek-l5 { left: 220px; animation: ek-open-l5 2.5s forwards ease-in-out; }
.eksperant-opening .ek-l6 { left: 264px; animation: ek-open-l6 2.5s forwards ease-in-out; }
.eksperant-opening .ek-l7 { left: 308px; animation: ek-open-l7 2.5s forwards ease-in-out; }
.eksperant-opening .ek-l8 { left: 352px; animation: ek-open-l8 2.5s forwards ease-in-out; }
.eksperant-opening .ek-l9 { left: 396px; animation: ek-open-l9 2.5s forwards ease-in-out; }

.eksperant-closing .ek-l1 { left: 44px;  animation: ek-close-l1 2.5s 1s forwards ease-in-out; }
.eksperant-closing .ek-l2 { left: 88px;  animation: ek-close-l2 2.5s 1s forwards ease-in-out; }
.eksperant-closing .ek-l3 { left: 132px; animation: ek-close-l3 2.5s 1s forwards ease-in-out; }
.eksperant-closing .ek-l4 { left: 176px; animation: ek-close-l4 2.5s 1s forwards ease-in-out; }
.eksperant-closing .ek-l5 { left: 220px; animation: ek-close-l5 2.5s 1s forwards ease-in-out; }
.eksperant-closing .ek-l6 { left: 264px; animation: ek-close-l6 2.5s 1s forwards ease-in-out; }
.eksperant-closing .ek-l7 { left: 308px; animation: ek-close-l7 2.5s 1s forwards ease-in-out; }
.eksperant-closing .ek-l8 { left: 352px; animation: ek-close-l8 2.5s 1s forwards ease-in-out; }
.eksperant-closing .ek-l9 { left: 396px; animation: ek-close-l9 2.5s 1s forwards ease-in-out; }

@keyframes ek-open-cube {
  0%, 20% { transform: translateX(396px) rotateZ(0); }
  28.89% { transform: translateX(352px) rotateZ(-90deg); }
  37.78% { transform: translateX(308px) rotateZ(-180deg); }
  46.67% { transform: translateX(264px) rotateZ(-270deg); }
  55.56% { transform: translateX(220px) rotateZ(-360deg); }
  64.44% { transform: translateX(176px) rotateZ(-450deg); }
  73.33% { transform: translateX(132px) rotateZ(-540deg); }
  82.22% { transform: translateX(88px)  rotateZ(-630deg); }
  91.11% { transform: translateX(44px)  rotateZ(-720deg); }
  100%   { transform: translateX(0)     rotateZ(-810deg); }
}
@keyframes ek-open-l9 { 0%, 26% { opacity: 0; } 28.89%, 100% { opacity: 1; } }
@keyframes ek-open-l8 { 0%, 35% { opacity: 0; } 37.78%, 100% { opacity: 1; } }
@keyframes ek-open-l7 { 0%, 44% { opacity: 0; } 46.67%, 100% { opacity: 1; } }
@keyframes ek-open-l6 { 0%, 52% { opacity: 0; } 55.56%, 100% { opacity: 1; } }
@keyframes ek-open-l5 { 0%, 61% { opacity: 0; } 64.44%, 100% { opacity: 1; } }
@keyframes ek-open-l4 { 0%, 70% { opacity: 0; } 73.33%, 100% { opacity: 1; } }
@keyframes ek-open-l3 { 0%, 79% { opacity: 0; } 82.22%, 100% { opacity: 1; } }
@keyframes ek-open-l2 { 0%, 88% { opacity: 0; } 91.11%, 100% { opacity: 1; } }
@keyframes ek-open-l1 { 0%, 97% { opacity: 0; } 100% { opacity: 1; } }

@keyframes ek-close-cube {
  0%     { transform: translateX(0)     rotateZ(0); }
  11.11% { transform: translateX(44px)  rotateZ(90deg); }
  22.22% { transform: translateX(88px)  rotateZ(180deg); }
  33.33% { transform: translateX(132px) rotateZ(270deg); }
  44.44% { transform: translateX(176px) rotateZ(360deg); }
  55.56% { transform: translateX(220px) rotateZ(450deg); }
  66.67% { transform: translateX(264px) rotateZ(540deg); }
  77.78% { transform: translateX(308px) rotateZ(630deg); }
  88.89% { transform: translateX(352px) rotateZ(720deg); }
  100%   { transform: translateX(396px) rotateZ(810deg); }
}
@keyframes ek-close-l1 { 0%, 9% { opacity: 1; } 11.11%, 100% { opacity: 0; } }
@keyframes ek-close-l2 { 0%, 20% { opacity: 1; } 22.22%, 100% { opacity: 0; } }
@keyframes ek-close-l3 { 0%, 31% { opacity: 1; } 33.33%, 100% { opacity: 0; } }
@keyframes ek-close-l4 { 0%, 42% { opacity: 1; } 44.44%, 100% { opacity: 0; } }
@keyframes ek-close-l5 { 0%, 53% { opacity: 1; } 55.56%, 100% { opacity: 0; } }
@keyframes ek-close-l6 { 0%, 64% { opacity: 1; } 66.67%, 100% { opacity: 0; } }
@keyframes ek-close-l7 { 0%, 75% { opacity: 1; } 77.78%, 100% { opacity: 0; } }
@keyframes ek-close-l8 { 0%, 86% { opacity: 1; } 88.89%, 100% { opacity: 0; } }
@keyframes ek-close-l9 { 0%, 97% { opacity: 1; } 100% { opacity: 0; } }
