/* note 

font-family: "F29LT Bukra Lt";
font-family: "F29LT Bukra Rg";
font-family: "F29LT Bukra";
font-family: "F29LT Bukra Md";
font-family: "F29LT Bukra SmBd";





*/



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

  h1, h2, h3, h4, h5, h6,
  .logo, .header-tag,
  #panel-title, #panel-subtitle,
  .panel-section-label, .panel-type-badge,
  .lp-eyebrow, .lp-location, .lp-type,
  .lp-section-label,
  .kpi-lbl, .kpi-val,
  .sp-title, .sp-title-main, .sp-section-title,
  .sp-label, .sp-value,
  .legend-title,
  .info-card-label, .info-card-value,
  .donut-unit, .donut-legend-pct,
  .metric-row-label span {
    font-weight: 700;
   
  }

  body {
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(244,242,240,1) 100%);
    color: #333333;
    font-family: "F29LT Bukra Rg", 'Segoe UI', system-ui, sans-serif ; 
    overflow: hidden;
    height: 100vh;
    width: 100vw;
  }

  #canvas-container {
    position: fixed;
    inset: 0;
    z-index: 0;
  }

  canvas { display: block; filter: blur(0.6px); }

  /* ── Header ── */
  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px 16px 8px;
    background: transparent;
  }

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #0268a1;
    text-transform: uppercase;
    width: max-content;
    margin-left: 27px;
}
  .logo span { color: #333333; }

  .header-tag {
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: #333;
    text-transform: uppercase;
  }

  /* ── Horizontal Location Picker ── */
  #location-picker-wrap {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    max-width: calc(100vw - 56px);
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0,0,0,0.10);
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
   
  }

  #location-picker {
    display: flex;
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
    max-width: 600px;
     padding-left: 5px;
    padding-right: 5px;
  }
  #location-picker::-webkit-scrollbar { display: none; }

  .loc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid transparent;
    background: transparent;
    color: #444;
    font-size: 0.82rem;
    font-family: "F29LT Bukra Rg", 'Segoe UI', system-ui, sans-serif;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 1;
    pointer-events: auto;
    transition: background .25s, color .25s, border-color .25s, box-shadow .25s, transform .2s;
  }
  .loc-pill:hover {
    background: rgba(2,104,161,0.08);
    border-color: rgba(2,104,161,0.22);
    color: #0268a1;
  }
  .loc-pill.active {
    background: #ff5e00;
    border-color: #ff5e00;
    color: #fff;
 
  }
  .loc-pill-flag { font-size: 1.05rem; line-height: 1; flex-shrink: 0; }
  .loc-pill-name { font-weight: 600; letter-spacing: 0.3px; }

  #picker-placeholder { display: none; }

  /* Arrow buttons */
  .picker-arrow {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.9);
    color: #444;
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  }
  .picker-arrow:hover {
    background: #ff5e00;
    color: #fff;
    border-color: #ff5e00;
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(255,94,0,0.3);
  }

  /* ── Tooltip ── */
  #tooltip {
    position: fixed;
    z-index: 30;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(0,0,0,0.15);
    color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 18px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 7px;
  }
  .tt-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* ── Overlay (no click-to-close) ── */
  #overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
  }
  #overlay.visible { opacity: 1; }

  /* ── Slide Panel ── */
#slide-panel {
    position: fixed;
    top: 0;
    right: -600px;
    max-width: 600px;
    height: 100vh;
    z-index: 50;
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(26px);
    border-left: 1px solid rgba(0,0,0,0.08);
    box-shadow: -8px 0 40px rgba(0,0,0,0.12);
    transition: right .45s cubic-bezier(.25,.46,.45,.94);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
  #slide-panel.open { right: 0; }

  .panel-header {
    padding: 26px 26px 18px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    position: relative;
    flex-shrink: 0;
  }

  .panel-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #ff5e00;
    border: 1px solid #ff5e00;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center; justify-content: center;
    transition: background .2s, transform .2s;
    z-index: 2;
  }
  .panel-close:hover { background: rgba(79,195,247,0.22); transform: rotate(90deg); }

  .panel-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid;
  }
  .panel-type-badge .badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
  }

  .panel-flag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
  }
  .panel-flag { font-size: 2.0rem; line-height: 1; }

  #panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff5d00;
    margin-bottom: 3px;
    outline: none;
     font-family: "F29LT Bukra";

  }
  #panel-title:focus { text-decoration: underline dashed 1px rgba(0,0,0,0.3); }

#panel-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #333333;
    text-transform: uppercase;
}

  .panel-body { padding: 22px 26px; flex: 1; }

  #panel-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(79,195,247,0.07) 0%, rgba(90,40,180,0.1) 100%);
    border: 1px dashed rgba(79,195,247,0.28);
    border-radius: 12px;
    display: flex;
    align-items: center; justify-content: center;
    margin-bottom: 20px;
    color: rgba(79,195,247,0.45);
    font-size: 0.78rem;
    letter-spacing: 1px;
    overflow: hidden;
    position: relative;
  }
  #panel-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }

  .panel-section-label {
    font-size: 0.68rem;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 7px;
    font-family: "F29LT Bukra SmBd";
  }

  #panel-description {
    font-size: 0.86rem;
    line-height: 1.75;
    color: #555;
    margin-bottom: 20px;
    min-height: 56px;
    outline: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 4px 6px;
    transition: border-color .2s;
  }
  #panel-description:focus {
    border-color: rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.03);
    color: #333;
  }

  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .info-card {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 11px 13px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  }
  .info-card-label {
    font-size: 0.64rem;
    letter-spacing: 1.5px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .info-card-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333333;
    outline: none;
  }

  .panel-btn {
    width: 100%;
    padding: 13px;
    background: #ff5e00;
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(255,94,0,0.3);
    margin-bottom: 26px;
  }
  .panel-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,94,0,0.45);
  }

  /* ── Legend ── */
  #legend {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 20;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.08);
    backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 16px 20px;
    min-width: 230px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  }
  .legend-title {
    font-size: 0.63rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 12px;
  }
  .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #444;
    margin-bottom: 9px;
  }
  .legend-item:last-child { margin-bottom: 0; }
  .legend-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px currentColor;
  }

  /* ── Hint ── */
  .globe-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #333;
    text-transform: uppercase;
    z-index: 10;
    animation: pulse-hint 3.5s ease-in-out infinite;
    pointer-events: none;
    white-space: nowrap;
  }
  /* pulse-hint keyframe → animations.css */

  /* ── Loader ── */
  #loader {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    transition: opacity .6s;
  }
  #loader.hidden { opacity: 0; pointer-events: none; }
  .loader-ring {
    width: 48px; height: 48px;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: #0268a1;
    border-radius: 50%;
    animation: spin .9s linear infinite;
  }
  /* spin keyframe → animations.css */
  .loader-text {
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: #888;
    text-transform: uppercase;
  }

  /* ── Left Analytics Panel ── */
  #left-panel {
    position: fixed;
    top: 80px;
    left: 28px;
    width: 320px;
    max-height: calc(100vh - 110px);
    z-index: 50;
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    transition: opacity .38s ease, transform .38s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.1) transparent;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }
  #left-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .lp-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
  }
  .lp-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
  }
  .lp-location {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 2px;
  }
  .lp-type {
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: #0268a1;
  }

  .lp-body { padding: 14px 18px 20px; flex: 1; }

  /* KPI grid */
  .kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 22px;
  }
  .kpi-card {
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 11px 13px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  }
  .kpi-card.accent { border-color: var(--lp-color, #0268a1); }
  .kpi-card.accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--lp-color, #0268a1);
    opacity: 0.06;
  }
  .kpi-lbl {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
  }
  .kpi-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333333;
    letter-spacing: 0.5px;
  }
  .kpi-val.up { color: #6ab04c; }

  /* Chart sections */
  .lp-section { margin-bottom: 22px; }
  .lp-section-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .lp-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.08);
  }

  /* Bar chart */
  #bar-chart { width: 100%; height: 110px; display: block; }

  /* Donut */
  .donut-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
  }
  .donut-canvas-wrap {
    position: relative;
    width: 110px; height: 110px;
    flex-shrink: 0;
  }
  #donut-chart { width: 110px; height: 110px; }
  .donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .donut-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333333;
    line-height: 1;
  }
  .donut-unit {
    font-size: 0.58rem;
    letter-spacing: 1px;
    color: #888;
    margin-top: 2px;
  }
  .donut-legend { flex: 1; }
  .donut-legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: #555;
  }
  .donut-legend-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .donut-legend-pct {
    margin-left: auto;
    font-weight: 600;
    color: #333;
  }

  /* Metric bars */
  .metric-rows { display: flex; flex-direction: column; gap: 11px; }
  .metric-row-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #666;
    margin-bottom: 5px;
  }
  .metric-row-label span { color: #333; font-weight: 600; }
  .metric-bar-bg {
    height: 5px;
    background: rgba(0,0,0,0.07);
    border-radius: 3px;
    overflow: hidden;
  }
  .metric-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.1s cubic-bezier(.25,.46,.45,.94);
    width: 0;
  }

  /* ── Settings Panel ── */
  #settings-toggle {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.15);
    color: #0268a1;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: background .2s, border-color .2s, transform .3s;
    display: none;
  }
  #settings-toggle:hover { background: rgba(2,104,161,0.08); border-color: rgba(2,104,161,0.4); }
  #settings-toggle.active { transform: translateY(-50%) rotate(45deg); border-color: #0268a1; }

  #settings-panel {
    position: fixed;
    top: 0; left: -340px;
    width: 320px;
    height: 100vh;
    z-index: 55;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(28px);
    border-right: 1px solid rgba(0,0,0,0.08);
    box-shadow: 8px 0 40px rgba(0,0,0,0.12);
    transition: left .4s cubic-bezier(.25,.46,.45,.94);
    display: flex; flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(79,195,247,0.2) transparent;
  }
  #settings-panel.open { left: 0; }

  .sp-header {
    padding: 72px 22px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
  }
  .sp-title {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
  }
  .sp-title-main {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333333;
  }

  .sp-body { padding: 18px 22px 32px; flex: 1; }

  .sp-section {
    margin-bottom: 24px;
  }
  .sp-section-title {
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
  }
  .sp-section-title::after {
    content: ''; flex: 1; height: 1px;
    background: rgba(0,0,0,0.08);
  }

  .sp-row {
    margin-bottom: 14px;
  }
  .sp-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }
  .sp-label {
    font-size: 0.75rem;
    color: #555;
  }
  .sp-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0268a1;
    min-width: 36px;
    text-align: right;
  }

  .sp-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: rgba(0,0,0,0.1);
    outline: none;
    cursor: pointer;
  }
  .sp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #0268a1;
    box-shadow: 0 0 6px rgba(2,104,161,0.4);
    cursor: pointer;
    transition: transform .15s;
  }
  .sp-slider::-webkit-slider-thumb:hover { transform: scale(1.3); }
  .sp-slider::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #0268a1;
    border: none;
    box-shadow: 0 0 6px rgba(2,104,161,0.4);
    cursor: pointer;
  }

  .sp-color-row {
    display: flex; align-items: center;
    gap: 10px; margin-bottom: 14px;
  }
  .sp-color-row .sp-label { flex: 1; font-size: 0.75rem; color: #555; }
  .sp-color-input {
    width: 38px; height: 26px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    padding: 1px;
    background: none;
  }

  .sp-toggle-row {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
  }
  .sp-toggle-label { font-size: 0.75rem; color: #555; }
  .sp-switch {
    position: relative; width: 40px; height: 22px;
    display: inline-block;
  }
  .sp-switch input { display: none; }
  .sp-switch-track {
    position: absolute; inset: 0;
    border-radius: 22px;
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background .2s;
  }
  .sp-switch input:checked + .sp-switch-track { background: rgba(2,104,161,0.25); border-color: #0268a1; }
  .sp-switch-thumb {
    position: absolute;
    top: 3px; left: 3px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    transition: left .2s, background .2s;
    pointer-events: none;
  }
  .sp-switch input:checked ~ .sp-switch-thumb { left: 21px; background: #0268a1; }

  .sp-reset-btn {
    width: 100%;
    padding: 10px;
    background: #ff5e00;
    border: 1px solid #ff5e00;
    border-radius: 20px;
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 8px;
    transition: background .2s;
  }
  .sp-reset-btn:hover { background: #e05400; border-color: #e05400; }

  /* ── Mobile ── */
  @media (max-width: 640px) {
    #slide-panel { width: 100%; right: -100%; }
    #left-panel  { width: 100%; left: -100%; }
    header { padding: 12px 18px; }
    .logo { font-size: 1rem; }
    #legend { display: none; }
  }
 