:root {
  /* Sidebar Tamna Tema */
  --sb-bg: #001529;
  --sb-text: #a6adb4;
  --sb-text-hover: #ffffff;
  --sb-active-bg: #1890ff;
  --sb-input-bg: rgba(255, 255, 255, 0.05);
  --sb-input-border: rgba(255, 255, 255, 0.1);
  
  /* Main Svijetla Tema */
  --main-bg: #f0f2f5;
  --card-bg: #ffffff;
  --text-main: #262626;
  --text-muted: #8c8c8c;
  --border-light: #f0f0f0;
  
  /* Akcent boje */
  --accent: #1890ff;
  --accent-hover: #40a9ff;
  
  --font: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background-color: var(--main-bg);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
}

.dashboard-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 350px; 
  background-color: var(--sb-bg);
  color: var(--sb-text);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  box-shadow: 2px 0 8px rgba(0,0,0,0.15);
  z-index: 20;
}

.sidebar-brand {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  background-color: rgba(0,0,0,0.2);
}
.brand-left { display: flex; align-items: center; }
.brand-glyph { color: var(--accent); margin-right: 0.5rem; font-size: 1.5rem; }
.status-badge { font-size: 0.65rem; color: #52c41a; background: rgba(82, 196, 26, 0.15); border: 1px solid rgba(82, 196, 26, 0.3); padding: 0.2rem 0.5rem; border-radius: 4px; font-weight: 500;}

/* 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); color: #fff; border: none; border-radius: 4px; font-weight: 600; font-size: 1rem; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.2); transition: background 0.2s; letter-spacing: 0.02em; }
.btn-calc:hover { background: var(--accent-hover); }

/* 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: 8px; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); 
  display: flex; 
  flex-direction: column; 
  gap: 0.6rem; 
  border: 1px solid var(--border-light);
  /* Lijevu akcent liniju radimo shadow-om da ne utječe na box model */
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), inset 3px 0 0 0 var(--border-light);
}
.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 380px;
  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: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  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: 1rem 1.25rem; text-align: left; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border-light); }
.data-table td { padding: 1rem 1.25rem; 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-house { color: var(--text-muted); }

/* ── 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; }

/* 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: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.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;
}

/* ── 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: 1rem;
    max-width: 100%;
  }

  .view-controls {
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
  }

  .vc-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
  }
  
  .stat-chip {
    max-width: 100%;
  }
  
  .card {
    max-width: 100%;
  }

  /* Karta i tablice idu jedna ispod druge na mobitelu */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }

  /* Optimiziramo kartu za mobitel */
  .chart-card {
    min-height: 350px; /* Još manje za bolji fit */
    margin: 0;
    width: 100%;
    max-width: 100%;
  }
  .chart-wrap {
    padding: 0.25rem; /* Minimalan padding */
    max-width: 100%;
    height: auto;
  }
  .card-header {
    padding: 0.75rem 1rem; /* Manji header za više prostora karti */
    font-size: 0.95rem;
  }
  
  /* Smanjujemo razmake u tablici za mobitel da sve stane */
  .tables-column {
    max-width: 100%;
  }
  
  .data-table {
    max-width: 100%;
  }
  
  .data-table th, 
  .data-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
  .pt-sym {
    font-size: 2rem; /* Manji simboli na mobitelu ali i dalje vidljivi */
    width: 50px;
    padding: 0.35rem 0;
  }
  .asp-row {
    gap: 0.5rem;
    padding: 0.75rem 0.5rem;
  }
  
  .asp-list {
    max-height: none;
    overflow-y: visible;
  }
  
  .tables-column .card {
    max-height: none;
    height: auto;
  }

  .card-body, .card-body-inner {
    max-height: none;
    overflow: 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; }
}