:root {
  /* Sidebar Tamna Tema */
  --sb-bg: #080e1c;
  --sb-gradient: linear-gradient(170deg, #0d1b34 0%, #12082a 55%, #06101e 100%);
  --sb-text: #8a9bc0;
  --sb-text-hover: #e8f0ff;
  --sb-active-bg: #1890ff;
  --sb-input-bg: rgba(255, 255, 255, 0.06);
  --sb-input-border: rgba(255, 255, 255, 0.12);

  /* Main Svijetla Tema */
  --main-bg: #eef1f8;
  --main-gradient: linear-gradient(135deg, #e8eef8 0%, #f2eeff 100%);
  --card-bg: #ffffff;
  --card-shadow: 0 2px 16px rgba(24, 60, 120, 0.08), 0 1px 4px rgba(0,0,0,0.04);
  --text-main: #1a2030;
  --text-muted: #7a8aa8;
  --border-light: #e4e8f4;

  /* Akcent boje */
  --accent: #1890ff;
  --accent-hover: #40a9ff;
  --accent-gradient: linear-gradient(135deg, #1890ff 0%, #6366f1 100%);
  --green-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);

  --font: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--main-gradient);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
}

.dashboard-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 350px;
  background: var(--sb-gradient);
  color: var(--sb-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  box-shadow: 2px 0 24px rgba(0,0,0,0.35), inset -1px 0 0 rgba(255,255,255,0.04);
  z-index: 20;
}

.sidebar-brand {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  color: #fff;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 0.75rem;
  flex-wrap: wrap;
}
.brand-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-glyph {
  font-size: 1.8rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
  line-height: 1;
}
.brand-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #e8f0ff 0%, #a0b8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.brand-version {
  font-size: 0.62rem;
  color: rgba(160, 184, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

/* Jezični dropdown */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.07)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%238a9bc0'/%3E%3C/svg%3E")
    no-repeat right 8px center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: #c8d8f8;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.04em;
  padding: 4px 26px 4px 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.lang-select:hover {
  border-color: rgba(99,102,241,0.5);
  background-color: rgba(255,255,255,0.11);
}
.lang-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}
.lang-select option {
  background: #0d1b34;
  color: #e8f0ff;
}

.status-badge {
  font-size: 0.6rem;
  color: #52c41a;
  background: rgba(82, 196, 26, 0.12);
  border: 1px solid rgba(82, 196, 26, 0.25);
  padding: 0.18rem 0.45rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Sidebar Meni (Tabovi) */
.sidebar-menu { padding: 1rem 0; }
.mode-tab {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--sb-text);
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s;
}
.menu-icon { margin-right: 0.75rem; font-size: 1.1rem; opacity: 0.7; }
.mode-tab:hover { color: var(--sb-text-hover); }
.mode-tab.active { background-color: var(--sb-active-bg); color: #fff; font-weight: 500; }

/* Sidebar Forme */
.sidebar-forms { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 1.5rem; }
.panel-head { font-size: 0.75rem; text-transform: uppercase; font-weight: 600; color: #fff; margin-bottom: 0.8rem; letter-spacing: 0.05em; }
.form-stack { display: flex; flex-direction: column; gap: 0.85rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.fg { display: flex; flex-direction: column; gap: 0.35rem; position: relative;}
.fl { font-size: 0.75rem; color: var(--sb-text); font-weight: 500;}

.fi { background: var(--sb-input-bg); border: 1px solid var(--sb-input-border); color: #fff; padding: 0.65rem 0.75rem; border-radius: 4px; font-family: var(--font); font-size: 0.9rem; width: 100%; transition: border-color 0.2s; }
.fi:focus { outline: none; border-color: var(--accent); }
.fi::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

.city-row { display: flex; gap: 0.5rem; }
.city-row .fi { flex: 1; }
.btn-sm { background: var(--sb-input-bg); border: 1px solid var(--sb-input-border); color: #fff; padding: 0 1rem; border-radius: 4px; cursor: pointer; white-space: nowrap; transition: 0.2s; }
.btn-sm:hover { border-color: var(--accent); color: var(--accent); background: rgba(24, 144, 255, 0.1); }

.btn-calc {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(24, 144, 255, 0.35);
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  font-family: var(--font);
}
.btn-calc:hover {
  opacity: 0.92;
  box-shadow: 0 4px 18px rgba(24, 144, 255, 0.45);
  transform: translateY(-1px);
}
.btn-calc:active { transform: translateY(0); }
.btn-calc:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-calc-transit {
  background: var(--green-gradient);
  margin-top: 0.85rem;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.35);
}
.btn-calc-transit:hover {
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45);
}

/* Profile panel */
.profile-actions {
  display: flex; gap: 0.5rem; align-items: stretch;
}
.profile-select {
  flex: 1; min-width: 0;
  padding: 0.5rem 0.6rem; font-size: 0.82rem;
  color: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a6adb4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 1.8rem;
}
.profile-select option {
  background: #001529;
  color: #fff;
}
.profile-actions .btn-sm { padding: 0 0.65rem; font-size: 1rem; line-height: 1; }
.profile-actions .btn-del { border-color: #e84040; color: #e84040; }
.profile-actions .btn-del:hover { background: rgba(232,64,64,0.12); }

/* Geo Dropdown & AI Textarea */
.geo-drop { position: absolute; top: 100%; left: 0; right: 0; background: #fff; color: var(--text-main); border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); z-index: 100; max-height: 180px; overflow-y: auto; }
.geo-drop div { padding: 0.65rem; font-size: 0.85rem; cursor: pointer; border-bottom: 1px solid var(--border-light); }
.geo-drop div:hover { background: var(--main-bg); color: var(--accent); }
.ai-panel { margin-top: auto; }
.ai-head { display: flex; justify-content: space-between; align-items: center; }
.btn-xs { background: transparent; color: var(--accent); border: 1px solid var(--accent); padding: 0.2rem 0.5rem; font-size: 0.65rem; border-radius: 3px; cursor: pointer; }
.ai-ta { width: 100%; height: 80px; background: rgba(0,0,0,0.2); border: 1px solid var(--sb-input-border); color: var(--sb-text); font-size: 0.75rem; padding: 0.5rem; border-radius: 4px; resize: vertical; }

/* ── MAIN CONTENT (Svijetli dio) ── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}

/* ── STAT STRIP (Male kartice) ── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  flex-shrink: 0;
}
.stat-chip {
  background: var(--card-bg);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow), inset 3px 0 0 0 var(--border-light);
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-chip:hover {
  box-shadow: 0 4px 20px rgba(24, 60, 120, 0.12), 0 1px 4px rgba(0,0,0,0.05), inset 3px 0 0 0 var(--accent);
  transform: translateY(-1px);
}
.sc-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;}
.sc-body { display: flex; align-items: center; }
.sc-sym { 
  font-size: 2rem; /* Veliki simboli */
  line-height: 1;
  margin-right: 0.8rem;
  font-weight: 500;
}
.sc-pos { font-size: 1.3rem; font-weight: 700; color: var(--text-main); }
.sc-sign { font-size: 0.9rem; color: var(--text-muted); margin-left: 0.5rem; }

/* ── GRID: KARTA + TABLICE ── */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  column-gap: 1.5rem;
  row-gap: 1.5rem;
  flex: 1;
  transition: grid-template-columns 0.42s cubic-bezier(0.4, 0, 0.2, 1),
              column-gap 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Karta skrivena – tabliče se šire na cijelu širinu */
.content-grid.chart-hidden {
  grid-template-columns: 0fr 1fr;
  column-gap: 0;
}

/* Kartica karte animira opacity/transform usporedno s grid-om */
.chart-card {
  flex: 1;
  min-height: 700px;
  min-width: 0;
  overflow: hidden;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}
.content-grid.chart-hidden .chart-card {
  opacity: 0;
  transform: scaleX(0.96) translateX(-6px);
  pointer-events: none;
}

/* Univerzalna Kartica */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-light); font-weight: 600; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }

/* ── CHART FILTERS ── */
.chart-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #fafafa;
  border-bottom: 1px solid var(--border-light);
}
.filter-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: all 0.2s;
  user-select: none;
}
.filter-toggle:hover {
  background: #f0f0f0;
  color: var(--text-main);
}
.filter-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}
.filter-label {
  font-weight: 500;
}

.aspect-sub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border-light);
}
.aspect-sub-filters .filter-toggle.sub {
  font-size: 0.75rem;
  padding: 0.2rem 0.4rem;
}

.chart-wrap { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 0; min-height: 0; }
.chart-wrap svg { max-width: 100%; max-height: 100%; object-fit: contain; }
.chart-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--text-muted); gap: 1rem; text-align: center; }
.empty-icon { font-size: 4rem; opacity: 0.2; }

/* ── TABLICE KARTICE ── */
.tables-column { display: flex; flex-direction: column; gap: 1.5rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th { padding: 0.75rem 0.75rem; text-align: left; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border-light); }
.data-table td { padding: 0.75rem 0.75rem; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.data-table tr:hover { background-color: #fafafa; }
.data-table tr:last-child td { border-bottom: none; }

/* Simboli Planeta u tablici */
.pt-sym { 
  font-size: 2.5rem; /* Značajno veći simboli planeta (Venera, itd.) */
  width: 70px; /* Izoliran prostor oko simbola */
  text-align: center; 
  font-weight: 500;
  padding: 0.5rem 0; /* Vertikalni razmak */
}
.pt-pos {
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.pt-house { color: var(--text-muted); }
.pt-ret {
  color: #e84040;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  width: 30px;
  padding: 0.5rem 0.25rem;
}

/* ── ASPEKTI (Više zraka i veći font) ── */
.asp-list { padding: 0.5rem 1rem 1rem; display: flex; flex-direction: column; gap: 4px; overflow-y: auto;}
.asp-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  border-bottom: 1px solid #f0f0f0;
  border-left: 3px solid transparent;
  transition: background 0.15s;
}
.asp-row:hover { background: #f9f9f9; }

/* Boja lijevog ruba prema vrsti aspekta */
.asp-row--conj  { border-left-color: #e8c040; }
.asp-row--sext  { border-left-color: #40b860; }
.asp-row--sq    { border-left-color: #e84040; }
.asp-row--trine { border-left-color: #5090e8; }
.asp-row--opp   { border-left-color: #c040a0; }

/* Simbol aspekta (☌ □ △ ☍ ⚹) */
.asp-glyph {
  font-size: 1.6rem;
  text-align: center;
  font-weight: 600;
  line-height: 1;
  font-family: 'Segoe UI Symbol', 'Apple Color Emoji', sans-serif;
}

/* Para planeta */
.asp-planets {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Simbol planete unutar teksta – stiliziran neovisno od naziva */
.planet-glyph {
  font-size: 1.15rem;
  font-family: 'Segoe UI Symbol', 'Apple Color Emoji', sans-serif;
  font-weight: 400;
  line-height: 1;
  margin-right: 1px;
  vertical-align: middle;
  display: inline-block;
}

/* × razdjelnik */
.asp-cross {
  color: #bbb;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 0.1rem;
}

/* Oznaka tipa (Konj., Kv., …) */
.asp-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* Orb */
.asp-orb {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Točka egzaktnog aspekta */
.asp-exact {
  font-size: 0.5rem;
  margin-right: 2px;
  vertical-align: middle;
  opacity: 0.8;
}

/* Prazno stanje */
.asp-empty {
  color: #aaa;
  font-size: 0.82rem;
  padding: 0.75rem 0;
  font-style: italic;
}

/* ── Zaglavlja sekcija aspekata ── */
.asp-section-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin-top: 10px;
  margin-bottom: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  background: rgba(120,120,160,0.07);
  color: #8888bb;
}
.asp-section-header:first-child { margin-top: 0; }
.asp-section-sym {
  font-size: 1.1rem;
  font-family: 'Segoe UI Symbol', 'Apple Color Emoji', sans-serif;
}
.asp-section-header small { font-weight: 400; opacity: 0.7; }

/* ── Planet → Os aspekt (istaknuto) ── */
.asp-row--axis-planet {
  background: rgba(155, 126, 216, 0.04);
}
.asp-row--axis-planet:hover {
  background: rgba(155, 126, 216, 0.09);
}

/* ── AC-MC Osni aspekt (istaknuto) ── */
.asp-row--axis {
  background: linear-gradient(135deg, rgba(155, 126, 216, 0.08) 0%, rgba(24, 144, 255, 0.06) 100%);
  border: 1px solid rgba(155, 126, 216, 0.25);
  border-left-width: 4px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(155, 126, 216, 0.12);
}
.asp-row--axis:hover {
  background: linear-gradient(135deg, rgba(155, 126, 216, 0.12) 0%, rgba(24, 144, 255, 0.10) 100%);
}
.axis-glyph {
  font-size: 1.1rem;
  font-weight: 700;
  color: #9b7ed8;
  background: linear-gradient(135deg, #9b7ed8, #1890ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-right: 2px;
}
.axis-label {
  font-size: 0.7rem;
  color: #9b7ed8;
  background: rgba(155, 126, 216, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 500;
}
.asp-planets--axis strong {
  font-weight: 700;
}

/* ── Natal / Transit oznake u aspektima ── */
.asp-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 4px;
  border-radius: 3px;
  margin-right: 3px;
  vertical-align: middle;
  line-height: 1.4;
  text-transform: uppercase;
}
.asp-tag--transit {
  color: #fff;
  background: var(--accent, #e86040);
}
.asp-tag--natal {
  color: #9b7ed8;
  background: rgba(155, 126, 216, 0.15);
  border: 1px solid rgba(155, 126, 216, 0.3);
}

/* Prazni redovi (Skeleton) */
.empty-row { text-align: center !important; color: var(--text-muted); padding: 3rem 1rem !important; font-style: italic; font-size: 0.9rem; }

/* ═══════════════════════════════
   ASPEKTNE MREŽE (GRID TABLICE)
   ═══════════════════════════════ */
.aspect-grid-wrap {
  overflow-x: auto;
  padding: 0.75rem;
}

.asp-grid {
  border-collapse: collapse;
  margin: 0 auto;
}

.asp-grid td,
.asp-grid th {
  width: 38px;
  height: 38px;
  min-width: 38px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #222;
  font-size: 1.2rem;
  font-family: 'Segoe UI Symbol', 'Apple Color Emoji', sans-serif;
  padding: 0;
  line-height: 1;
  background: #fff;
}

/* Dijagonala (planet label) */
.ag-diag {
  background: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}
.ag-diag span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Ćelija s aspektom */
.ag-asp {
  cursor: default;
  transition: background 0.15s;
  background: #fff;
}
.ag-asp:hover {
  background: #f0f4ff;
}
.ag-asp span {
  font-weight: 700;
  font-size: 1.15rem;
}

/* Prazna ćelija */
.ag-empty {
  background: #fff;
}

/* Skrivena ćelija (padding za trokut) */
.ag-hidden {
  border: none !important;
  background: transparent !important;
}

/* Zaglavlje ćelije (transit grid) */
.ag-head {
  background: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}
.ag-label {
  background: #fff;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Gumb za proširivanje mreže */
.btn-expand {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  color: var(--text-muted);
  transition: all 0.15s;
  line-height: 1;
}
.btn-expand:hover {
  background: rgba(24, 144, 255, 0.08);
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Popup overlay za aspektnu mrežu ── */
.grid-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(235, 240, 248, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.grid-popup-overlay.active {
  opacity: 1;
}
.grid-popup {
  position: relative;
  max-width: 96vw;
  max-height: 94vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem;
}
.grid-popup-close {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 10000;
  background: rgba(0,0,0,0.08);
  border: none;
  color: #334;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.grid-popup-close:hover {
  background: rgba(0,0,0,0.16);
}
.grid-popup-body .asp-grid td,
.grid-popup-body .asp-grid th {
  width: 42px;
  height: 42px;
  min-width: 42px;
  font-size: 1.3rem;
  border-color: rgba(0,0,0,0.10);
}
.grid-popup-body .ag-diag {
  background: rgba(24, 144, 255, 0.10);
}
.grid-popup-body .ag-label {
  background: rgba(155, 126, 216, 0.10);
}
.grid-popup-body .ag-head {
  background: rgba(24, 144, 255, 0.10);
}
.grid-popup-body .ag-empty {
  background: transparent;
}
.grid-popup-body .ag-hidden {
  border: none;
  background: transparent;
}
.grid-popup-body .ag-asp:hover {
  background: rgba(0,0,0,0.06);
}

/* Label ćelija (tranzitna mreža – natalni planet u retku) */
.ag-label {
  background: rgba(155, 126, 216, 0.06);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Zaglavlje tranzitne mreže */
.ag-head {
  background: rgba(24, 144, 255, 0.06);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ── Distribucija (elementi/kvalitete) ── */
.dist-section { margin-bottom: 1rem; padding: 0 1rem; }
.dist-section:last-child { margin-bottom: 0.5rem; }
.dist-section h4 { font-size: 0.8rem; margin: 0.75rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.dist-bar { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.dist-label { font-size: 0.8rem; width: 7.5rem; flex-shrink: 0; }
.dist-track { flex: 1; height: 8px; background: var(--bg-main, #f0f0f0); border-radius: 4px; overflow: hidden; }
.dist-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.dist-fire    { background: #d11515; }
.dist-earth   { background: #188038; }
.dist-air     { background: #f4a62a; }
.dist-water   { background: #1a73e8; }
.dist-cardinal { background: #e84a6a; }
.dist-fixed    { background: #6366f1; }
.dist-mutable  { background: #10b981; }
.dist-pct { font-size: 0.75rem; width: 2.5rem; text-align: right; color: var(--text-muted); }

/* Sitni indikatori */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot-natal { background-color: #9b7ed8; }
.dot-transit { background-color: var(--accent); }
.legend-lbl { font-size: 0.75rem; color: var(--text-muted); margin-left: 4px; font-weight: 400; }

[hidden] { display: none !important; }

/* Spinner */
.spinner-wrap { flex: 1; display: flex; gap: 1rem; align-items: center; justify-content: center; color: var(--text-muted); font-weight: 500;}
.spinner { width: 30px; height: 30px; border: 3px solid var(--border-light); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── VIEW CONTROLS BAR ── */
.view-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  box-shadow: var(--card-shadow);
}

.vc-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
  white-space: nowrap;
}

.vc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1.5px solid var(--border-light);
  background: var(--main-bg);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
}

.vc-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(24, 144, 255, 0.06);
}

.vc-btn.active {
  background: rgba(24, 144, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.vc-btn .vc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.vc-spacer { flex: 1; }

.vc-print {
  border-color: #52c41a;
  color: #52c41a;
}
.vc-print:hover {
  background: rgba(82, 196, 26, 0.1);
  border-color: #52c41a;
  color: #389e0d;
}

.vc-share {
  border-color: #1890ff;
  color: #1890ff;
}
.vc-share:hover {
  background: rgba(24, 144, 255, 0.1);
  border-color: #1890ff;
  color: #096dd9;
}
.vc-share.copied {
  border-color: #52c41a;
  color: #52c41a;
}

/* ── CARD BODY COLLAPSE ANIMATION ── */
.stat-section {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1),
              margin-bottom 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 1.5rem;
}

.stat-section.collapsed {
  grid-template-rows: 0fr;
  margin-bottom: 0;
}

.stat-section-inner {
  overflow: hidden;
  min-height: 0;
}

.stat-section-inner .stat-strip {
  margin-bottom: 0; /* inner strip doesn't need its own margin */
}

.card-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.card--collapsed .card-body {
  grid-template-rows: 0fr;
}

.card-body-inner {
  overflow: hidden;
  min-height: 0;
}

/* When chart-card collapses, let card shrink */
.card--collapsed {
  height: auto;
  min-height: unset;
}

/* ════════════════════════════════════════
   RESPONSIVE (MOBITELI I MANJI EKRANI)
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  /* Na tabletima stavljamo kartu iznad tablica */
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Na mobitelima gasimo Flex layout i puštamo da se normalno skrola */
  body {
    height: auto;
    overflow-x: hidden; /* Spreči horizontalni overflow */
    overflow-y: auto;
    max-width: 100vw;
  }
  
  .dashboard-wrapper {
    flex-direction: column;
    height: auto;
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Sidebar ide na vrh i zauzima 100% širine */
  .sidebar {
    width: 100%;
    max-width: 100vw;
    height: auto;
    max-height: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 50;
  }
  
  .sidebar-forms {
    padding-bottom: 2rem;
  }

  /* Glavni sadržaj ide ispod sidebara */
  .main-content {
    overflow-x: hidden;
    overflow-y: visible;
    padding: 1rem;
    max-width: 100vw;
  }

  /* Kartice idu jedna ispod druge na mobitelu */
  .stat-strip {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  .view-controls {
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    justify-content: center;
  }

  .vc-label {
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: 0.15rem;
    font-size: 0.68rem;
  }

  .vc-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
    flex: 0 0 auto;
  }

  .vc-spacer { display: none; }

  .vc-print,
  .vc-share {
    margin-top: 0.2rem;
  }
  
  .stat-chip {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07), inset 4px 0 0 0 var(--accent);
  }
  
  .card {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  }

  /* Karta i tablice idu jedna ispod druge na mobitelu */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }

  /* Optimiziramo kartu za mobitel – karta od ruba do ruba */
  .chart-card {
    min-height: 85vw;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
    max-width: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .chart-card .card-body,
  .chart-card .card-body-inner {
    padding: 0;
  }
  .chart-wrap {
    max-width: 100%;
    width: 100%;
    height: auto;
    padding: 0;
  }
  .chart-wrap svg {
    width: 100%;
    height: auto;
    display: block;
  }
  .card-header {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  /* Tablice na mobitelu – kompaktniji prikaz */
  .tables-column {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .data-table {
    max-width: 100%;
    table-layout: fixed;
    word-break: break-word;
  }
  
  .data-table th, 
  .data-table td {
    padding: 0.5rem 0.3rem;
    font-size: 0.82rem;
  }
  .pt-sym {
    font-size: 1.6rem;
    width: 32px;
    padding: 0.3rem 0;
  }
  .pt-name {
    font-size: 0.82rem;
    font-weight: 600;
  }
  .pt-pos {
    font-size: 0.78rem;
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-variant-numeric: tabular-nums;
  }
  .pt-house {
    font-size: 0.8rem;
    width: 28px;
    text-align: center;
    padding: 0.3rem 0.15rem;
  }
  .pt-ret {
    font-size: 0.75rem;
    width: 22px;
    padding: 0.3rem 0.1rem;
  }

  /* Aspektna mreža – smanji ćelije i omogući scroll */
  .aspect-grid-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem;
  }
  .asp-grid td,
  .asp-grid th {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.9rem;
  }

  .asp-row {
    gap: 0.4rem;
    padding: 0.6rem 0.4rem;
    font-size: 0.85rem;
  }
  .asp-glyph {
    font-size: 1.2rem;
  }
  .asp-pair {
    font-size: 0.85rem;
  }
  .asp-orb {
    font-size: 0.8rem;
  }
  
  .asp-list {
    max-height: none;
    overflow-y: visible;
    padding: 0.4rem 0.5rem 0.75rem;
  }
  
  .tables-column .card {
    max-height: none;
    height: auto;
  }

  .card-body, .card-body-inner {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
  }
}
/* ══════════════════════════════════
   PRINT HEADER (skriveno na ekranu)
   ══════════════════════════════════ */
.print-header { display: none; }

/* ══════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════ */
@media print {
  /* Stranica */
  @page {
    size: A4 portrait;
    margin: 12mm 10mm 10mm 10mm;
  }

  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  /* Ukloni sve scrollove */
  *, *::before, *::after {
    overflow: visible !important;
    max-height: none !important;
  }

  body {
    overflow: visible !important;
    height: auto;
    background: #fff;
    font-size: 10pt;
    color: #1a1a1a;
  }
  .dashboard-wrapper { display: block; height: auto; overflow: visible !important; }

  /* Sakrij UI elemente */
  .sidebar,
  .view-controls,
  #loading-overlay,
  .chart-filters,
  .chart-empty,
  #btn-print { display: none !important; }

  /* Prikaži zaglavlje ispisa */
  .print-header {
    display: block !important;
    text-align: center;
    padding-bottom: 8pt;
    margin-bottom: 10pt;
    border-bottom: 2pt solid #1890ff;
  }
  .ph-brand {
    font-size: 11pt;
    color: #1890ff;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 2pt;
  }
  .ph-title {
    font-size: 16pt;
    font-weight: 700;
    color: #1a1a1a;
    margin: 2pt 0;
  }
  .ph-meta {
    font-size: 9pt;
    color: #555;
    line-height: 1.5;
  }

  /* Glavni sadržaj – puna širina */
  .main-content {
    padding: 0;
    overflow: visible;
    width: 100%;
  }

  /* Stat strip – kompaktan pregled */
  .stat-section { margin-bottom: 8pt; }
  .stat-section, .stat-section-inner, .stat-strip { break-inside: avoid; }
  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 6pt;
  }
  .stat-chip {
    box-shadow: none;
    border: 1px solid #ddd;
    padding: 6pt 8pt;
    border-radius: 4pt;
  }
  .sc-label { font-size: 7pt; }
  .sc-sym { font-size: 14pt; margin-right: 4pt; }
  .sc-pos { font-size: 10pt; }
  .sc-sign { font-size: 8pt; }

  /* Content grid – karta gore, tablice dolje */
  .content-grid {
    display: block;
  }

  /* Karta – centrirana, razumna veličina */
  .chart-card {
    min-height: auto;
    border: none;
    box-shadow: none;
    break-inside: avoid;
    page-break-after: auto;
    margin-bottom: 10pt;
  }
  .chart-card .card-header { display: none; }
  .chart-wrap {
    max-height: none;
    display: flex;
    justify-content: center;
    padding: 0;
  }
  .chart-wrap svg {
    width: 420pt !important;
    height: 420pt !important;
    max-width: 100%;
  }

  /* Kartice (tablice, aspekti) */
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    border-radius: 4pt;
    break-inside: avoid;
    margin-bottom: 8pt;
  }
  .card-header {
    background: #f5f7fa;
    border-bottom: 1px solid #ddd;
    padding: 5pt 8pt;
    font-size: 10pt;
  }

  .tables-column { display: block; }
  .tables-column .card {
    max-height: none;
  }
  .card-body, .card-body-inner {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Tablica planeta */
  .data-table th, .data-table td {
    padding: 3pt 6pt;
    font-size: 9pt;
  }
  .pt-sym {
    font-size: 14pt;
    width: 28pt;
  }
  .data-table tr:hover { background: transparent; }

  /* Aspekti */
  .asp-list {
    max-height: none !important;
    overflow: visible !important;
    padding: 4pt 8pt;
  }
  .asp-row {
    gap: 4pt;
    padding: 2pt 4pt;
    border-radius: 0;
  }
  .asp-row:hover { background: transparent; }
  .asp-glyph { font-size: 11pt; }
  .asp-planets { font-size: 8pt; }
  .planet-glyph { font-size: 9pt; }
  .asp-badge { font-size: 6pt; padding: 1pt 4pt; }
  .asp-orb { font-size: 7pt; }
  .asp-section-header { font-size: 7pt; margin-top: 4pt; padding: 3pt 6pt; }
  .asp-section-sym { font-size: 9pt; }

  /* Skriveni paneli ne forsiramo */
  [hidden] { display: none !important; }
}

/* ═══════════════════════════════
   ASTRUM TOAST + MODAL
   ═══════════════════════════════ */

/* Toast container */
.toast-wrap {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  display: flex; flex-direction: column-reverse; gap: 0.6rem;
  z-index: 9999; pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  font-family: var(--font); font-size: 0.88rem;
  color: #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  transform: translateY(20px); opacity: 0;
  animation: toastIn 0.35s ease forwards;
  max-width: 380px;
}
.toast.out { animation: toastOut 0.3s ease forwards; }
.toast-icon { font-size: 1.25rem; flex-shrink: 0; }
.toast-body { flex: 1; line-height: 1.35; }
.toast-body strong { display: block; margin-bottom: 0.15rem; }
.toast-body small { opacity: 0.75; font-size: 0.78rem; }

.toast--success { background: rgba(30, 120, 60, 0.88); border: 1px solid rgba(82, 196, 26, 0.4); }
.toast--error   { background: rgba(140, 30, 30, 0.88); border: 1px solid rgba(232, 64, 64, 0.4); }
.toast--info    { background: rgba(20, 70, 140, 0.88); border: 1px solid rgba(24, 144, 255, 0.4); }
.toast--warn    { background: rgba(130, 90, 10, 0.88); border: 1px solid rgba(232, 192, 64, 0.4); }

@keyframes toastIn  { to { transform: translateY(0); opacity: 1; } }
@keyframes toastOut { to { transform: translateY(20px); opacity: 0; } }

/* Confirm modal overlay */
.amodal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  animation: amodalFadeIn 0.25s ease;
}
.amodal-overlay.out { animation: amodalFadeOut 0.2s ease forwards; }

.amodal {
  background: #0d1e30;
  border: 1px solid rgba(24, 144, 255, 0.2);
  border-radius: 14px;
  padding: 1.8rem 2rem 1.5rem;
  max-width: 380px; width: 90%;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
  color: #e0e6ed;
  font-family: var(--font);
  text-align: center;
}
.amodal-icon { font-size: 2.4rem; margin-bottom: 0.6rem; }
.amodal-title { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.amodal-msg { font-size: 0.88rem; line-height: 1.45; color: #a6adb4; margin-bottom: 1.4rem; }
.amodal-btns { display: flex; gap: 0.65rem; justify-content: center; }
.amodal-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-family: var(--font); font-size: 0.88rem; font-weight: 500;
  cursor: pointer; border: none;
  transition: all 0.18s;
}
.amodal-btn--cancel {
  background: rgba(255,255,255,0.08); color: #a6adb4;
}
.amodal-btn--cancel:hover { background: rgba(255,255,255,0.14); color: #fff; }
.amodal-btn--ok {
  background: var(--accent); color: #fff;
}
.amodal-btn--ok:hover { background: var(--accent-hover); }
.amodal-btn--danger {
  background: #c0392b; color: #fff;
}
.amodal-btn--danger:hover { background: #e74c3c; }

@keyframes amodalFadeIn  { from { opacity: 0; } to { opacity: 1; } }

/* ═══════════════════════════════
   TRANSIT TIMELINE
   ═══════════════════════════════ */

/* Kartica ispod content-grid – flex child od .main-content */
.timeline-card {
  flex-shrink: 0;
  margin-top: 1.5rem;
}

.timeline-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tl-month-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(24, 144, 255, 0.08);
  border-radius: 6px;
  padding: 2px 10px;
  white-space: nowrap;
}
.tl-month-label:empty { display: none; }

.tl-hint {
  flex: 1;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  min-width: 0;
}

.btn-tl-generate {
  padding: 0.4rem 1.1rem;
  border-radius: 8px;
  border: none;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-tl-generate:hover:not(:disabled) { opacity: 0.85; transform: translateY(-1px); }
.btn-tl-generate:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Progress bar ── */
.tl-progress { margin-bottom: 1rem; }
.tl-progress-bar-wrap {
  height: 5px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}
.tl-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.25s ease;
}
.tl-progress-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Kontejner grafikona ── */
.tl-chart { min-height: 40px; }
.tl-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Tablica ── */
.tl-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.tl-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

/* Fiksna lijeva kolumna – naziv aspekta */
.tl-corner {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--card-bg);
  min-width: 190px;
  width: 190px;
  text-align: left;
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-right: 2px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.tl-corner--top { vertical-align: bottom; }

/* Zaglavlje dana */
.tl-day-wd,
.tl-day-num {
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0.25rem 1px;
  border-bottom: 1px solid var(--border-light);
  user-select: none;
}
.tl-day-wd { font-weight: 500; padding-top: 0.4rem; }
.tl-day-num { font-weight: 400; padding-bottom: 0.4rem; }
.tl-weekend { color: #b05a5a; }

/* Naziv aspekta – sticky */
.tl-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--card-bg);
  white-space: nowrap;
  padding: 0.3rem 0.75rem;
  border-right: 2px solid var(--border-light);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.82rem;
}

.tl-l-sym  { font-size: 1.05rem; line-height: 1; }
.tl-l-name { color: var(--text-muted); font-size: 0.76rem; }
.tl-l-asp  { font-size: 1.05rem; font-weight: 700; margin: 0 2px; }

/* Ćelije dana */
.tl-cell {
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  height: 28px;
  padding: 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  border-right: 1px solid rgba(0,0,0,0.03);
  transition: filter 0.1s;
}
.tl-cell--active { cursor: crosshair; }
.tl-cell--active:hover { filter: brightness(1.15) saturate(1.3); }
.tl-weekend-cell { border-right: 1px solid rgba(0,0,0,0.08); }

/* ── Tooltip ── */
.tl-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(12, 18, 38, 0.96);
  color: #dde8ff;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 9px;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.6;
  pointer-events: none;
  max-width: 280px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
}
@keyframes amodalFadeOut { from { opacity: 1; } to { opacity: 0; } }