  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --surface2: #1f2937;
    --border: #30363d;
    --accent: #f97316;
    --accent2: #fb923c;
    --text: #e6edf3;
    --muted: #8b949e;
    --success: #22c55e;
    --radius: 16px;
  }
  /* ── Overlay ── */
  #district-overlay {
    position: fixed; inset: 0; 
    z-index: 999999;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; 
    justify-content: center;
    animation: fadeIn .25s ease;
  }
  #district-overlay.hidden { display: none; }

  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  /* ── Modal ── */
  .distmodal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: min(480px, 94vw);
    padding: 32px 28px 28px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    animation: slideUp .3s cubic-bezier(.16,1,.3,1);
  }
  @keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

  .modal-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(249,115,22,.12);
    color: var(--accent);
    font-size: 11px; font-weight: 600; letter-spacing: .8px;
    text-transform: uppercase;
    padding: 4px 10px; border-radius: 20px;
    margin-bottom: 14px;
    border: 1px solid rgba(249,115,22,.25);
  }

  .distmodal h2 {
    font-size: 22px; 
    font-weight: 700;
    line-height: 1.3; 
    margin-bottom: 6px;
    color: #fff;
  }

  .distmodal p {
    font-size: 13.5px; color: var(--muted); margin-bottom: 24px; line-height: 1.6;
  }

  /* ── Geo button ── */
  .btn-geo {
    width: 100%; padding: 13px 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none; border-radius: 10px; color: #fff;
    font-size: 14px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: opacity .2s, transform .15s;
    margin-bottom: 16px;
  }
  .btn-geo:hover { opacity: .9; transform: translateY(-1px); }
  .btn-geo:active { transform: translateY(0); }
  .btn-geo:disabled { opacity: .55; cursor: not-allowed; transform: none; }

  /* ── Divider ── */
  .divider {
    display: flex; align-items: center; gap: 10px;
    color: var(--muted); font-size: 12px; margin-bottom: 16px;
  }
  .divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
  }

  /* ── Select ── */
  .select-wrap { position: relative; margin-bottom: 16px; }
  .select-wrap select {
    width: 100%; appearance: none;
    background: var(--surface2); border: 1px solid var(--border);
    color: var(--text); border-radius: 10px;
    padding: 13px 40px 13px 14px;
    font-size: 14px; font-family: 'Poppins', sans-serif;
    cursor: pointer; transition: border-color .2s;
    outline: none;
  }
  .select-wrap select:focus { border-color: var(--accent); }
  .select-wrap::after {
    content: '▾'; position: absolute; right: 14px; top: 50%;
    transform: translateY(-50%); color: var(--muted); pointer-events: none;
    font-size: 13px;
  }

  /* ── Confirm button ── */
  .btn-confirm {
    width: 100%; padding: 13px;
    background: var(--surface2); border: 1px solid var(--border);
    color: var(--text); border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .2s, border-color .2s;
  }
  .btn-confirm:hover { background: #2d3748; border-color: var(--accent); }

  /* ── Status ── */
  #geo-status {
    font-size: 12.5px; color: var(--muted);
    margin-bottom: 14px; min-height: 18px;
    display: flex; align-items: center; gap: 6px;
  }
  #geo-status.success { color: var(--success); }
  #geo-status.error   { color: #f87171; }

  .spinner {
    width: 14px; height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: none;
  }
  .spinner.active { display: inline-block; }
  @keyframes spin { to { transform: rotate(360deg); } }

.current-district-barhagdf{
  
}