/* =================================================================
   sabine.lv — koplietojamie stili
   Dizains: silts, minimālistisks link-in-bio interfeiss
   Palete: ivory + sand + cocoa
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --bg-deep:      #171310;
  --bg-base:      #211a16;
  --bg-elevated:  #2a211c;
  --nav-bg:       rgba(23, 19, 16, 0.82);
  --nav-bg-open:  rgba(23, 19, 16, 0.97);

  --surface:        rgba(255, 250, 246, 0.07);
  --surface-hover:  rgba(255, 250, 246, 0.11);
  --border:         rgba(232, 213, 199, 0.16);
  --border-strong:  rgba(197, 158, 132, 0.42);

  --text:        #f8f3ef;
  --text-muted:  #c0afa4;

  --violet:      #c7a58e;
  --violet-deep: #aa8168;
  --cyan:        #d7b9a5;
  --gold:        #c39b7f;
  --gold-deep:   #936d56;

  --glow-violet: rgba(170, 129, 104, 0.20);
  --glow-gold:   rgba(195, 155, 127, 0.16);

  --radius:      22px;
  --radius-lg:   28px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --maxw:        1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow blobi fonā */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
body::before {
  width: 540px; height: 540px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, var(--glow-violet), transparent 70%);
  animation: drift1 22s var(--ease) infinite alternate;
}
body::after {
  width: 460px; height: 460px;
  top: 40%; right: -140px;
  background: radial-gradient(circle, var(--glow-gold), transparent 70%);
  animation: drift2 28s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate(120px, 160px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-100px, -120px) scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* Admin slēdzis (Vietne / Izskats): animācijas izslēgtas visā lapā */
html.no-anim, html.no-anim *, html.no-anim *::before, html.no-anim *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Admin slēdzis (Vietne / Izskats): diena/nakts poga paslēpta visā lapā */
html.theme-toggle-hidden .nav-theme-item { display: none; }

/* Admin “Izvēlne 1” — lietotnes stila navigācija, kas vienmēr ir redzama
   ekrāna apakšā. Ikona var būt emoji vai lietotāja norādīts attēla URL. */
html.nav-style-bottom body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
html.nav-style-bottom .site-nav { display: none; }
.bottom-nav {
  position: fixed; z-index: 220; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100%, var(--maxw)); min-height: 72px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  display: flex; align-items: stretch; justify-content: space-around;
  background: var(--nav-bg-open); border: 1px solid var(--border); border-bottom: 0;
  border-radius: 20px 20px 0 0; box-shadow: 0 -8px 28px rgba(0,0,0,.18);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.bottom-nav a { min-width:0; flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; padding:4px; color:var(--text-muted); text-decoration:none; font-size:11px; font-weight:500; line-height:1.2; }
.bottom-nav a.active { color:var(--text); font-weight:700; }
.bottom-nav-icon { width:28px; height:28px; display:flex; align-items:center; justify-content:center; font-size:23px; line-height:1; }
.bottom-nav-icon img { width:24px; height:24px; object-fit:contain; }
.bottom-nav-placeholder { font-size:13px; color:currentColor; }
.bottom-nav-platform { font-family:Arial,sans-serif; font-size:20px; font-weight:700; }
.bottom-nav-platform--linkedin { font-size:15px; }
.bottom-nav-platform--youtube { font-size:18px; }
.bottom-nav-label { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---------- Navigācija ---------- */
#nav-checkbox { display: none; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left { display: flex; align-items: center; gap: 0.7rem; }
.nav-logo {
  font-family: 'Cormorant', serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.glyph { color: var(--gold); text-shadow: 0 0 14px var(--glow-gold); }
.nav-links { list-style: none; display: flex; gap: 0.4rem; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--violet); background: rgba(124, 58, 237, 0.12); }

/* Kreisās puses "logo" poga (atver navigācijas izvēlni). */
.nav-menu-btn {
  display: flex; align-items: center; justify-content: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav-menu-btn:hover { background: var(--surface-hover); }
.nav-menu-btn .glyph { font-size: 1.2rem; line-height: 1; }

/* Labās puses pogu pāris: "Mājas" (uz sākumlapu) + "Dalīties" — glancētas baltas
   noapaļotas pogas ar ikonu. Fiksēts silts izskats (ne var(--surface)/--text), lai
   izskatās vienādi gan gaišajā, gan tumšajā tēmā un labi izceļas ar ēnu/apmali.
   Abas VIENMĒR vienā .nav-actions konteinerī — tā tās paliek blakus salipušas arī
   peldošajā režīmā (html.nav-bar-disabled), kur site-nav.js pārvieto un pozicionē
   NEVIS atsevišķu pogu, bet visu konteineru. */
.nav-actions { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.nav-share-btn,
.nav-home-btn {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: none;
  background: #ffffff;
  color: #26221e;
  cursor: pointer;
  text-decoration: none;
  /* Tīra balta poga ar mīkstu ēnu — kā Linktree share poga. */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.nav-share-btn:hover,
.nav-home-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.16), 0 1px 3px rgba(0, 0, 0, 0.08);
}
.nav-share-btn:active,
.nav-home-btn:active { transform: translateY(0); }
.nav-share-ico { width: 20px; height: 20px; flex: none; }
.nav-home-ico { width: 21px; height: 21px; flex: none; }
#nav-checkbox:checked ~ .site-nav .nav-menu-btn { background: var(--surface-hover); border-color: var(--border-strong); }

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--nav-bg-open);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-links a { padding: 0.9rem 1.5rem; border-radius: 0; }
  /* Diena/nakts slēdzis — pēdējā rinda mobilajā izvēlnē. */
  .nav-theme-item { display: flex; justify-content: center; padding: 1rem 1.5rem; border-top: 1px solid var(--border); }
  #nav-checkbox:checked ~ .site-nav .nav-links { max-height: 480px; }
}

/* Admin slēdzis (Vietne / Izvēlne): visa navigācijas josla paslēpta —
   paliek TIKAI peldošais pogu pāris (Mājas + Dalīties) augšējā labajā stūrī
   (bez joslas fona/apmales, bez logo/izvēlnes pogas, bez saitēm). */
html.nav-bar-disabled .site-nav {
  background: none;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}
html.nav-bar-disabled .nav-inner { padding: 0; max-width: none; pointer-events: none; }
html.nav-bar-disabled .nav-left,
html.nav-bar-disabled .nav-links { display: none; }
/* Noņem lapas augšējo atkāpi, lai pirmais bloks (piem. "profile" bloka vāka
   attēls) sniedzas līdz pat ekrāna malai — tad peldošā poga vizuāli "pielīp"
   pie tā stūra, tāpat kā link-in-bio kartīšu paraugos. */
html.nav-bar-disabled .home-wrap,
html.nav-bar-disabled .page-wrap { padding-top: 0; }
html.nav-bar-disabled .home-blocks,
html.nav-bar-disabled .page-blocks { margin-top: 0; }
/* Pogu pāris PIELIPIS PIE EKRĀNA (position:fixed) — ritinot lapu uz leju, abas pogas
   paliek redzamas augšējā labajā stūrī. VERTIKĀLI tās tur šis CSS `top`, bet
   HORIZONTĀLI site-nav.js aprēķina `left` px pēc kartes getBoundingClientRect(),
   lai poga "pielīp" pie kartes labās malas, nevis pie loga malas (kartei ir
   max-width un tā centrējas — platā ekrānā starp abām ir sprauga).
   site-nav.js arī pārceļ .nav-actions konteineru (ar abām pogām iekšā, lai tās
   nekad neizklīst) par <body> bērnu — NEVIS atstāj bloku konteinerī, kas tiek
   PILNĪBĀ pārrakstīts (innerHTML) asinhroni ielādē un neatgriezeniski iznīcinātu
   pogas, ja tās tur atrastos.
   `right` šeit ir tikai sākotnējais fallback, kamēr JS vēl nav paguvis izrēķināt
   precīzo `left` (piem., uzreiz pēc html.nav-bar-disabled pievienošanas). */
html.nav-bar-disabled .nav-actions {
  position: fixed;
  top: 0.9rem; right: 0.9rem;
  z-index: 150;
  pointer-events: auto;
}
/* Peldot kartes stūrī virs vāka attēla — mazliet spēcīgāka ēna, lai baltās pogas izceļas. */
html.nav-bar-disabled .nav-share-btn,
html.nav-bar-disabled .nav-home-btn {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 1px 4px rgba(0, 0, 0, 0.14);
}
html.nav-bar-disabled .nav-share-btn:hover,
html.nav-bar-disabled .nav-home-btn:hover {
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.28), 0 1px 4px rgba(0, 0, 0, 0.16);
}

/* ---------- "Dalīties" popup (galddatoros, kur nav Web Share API) ----------
   Priekšskatījuma kartīte + platformu ikonu režģis, pēc link-in-bio rīku
   parauga (native share menu paliek mobilajām ierīcēm, sk. share.js). */
.share-modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
}
.share-modal {
  width: 100%; max-width: 380px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.share-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem 0.3rem; }
.share-modal-title { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.share-modal-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
}
.share-modal-close:hover { background: var(--surface); color: var(--text); }

.share-preview {
  margin: 0.7rem 1.2rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, #1c1c24, #111116);
  padding: 1.6rem 1rem;
  text-align: center;
}
.share-preview-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.share-preview-avatar svg { width: 34px; height: 34px; }
.share-preview-name { font-weight: 700; font-size: 1.02rem; color: #fff; margin-bottom: 0.2rem; }
.share-preview-url { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }

.share-grid { display: flex; gap: 0.1rem; padding: 0 0.7rem 1.3rem; overflow-x: auto; }
.share-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  flex: none; width: 68px;
  padding: 0.5rem 0.3rem;
  background: none; border: 0;
  font: inherit;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.share-item-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.share-item-icon svg { width: 23px; height: 23px; }
.share-item span:last-child { font-size: 0.72rem; text-align: center; color: var(--text-muted); }

.share-item-icon--copy { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.share-item-icon--x { background: #000; }
.share-item-icon--facebook { background: #1877F2; }
.share-item-icon--whatsapp { background: #25D366; }
.share-item-icon--linkedin { background: #0A66C2; }
.share-item-icon--email { background: var(--text-muted); }

/* ---------- Hero ---------- */
.page-hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.page-hero .symbol {
  font-size: 1.5rem;
  letter-spacing: 0.7rem;
  color: var(--gold);
  text-shadow: 0 0 20px var(--glow-gold);
  margin-bottom: 1.6rem;
  opacity: 0.9;
}
.page-hero h1 {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #ffffff 0%, var(--violet) 55%, var(--gold) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
}
.page-hero .subtitle {
  font-size: 1.18rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Konteineri ---------- */
.container,
.container-narrow {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow { max-width: 800px; }

/* ---------- Info kartes (frosted glass) ---------- */
.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.4rem;
  margin-bottom: 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 50px -20px var(--glow-violet);
}
.card h2 {
  font-family: 'Cormorant', serif;
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.card h2 .icon { font-size: 1.5rem; filter: drop-shadow(0 0 8px var(--glow-violet)); }
.card p { color: var(--text-muted); margin-bottom: 0.9rem; }
.card p:last-child { margin-bottom: 0; }
.card strong { color: var(--text); font-weight: 600; }
.card em { color: var(--violet); font-style: italic; }
.card a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(103, 232, 249, 0.3);
  transition: border-color 0.25s var(--ease);
}
.card a:hover { border-color: var(--cyan); }
.card ul { list-style: none; margin: 0.6rem 0; }
.card ul li {
  color: var(--text-muted);
  padding: 0.45rem 0 0.45rem 1.6rem;
  position: relative;
}
.card ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
  top: 0.6rem;
}
.card ul li strong { color: var(--text); }

.quote {
  margin-top: 1.2rem;
  padding: 1.1rem 1.4rem;
  border-left: 2px solid var(--gold);
  background: rgba(224, 179, 82, 0.06);
  border-radius: 0 12px 12px 0;
  font-family: 'Cormorant', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
}

/* ---------- Veikals (index) ---------- */
.shop-header { text-align: center; margin: 5rem auto 1rem; max-width: 640px; }
.shop-header h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 600;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.shop-header h2 .icon { -webkit-text-fill-color: initial; }
.shop-header p { color: var(--text-muted); font-weight: 300; margin-top: 0.4rem; }

.category {
  font-family: 'Cormorant', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  margin: 3.4rem 0 1.6rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.3rem;
}

.product {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.product::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.product:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: 0 22px 50px -24px var(--glow-violet);
}
.product:hover::after { opacity: 1; }

.product-icon { font-size: 2.2rem; margin-bottom: 0.9rem; filter: drop-shadow(0 0 10px var(--glow-violet)); }
.product-title {
  font-family: 'Cormorant', serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.product-price {
  font-family: 'Cormorant', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 18px var(--glow-gold);
}
.product-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #15101f;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  padding: 0.55rem 1.3rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), filter 0.2s var(--ease);
  box-shadow: 0 6px 18px -8px var(--glow-violet);
}
.product-btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 26px -8px var(--glow-violet); }
.product-btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Numeroloģija (num-grid) ---------- */
.num-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
  margin: 1.4rem 0;
}
.num-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.num-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px -22px var(--glow-violet);
}
.num-card .num {
  font-family: 'Cormorant', serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.num-card .name {
  font-family: 'Cormorant', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.num-card .desc { font-size: 0.86rem; color: var(--text-muted); font-weight: 300; }

/* ---------- Astroloģija (zodiac-grid) ---------- */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.1rem;
  margin: 1.4rem 0;
}
.zodiac {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.zodiac:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px -22px var(--glow-violet);
}
.zodiac-symbol {
  font-size: 2.4rem;
  color: var(--gold);
  text-shadow: 0 0 16px var(--glow-gold);
  margin-bottom: 0.6rem;
}
.zodiac-name {
  font-family: 'Cormorant', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.zodiac-dates { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.zodiac-element {
  font-size: 0.82rem;
  color: var(--violet);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Kontakti (contact-grid) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 1.4rem 0;
}
.contact-item {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  text-align: center;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.contact-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px -22px var(--glow-violet);
}
.contact-item .icon {
  font-size: 2rem;
  color: var(--gold);
  text-shadow: 0 0 14px var(--glow-gold);
  display: block;
  margin-bottom: 0.7rem;
}
.contact-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.contact-item .value {
  font-family: 'Cormorant', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.contact-item .value a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(103, 232, 249, 0.3);
  transition: border-color 0.25s var(--ease);
}
.contact-item .value a:hover { border-color: var(--cyan); }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  margin-top: 6rem;
  padding: 3.5rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.04));
}
footer .glyph {
  font-size: 1.4rem;
  letter-spacing: 0.6rem;
  color: var(--gold);
  text-shadow: 0 0 18px var(--glow-gold);
  margin-bottom: 1.2rem;
}
footer p { color: var(--text-muted); font-weight: 300; max-width: 520px; margin: 0 auto; }
footer em { color: var(--violet); font-style: italic; }

/* ---------- Subtila parādīšanās ielādējoties ---------- */
@media (prefers-reduced-motion: no-preference) {
  .card, .product, .num-card, .zodiac, .contact-item {
    animation: rise 0.6s var(--ease) both;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   GAIŠĀ TĒMA — aktivizē ar <html data-theme="light">
   ============================================================ */
:root[data-theme="light"] {
  --bg-deep:      #f5f1ee;
  --bg-base:      #faf7f4;
  --bg-elevated:  #fffdfb;
  --nav-bg:       rgba(250, 247, 244, 0.86);
  --nav-bg-open:  rgba(250, 247, 244, 0.98);

  --surface:        #fffdfb;
  --surface-hover:  #f7eee8;
  --border:         rgba(98, 72, 58, 0.10);
  --border-strong:  rgba(153, 112, 87, 0.32);

  --text:        #171310;
  --text-muted:  #756b65;

  --violet:      #b28a70;
  --violet-deep: #946b52;
  --cyan:        #8d624a;
  --gold:        #b28a70;
  --gold-deep:   #866048;

  --glow-violet: rgba(116, 87, 70, 0.12);
  --glow-gold:   rgba(178, 138, 112, 0.10);
}

/* ---------- 2026 siltais link-in-bio vizuālais slānis ---------- */
body {
  background:
    radial-gradient(circle at 82% 18%, rgba(178, 138, 112, .10), transparent 28rem),
    var(--bg-deep);
}
body::before, body::after { display: none; }

.site-nav { border-color: var(--border); }
.nav-inner { max-width: 1500px; padding-inline: clamp(1.2rem, 4vw, 4.5rem); }
.nav-logo { font-family: 'Montserrat', sans-serif; font-size: 1.35rem; font-weight: 700; letter-spacing: -.035em; }
.nav-links a.active { color: var(--text); background: rgba(178, 138, 112, .14); }

.page-wrap { max-width: 980px !important; padding-inline: clamp(1.2rem, 4vw, 3rem) !important; }
.page-hero h1, .card h2, .shop-header h2, .category, .product-title,
.num-card .name, .zodiac-name, .contact-item .value {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -.035em;
}
.page-hero h1, .shop-header h2, .num-card .num {
  background: none;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}
.card, .product, .num-card, .zodiac, .contact-item {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 18px 45px rgba(55, 38, 28, .08);
}
.card:hover, .product:hover, .num-card:hover, .zodiac:hover, .contact-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 22px 54px rgba(55, 38, 28, .13);
}
.product-btn, .pb-button-cta {
  background: var(--violet) !important;
  color: #171310 !important;
  box-shadow: 0 8px 20px rgba(91, 63, 47, .18) !important;
}

/* Sākumlapā pirmais profila bloks kļūst par kreiso vizītkarti,
   pārējie admin bloki automātiski izkārtojas kartēs pa labi. */
.home-blocks {
  display: grid;
  grid-template-columns: minmax(280px, 360px) repeat(2, minmax(280px, 1fr));
  gap: 1.5rem clamp(1.5rem, 3vw, 3.5rem);
  align-items: start;
}
.home-blocks > .pb-block { min-width: 0; margin: 0; }
.home-blocks > .pb-block:has(.pb-profile) {
  grid-column: 1;
  grid-row: 1 / span 30;
  position: relative;
  top: auto;
  width: min(100%, 360px);
  justify-self: center;
}
.home-blocks > .pb-block:not(:has(.pb-profile)) { grid-column: auto; }
.home-blocks > .pb-block:nth-child(even):not(:has(.pb-profile)) { grid-column: 2; }
.home-blocks > .pb-block:nth-child(odd):not(:has(.pb-profile)) { grid-column: 3; }

.home-blocks .pb-profile {
  border: 0 !important;
  background: transparent !important;
  overflow: visible !important;
  box-shadow: none;
}
.home-blocks .pb-profile-cover {
  height: clamp(310px, 46vh, 500px) !important;
  width: 100% !important;
  margin: 0 auto 2.25rem;
  border-radius: 34px;
  background: #e9e1d6;
  box-shadow: 0 24px 55px rgba(55, 38, 28, .12);
}
.home-blocks .pb-profile-cover img { object-position: center top; }
.home-blocks .pb-profile-body { padding: 0 !important; margin-top: 0 !important; }
.home-blocks .pb-profile-avatar { display: none; }
.home-blocks .pb-profile-body h2 { font-size: clamp(2rem, 2.6vw, 2.8rem) !important; line-height: 1.04; letter-spacing: -.055em; margin-bottom: .75rem !important; }
.home-blocks .pb-profile-subtitle { font-size: 1rem !important; line-height: 1.5; letter-spacing: 0 !important; text-transform: none !important; margin-bottom: 1.7rem !important; }
.home-blocks .pb-profile-socials { gap: 1.1rem !important; }
.home-blocks .pb-profile-social { width: 25px !important; height: 25px !important; opacity: 1 !important; }

.home-blocks > .pb-block:not(:has(.pb-profile)) > .pb-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(1.35rem, 3vw, 2rem) !important;
  box-shadow: 0 20px 50px rgba(55, 38, 28, .12);
}
.home-blocks .pb-button { text-align: left !important; }
.home-blocks .pb-button h2, .home-blocks .pb-offer h2 { font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important; letter-spacing: -.035em; line-height: 1.15; }
.home-blocks .pb-button p { margin: .55rem 0 1.35rem !important; max-width: 38rem !important; color: var(--text-muted); }
.home-blocks .pb-button-cta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 14px !important;
  padding: 1rem 1.25rem !important;
  font-weight: 700;
}
.home-blocks .pb-button-cta::after { content: '\2192'; font-size: 1.6rem; line-height: 1; }
.home-blocks .pb-image img { border-radius: 18px !important; }
.home-blocks .pb-lm-tabs { margin: 0 !important; box-shadow: none !important; }

/* Admin konstruktorā pievienoto HTML lapu attēli: vienāds, pārskatāms platums.
   Neietekmē sākumlapas profila fonu vai atsevišķos "Attēls" blokus. */
.page-blocks .pb-html img {
  display: block;
  width: min(100%, 620px);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: cover;
}

/* Bijusī tumšā "Uz sākumu" poga (.page-home-link) lapa.html satura augšā ir noņemta —
   sākumlapas poga tagad ir .nav-home-btn, balta un vienmēr blakus "Dalīties" pogai
   .nav-actions konteinerī (visās lapās, sk. augšpusi). */

@media (min-width: 1081px) {
  .home-blocks > .pb-block:has(.pb-profile) {
    position: sticky;
    top: 1.5rem;
  }
}

@media (max-width: 1080px) and (min-width: 861px) {
  .home-blocks { grid-template-columns: minmax(280px, 340px) minmax(360px, 1fr); }
  .home-blocks > .pb-block:nth-child(n):not(:has(.pb-profile)) { grid-column: 2; }
}

@media (max-width: 860px) {
  html.nav-bar-disabled,
  html.nav-bar-disabled body { margin: 0 !important; padding: 0 !important; }
  body { background: var(--bg-deep); }
  .home-wrap { max-width: none; padding: 0 0 3rem !important; }
  .home-blocks { grid-template-columns: 1fr; gap: 1rem; margin: 0 !important; padding: 0 !important; }
  .home-blocks > .pb-block:has(.pb-profile),
  .home-blocks > .pb-block:nth-child(n):not(:has(.pb-profile)) { grid-column: 1; grid-row: auto; }
  .home-blocks > .pb-block:has(.pb-profile) {
    position: relative;
    width: 100%;
    margin: 0;
    z-index: 0;
  }
  .home-blocks .pb-profile { position: relative; min-height: 100svh; }
  .home-blocks .pb-profile::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(36,27,21,.32) 0%, transparent 35%, transparent 68%, rgba(36,27,21,.16) 100%);
  }
  .home-blocks .pb-profile-cover {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    height: 100svh !important;
    width: 100vw !important;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ded6ca;
  }
  .home-blocks .pb-profile-cover img { object-position: center top; }
  .home-blocks .pb-profile-body {
    position: absolute;
    z-index: 2;
    top: clamp(2.5rem, 7vh, 5.5rem);
    left: 1.25rem;
    right: 1.25rem;
    color: #fff;
    text-align: center;
  }
  .home-blocks .pb-profile-body h2 {
    max-width: 760px;
    margin: 0 auto 1.15rem !important;
    color: #fff !important;
    font-size: clamp(2.65rem, 10vw, 5rem) !important;
    line-height: .98;
    text-shadow: 0 5px 28px rgba(42,31,24,.25);
  }
  .home-blocks .pb-profile-subtitle {
    color: #fff !important;
    font-size: clamp(1.05rem, 4vw, 1.65rem) !important;
    font-weight: 600;
    text-shadow: 0 3px 18px rgba(42,31,24,.25);
  }
  .home-blocks .pb-profile-socials { margin-top: 1.8rem; }
  .home-blocks .pb-profile-social { color: #fff !important; width: 29px !important; height: 29px !important; filter: drop-shadow(0 3px 10px rgba(42,31,24,.28)); }
  .home-blocks > .pb-block:not(:has(.pb-profile)) {
    position: relative;
    z-index: 3;
    margin-inline: clamp(.8rem, 4vw, 2rem);
  }
  .home-blocks > .pb-block:has(.pb-profile) + .pb-block { margin-top: clamp(-12rem, -16vh, -8rem); }
  .home-blocks > .pb-block:not(:has(.pb-profile)) > .pb-content {
    border-radius: 30px;
    box-shadow: 0 20px 46px rgba(55,38,28,.20);
  }
}

@media (max-width: 520px) {
  .home-blocks .pb-profile-cover { width: 100% !important; border-radius: 0; }
  .home-blocks > .pb-block:not(:has(.pb-profile)) > .pb-content { border-radius: 22px; padding: 1.25rem !important; }
  .page-blocks .pb-html img { width: min(100%, 420px); }
}

/* === Diena/Nakts tēmas slēdzis === */
.daynight {
  position: relative;
  width: 72px; height: 32px;
  flex: 0 0 auto;
  border: none; padding: 0;
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(160deg, #1c2b4a, #2c3e63);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5);
  transition: background .55s var(--ease);
}
:root[data-theme="light"] .daynight {
  background: linear-gradient(160deg, #f8d96f, #f1c33f);
}
.daynight > span { position: absolute; pointer-events: none; }

/* zvaigznes (nakts) */
.dn-stars { inset: 0; transition: opacity .4s ease; }
.dn-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; opacity: .9; }
.dn-stars i:nth-child(1) { top: 6px;  left: 41px; }
.dn-stars i:nth-child(2) { top: 13px; left: 49px; width: 1.5px; height: 1.5px; }
.dn-stars i:nth-child(3) { top: 8px;  left: 57px; }
.dn-stars i:nth-child(4) { top: 18px; left: 45px; width: 1.5px; height: 1.5px; }
.dn-stars i:nth-child(5) { top: 21px; left: 61px; }

/* mēness sirpis (nakts) */
.dn-moon { top: 6px; right: 10px; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset -4px -1px 0 0 #e3e7ee; transition: opacity .4s ease; }

/* saule (diena) */
.dn-sun { top: 6px; left: 10px; width: 13px; height: 13px; border-radius: 50%; background: #fff3cf; box-shadow: 0 0 9px 3px rgba(255,238,170,.95); opacity: 0; transition: opacity .4s ease; }

/* kalni */
.dn-mtn { left: 0; right: 0; bottom: 0; height: 14px; background: #15223c;
  clip-path: polygon(0 100%, 18% 52%, 33% 82%, 50% 38%, 66% 80%, 82% 55%, 100% 84%, 100% 100%);
  transition: background .55s var(--ease); }
.dn-mtn2 { height: 10px; background: #233456; opacity: .9;
  clip-path: polygon(0 100%, 12% 70%, 28% 50%, 45% 75%, 60% 55%, 78% 78%, 92% 60%, 100% 80%, 100% 100%); }
:root[data-theme="light"] .dn-mtn  { background: #d99a26; }
:root[data-theme="light"] .dn-mtn2 { background: #e8b54a; }

/* slīdošais aplis (saule/mēness) */
.dn-knob { top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ece9e1);
  box-shadow: 0 2px 5px rgba(0,0,0,.45); z-index: 5;
  transition: left .55s var(--ease), box-shadow .5s ease; }
:root[data-theme="light"] .dn-knob { left: 43px;
  box-shadow: 0 2px 5px rgba(170,130,20,.45), 0 0 10px 2px rgba(255,235,150,.55); }

/* nakts/dienas elementu redzamība */
:root[data-theme="light"] .dn-stars,
:root[data-theme="light"] .dn-moon { opacity: 0; }
:root[data-theme="light"] .dn-sun  { opacity: 1; }
