/* ═══ Astro · stranice (faza 3) ═══ */

/* ─── zajedničko ─── */
.page-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.page-head__meta { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lbl { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lbl--gold { color: var(--gold); }
.serif { font-family: var(--serif); font-weight: 400; color: var(--head); }
.panel { padding: 22px 24px; border-radius: 22px; background: rgba(255,255,255,.045); border: 1px solid var(--line); min-width: 0; }
.panel--gold { background: linear-gradient(150deg, #2A1D5A, #15123A); border-color: rgba(227,196,122,.25); }
.panel--warm { background: rgba(227,196,122,.07); border-color: rgba(227,196,122,.25); }
.panel h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--head); }
.panel h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--head); }
.cols { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.flex { display: flex; gap: 12px; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.dim { color: var(--dim); } .faint { color: var(--faint); } .gold { color: var(--gold); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.rowline { border-top: 1px solid rgba(255,255,255,.07); }
a.cardlink { text-decoration: none; color: inherit; transition: border-color .2s; }
a.cardlink:hover { border-color: rgba(227,196,122,.35); color: inherit; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 24px; background: rgba(255,255,255,.05); flex-wrap: wrap; }
.tabs button { height: 38px; padding: 0 18px; border-radius: 19px; border: 0; background: transparent; color: var(--dim);
  font: 700 14px var(--sans); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--gold); color: var(--ink); }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-sm { padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 12px; font-weight: 600; color: var(--dim); }
.tag { padding: 4px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
.bar { height: 10px; border-radius: 5px; background: rgba(255,255,255,.07); overflow: hidden; flex: 1; }
.bar > span { display: block; height: 100%; border-radius: 5px; }
.notice { padding: 12px 16px; border-radius: 14px; background: rgba(143,227,181,.1); border: 1px solid rgba(143,227,181,.35); color: #CFF5DE; font-size: 14px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }
button.btn { font-family: var(--sans); }

@media (max-width: 1200px) {
  .cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: minmax(0, 1fr); }
  .cols-4.keep-2, .cols-5.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2, .span-3 { grid-column: auto; }
  .panel { padding: 18px; border-radius: 20px; }
  .panel h2 { font-size: 21px; }
}

/* ─── Početna: živo nebo ─── */
.skybox { position: relative; height: 580px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg,#070820 0%,#141344 50%,#2A1F5E 80%,#3B2A6A 100%); }
.skybox[data-sky="dusk"] { background: linear-gradient(180deg,#0A0B2A 0%,#1B1650 45%,#4A2A6E 68%,#8A4B78 82%,#C97E7A 100%); }
.skybox[data-sky="dawn"] { background: linear-gradient(180deg,#141A44 0%,#3B3C78 45%,#9C7AA6 75%,#F2B8A0 100%); }
.skybox[data-sky="day"] { background: linear-gradient(180deg,#1C2E6E 0%,#3D5AA8 55%,#8DA6D8 100%); }
.skybox__layer { position: absolute; inset: 0; transition: transform .3s ease-out; }
.skybox__stars { inset: -30px; }
.skybox__chips { position: absolute; left: 24px; top: 20px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.skychip { height: 32px; padding: 0 14px; border-radius: 16px; background: rgba(11,9,40,.7); border: 1px solid rgba(255,255,255,.13);
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #CFC6F0; display: flex; align-items: center; }
.orb { position: absolute; width: 44px; height: 44px; transform: translate(-50%,-50%); background: transparent; border: 0;
  padding: 0; cursor: pointer; transition: left .35s ease, top .35s ease; }
.orb:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 22px; }
.orb__dot { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%,-50%); transition: box-shadow .3s; }
.orb__dot.is-sel { animation: orbpulse 2.4s ease-in-out infinite; }
.orb__label { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 700 12px var(--sans);
  letter-spacing: .08em; color: #CFC6F0; pointer-events: none; }
@keyframes orbpulse { 0%,100% { transform: translate(-50%,-50%) scale(1) } 50% { transform: translate(-50%,-50%) scale(1.12) } }
.skyinfo { position: absolute; left: 24px; bottom: 96px; width: 380px; max-width: calc(100% - 48px); padding: 18px 20px;
  border-radius: 20px; background: rgba(14,12,44,.9); border: 1px solid rgba(227,196,122,.25); display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.skyinfo__icon { width: 40px; height: 40px; border-radius: 20px; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.timebar { position: absolute; left: 24px; right: 24px; bottom: 20px; height: 56px; padding: 0 20px; border-radius: 28px;
  background: rgba(11,9,40,.8); border: 1px solid rgba(255,255,255,.13); display: flex; align-items: center; gap: 16px; z-index: 2; }
.timebar label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.timebar input { flex: 1; min-width: 0; accent-color: var(--gold); }
.timebar__day { min-width: 140px; text-align: right; font-size: 14px; font-weight: 700; color: var(--head); }
.skyhint { display: none; }
.sky-mobile-head { display: none; }

@media (max-width: 959px) {
  .home .main, .main.home { padding-top: 0; }
  .skybox { margin: 0 -16px; border-radius: 0 0 28px 28px; border-width: 0 0 1px; height: 460px; }
  .skybox__scroll { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .skybox__scroll::-webkit-scrollbar { display: none; }
  .skybox__canvas { position: relative; width: 900px; height: 100%; }
  .skybox__chips, .skyinfo, .timebar, .home-head { display: none; }
  .sky-mobile-head { display: flex; position: absolute; left: 16px; right: 16px; top: calc(16px + env(safe-area-inset-top, 0px));
    justify-content: space-between; align-items: flex-start; z-index: 2; pointer-events: none; }
  .sky-mobile-head .h1 { font-size: 28px; }
  .skyhint { display: block; position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 12px; color: #CFC6F0; z-index: 2; pointer-events: none; }
  .skyinfo--mobile { display: flex; position: static; width: auto; max-width: none; }
  .timebar--mobile { display: flex; position: static; height: auto; padding: 10px 0 0; background: none; border: 0; gap: 12px; }
}
@media (min-width: 960px) {
  .skybox__scroll { position: absolute; inset: 0; }
  .skybox__canvas { position: absolute; inset: 0; }
  .skyinfo--mobile, .timebar--mobile { display: none !important; }
}

/* Mesec – mala ikona */
.moonmini { flex-shrink: 0; }

/* ─── Natalna karta ─── */
.wheelbox { flex: 0 0 600px; max-width: 100%; aspect-ratio: 1; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 50%, #1D1850 0%, #0E0D2E 70%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.wheelbox svg { width: 100%; height: auto; max-width: 560px; overflow: visible; }
.wheel-anim { animation: wheelIn 1.4s cubic-bezier(.2,.7,.2,1) both; transform-origin: 50% 50%; }
@keyframes wheelIn { from { transform: rotate(-40deg); opacity: 0 } to { transform: rotate(0); opacity: 1 } }
.wp { cursor: pointer; }
.wp circle { transition: fill .2s, stroke .2s; }
.wp:focus { outline: none; }
.wp:focus-visible circle { stroke: #F4EEDD; stroke-width: 2; }
.planet-aside { flex: 1 1 320px; min-width: 0; padding: 28px; border-radius: 28px; background: rgba(255,255,255,.04); border: 1px solid rgba(227,196,122,.2);
  display: flex; flex-direction: column; gap: 14px; }
.planet-aside__icon { width: 56px; height: 56px; border-radius: 28px; color: var(--ink); font-size: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ptable button { width: 100%; display: grid; grid-template-columns: 34px 1.4fr 1fr 48px; gap: 0 10px; align-items: center; min-height: 42px;
  padding: 0 8px; border: 0; border-top: 1px solid rgba(255,255,255,.06); background: transparent; color: var(--text);
  font: 15px var(--sans); text-align: left; cursor: pointer; border-radius: 8px; }
.ptable button:hover { background: rgba(255,255,255,.03); }
.ptable button.is-sel { background: rgba(227,196,122,.1); }
.ptable__head { display: grid; grid-template-columns: 34px 1.4fr 1fr 48px; gap: 0 10px; padding: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.asprow { display: grid; grid-template-columns: 80px 1fr 48px; gap: 10px; align-items: center; min-height: 42px; border-top: 1px solid rgba(255,255,255,.06); }
.pattern { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); }
.pattern--flow { background: rgba(127,184,255,.08); border-color: rgba(127,184,255,.25); }
.pattern--fusion { background: rgba(227,196,122,.08); border-color: rgba(227,196,122,.25); }
.pattern--tension { background: rgba(255,179,138,.08); border-color: rgba(255,179,138,.25); }
@media (max-width: 959px) {
  .wheelbox { flex-basis: 100%; padding: 8px; border-radius: 22px; }
  .planet-aside { padding: 20px; border-radius: 22px; }
}

/* ─── Tranziti ─── */
.trrow { width: 100%; display: grid; grid-template-columns: 26px 90px 1fr auto 18px; gap: 12px; align-items: center; min-height: 58px;
  padding: 0 8px; border: 0; background: transparent; color: var(--text); text-align: left; font-family: var(--sans); cursor: pointer; border-radius: 10px; }
.trrow:hover { background: rgba(255,255,255,.03); }
.trmore { margin: 0 8px 14px 46px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); display: flex; flex-direction: column; gap: 8px; }
.hourrow { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid transparent; }
.hourrow.is-now { background: rgba(227,196,122,.1); border-color: rgba(227,196,122,.33); }
.retro { padding: 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
.tlhead, .tlrow { display: grid; grid-template-columns: 190px 1fr; align-items: center; }
.tlmonths { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); font-size: 11px; font-weight: 700; color: var(--faint); letter-spacing: .06em; }
.tlrow { min-height: 40px; border-top: 1px solid rgba(255,255,255,.06); }
.tlbar { position: relative; height: 14px; }
.tlbar span { position: absolute; top: 0; bottom: 0; border-radius: 7px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal button { height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03);
  color: var(--dim); font: 700 14px var(--sans); padding: 0; position: relative; cursor: pointer; }
.cal button.power { color: #8FE3B5; background: rgba(143,227,181,.08); border-color: rgba(143,227,181,.33); }
.cal button.hard { color: #FFB38A; background: rgba(255,179,138,.08); border-color: rgba(255,179,138,.33); }
.cal button.is-sel { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cal button.today { box-shadow: inset 0 0 0 1px #F4EEDD; }
.cal button i { position: absolute; right: 4px; top: 2px; font-size: 10px; font-style: normal; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 700; color: var(--faint); }
@media (max-width: 959px) {
  .trrow { grid-template-columns: 80px 1fr 18px; }
  .trrow .tr-rank, .trrow .tag { display: none; }
  .trmore { margin-left: 8px; }
  .tlhead, .tlrow { grid-template-columns: 120px 1fr; }
  .tlrow > span:first-child { font-size: 12px; }
  .tlmonths span:nth-child(even) { visibility: hidden; }
}

/* ─── Mesec ─── */
.moonhero { position: relative; padding: 36px 40px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(ellipse at 25% 50%, #2A2466 0%, #0E0D2E 70%); display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.moonhero__disc { position: relative; width: 300px; max-width: 100%; flex-shrink: 0; }
.moonhero__glow { position: absolute; inset: -30px; border-radius: 50%; }
.moonhero svg { position: relative; width: 100%; height: auto; display: block; }
.moonhero__body { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.moonhero input[type=range] { flex: 1; accent-color: var(--gold); min-width: 0; }
.lunrow { display: grid; grid-template-columns: 26px 120px 1fr; gap: 12px; align-items: center; min-height: 56px; border-top: 1px solid rgba(255,255,255,.06); }
.lundot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(227,196,122,.5); }
.field textarea, .input--area { height: auto; padding: 12px 16px; font-size: 15px; line-height: 1.5; resize: vertical; }
.input--sm { height: 46px; font-size: 15px; }
.check { display: flex; gap: 12px; align-items: center; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
@media (max-width: 959px) { .lunrow { grid-template-columns: 20px 1fr; padding: 8px 0; } .lunrow > span:last-child { grid-column: 2; } .moonhero { padding: 24px 18px; gap: 20px; border-radius: 22px; } .moonhero__disc { width: 220px; margin: 0 auto; } }

/* ─── Rođendan ─── */
.bdhero { position: relative; padding: 40px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(227,196,122,.25);
  background: radial-gradient(ellipse at 80% 40%, #3A2470 0%, #15123A 60%, #0B0E24 100%); display: flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.bdhero__body { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; position: relative; min-width: 0; }
.countdown { display: flex; gap: 12px; flex-wrap: wrap; }
.countdown div { width: 92px; padding: 14px 0; border-radius: 16px; background: rgba(255,255,255,.06); text-align: center; }
.countdown b { display: block; font-family: var(--serif); font-weight: 400; font-size: 36px; color: var(--head); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; color: var(--dim); font-weight: 600; }
.orbit { position: relative; width: 300px; height: 300px; flex-shrink: 0; margin: 0 auto; }
.orbit svg { position: absolute; inset: 0; }
.orbit__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.orbit__sun { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #F6C453; box-shadow: 0 0 24px 6px rgba(246,196,83,.6); transform: translate(-50%,-50%); }
.sealed { padding: 28px; border-radius: 22px; background: #E9DCC0; color: #2A1F15; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.seal { width: 56px; height: 56px; border-radius: 28px; background: #7A1F24; box-shadow: inset 0 0 0 4px rgba(0,0,0,.2); display: flex;
  align-items: center; justify-content: center; color: #F1D9B0; font-family: var(--serif); font-size: 22px; }
.months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.months button { padding: 10px 4px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03);
  color: var(--text); font-family: var(--sans); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.months button.is-sel { border-color: var(--gold); background: rgba(227,196,122,.12); }
.months b { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.months button.is-sel b { color: var(--gold); }
.months small { font-size: 10px; letter-spacing: 1px; }
@media (max-width: 959px) {
  .bdhero { padding: 26px 18px; gap: 20px; border-radius: 22px; }
  .countdown div { width: calc(25% - 9px); }
  .countdown b { font-size: 28px; }
  .orbit { width: 240px; height: 240px; }
  .months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ═══ Faza 4a ═══ */

/* Numerologija */
.numcards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.numcard { padding: 16px 10px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text);
  font-family: var(--sans); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.numcard.is-sel { border-color: var(--gold); background: rgba(227,196,122,.1); }
.numcard__v { font-size: 46px; line-height: 1.1; color: var(--gold); }
.yearrow { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.yearcell, .weekcell { padding: 12px 6px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.yearcell.is-now { border-color: var(--gold); background: rgba(227,196,122,.1); }
.weekrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.weekcell.is-now { background: var(--gold); border-color: var(--gold); }
.weekcell.is-now .tiny, .weekcell.is-now .small { color: var(--ink); }
@media (max-width: 1200px) { .numcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 959px) {
  .numcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .numcard__v { font-size: 36px; }
  .yearrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Vedska – južnoindijska karta */
.vedbox { flex: 0 0 560px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.vedgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr));
  aspect-ratio: 1; border: 1.6px solid #F0D68C; border-radius: 6px; background: #1A1638; overflow: hidden; }
.vedcell { position: relative; border: 1px solid rgba(240,214,140,.45); background: transparent; color: var(--text); font-family: var(--sans);
  padding: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer; min-width: 0; }
div.vedcell { cursor: default; }
.vedcell:hover { background: rgba(240,214,140,.06); }
.vedcell.is-sel { background: rgba(240,214,140,.16); }
.vedcell.is-lagna::before { content: ''; position: absolute; left: 0; top: 0; width: 28px; height: 28px;
  background: linear-gradient(135deg, #F0D68C 0 2px, transparent 2px); }
.vedcell.is-lagna::after { content: 'Lagna'; position: absolute; right: 6px; bottom: 4px; font-size: 10px; font-weight: 700; color: #F0D68C; letter-spacing: .06em; }
.vedcell__sign { font-size: 11px; color: var(--faint); font-weight: 600; }
.vedcell__house { position: absolute; right: 6px; top: 6px; font-size: 11px; color: #F0D68C; font-weight: 700; }
.vedcell__planets { display: flex; flex-wrap: wrap; gap: 2px 7px; font-size: 15px; }
.vedcell__planets b { font-weight: 700; }
.vedcenter { grid-row: 2 / 4; grid-column: 2 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; border: 1px solid rgba(240,214,140,.45); text-align: center; }
.dashabar { display: flex; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.dashabar button { min-width: 0; padding: 10px 6px; border: 0; border-right: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03);
  color: var(--dim); font-family: var(--sans); cursor: pointer; display: flex; flex-direction: column; gap: 2px; overflow: hidden; text-align: left; }
.dashabar button span { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashabar button small { font-size: 10px; color: var(--faint); white-space: nowrap; }
.dashabar button.now { background: rgba(227,196,122,.12); color: var(--gold); }
.dashabar button.is-sel { box-shadow: inset 0 -3px 0 var(--gold); color: var(--head); }
@media (max-width: 959px) {
  .vedbox { flex-basis: 100%; }
  .vedcell { padding: 5px; } .vedcell__planets { font-size: 12px; gap: 1px 5px; } .vedcell__sign { font-size: 9px; }
  .dashabar { overflow-x: auto; } .dashabar button { flex-basis: auto !important; min-width: 84px; }
}

/* Kineski */
.cnhero { position: relative; padding: 36px 40px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(227,196,122,.25);
  background: radial-gradient(ellipse at 15% 40%, #4A1F2E 0%, #1E1240 55%, #0E0D2E 100%); display: flex; gap: 36px; align-items: center; flex-wrap: wrap; }
.cnhero__char { font-size: 180px; line-height: 1; color: #E3C47A; text-shadow: 0 0 60px rgba(227,196,122,.35); width: 220px; text-align: center; flex-shrink: 0; }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pillar { padding: 14px 6px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.pillar.is-me { border-color: var(--gold); background: rgba(227,196,122,.08); }
.pillar__ch { font-size: 40px; line-height: 1.15; }
.zodring { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1; margin: 0 auto; }
.zodring__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 64px; color: var(--gold); }
.zodring__item { position: absolute; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 32px; border: 1px solid var(--line);
  background: #14123A; color: var(--text); font-family: var(--sans); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.zodring__item.rel-ally, .zodring__item.rel-harmony { border-color: rgba(143,227,181,.6); }
.zodring__item.rel-clash { border-color: rgba(255,179,138,.6); }
.zodring__item.rel-same { border-color: rgba(227,196,122,.6); }
.zodring__item.is-sel { background: var(--gold); color: var(--ink); }
@media (max-width: 959px) {
  .cnhero { padding: 24px 18px; gap: 12px; border-radius: 22px; }
  .cnhero__char { font-size: 110px; width: 100%; }
  .pillar__ch { font-size: 30px; }
  .zodring__item { width: 50px; height: 50px; } .zodring__item .tiny { font-size: 9px; }
}

/* Mi dvoje */
.duo { display: flex; }
.duo span { width: 46px; height: 46px; border-radius: 23px; display: flex; align-items: center; justify-content: center; font-size: 22px;
  color: var(--ink); border: 2px solid var(--bg); }
.duo span + span { margin-left: -10px; }
.connrow { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 10px; border: 1px solid transparent; border-radius: 12px;
  background: transparent; color: var(--text); font-family: var(--sans); font-size: 14px; cursor: pointer; }
.connrow:hover { background: rgba(255,255,255,.03); }
.connrow.is-sel { border-color: rgba(227,196,122,.4); background: rgba(227,196,122,.08); }
.metsky { position: relative; padding: 40px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, #070820 0%, #1B1650 60%, #3A2462 100%); }
@media (max-width: 959px) { .metsky { padding: 24px 18px; border-radius: 22px; } }
.col > .bar { flex: none; }

/* ═══ Faza 4b ═══ */
.hdbox { flex: 0 0 380px; max-width: 100%; padding: 20px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 45%, #1D1850 0%, #0E0D2E 75%); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hdbox svg { width: 100%; max-width: 320px; height: auto; }
.hdc { cursor: pointer; }
.hdc:focus { outline: none; }
.hdact { display: grid; grid-template-columns: 28px 1fr 70px 70px; gap: 8px; align-items: center; min-height: 34px; font-size: 14px; }
.hdact--head { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.sysicon { width: 46px; height: 46px; border-radius: 23px; border: 1px solid; display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; font-family: var(--serif); }
.syscard { min-height: 220px; }
.sysnav { flex: 0 0 300px; }
.tzgrid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); grid-template-rows: repeat(20, 16px); gap: 3px; max-width: 560px; }
.tzcell { border: 0; border-radius: 3px; background: rgba(255,255,255,.07); padding: 0; cursor: pointer; }
.tzcell:hover { background: rgba(255,255,255,.2); }
.tzcell.is-her { background: var(--gold); }
.tzcell.is-today { background: #8FE3B5; }
.tzcell.is-sel { box-shadow: 0 0 0 2px #F4EEDD; }
@media (max-width: 959px) {
  .hdbox { flex-basis: 100%; }
  .sysnav { flex-basis: 100%; }
  .tzgrid { grid-template-rows: repeat(20, 11px); gap: 2px; }
}

/* ─── Faza 5a: tarot i rune ─── */
.tcard { display: block; width: 100%; height: auto; }
.flip { --w: 220px; width: var(--w); aspect-ratio: 220 / 370; padding: 0; border: 0; background: none; cursor: pointer; perspective: 1200px; flex-shrink: 0; border-radius: 14px; }
.flip--sm { --w: 170px; }
.flip__inner { position: relative; display: block; width: 100%; height: 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.flip.is-open .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.45); }
.flip__front { transform: rotateY(180deg); }
.flip__front.is-rev .tcard { transform: rotate(180deg); }
.flip:not(.is-open):hover .flip__inner { transform: translateY(-4px) rotate(-1deg); }
.flip:focus-visible { outline: 2px solid var(--gold, #E3C47A); outline-offset: 6px; }
.spread { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; justify-items: center; align-items: start; }
.rune { width: 96px; height: 120px; border-radius: 48px 48px 22px 22px; display: flex; align-items: center; justify-content: center;
  font-size: 58px; color: #E3C47A; background: linear-gradient(160deg, #3B3566, #1C1940); border: 1px solid rgba(227,196,122,.35);
  box-shadow: inset 0 -6px 18px rgba(0,0,0,.35); font-family: "Segoe UI Historic", "Noto Sans Runic", serif; }
.rune--sm { width: 56px; height: 70px; font-size: 32px; border-radius: 28px 28px 14px 14px; flex-shrink: 0; }
.homecard { width: 92px; flex-shrink: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
@media (max-width: 720px) {
  .flip { --w: 180px; }
  .flip--sm { --w: 100%; max-width: 104px; }
  .spread { gap: 10px; }
  .homecard { width: 74px; }
}

/* ─── Faza 5a: čakre ─── */
.chbody { position: relative; flex: 0 0 240px; height: 480px; margin: 0 auto; }
.chbody svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chorb { position: absolute; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 35% 35%, #fff8, var(--c) 45%, transparent 75%); box-shadow: 0 0 18px var(--c); opacity: .75; transition: transform .25s, opacity .25s; }
.chorb:hover { opacity: 1; }
.chorb.is-sel { opacity: 1; transform: scale(1.35); box-shadow: 0 0 34px var(--c), 0 0 0 2px #ffffffaa; }
.chdot { width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6, var(--c) 55%); box-shadow: 0 0 22px var(--c); flex-shrink: 0; }
.chdot--sm { width: 14px; height: 14px; box-shadow: 0 0 8px var(--c); }
.chrow { display: grid; grid-template-columns: 14px 120px minmax(0, 1fr) 14px; gap: 12px; align-items: center; min-height: 36px; }
.chrow input[type=range] { width: 100%; }
.chgrid { display: grid; grid-template-columns: auto repeat(14, minmax(0, 1fr)); gap: 4px; align-items: center; }
.chcell { aspect-ratio: 1; border-radius: 5px; background: rgba(255,255,255,.06); min-width: 0; }
.breath { position: relative; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; }
.breath__ball { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(180,140,217,.55), rgba(91,95,214,.25) 60%, transparent 72%);
  border: 1px solid rgba(227,196,122,.3); transition: transform 1s linear; transform: scale(.6); }
.breath__txt { position: relative; text-align: center; }
@media (max-width: 720px) {
  .chbody { flex-basis: 100%; height: 400px; max-width: 200px; }
  .chrow { grid-template-columns: 14px 96px minmax(0, 1fr) 14px; gap: 8px; }
  .chgrid { gap: 2px; }
}
.chfocus { padding: 10px 16px; border-radius: 20px; display: block; height: auto; line-height: 1.4; }
.chmap__name { width: 120px; flex-shrink: 0; }
@media (max-width: 720px) {
  .chfocus { font-size: 13px; }
  .chmap__name { width: 92px; }
  .chbody { height: 340px; }
}
.spread__item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 260px; }
.spread__pos--m { display: none; }
@media (max-width: 720px) {
  .spread { grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: stretch; }
  .spread__item { flex-direction: row; align-items: flex-start; text-align: left; max-width: none; gap: 14px; }
  .spread__pos { display: none; }
  .spread__pos--m { display: block; margin-bottom: 4px; }
  .spread__info { flex: 1; min-width: 0; }
  .flip--sm { --w: 96px; max-width: none; }
}
.chbody { flex: 0 0 228px; height: 480px; }
.chbody + .planet-aside .btn { white-space: nowrap; }
@media (max-width: 720px) { .chbody { flex: 0 0 auto; width: 180px; max-width: none; height: 378px; } }
@media (max-width: 720px) { .chorb { width: 28px; height: 28px; margin: -14px 0 0 -14px; } }

/* ─── Faza 5b: kristali i rituali ─── */
.gem { display: block; width: 100%; height: auto; }
.gemhero { gap: 36px; flex-wrap: wrap; padding: 30px; align-items: center; }
.gemhero__img { width: 200px; height: 200px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%); }
.gemhero__img .gem { width: 150px; filter: drop-shadow(0 10px 28px rgba(0,0,0,.45)); }
.gemowned { background: rgba(143,227,181,.14); color: #CFF5DE; }
.homegem { width: 56px; flex-shrink: 0; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.gemchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 22px; background: rgba(255,255,255,.06);
  font-size: 14px; font-weight: 600; color: var(--head); text-decoration: none; }
.gemchip__img { width: 30px; display: block; }
.fchip { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid rgba(255,255,255,.12); background: transparent; color: var(--dim);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fchip.is-on { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.gemgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.gemcard { border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); scroll-margin-top: 90px; }
.gemcard__head { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.gemcard__img { width: 52px; flex-shrink: 0; }
.gemcard__body { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; }
.ritstep { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); cursor: pointer; font-size: 15px; line-height: 1.45; }
.ritstep input { position: absolute; opacity: 0; pointer-events: none; }
.ritstep__n { width: 26px; height: 26px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold-line, rgba(227,196,122,.4)); color: var(--gold); font-size: 13px; font-weight: 700; }
.ritstep.is-done { opacity: .55; text-decoration: line-through; }
.ritstep.is-done .ritstep__n { background: var(--gold); color: var(--ink); }
.ritrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; width: 100%; min-height: 50px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; flex-wrap: wrap; }

/* ─── Faza 5b: preci ─── */
.tree { padding: 28px 20px; }
.tree__gen { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.tree__title { align-self: center; }
.tree__row { display: flex; gap: 28px; width: 100%; justify-content: space-between; }
.tree__side { flex: 1; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tree__side--mid { flex: 0 1 auto; }
.tree__line { width: 1px; height: 26px; margin: 4px auto; background: linear-gradient(rgba(227,196,122,.5), rgba(227,196,122,.1)); }
.tree__empty { align-self: center; padding: 18px; border: 1px dashed rgba(255,255,255,.14); border-radius: 16px; color: var(--muted); font-size: 13px; }
.pcard { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 140px; padding: 14px 10px; border-radius: 18px; text-align: center;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); text-decoration: none; color: inherit; transition: border-color .2s; }
a.pcard:hover { border-color: rgba(227,196,122,.4); color: inherit; }
.pcard__ph { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #3A2E6E, #1C1940); border: 1px solid rgba(227,196,122,.35); color: var(--gold); font-family: var(--serif, serif); font-size: 24px; margin-bottom: 4px; }
.pcard__ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard__name { font-weight: 700; color: var(--head); font-size: 14px; line-height: 1.3; }
.pcard--her { border-color: rgba(227,196,122,.45); background: rgba(227,196,122,.07); }
.pphoto { width: 220px; height: 260px; border-radius: 22px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #3A2E6E, #1C1940); border: 1px solid rgba(227,196,122,.35); color: var(--gold); font-family: var(--serif, serif); font-size: 64px; }
.pphoto img { width: 100%; height: 100%; object-fit: cover; }
.pphoto--sm { width: 110px; height: 130px; font-size: 36px; border-radius: 16px; }
.factgrid { display: flex; gap: 28px; flex-wrap: wrap; padding: 12px 0; }
.ferr { color: #FFB3A8; font-size: 13px; }
.notice--err { background: rgba(255,120,110,.1); border-color: rgba(255,120,110,.4); color: #FFD3CC; }
.pform select.input { appearance: auto; }
@media (max-width: 720px) {
  .gemhero { padding: 22px; gap: 18px; }
  .gemhero__img { width: 140px; height: 140px; margin: 0 auto; }
  .gemhero__img .gem { width: 104px; }
  .gemgrid { grid-template-columns: minmax(0, 1fr); }
  .tree { padding: 20px 10px; }
  .tree__row { flex-direction: column; gap: 12px; }
  .pcard { width: 128px; }
  .pphoto { width: 100%; height: 300px; }
}
.sr-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.pform input[type=date] { color-scheme: dark; }
.tree__sides { justify-content: space-around; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 720px) {
  .tree__row { flex-direction: row; gap: 8px; }
  .tree__side { gap: 8px; }
  .pcard { width: 108px; padding: 10px 6px; }
  .pcard__ph { width: 56px; height: 56px; font-size: 19px; }
  .pcard__name { font-size: 13px; }
}
a.tree__empty { text-decoration: none; }
.tree__side { align-items: flex-start; align-content: flex-start; }
@media (max-width: 720px) { .pphoto.pphoto--sm { width: 110px; height: 130px; } }

/* ─── Faza 6a: dnevnik ─── */
.jprompt { padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(227,196,122,.2); display: flex; flex-direction: column; gap: 6px; }
.moodrow { display: flex; gap: 8px; flex-wrap: wrap; }
.moodbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.14);
  background: transparent; color: var(--dim); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.moodbtn__dot { width: 12px; height: 12px; border-radius: 6px; background: var(--c); }
.moodbtn.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--head); }
.calnav { width: 38px; height: 38px; border-radius: 19px; display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: rgba(255,255,255,.06); color: var(--head); text-decoration: none; }
.jcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.jcal__h { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.jcal__d { height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.05); color: var(--dim); }
.jcal__d.is-today { outline: 2px solid var(--gold); outline-offset: -2px; }
.jcal__d.is-future { opacity: .35; }
.jdot { display: inline-block; width: 9px; height: 9px; border-radius: 5px; margin-right: 5px; vertical-align: 0; }
.jphases, .jyearbars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; height: 150px; }
.jyearbars { grid-template-columns: repeat(auto-fit, minmax(28px, 1fr)); height: 170px; }
.jphase { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; color: var(--dim); }
.jphase__bar { flex: 1; width: 100%; max-width: 30px; display: flex; align-items: flex-end; border-radius: 8px; background: rgba(255,255,255,.04); overflow: hidden; }
.jphase__bar span { display: block; width: 100%; border-radius: 8px; background: rgba(127,184,255,.55); }
.jphase.is-best .jphase__bar span { background: #8FE3B5; }
.jphase.is-worst .jphase__bar span { background: #B48CD9; }
.jphase__g { font-size: 16px; color: #EFE6C8; }
.jentry { padding: 14px 0; display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 90px; }
.jentry__text { margin: 0; font-size: 15px; line-height: 1.6; white-space: pre-line; color: #DCD6F0; cursor: pointer;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.jentry__text.is-open { display: block; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font-family: inherit; cursor: pointer; text-decoration: underline; }
a.fchip { display: inline-flex; align-items: center; text-decoration: none; }
.jyear { background: linear-gradient(150deg, rgba(255,255,255,.04), rgba(227,196,122,.06)); }
.jyear--open { border-color: rgba(227,196,122,.35); }

/* ─── Faza 6a: podešavanja ─── */
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 22px; background: rgba(255,255,255,.05); width: fit-content; max-width: 100%; }
.seg__o { position: relative; height: 36px; padding: 0 14px; border-radius: 18px; display: inline-flex; align-items: center; cursor: pointer;
  font-size: 13px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--dim) !important; }
.seg__o input { position: absolute; opacity: 0; pointer-events: none; }
.seg__o.is-on { background: var(--gold); color: var(--ink) !important; }
.seg__o:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.sw { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 48px; cursor: pointer; position: relative; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw__l { font-size: 15px; font-weight: 600; color: var(--head); }
.sw__t { width: 46px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.15); position: relative; flex-shrink: 0; transition: background .2s; }
.sw__t::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: #fff; transition: left .2s; }
.sw input:checked + .sw__t { background: var(--gold); }
.sw input:checked + .sw__t::after { left: 23px; }
.sw input:focus-visible + .sw__t { outline: 2px solid var(--gold); outline-offset: 2px; }
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); cursor: pointer;
  text-transform: none !important; letter-spacing: 0 !important; color: var(--head) !important; font-weight: 600 !important; }
.theme input { position: absolute; opacity: 0; pointer-events: none; }
.theme.is-on { border: 2px solid var(--gold); }
.theme__sky { height: 54px; border-radius: 10px; }
.theme__sky--night { background: linear-gradient(180deg, #070820, #2A1F5E); }
.theme__sky--dusk { background: linear-gradient(180deg, #1B1650, #C97E7A); }
.theme__sky--auto { background: linear-gradient(90deg, #141A44, #8A4B78, #3D5AA8); }
@media (max-width: 720px) {
  .jphases { gap: 4px; height: 130px; }
  .moodbtn { height: 36px; padding: 0 11px; font-size: 13px; }
}
.pform input[type=date], input[type=date].input, input[type=time].input { color-scheme: dark; }

/* ─── Faza 6b: pisma ─── */
.notice--gold { background: rgba(227,196,122,.1); border-color: rgba(227,196,122,.45); color: #F6E7B8; }
.egg__sun { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(227,196,122,.45); background: radial-gradient(circle, rgba(227,196,122,.25), transparent 70%);
  color: var(--gold); font-size: 30px; cursor: pointer; transition: box-shadow .3s; }
.egg__sun.is-shake { animation: eggshake .4s; }
@keyframes eggshake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.egg__dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); transition: background .3s; }
.envs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.env { position: relative; height: 150px; border: 0; border-radius: 10px; padding: 0; cursor: pointer; overflow: hidden; font: inherit;
  background: #E9DCC0; color: #3A2E22; box-shadow: 0 10px 26px rgba(0,0,0,.35); transition: transform .2s; }
.env:hover { transform: translateY(-3px) rotate(-.5deg); }
.env--lock { background: #CFC3A8; }
.env.is-sel { outline: 2px solid var(--gold); outline-offset: 3px; }
.env__flap { position: absolute; left: 0; right: 0; top: 0; height: 74px; background: #D9C9A8; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.env--lock .env__flap { background: #B9AC90; }
.env__seal { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); width: 42px; height: 42px; border-radius: 50%;
  background: #7A1F24; color: #F3E3C3; display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.env--lock .env__seal { background: #4A3F55; }
.env--read .env__seal { background: #3B5A3A; }
.env__title { position: absolute; left: 10px; right: 10px; bottom: 26px; font-family: var(--serif, serif); font-size: 17px; text-align: center; }
.env__state { position: absolute; left: 10px; right: 10px; bottom: 9px; font-size: 11px; font-weight: 700; text-align: center; color: #7A1F24; }
.env--lock .env__state { color: #5B4A36; }
.env--read .env__state { color: #3B5A3A; }
.letter { scroll-margin-top: 80px; }
.letter__paper { position: relative; max-width: 720px; margin: 0 auto; padding: 32px 34px; border-radius: 6px; background: #F4ECDA; color: #2E2418;
  box-shadow: 0 20px 50px rgba(0,0,0,.45); background-image: repeating-linear-gradient(transparent 0 31px, rgba(122,31,36,.08) 31px 32px); }
.letter__kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8A6A3A; }
.letter__title { font-family: var(--serif, serif); font-size: 32px; color: #2E2418; }
.letter__close { border: 1px solid rgba(46,36,24,.25); background: transparent; color: #2E2418; border-radius: 16px; height: 32px; padding: 0 12px; font: inherit; font-size: 13px; cursor: pointer; }
.letter__photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; margin: 18px 0 4px; }
.letter__body { margin-top: 16px; white-space: pre-line; font-size: 17px; line-height: 1.9; }
.letter__sign { margin-top: 18px; text-align: right; font-family: var(--serif, serif); font-size: 20px; }
.secret { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03); color: inherit; font: inherit; cursor: pointer; }
.secret.is-open { border-color: rgba(227,196,122,.4); background: rgba(227,196,122,.06); }
.secret__dot { width: 8px; height: 8px; border-radius: 4px; flex-shrink: 0; }
.secret__icon { width: 30px; text-align: center; font-size: 18px; color: var(--gold); }
.mems { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.mem { margin: 0; border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); scroll-margin-top: 90px; }
.mem__ph { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(150deg, #3A2470, #1E1A48); }
.mem__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mem__moon { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 17px; background: rgba(11,14,36,.7);
  color: #EFE6C8; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.mem--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; cursor: pointer; font: inherit;
  color: inherit; border-style: dashed; }
@media (max-width: 720px) {
  .envs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .env { height: 132px; }
  .env__title { font-size: 15px; }
  .letter__paper { padding: 22px 18px; }
  .letter__title { font-size: 26px; }
  .mems { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.env { height: 160px; }
.env__seal { top: 44px; }
.env__title { bottom: 28px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.env__state { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .env { height: 150px; } }

/* ─── Faza 6c: oznaka novog pisma u meniju ─── */
.envbadge { width: 24px; height: 17px; margin-left: auto; flex-shrink: 0; animation: envwiggle 2.8s infinite ease-in-out; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
@keyframes envwiggle { 0%,78%,100% { transform: rotate(0); } 84% { transform: rotate(-10deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
.tab .envbadge { position: absolute; top: -4px; right: 8px; width: 20px; height: 14px; margin: 0; }
.tab { position: relative; }
.sheet__item .envbadge { width: 20px; height: 14px; }
[data-reduce-motion="1"] .envbadge { animation: none; }

/* ─── Faza 6c: animacija dolaska pisma („Mesečeva pošta”) ─── */
.arrival { position: fixed; inset: 0; z-index: 200; background: radial-gradient(ellipse at 50% 110%, rgba(58,36,112,.96), rgba(18,15,51,.97) 55%, rgba(7,8,32,.98));
  display: flex; align-items: center; justify-content: center; overflow: auto; padding: 24px 16px; }
.arrival__stars i { position: absolute; width: 2px; height: 2px; border-radius: 1px; background: #fff; opacity: .6; animation: arrtw 3s infinite ease-in-out; }
@keyframes arrtw { 50% { opacity: .15; } }
.arrival__scene { position: relative; width: 340px; max-width: 100%; height: 470px; }
.arrival__moon { position: absolute; left: 50%; top: -120px; width: 84px; height: 84px; margin-left: -42px; border-radius: 50%;
  box-shadow: -16px 9px 0 0 #EFE6C8; transform: rotate(-20deg); filter: drop-shadow(0 0 18px rgba(239,230,200,.55)); animation: arrmoon 1.3s cubic-bezier(.2,.8,.2,1) .2s forwards; }
@keyframes arrmoon { to { top: 10px; } }
.arrival__swing { position: absolute; left: 50%; top: 96px; width: 0; transform-origin: top center; animation: arrswing 3.4s 2.4s ease-in-out infinite; }
@keyframes arrswing { 0%,100% { transform: rotate(3.5deg); } 50% { transform: rotate(-3.5deg); } }
.arrival__thread { position: absolute; left: -1px; top: 0; width: 0; height: 0; border-left: 2px dotted rgba(227,196,122,.85); animation: arrthread 1.1s 1.2s ease-out forwards; }
@keyframes arrthread { to { height: 120px; } }
.arrival__env { position: absolute; left: -95px; top: 120px; width: 190px; height: 127px; padding: 0; border: 0; background: none; cursor: pointer;
  opacity: 0; animation: arrdrop 1.1s 1.2s ease-out forwards; }
.arrival__env svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 16px 28px rgba(0,0,0,.55)); }
@keyframes arrdrop { 0% { opacity: 0; transform: translateY(-140px); } 100% { opacity: 1; transform: translateY(0); } }
.arrival__seal { transform-origin: 75px 52px; animation: arrseal 1.8s 2.4s ease-in-out infinite; }
@keyframes arrseal { 50% { transform: scale(1.12); filter: drop-shadow(0 0 7px #FFB3A0); } }
.arrival__flap { transform-origin: 75px 0; transition: transform .6s ease; }
.arrival__paper { transition: transform .7s .3s ease; }
.arrival.is-open .arrival__flap { transform: scaleY(-1); }
.arrival.is-open .arrival__seal { opacity: 0; transition: opacity .3s; }
.arrival.is-open .arrival__paper { transform: translateY(-52px); }
.arrival__dust i { position: absolute; top: 80px; width: 3px; height: 3px; border-radius: 2px; background: #EFE6C8; opacity: 0; animation: arrdust 2.6s infinite ease-in; }
@keyframes arrdust { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(110px); } }
.arrival__cap { position: absolute; left: 0; right: 0; top: 300px; text-align: center; opacity: 0; animation: arrfade .7s 2.2s forwards; }
@keyframes arrfade { to { opacity: 1; } }
.arrival__kick { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.arrival__title { font-family: var(--serif, serif); font-size: 30px; color: var(--head); margin-top: 4px; }
.arrival__cover { font-size: 14px; color: var(--dim); margin-top: 2px; }
.arrival__acts { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.arrival__letter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow: auto;
  background: rgba(7,8,32,.55); animation: arrfade .5s forwards; opacity: 0; }
.arrival__letter .letter__paper { width: 100%; max-height: 100%; overflow: auto; }
/* manje animacija: odmah sve na mestu */
.arrival.is-calm *, .arrival.is-calm { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
.arrival { z-index: 1000; }
.arrival__scene { height: 540px; }
.arrival__cap { top: 372px; }
@media (max-height: 640px) { .arrival__scene { transform: scale(.82); transform-origin: top center; } }
.arrival { background: radial-gradient(ellipse at 50% 110%, rgba(58,36,112,.985), rgba(18,15,51,.99) 55%, rgba(7,8,32,.995)); }

/* ─── faza 6e: vreme rođenja (prozor) ─── */
.tb { position: sticky; top: 8px; z-index: 30; margin: 0 0 20px; padding: 12px 16px 6px; border-radius: 20px; background: rgba(20,17,58,.94); border: 1px solid rgba(227,196,122,.3); backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.tb__top { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; justify-content: space-between; }
.tb__info { min-width: 0; }
.tb__map { color: var(--gold); text-transform: none; letter-spacing: 0; font-weight: 600; }
.tb__time { font-family: var(--serif); color: var(--head); font-size: 21px; margin-top: 2px; }
.tb__btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tb__form { display: contents; }
.tb__b { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 17px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: var(--dim); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.tb__b:hover { color: var(--head); border-color: rgba(227,196,122,.5); }
.tb__b.is-on, .tb__b--star { background: var(--gold); border-color: var(--gold); color: #1A1438; }
.tb__b--star:hover { color: #1A1438; filter: brightness(1.08); }
.tb__track { position: relative; height: 40px; margin-top: 8px; }
.tb__bar { position: absolute; left: 0; right: 0; top: 12px; height: 12px; border-radius: 6px; display: flex; overflow: hidden; }
.tb__bar a { display: block; height: 100%; flex-shrink: 1; border-right: 2px solid #14113A; }
.tb__bar a:last-child { border-right: 0; }
.tb__bar a:hover { opacity: 1 !important; }
.tb__knob { position: absolute; top: 4px; width: 28px; height: 28px; margin-left: -14px; border-radius: 14px; background: var(--gold); box-shadow: 0 0 0 4px rgba(227,196,122,.25), 0 4px 10px rgba(0,0,0,.4); pointer-events: none; }
.tb__ticks { position: absolute; left: 0; right: 0; top: 28px; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); }
.tb--safe .tb__bar { opacity: .75; }
@media (max-width: 760px) {
  .tb { position: relative; top: 0; padding: 10px 12px 4px; border-radius: 16px; }
  .tb__time { font-size: 17px; }
  .tb__info .lbl { font-size: 10px; }
  .tb__b { height: 30px; padding: 0 10px; font-size: 12px; }
}
.tvchip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 10px; font-size: 11.5px; font-weight: 700; background: rgba(127,184,255,.14); color: #A9CCFF; white-space: nowrap; letter-spacing: 0; text-transform: none; font-family: var(--sans); vertical-align: 1px; }
.tvchip--ok { background: rgba(143,227,181,.12); color: #8FE3B5; }
.tvchip--mine { background: rgba(227,196,122,.16); color: var(--gold); }
.panel--tv { border-color: rgba(127,184,255,.45) !important; }
.notice--tv { background: rgba(127,184,255,.08); border-color: rgba(127,184,255,.35); color: #D5E5FF; }
.notice--tv a { margin-left: 4px; font-weight: 700; }
.tvflag { border-left: 3px solid #7FB8FF; padding: 10px 14px; background: rgba(127,184,255,.07); border-radius: 0 12px 12px 0; }
.tvopts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tvopt { display: block; padding: 12px 14px; border-radius: 16px; background: linear-gradient(150deg, #2A1D5A, #17143C); border: 1px solid rgba(255,255,255,.08); color: var(--dim); text-decoration: none; opacity: .55; transition: opacity .2s; }
.tvopt:hover { opacity: .85; color: var(--dim); }
.tvopt.is-sel, .tvopts--safe .tvopt { opacity: 1; }
.tvopt.is-sel { border-color: rgba(227,196,122,.6); }
.tvrange { position: relative; height: 30px; border-radius: 10px; background: rgba(255,255,255,.05); margin: 10px 0 4px; }
.tvrange__fill { position: absolute; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, rgba(227,196,122,.22), rgba(227,196,122,.5), rgba(227,196,122,.22)); border: 1px dashed rgba(227,196,122,.7); }
.tvrange__mark { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px #fff; }
.tvrange__today { position: absolute; top: -5px; bottom: -5px; width: 0; border-left: 2px dotted #7FB8FF; }
.tvrange__lab { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.gantt { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; align-items: center; }
@media (max-width: 700px) { .gantt { grid-template-columns: 1fr; gap: 4px; } .gantt .gl { margin-top: 8px; } }
.gl { font-size: 13px; color: var(--head); font-weight: 600; }
.gr { position: relative; height: 32px; border-radius: 9px; overflow: hidden; display: flex; background: rgba(255,255,255,.04); }
.gr a { display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; color: #1A1438; white-space: nowrap; overflow: hidden; border-right: 2px solid #17143C; text-decoration: none; flex-shrink: 1; min-width: 4px; }
.gr a:last-of-type { border-right: 0; }
.gr a:hover { filter: brightness(1.15); color: #1A1438; }
.gaxis { position: relative; height: 18px; font-size: 10.5px; color: var(--faint); }
.gaxis b { position: absolute; transform: translateX(-50%); font-weight: 600; white-space: nowrap; }
.gaxis b:first-child { transform: none; }
.gaxis b:last-child { transform: translateX(-100%); }
.gnow { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; pointer-events: none; }
@media (max-width: 700px) { .gantt > div:first-child { display: none; } }

/* ─── faza 8: „Za astrologe” ─── */
details.pro { margin-top: 2px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 8px; }
details.pro summary { cursor: pointer; list-style: none; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
details.pro summary::-webkit-details-marker { display: none; }
details.pro summary::before { content: '✦︎ '; }
details.pro[open] summary { margin-bottom: 6px; }
details.pro p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.6; color: var(--dim); }

/* ─── Purpurna zvezda ─── */
.zw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.zw-cell { border-radius: 14px; padding: 10px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); min-height: 150px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.zw-cell.is-ming { border-color: rgba(227,196,122,.7); background: rgba(227,196,122,.08); }
.zw-cell.is-now { box-shadow: inset 0 0 0 2px rgba(127,184,255,.55); }
.zw-ph { display: flex; justify-content: space-between; color: var(--head); font-size: 13px; }
.zw-ph span { color: var(--faint); }
.zw-star { color: var(--head); font-weight: 600; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.zw-hz { color: var(--gold); }
.zw-br { font-size: 8px; letter-spacing: 1px; color: var(--gold); margin-left: auto; }
.zw-mu { display: inline-block; padding: 0 5px; border-radius: 6px; font-size: 10px; color: #1A1438; font-weight: 800; }
.zw-minor { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.zw-empty { color: var(--faint); font-style: italic; font-size: 11.5px; }
.zw-foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; }
.zw-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.zw-tag { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; color: #1A1438; }
.zw-tag--ming { background: var(--gold); } .zw-tag--body { background: #B48CD9; } .zw-tag--now { background: #7FB8FF; }
.zw-center { grid-row: 2 / 4; grid-column: 2 / 4; border-radius: 14px; padding: 16px; background: linear-gradient(150deg, #2A1D5A, #17143C); display: flex; flex-direction: column; justify-content: center; text-align: center; }
@media (max-width: 760px) {
  .zw-grid { grid-template-columns: repeat(2, 1fr); }
  .zw-cell { grid-row: auto !important; grid-column: auto !important; min-height: 0; }
  .zw-center { grid-row: 1 !important; grid-column: 1 / 3 !important; }
}

/* ─── Karta duše 8e: prekretnice, preci, oznake ─── */
.ntl { position: relative; height: 110px; margin: 8px 30px 0 22px; }
.ntl__line { position: absolute; left: 0; right: 0; top: 36px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #7FB8FF55, #E3C47A66); }
.ntl__ev { position: absolute; top: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.ntl__dot { width: 9px; height: 9px; border-radius: 5px; margin-top: 3px; background: #A9A3C9; border: 2px solid #14113A; }
.ntl__ev--major .ntl__dot { width: 16px; height: 16px; border-radius: 8px; margin-top: 0; border-width: 3px; }
.ntl__ev--return .ntl__dot { background: #E3C47A; }
.ntl__ev--opposition .ntl__dot { background: #B48CD9; }
.ntl__ev.is-past { opacity: .6; }
.ntl__lbl { margin-top: 6px; font-size: 11px; line-height: 1.3; text-align: center; color: var(--dim); white-space: nowrap; }
.ntl__lbl b { color: var(--head); font-weight: 600; }
.ntl__now { position: absolute; top: 8px; height: 60px; width: 2px; background: #fff; box-shadow: 0 0 8px #fff; transform: translateX(-1px); }
.ntl__now span { position: absolute; top: -6px; left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.soulchip { display: inline-block; padding: 1px 8px; border-radius: 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; background: rgba(227,196,122,.16); color: var(--gold); vertical-align: 1px; }
.soulchip--ok { background: rgba(143,227,181,.12); color: #8FE3B5; }
.soulchip--warn { background: rgba(255,179,138,.15); color: #FFB38A; }
.anc { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.07); text-decoration: none; color: inherit; }
.anc__av { width: 52px; height: 52px; border-radius: 26px; overflow: hidden; background: linear-gradient(150deg, #3A2D6A, #1B1650); display: flex; align-items: center; justify-content: center; color: var(--gold); font-family: var(--serif); font-size: 20px; }
.anc__av img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .ntl { margin: 8px 26px 0 18px; } .ntl__lbl { font-size: 9.5px; } }

/* ─── Izbor dana (8f) ─── */
.daypick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.daypick__btn { width: 38px; height: 38px; border-radius: 19px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--head); text-decoration: none; }
.daypick__btn:hover { border-color: rgba(227,196,122,.45); }
.daypick__btn.is-off { opacity: .3; }
.daypick__cur { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 19px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 14px; font-weight: 600; color: var(--head); white-space: nowrap; }
.daypick__cur input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.daypick__cur input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.daypick__cal { color: var(--gold); font-size: 11px; }

/* ─── Ostali sistemi 8f ─── */
.newb { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; padding: 1px 6px; border-radius: 7px; background: rgba(143,227,181,.14); color: #8FE3B5; vertical-align: 1px; }
.sysparts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.syspart { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); }
.sysfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sysfact { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.sysfact > div:last-child { font-weight: 700; color: var(--head); margin-top: 2px; font-size: 14px; }
.syssub { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); }
.syswave { display: flex; gap: 4px; }
.syswave span { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; background: rgba(255,255,255,.05); font-size: 12px; }
.syswave span.is-me { background: var(--gold); color: #1A1438; font-weight: 700; }
.syscross { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 540px; }
.syskin { border: 1px solid; border-radius: 12px; padding: 8px 10px; text-align: center; background: rgba(255,255,255,.03); font-size: 13px; color: var(--head); }
.syskin.is-me { border-color: var(--gold); background: rgba(227,196,122,.12); }
@media (max-width: 720px) { .sysparts { grid-template-columns: 1fr; } .syskin { font-size: 11.5px; padding: 6px 4px; } }
@media (max-width: 720px) {
  .sysnav { flex-direction: row !important; flex-wrap: nowrap; overflow-x: auto; gap: 6px !important; padding-bottom: 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .sysnav .connrow { flex: 0 0 auto; min-height: 50px !important; max-width: 230px; scroll-snap-align: start; border-color: rgba(255,255,255,.08); }
}

/* ─── Drevni kalendari danas (8g) ─── */
.ancgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ancchip { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05);
  border: 1px solid transparent; color: inherit; font: inherit; cursor: pointer; }
.ancchip.is-mine { border-color: rgba(227,196,122,.55); background: rgba(227,196,122,.09); }
.ancchip__val { font-weight: 700; color: var(--head); font-size: 15px; }
.ancchip__soon { font-size: 12px; color: var(--gold); margin-top: 2px; }
.ancchip__text { font-size: 13px; line-height: 1.5; color: #DCD6F0; margin-top: 6px; }
.ancweek { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.ancday { padding: 8px 6px; border-radius: 12px; background: rgba(255,255,255,.04); text-align: center; min-height: 82px; border: 1px solid transparent; }
.ancday.is-hit { background: rgba(227,196,122,.1); border-color: rgba(227,196,122,.45); }
.ancday.is-today { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.ancday__n { font-size: 12px; font-weight: 600; color: var(--head); margin-top: 4px; line-height: 1.3; }
.ancday__l { font-size: 10.5px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }
.nowrow { padding: 10px 14px; border-radius: 12px; background: rgba(127,184,255,.07); border-left: 3px solid #7FB8FF; font-size: 14px; line-height: 1.5; }
.season-card { display: block; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: inherit; border: 1px solid rgba(227,196,122,.55);
  background: linear-gradient(120deg, rgba(227,196,122,.14), rgba(180,140,217,.1)); }
@media (min-width: 721px) { .ancchip__text { display: block; } }
@media (max-width: 720px) {
  .ancgrid { grid-template-columns: 1fr; gap: 8px; }
  .ancchip__text { display: none; }
  .ancchip__text.is-open { display: block; }
  .ancweek { grid-template-columns: repeat(4, 1fr); }
}
.anc-hint { display: none; }
@media (max-width: 720px) { .anc-hint { display: block; margin-top: -6px; } }

/* ─── Znaš li? (8j) ─── */
.fact-card { display: block; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: inherit; border: 1px solid rgba(227,196,122,.35); background: rgba(255,255,255,.04); }
.fact-card:hover { border-color: rgba(227,196,122,.6); }
.fact { min-height: 220px; }

/* ─── Istorija sistema (faza 8p) ─── */
.hist-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--gold); text-decoration: none; opacity: .9; }
.hist-link:hover { opacity: 1; text-decoration: underline; }
.hist-lead { font-size: 17px; color: #DCD6F0; line-height: 1.7; margin: 0; }
.hist-group { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--head); margin: 8px 0 0; }
.hist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.hist-card { display: flex; flex-direction: column; gap: 8px; min-height: 180px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.hist-card:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.hist-card__icon { font-size: 28px; color: var(--gold); line-height: 1; }
.hist-card__title { font-size: 21px; color: var(--head); line-height: 1.25; }
.hist-age { display: inline-flex; padding: 4px 10px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-2); font-size: 12px; font-weight: 700; line-height: 1.4; }
.hist-sub { font-size: 17px; color: var(--dim); line-height: 1.5; }
.hist-applink { text-decoration: none; color: var(--gold); }
.hist-wrap { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.hist-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.hist-toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.hist-toc summary { cursor: pointer; list-style: none; margin-bottom: 4px; }
.hist-toc summary::-webkit-details-marker { display: none; }
.hist-toc a { display: block; font-size: 13px; color: var(--dim); text-decoration: none; padding: 5px 0; line-height: 1.35; border-bottom: 1px solid transparent; }
.hist-toc a:hover { color: var(--gold); }
.hist-body { min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.hist-sec { scroll-margin-top: 20px; }
.hist-sec h2 { font-family: var(--serif); font-weight: 400; font-size: 27px; color: var(--head); margin: 0 0 14px; }
.hist-sec p { font-size: 17px; line-height: 1.8; color: #DCD6F0; margin: 0 0 16px; }
.hist-intro p { font-size: 19px; color: var(--text); }
.hist-intro p:first-child::first-letter { font-family: var(--serif); font-size: 52px; float: left; line-height: .9; padding: 6px 10px 0 0; color: var(--gold); }
.hist-time { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 1px solid var(--gold-line); display: flex; flex-direction: column; gap: 16px; }
.hist-time li { position: relative; display: flex; flex-direction: column; gap: 3px; }
.hist-time li::before { content: ''; position: absolute; left: -26px; top: 5px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.hist-time__when { font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .02em; }
.hist-time__what { font-size: 16px; line-height: 1.6; color: #DCD6F0; }
.hist-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hist-person { padding: 16px 18px; }
.hist-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hist-facts li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.65; color: #DCD6F0; }
.hist-facts li::before { content: '✦'; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 13px; }
.hist-truth { padding: 26px 28px; }
.hist-truth .lbl { margin-bottom: 10px; }
.hist-truth p:last-child { margin-bottom: 0; }
.hist-books { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--dim); }
.hist-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.hist-pager a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--head); padding: 16px 18px; }
@media (max-width: 959px) {
  .hist-layout { grid-template-columns: 1fr; }
  .hist-toc { position: static; }
  .hist-toc summary::after { content: ' ▾'; }
  .hist-sec p { font-size: 16px; }
  .hist-intro p { font-size: 17px; }
  .hist-pager { grid-template-columns: 1fr; }
}
