/* ============================================================================
   PŘEDPOVÍDAČ.cz – Kompletní stylesheet (sloučený & okomentovaný)
   Vygenerováno: 2025-09-03 10:42
   Pozn.: Pořadí pravidel zůstává zachováno kvůli specifitě a kaskádě.
          Přidány pouze srozumitelné nadpisy/oddíly a doplňkové poznámky.
===============================================================================

  OBSAH / TABLE OF CONTENTS
  ---------------------------------------------------------------------------
  1) Základní komponenty (hlavička, headline, přepínač typů)
  2) Přepínač typů – mobil
  3) Přepínač typů – desktop (grid 3×) + zarovnání poslední položky doprostřed
  4) Styly produktového carouselu a doplňků (pokud jsou přítomny)
  5) Karty/boxy popisu, formulář, výstupy
  6) Historie / přehled hotových horoskopů
  7) Modal okna (login, profil, kredit, aj.)
  8) Ovládací prvky (toggle switch apod.)
  9) Pomocné utility, stavy a efekty (hover, active, animace)
  10) Paywall / platební modal (pokud přítomen)
  11) Doplňky a media queries
=============================================================================== */

/* ======================================================================= */
/* ==========   0. Reset, základy, proměnné   ============================ */
/* ======================================================================= */

html, body {
  height: 100%;
  margin: 0; padding: 0;
  overflow-x: hidden;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color: #23245e;
  box-sizing: border-box;
}
body {
  background: #f7f8fc;
  position: relative;
}
body::before {
  content: "";
  display: none;
}

.hidden { display: none !important; }

/* ======================================================================= */
/* ==========   1. Layout: Wrapper, Main, Footer   ======================= */
/* ======================================================================= */

/* Flex wrapper pro sticky footer */
.app-wrapper, .page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Hlavní obsah */
.app-main, .main-content {
  flex: 1 0 auto;
  width: 100vw; max-width: 100vw; min-width: 0;
  margin: 0 auto;
  padding: 112px 0.1em 6.2em 0.1em;
  background: rgba(255,255,255,0.98);
  box-sizing: border-box;
  border-radius: 0; box-shadow: none;
}
/* Desktop layout */
@media (min-width:900px){
  .app-main, .main-content {
    max-width: 1100px;
    margin: 6em auto;
    padding: 3em 2em 3em 2em;
    min-height: 720px;
    background: rgba(255, 255, 255, 0.356);
    border-radius: 22px;
    box-shadow: 0 8px 42px rgba(60,80,140,0.13);
  }
  body::before {
    display: block; position: fixed; z-index: -1; top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw; height: 100vh;
    background: url('img/nebula.png') center center / cover no-repeat;
    filter: blur(29px) brightness(0.97) contrast(1.1);*/
    opacity: 1;
    pointer-events: none;
  }
}

/* Footer (základ i custom varianty) */
.app-footer, .custom-footer {
  background: #f5f5f5;
  color: #7d7d8a;
  text-align: center;
  padding: 1.1em 0 1.3em 0;
  font-size: 0.99rem;
  border-top: 2px solid #da3c7e;
  font-weight: 500;
  box-shadow: 0 -1px 4px rgba(160,160,180,0.02);
  margin-top: 2.2em;
}
.footer-links {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 0.65em; margin-bottom: 0.8em; font-size: 1em;
}
.footer-links a {
  color: #4d5fd6; text-decoration: none; font-weight: 500;
  margin: 0 0.1em; padding: 2px 6px; border-radius: 6px;
  transition: color 0.15s;
}
.footer-links a:hover {
  background: #e7eafe; color: #2a3a80; text-decoration: underline;
}
.footer-links .dot {
  color: #bbb; margin: 0 3px; user-select: none; font-weight: 600;
}
.footer-meta { display: flex; flex-direction: column; align-items: center; gap: 0.25em; }
.footer-contact { display: block; color: #4d5fd6; text-decoration: none; font-weight: 500; }
.footer-contact:hover { text-decoration: underline; color: #30428e; }
.footer-link { color: #da3c7e; text-decoration: none; margin-left: 0.8em; font-weight: 500; transition: color 0.22s; }
.footer-link:hover { text-decoration: underline; color: #c02762; }

/* Footer mobile tweaks */
@media (max-width:600px){
  .footer-links { font-size: 0.97em; gap: 0.25em; }
  .app-footer { font-size: 0.95em; padding: 1em 0 0.6em 0; }
}
.footerspacer {
  display: none;
  height: 0;
}

/* Mobile first: na mobilech bude viditelný */
@media (max-width: 600px) {
  .footerspacer {
    display: block;
    height: 60px; /* stejná výška jako sticky tlačítko dole */
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
  }
}


/* ======================================================================= */
/* ==========   2. Header, Title, User Panel   =========================== */
/* ======================================================================= */

.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.959);
  min-height: 56px; border-bottom: 2px solid #da3c7e;
  box-shadow: 0 2px 8px rgba(100,120,180,0.06);
  padding: 0 12px;
}
  .app-logo {
    height: 50px;  /* menší na mobilech */
    max-width: 90px;
  }
@media (min-width:900px){
  .app-logo {
  display: none;
}
}
.header-side.left, .header-side.right {
  width: 40px; min-width: 40px; height: 40px; flex-shrink: 0;
}
.app-title {
  font-size: 1.2em; font-weight: 900; flex: 1 0 auto;
  text-align: center; position: relative; z-index: 1;
  pointer-events: auto;
}
.header-actions {
  display: flex; align-items: center; min-width: 40px;
  justify-content: flex-end; gap: 7px;
  position: relative; z-index: 2; background: none;
}

/* User Info */
.header-actions .user-name {
  font-size: 0.97em; font-weight: 500; opacity: 0.91;
  margin-right: 2px; white-space: nowrap; max-width: 140px;
  overflow: hidden; text-overflow: ellipsis;
}
.header-actions .user-name svg {
  vertical-align: middle; width: 28px; height: 28px; margin-right: 2px; fill: #22314d;
}
@media (min-width:900px){
  .header-actions .user-name { display: inline; }
}
.btn-logout.btn-logout-icon {
  width: 32px; height: 32px; background: linear-gradient(90deg,#fd5a85 0%,#ffb3b3 100%);
  border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-left: 8px; cursor: pointer; transition: background 0.17s, transform 0.12s; padding: 0;
}
.btn-logout.btn-logout-icon svg { display: block; }
.btn-logout.btn-logout-icon:hover, .btn-logout.btn-logout-icon:focus {
  background: linear-gradient(90deg, #ffb3b3 0%, #fd5a85 100%); transform: scale(1.07);
}
.login-header-btn {
  background: none; border: none; outline: none; cursor: pointer; padding: 5px;
  margin-left: auto; margin-right: 2px;
  display: flex; align-items: center; justify-content: center;
  height: 40px; width: 40px; border-radius: 50%; transition: background 0.13s;
}
.login-header-btn:hover, .login-header-btn:focus { background: #f3f7fd; }

/* Desktop */
@media (min-width:900px){
  .app-header { min-height: 80px; font-size: 1.19em; padding: 0 3em; }
  .app-title { font-size: 2.7em; font-weight: 900; }
  .header-side.left, .header-side.right { width: 48px; min-width: 48px; height: 48px; }
}

/* ======================================================================= */
/* ==========   3. Hero/Headline, Přepínač Typů   ======================== */
/* ======================================================================= */
/* === Headline – decentní, důvěryhodná === */
.main-headline, h1 {
  text-align: center;
  font-size: 1.08em;                /* menší pro mobily */
  font-weight: 600;
  margin: 0.9em 0 1.1em 0;
  color: #253049;
  letter-spacing: 0.02em;
  font-family: 'Segoe UI', 'Montserrat', Arial, sans-serif;
  line-height: 1.18;                /* lepší čitelnost */
  word-break: break-word;
}

.dots span {
  font-size: 1.25em;
  color: #b21221;
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

/* Desktop breakpoints */
@media (min-width: 900px) {
  .main-headline, h1 {
    font-size: 1.95em;
    margin-top: 1.1em;
    margin-bottom: 1.6em;
    font-weight: 600;
    color: #fff;
    text-shadow:
      0 2px 16px #be9797,
      0 1px 0 #b21221,
      0 0 8px #f08080;
    letter-spacing: 0.04em;
    line-height: 1.18;
    transition: color 0.2s;
  }
}


/* === Přepínač typů horoskopu – business look === */
.type-switch {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0.38em;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0.22em 0.3em 0.29em 0.3em;
  margin: 0.5em auto 1.12em auto;
  max-width: 100vw;
  background: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.type-switch::-webkit-scrollbar { display: none; }

/* Gradienty na krajích – decentní pro jemný efekt */
.type-switch::before, .type-switch::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 16px;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.18s;
  opacity: 0.32;
}
.type-switch::before {
  left: 0;
  background: linear-gradient(to right, #fff 60%, transparent 100%);
}
.type-switch::after {
  right: 0;
  background: linear-gradient(to left, #fff 60%, transparent 100%);
}

/* === BUSINESS BUTTONY – maximální čitelnost, decentní, NEKRÁTÍ TEXT === */
.type-switch button {
  flex: 0 0 auto;
  min-width: 120px;
  max-width: 98vw;
  padding: 0.56em 1.15em;
  font-size: 1.09em;
  border-radius: 9px;
  border: 1.2px solid #bfc9d9;
  background: #f9fafd;
  color: #27365a;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(60,70,110,0.04);
  transition:
    background 0.15s,
    color 0.14s,
    border 0.13s,
    transform 0.11s,
    box-shadow 0.13s;
  white-space: normal;   /* Povolit zalomení, nikdy nekrať! */
  overflow: visible;     /* Povolit rozbalení textu */
  margin: 0 0.05em;
  position: relative;
  z-index: 20;
  line-height: 1.34;
  text-align: center;
  word-break: break-word;
}

/* Aktivní a focus */
.type-switch button.active,
.type-switch button:focus {
  background: #e9edf3;
  color: #17448a;
  border: 1.4px solid #8eb3e9;
  box-shadow: 0 2px 10px rgba(60,90,180,0.08);
  outline: none;
}

/* Hover efekt – decentní zvýraznění */
.type-switch button:hover:not(.active):not(.coming-soon-btn) {
  background: #f3f5fa;
  color: #1d3875;
  border-color: #8eb3e9;
  box-shadow: 0 4px 18px rgba(80,110,180,0.10);
  transform: translateY(-2px) scale(1.018);
  z-index: 22;
}

/* --- COMING SOON BUTTON --- */
.type-switch button.coming-soon-btn {
  background: #f1f3f8;
  color: #7c87a0;                 /* výrazně lepší kontrast */
  border: 1.1px dashed #b7bfd2;
  cursor: not-allowed;
  opacity: 0.94;
  filter: grayscale(0.18);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* MOBILE: vždy povolit zalomení, neomezovat šířku */
@media (max-width: 900px) {
  .type-switch {
    gap: 0.11em;
    padding-left: 1vw;
    padding-right: 1vw;
  }
  .type-switch button {
    min-width: 74vw;
    max-width: 88vw;
    padding: 0.95em 0.5em;
    font-size: 1.11em;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    line-height: 1.41;
  }
}

/* Na menších mobilech gradient skryj */
@media (max-width: 600px) {
  .type-switch::before, .type-switch::after { display: none; }
}

/* DESKTOP: grid */
@media (min-width: 900px) {
  .type-switch-card {
    background: #f6f9fa;
    border: 1.4px solid #cfd6e1;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(80,100,180,0.07);
    padding: 2.2em 2.2em 1.7em 2.2em;
    margin: 1.1em auto 1.5em auto;
    max-width: 820px;
    transition: box-shadow 0.2s;
  }
  .type-switch-card:hover { box-shadow: 0 7px 34px rgba(90,120,200,0.11);}
  .type-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2em 1.6em;
    justify-items: stretch;
    align-items: stretch;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .type-switch::before, .type-switch::after { display: none; }
  .type-switch button {
    min-width: 0;
    width: 100%;
    font-size: 1.14em;
    padding: 1em 0.8em;
    word-break: break-word;
    line-height: 1.31;
  }
}



/* ======================================================================= */
/* ==========   4. Obsah: Intro boxy, Popisy, Formulář, Výstupy  ========= */
/* ======================================================================= */
  .app-logo-desktop {
    display: none !important;
  }
  @media (min-width:900px){
 .app-logo-desktop {
    display: block !important;
    margin:0 auto 18px auto;
    height:150px;
 }
}

.anim-product-img {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s;
  position: absolute;
  left: 0; right: 0; top: 0; margin: auto;
}
.anim-product-img.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

.anim-product-img.visible {
  opacity: 1;
  z-index: 1;
}

/* Carusel begin */
#product-carousel {
  position: relative;
  max-width: 98vw;
  margin: 1.4em auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px #b7c2df24;
  padding: 24px 0 0 0;
}

.carousel-img-wrap {
  position: relative;
  width: 100%;
  height: 350px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  opacity: 0;
  transition:
    transform 0.82s cubic-bezier(0.22,0.61,0.36,1),
    opacity 0.54s;
  transform: translateX(0);
  pointer-events: none;
}

.carousel-item.active {
  display: flex;
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  transform: translateX(0);
}

/* Sliding efekty */
.carousel-item.slide-in-right {
  display: flex;
  transform: translateX(100%);
  opacity: 1;
  z-index: 2;
}
.carousel-item.slide-in-left {
  display: flex;
  transform: translateX(-100%);
  opacity: 1;
  z-index: 2;
}
.carousel-item.slide-out-left {
  display: flex;
  transform: translateX(-100%);
  opacity: 0;
  z-index: 1;
}
.carousel-item.slide-out-right {
  display: flex;
  transform: translateX(100%);
  opacity: 0;
  z-index: 1;
}

/* Obrázek - MOBILE FIRST (malé zařízení) */
.carousel-item img {
  width: 100%;
  max-width: 94vw;
  max-height: 240px;
  aspect-ratio: 7/10;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 13px;
  box-shadow: 0 2px 8px #bac7dc34;
  text-decoration: none !important;
}

.carousel-desc {
  color: #4051ad;
  margin-top: 14px;
  font-size: 1em;
  text-align: center;
  background: transparent;
  width: 100%;
  font-weight: 500;
}

/* Šipky */
#carousel-left, #carousel-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: #f6f8ff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 1px 5px #ccd2e360;
  cursor: pointer;
  font-size: 1.8em;
  color: #4051ad;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.97;
  transition: background 0.15s, box-shadow 0.15s;
}
#carousel-left { left: -70px; }
#carousel-right { right: -70px; }

/* --- DESKTOP BREAKPOINT --- */
@media (min-width: 601px) {
  #product-carousel {
    max-width: 340px;
  }
  .carousel-img-wrap {
    height: 460px;
  }
  .carousel-item img {
    width: 100%;
    max-width: 280px;
    max-height: 380px;
    aspect-ratio: 7/10;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 13px;
    box-shadow: 0 2px 8px #bac7dc34;
  }
  #carousel-left { left: -70px; }
  #carousel-right { right: -70px; }
}

/* Tečky pod karuselem */
.carousel-dot {
  background: #d6daff !important;
  transition: background 0.2s;
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}
.carousel-dot.active { background: #4d5fd6 !important; }
/* Carusel end */

/* Prudukt desc begin */
.product-title {
  text-align: center;
  font-size: 1.35em;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 800;
  color: #334d92;
  letter-spacing: 0.02em;
  margin: 0 0 0.54em 0;
  border-bottom: 2.5px solid #e3e7f5;
  display: inline-block;
  padding-bottom: 0.18em;
  box-shadow: 0 1px 6px #ccd2e331;
  width: 100%;
}
@media (min-width: 700px) {
  .product-title {
    font-size: 1.85em;
  }
}
.product-features {
  list-style: none;
  padding-left: 0;
  font-size: 1em;
  line-height: 1.65;
  margin: 1em 0 0.5em 0;
  color: #334d92;
}
.product-features li {
  margin-bottom: 0.14em;
  font-weight: 500;
  display: flex;
  align-items: center;
}
.product-features li span {
  font-size: 1.23em;
  margin-right: 0.52em;
  line-height: 1;
}

/* Prudukt desc end */

#product-img-frame {
  position: relative;
  min-height: 280px; /* podle max-height obrázku, ať neskáče layout */
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-desc {
  background: #f7f8fa; color: #273060; border-radius: 14px; border: 1.0px solid #da3c7e;
  box-shadow: 0 2px 10px rgba(70,90,140,0.06);
  padding: 1.2em 1.7em; margin: 1.5em auto 2em auto; 
  width: fit-content;    /* na mobilech je OK */
  font-size: 0.8em; line-height: 1.7; text-align: left;
  font-family: 'Segoe UI', 'Montserrat', Arial, sans-serif;
  transition: background 0.3s; scroll-margin-top: 100px;
}

@media (min-width:900px) {
  .type-desc {
    font-size: 1.13em;
    width: 100%;             /* nebo width: auto; */
    max-width: 650px;        /* rozumná maximální šířka bloku na desktopu */
  }
}

.type-desc ul, .type-desc ol { margin-left: 1.1em; padding-left: 1.3em; }
.type-desc li { margin-bottom: 0.3em; }

/* Card styl formuláře */
#horoscope-form, .form-container {
  background: #f7f8fa; border-radius: 16px;
  box-shadow: 0 4px 18px rgba(100,120,180,0.12);
  padding: 1.5em 1em 1em 1em;
  margin: 1.2em auto 1em auto; max-width: 430px;
  display: flex; flex-direction: column; gap: 0.5em;
  animation: fadeInUp 0.45s cubic-bezier(.21,.68,.36,1.03);
}
/* Desktop form */
@media (min-width:900px){
  #horoscope-form, .form-container, #horoscope-output {
    max-width: 700px; font-size: 1.13em; margin-top: 2em; margin-bottom: 2em;
    border-radius: 22px; box-shadow: 0 12px 34px rgba(80,100,180,0.10);
  }
  #horoscope-form { padding: 2.2em 2em 2em 2em; }
}
#horoscope-form label {
  font-size: 1.09em; font-weight: 600; color: #3759b7;
  margin-bottom: 0.35em; margin-top: 0.8em; letter-spacing: 0.03em;
}
#horoscope-form input, #horoscope-form select, #horoscope-form textarea {
  border: none; border-radius: 10px; padding: 15px 12px; background: #fff;
  box-shadow: 0 1px 6px rgba(90,110,160,0.07); font-size: 1.12em;
  margin-bottom: 0.3em; margin-top: 0.1em;
  transition: box-shadow 0.18s, border 0.19s;
  outline: none; font-family: inherit; animation: fadeInUp 0.45s cubic-bezier(.21,.68,.36,1.03);
}
#horoscope-form input:focus, #horoscope-form select:focus, #horoscope-form textarea:focus {
  box-shadow: 0 0 0 2.5px #4d5fd6, 0 1px 8px rgba(70,70,140,0.11);
  background: #f5f8ff;
}
#horoscope-form textarea { min-height: 80px; resize: vertical; }
#horoscope-form input::placeholder, #horoscope-form textarea::placeholder {
  color: #b0b8d5; opacity: 1; font-size: 1em;
}
#horoscope-form button[type="submit"] { display: none; }
@media (min-width:900px){
  #horoscope-form button[type="submit"] {
    display: block; width: 100%; padding: 1.15em;
    background: linear-gradient(90deg, #6b7cff 0%, #4d5fd6 100%);
    color: #fff; border: none; border-radius: 9px; font-size: 1.11em; font-weight: 700;
    cursor: pointer; margin-top: 1.2em; box-shadow: 0 2px 8px rgba(100,120,220,0.08);
    transition: background 0.13s, transform 0.11s;
  }
  #horoscope-form button[type="submit"]:hover, #horoscope-form button[type="submit"]:focus {
    background: linear-gradient(90deg, #4d5fd6 0%, #6b7cff 100%); transform: translateY(-1px) scale(1.03);
  }
}
#horoscope-output {
  margin: 27px auto; max-width: 420px; background: #fdfdfe;
  border-radius: 14px; box-shadow: 0 2px 14px rgba(90,110,180,0.07);
  padding: 1.1em 1em 1em 1em; color: #2e3862; font-size: 1.09em; min-height: 42px;
  animation: fadeInUp 0.55s cubic-bezier(.21,.68,.36,1.03);
}
#horoscope-output:empty {
  padding: 0 !important; border: none !important; box-shadow: none !important;
  background: transparent !important; min-height: 0 !important; display: none !important;
}
#error-message {
  background: linear-gradient(90deg, #fd5a85 0%, #ffb3b3 100%);
  color: #fff; font-weight: 500; padding: 1em 1.2em; border-radius: 10px;
  font-size: 1.07em; margin: 0.7em 0 1.1em 0; box-shadow: 0 2px 7px rgba(230,90,120,0.10);
}

/* Angel generator, special input a hint boxy */
.angel-number-generator { display: flex; flex-direction: column; gap: 0.2em; margin-bottom: 1.2em;}
.angel-gen-btn { background: linear-gradient(90deg, #c0bfff 0%, #6b7cff 100%); color: #4153b9; border: none; border-radius: 8px; padding: 0.6em 1.1em; font-size: 1em; font-weight: 600; margin-top: 7px; cursor: pointer; transition: background 0.17s, color 0.13s, transform 0.12s; box-shadow: 0 2px 8px rgba(90,110,160,0.07); align-self: flex-start;}
.angel-gen-btn:hover { background: linear-gradient(90deg,#6b7cff 0%,#4d5fd6 100%); color: #fff; transform: scale(1.03);}
.angel-gen-status { color: #3a4ab1; font-size: 1em; min-height: 22px; text-align: left; }
.angel-info-hint { font-size: 0.88em; color: #456; margin-top: 1px; border: 1px solid #da3c7e; margin-bottom: 6px; background: #f3f7fd; border-radius: 8px; padding: 0.7em 1em; line-height: 1.6; box-shadow: 0 1px 6px rgba(120,140,220,0.04);}
.btn-question-toggle { margin: 12px 0 18px 0; background: #f2e8fa; color: #6946b5; border: 1px solid #bfa9ed; border-radius: 8px; padding: 0.5em 1.2em; font-size: 1em; font-weight: 500; cursor: pointer; transition: background 0.17s, color 0.13s, border 0.13s;}
.btn-question-toggle:hover { background: #e3d8fc; color: #4737a7; border: 1px solid #a189e5;}
.dynamic-question textarea, #horoscope-form textarea { min-height: 500px; font-size: 1.12em; resize: vertical; }

/* Historie */
#horoscope-history { margin: 2.4em auto 2em auto; max-width: 640px; padding: 0 1em; display: flex; flex-direction: column; gap: 1.4em; }
.history-card { background: #f7f8fc; border: 1px solid #e7e9f6; border-radius: 13px; box-shadow: 0 2px 12px rgba(110,120,180,0.07); padding: 1.1em 1.3em 1.2em 1.3em; font-size: 1.07em; color: #2e3862; transition: box-shadow 0.15s;}
.history-card:hover { box-shadow: 0 5px 32px rgba(90,110,180,0.12);}
.history-title { font-weight: 700; color: #3855a7; font-size: 1.09em; margin-bottom: 0.3em;}
.history-link { display: inline-block; margin: 0.7em 0 0.2em 0; padding: 0.42em 1em; background: linear-gradient(90deg, #6b7cff 0%, #4d5fd6 100%); color: #fff; border-radius: 7px; font-weight: 600; text-decoration: none; transition: background 0.17s; font-size: 1em;}
.history-link:hover { background: linear-gradient(90deg, #4d5fd6 0%, #6b7cff 100%); color: #fff;}
.history-summary { font-size: 0.98em; color: #497; margin-top: 0.5em; font-style: italic;}
.history-empty { color: #aaa; font-size: 1.1em; text-align: center; margin-top: 2em;}
.history-name { color: #3855a7; font-size: 1.04em; margin-bottom: 0.2em; font-weight: 500;}

/* Posuvnik pro registrované zda vyplnit udaje */
.toggle-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.toggle-switch input {
  display: none;
}
.toggle-switch .slider {
  position: relative;
  width: 38px;
  height: 22px;
  background: #e4eafd;
  border-radius: 13px;
  transition: background 0.2s;
  margin-left: 0;
  margin-right: 0;
}
.toggle-switch .slider:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #4d5fd6;
  border-radius: 50%;
  transition: 0.21s cubic-bezier(.4,0,.2,1);
}
.toggle-switch input:checked + .slider {
  background: #c1d7fe;
}
.toggle-switch input:checked + .slider:before {
  left: 18px;
  background: #3450a0;
}
.toggle-switch .switch-label-text {
  margin-left: 13px;
  font-size: 0.80em;
  color: #415075;
  font-weight: 300;
}


#product-img-frame {
  position: relative;
  min-height: 280px; /* podle max-height obrázku, ať neskáče layout */
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-desc {
  background: #f7f8fa; color: #273060; border-radius: 14px; border: 1.0px solid #da3c7e;
  box-shadow: 0 2px 10px rgba(70,90,140,0.06);
  padding: 1.2em 1.7em; margin: 1.5em auto 2em auto; 
  width: fit-content;    /* na mobilech je OK */
  font-size: 0.8em; line-height: 1.7; text-align: left;
  font-family: 'Segoe UI', 'Montserrat', Arial, sans-serif;
  transition: background 0.3s; scroll-margin-top: 100px;
}

@media (min-width:900px) {
  .type-desc {
    font-size: 1.13em;
    width: 100%;             /* nebo width: auto; */
    max-width: 650px;        /* rozumná maximální šířka bloku na desktopu */
  }
}

.type-desc ul, .type-desc ol { margin-left: 1.1em; padding-left: 1.3em; }
.type-desc li { margin-bottom: 0.3em; }

/* Card styl formuláře */
#horoscope-form, .form-container {
  background: #f7f8fa; border-radius: 16px;
  box-shadow: 0 4px 18px rgba(100,120,180,0.12);
  padding: 1.5em 1em 1em 1em;
  margin: 1.2em auto 1em auto; max-width: 430px;
  display: flex; flex-direction: column; gap: 0.5em;
  animation: fadeInUp 0.45s cubic-bezier(.21,.68,.36,1.03);
}
/* Desktop form */
@media (min-width:900px){
  #horoscope-form, .form-container, #horoscope-output {
    max-width: 700px; font-size: 1.13em; margin-top: 2em; margin-bottom: 2em;
    border-radius: 22px; box-shadow: 0 12px 34px rgba(80,100,180,0.10);
  }
  #horoscope-form { padding: 2.2em 2em 2em 2em; }
}
#horoscope-form label {
  font-size: 1.09em; font-weight: 600; color: #3759b7;
  margin-bottom: 0.35em; margin-top: 0.8em; letter-spacing: 0.03em;
}
#horoscope-form input, #horoscope-form select, #horoscope-form textarea {
  border: none; border-radius: 10px; padding: 15px 12px; background: #fff;
  box-shadow: 0 1px 6px rgba(90,110,160,0.07); font-size: 1.12em;
  margin-bottom: 0.3em; margin-top: 0.1em;
  transition: box-shadow 0.18s, border 0.19s;
  outline: none; font-family: inherit; animation: fadeInUp 0.45s cubic-bezier(.21,.68,.36,1.03);
}
#horoscope-form input:focus, #horoscope-form select:focus, #horoscope-form textarea:focus {
  box-shadow: 0 0 0 2.5px #4d5fd6, 0 1px 8px rgba(70,70,140,0.11);
  background: #f5f8ff;
}
#horoscope-form textarea { min-height: 80px; resize: vertical; }
#horoscope-form input::placeholder, #horoscope-form textarea::placeholder {
  color: #b0b8d5; opacity: 1; font-size: 1em;
}
#horoscope-form button[type="submit"] { display: none; }
@media (min-width:900px){
  #horoscope-form button[type="submit"] {
    display: block; width: 100%; padding: 1.15em;
    background: linear-gradient(90deg, #6b7cff 0%, #4d5fd6 100%);
    color: #fff; border: none; border-radius: 9px; font-size: 1.11em; font-weight: 700;
    cursor: pointer; margin-top: 1.2em; box-shadow: 0 2px 8px rgba(100,120,220,0.08);
    transition: background 0.13s, transform 0.11s;
  }
  #horoscope-form button[type="submit"]:hover, #horoscope-form button[type="submit"]:focus {
    background: linear-gradient(90deg, #4d5fd6 0%, #6b7cff 100%); transform: translateY(-1px) scale(1.03);
  }
}
#horoscope-output {
  margin: 27px auto; max-width: 420px; background: #fdfdfe;
  border-radius: 14px; box-shadow: 0 2px 14px rgba(90,110,180,0.07);
  padding: 1.1em 1em 1em 1em; color: #2e3862; font-size: 1.09em; min-height: 42px;
  animation: fadeInUp 0.55s cubic-bezier(.21,.68,.36,1.03);
}
#horoscope-output:empty {
  padding: 0 !important; border: none !important; box-shadow: none !important;
  background: transparent !important; min-height: 0 !important; display: none !important;
}
#error-message {
  background: linear-gradient(90deg, #fd5a85 0%, #ffb3b3 100%);
  color: #fff; font-weight: 500; padding: 1em 1.2em; border-radius: 10px;
  font-size: 1.07em; margin: 0.7em 0 1.1em 0; box-shadow: 0 2px 7px rgba(230,90,120,0.10);
}

/* Angel generator, special input a hint boxy */
.angel-number-generator { display: flex; flex-direction: column; gap: 0.2em; margin-bottom: 1.2em;}
.angel-gen-btn { background: linear-gradient(90deg, #c0bfff 0%, #6b7cff 100%); color: #4153b9; border: none; border-radius: 8px; padding: 0.6em 1.1em; font-size: 1em; font-weight: 600; margin-top: 7px; cursor: pointer; transition: background 0.17s, color 0.13s, transform 0.12s; box-shadow: 0 2px 8px rgba(90,110,160,0.07); align-self: flex-start;}
.angel-gen-btn:hover { background: linear-gradient(90deg,#6b7cff 0%,#4d5fd6 100%); color: #fff; transform: scale(1.03);}
.angel-gen-status { color: #3a4ab1; font-size: 1em; min-height: 22px; text-align: left; }
.angel-info-hint { font-size: 0.88em; color: #456; margin-top: 1px; border: 1px solid #da3c7e; margin-bottom: 6px; background: #f3f7fd; border-radius: 8px; padding: 0.7em 1em; line-height: 1.6; box-shadow: 0 1px 6px rgba(120,140,220,0.04);}
.btn-question-toggle { margin: 12px 0 18px 0; background: #f2e8fa; color: #6946b5; border: 1px solid #bfa9ed; border-radius: 8px; padding: 0.5em 1.2em; font-size: 1em; font-weight: 500; cursor: pointer; transition: background 0.17s, color 0.13s, border 0.13s;}
.btn-question-toggle:hover { background: #e3d8fc; color: #4737a7; border: 1px solid #a189e5;}
.dynamic-question textarea, #horoscope-form textarea { min-height: 500px; font-size: 1.12em; resize: vertical; }
/* Parner LOCE generator, special text area  */
.partner-desc-textarea {
  min-height: 60px !important; /* nebo kolik potřebuješ */
  max-height: 200px;
  font-size: 1.12em;
  resize: vertical;
}

/* Historie */
#horoscope-history { margin: 2.4em auto 2em auto; max-width: 640px; padding: 0 1em; display: flex; flex-direction: column; gap: 1.4em; }
.history-card { background: #f7f8fc; border: 1px solid #e7e9f6; border-radius: 13px; box-shadow: 0 2px 12px rgba(110,120,180,0.07); padding: 1.1em 1.3em 1.2em 1.3em; font-size: 1.07em; color: #2e3862; transition: box-shadow 0.15s;}
.history-card:hover { box-shadow: 0 5px 32px rgba(90,110,180,0.12);}
.history-title { font-weight: 700; color: #3855a7; font-size: 1.09em; margin-bottom: 0.3em;}
.history-link { display: inline-block; margin: 0.7em 0 0.2em 0; padding: 0.42em 1em; background: linear-gradient(90deg, #6b7cff 0%, #4d5fd6 100%); color: #fff; border-radius: 7px; font-weight: 600; text-decoration: none; transition: background 0.17s; font-size: 1em;}
.history-link:hover { background: linear-gradient(90deg, #4d5fd6 0%, #6b7cff 100%); color: #fff;}
.history-summary { font-size: 0.98em; color: #497; margin-top: 0.5em; font-style: italic;}
.history-empty { color: #aaa; font-size: 1.1em; text-align: center; margin-top: 2em;}
.history-name { color: #3855a7; font-size: 1.04em; margin-bottom: 0.2em; font-weight: 500;}

/* Posuvnik pro registrované zda vyplnit udaje */
.toggle-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.toggle-switch input {
  display: none;
}
.toggle-switch .slider {
  position: relative;
  width: 38px;
  height: 22px;
  background: #e4eafd;
  border-radius: 13px;
  transition: background 0.2s;
  margin-left: 0;
  margin-right: 0;
}
.toggle-switch .slider:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #4d5fd6;
  border-radius: 50%;
  transition: 0.21s cubic-bezier(.4,0,.2,1);
}
.toggle-switch input:checked + .slider {
  background: #c1d7fe;
}
.toggle-switch input:checked + .slider:before {
  left: 18px;
  background: #3450a0;
}
.toggle-switch .switch-label-text {
  margin-left: 13px;
  font-size: 0.80em;
  color: #415075;
  font-weight: 300;
}


/* ======================================================================= */
/* ==========   5. Modal: Login, Profil, Další popupy   ================== */
/* ======================================================================= */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(36,42,58,0.42); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px);
}
.modal {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 8px 40px rgba(80,90,130,0.18);
  border-radius: 17px; padding: 2.7em 2em 1.5em 2em;
  min-width: 330px; max-width: 97vw; max-height: 95vh; overflow-y: auto;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif; text-align: center;
  transition: box-shadow 0.23s; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.modal input[type="email"], .modal input[type="text"], .modal input[type="password"] {
  width: 100%; padding: 17px 14px; font-size: 1.22em;
  border-radius: 9px; border: 1.5px solid #b6c6e0;
  margin-bottom: 1.2em; background: #f3f7fd;
  transition: border-color 0.19s; box-sizing: border-box;
  outline: none; font-family: inherit;
}
.modal input:focus { border-color: #4d5fd6; outline: none; background: #f2f6fe; }
.modal button, .modal .modal-btn {
  padding: 15px 0; width: 100%; font-size: 1.13em;
  background: linear-gradient(90deg,#6b7cff 0%,#4d5fd6 100%);
  color: #fff; border: none; border-radius: 8px; font-weight: 700; margin-top: 0.8em;
  box-shadow: 0 2px 8px rgba(100,120,200,0.07); cursor: pointer; transition: background 0.18s;
}
.modal button:hover { background: linear-gradient(90deg,#4d5fd6 0%,#6b7cff 100%);}
.modal .modal-close {
  position: absolute;
  top: 18px; right: 18px; width: 40px; height: 40px;
  background: #f7f9fe; border: 1.5px solid #ccd8ee;
  border-radius: 50%; font-size: 1.65em; color: #4d5fd6;
  cursor: pointer; line-height: 38px; text-align: center;
  box-shadow: 0 2px 12px rgba(100,120,160,0.06);
  transition: background 0.18s, box-shadow 0.17s;
  z-index: 2; padding: 0;
}
.modal .modal-close:hover {
  background: #e7edfa;
  color: #2c3d77;
  box-shadow: 0 2px 18px rgba(100,120,200,0.13);
}
@media (max-width:600px){
  .modal { padding: 1.1em 0.6em 1.2em 0.6em; min-width: 0; font-size: 1em;}
  .modal input { font-size: 1.07em; padding: 13px 9px; }
}

/* === Profilový MODAL (mobile first) === */
#profile-modal.modal-backdrop {
  z-index: 2050;
  background: rgba(36,42,58,0.38);
}
#profile-modal .modal {
  background: #fff;
  box-shadow: 0 4px 32px rgba(60,80,140,0.13), 0 1.5px 8px rgba(100,100,130,0.09);
  border-radius: 16px 16px 0 0;
  padding: 1.1em 0.5em 1em 0.5em;
  min-width: 0; max-width: 100vw; width: 100vw;
  max-height: 97vh; overflow-y: auto; position: relative;
  display: flex; flex-direction: column; align-items: center;
  transition: box-shadow 0.22s, background 0.15s;
  animation: modalSlideUp 0.35s cubic-bezier(.23,.7,.38,1.02);
  margin: 0 auto; font-size: 1em;
}
/* Zavírací tlačítko vpravo nahoře */
#profile-modal .modal-close, .profile-modal .modal-close {
  position: absolute; top: 8px; right: 28px;
  width: 34px; height: 34px;
  border-radius: 50%; background: #f6f8fc; border: none;
  font-size: 1.7em; color: #6b7cff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; box-shadow: 0 2px 6px rgba(60,80,140,0.08);
  transition: background 0.15s, color 0.15s; z-index: 30;
}
#profile-modal .modal-close:hover, .profile-modal .modal-close:hover {
  background: #e4eaff; color: #4d5fd6;
}

/* Formulář (mobile first) */
.profile-form {
  width: 97vw; max-width: 335px; margin: 0 auto; padding: 0;
  display: flex; flex-direction: column; align-items: stretch; gap: 0.42em;
}
.profile-form label {
  text-align: left; margin: 0.22em 0 0.06em 4px;
  color: #3a437a; font-size: 0.99em; font-weight: 500;
}
.profile-form input,
.profile-form select {
  width: 100%;
  max-width: 340px;
  margin: 0.33em auto;
  display: block;
  font-size: 1.07em;
  padding: 15px 13px;
  border-radius: 9px;
  background: #f5f7fd;
  border: 1.5px solid #b6c6e0;
  color: #232c45;
  box-sizing: border-box;
  transition: border-color 0.18s, background 0.17s;
  min-height: 46px;
  font-family: inherit;
}

/* Styl pro select (šipka) */
.profile-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 21px;
  padding-right: 40px;
  cursor: pointer;
}

/* Styl pro input[type="date"] (stejný vzhled, + kalendář) */
.profile-form input[type="date"] {
  background: #f5f7fd url('data:image/svg+xml;utf8,<svg fill="gray" height="22" viewBox="0 0 24 24" width="22" xmlns="http://www.w3.org/2000/svg"><rect fill="none" height="24" width="24"/><path d="M7 10h2v2H7v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zM5 19h14V8H5v11zm14-13h-1V4h-2v2H8V4H6v2H5c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 15H5c-1.1 0-2-.9-2-2V8c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2v11c0 1.1-.9 2-2 2z"/></svg>') no-repeat right 12px center;
  background-size: 23px;
  padding-right: 46px;
}

.profile-form input:focus, .profile-form select:focus {
  border-color: #6b7cff;
  background: #f2f6fe;
  outline: none;
}

/* Tlačítko */
.profile-form button {
  margin-top: 1em;
  background: linear-gradient(90deg,#6b7cff 0%,#4d5fd6 100%);
  color: #fff; border: none; border-radius: 8px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(100,120,200,0.07);
  cursor: pointer; padding: 15px 0; font-size: 1.13em;
  transition: background 0.18s;
}
.profile-form button:hover {
  background: linear-gradient(90deg,#4d5fd6 0%,#6b7cff 100%);
}

/* Success & error messages */
.profile-success, .profile-error,
.password-success, .password-error {
  margin: 0.4em 0 0.6em 0;
  font-size: 0.99em;
  border-radius: 7px;
  padding: 8px 10px;
}
.profile-success, .password-success {
  background: #dff8ec;
  color: #2c944e;
}
.profile-error, .password-error {
  background: #fff4f4;
  color: #b43b32;
}

/* Sjednocený design meta sekce */
.profile-meta {
  margin-top: 1.1em;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 0.5em 1.1em 0.5em;
  text-align: left;
  font-size: 1.06em;
  color: #313968;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  border-radius: 0;
}
.profile-meta > div {
  margin-bottom: 1.15em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45em;
}
.profile-meta b {
  color: #2d3875;
  font-weight: 500;
  font-size: 1em;
  margin-right: 0.33em;
  letter-spacing: 0.01em;
}

/* Oddělovač mezi sekcemi */
.profile-divider {
  width: 85%; max-width: 270px; border-bottom: 1.5px solid #000000;
  margin: 1.3em auto 1em auto;
}
/* Název sekce */
.profile-title {
  font-size: 1.18em; font-weight: 600; color: #2d3875;
  margin: 0.5em 0 1.1em 0; text-align: center;
}
.profile-subtitle {
  font-size: 1.07em; font-weight: 500; color: #4d5fd6;
  margin: 1em 0 0.5em 0;
}
/* Styl pro profile-row – na desktopu vedle sebe, na mobilu pod sebou */
.profile-row {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-bottom: 0.6em;
}
@media (min-width: 601px) {
  #profile-modal .modal {
    border-radius: 18px;
    max-height: 97vh;
    overflow-y: auto;
    padding: 1.0em 0.2em 1em 0.2em;
    width: 60vw;
    max-height: 90vh;
    box-shadow: 0 8px 42px rgba(60,80,140,0.15), 0 1.5px 8px rgba(100,100,130,0.09);
    animation: fadeInUp 0.48s cubic-bezier(.21,.68,.36,1.03);
    font-size: 1.11em;
  }
  @keyframes fadeInUp {
    0%   { transform: translateY(40px); opacity:0; }
    100% { transform: translateY(0); opacity:1; }
  }
  .profile-form {
    max-width: 420px; width: 98%;
  }
  .profile-form input, .profile-form select, .profile-form button {
    width: 100%; max-width: 100%; font-size: 1.12em; margin: 0.32em 0;
  }
  .profile-meta {
    max-width: 420px;
    font-size: 1.12em;
    padding-left: 0.4em;
    padding-right: 0.4em;
  }
  .profile-meta > div {
    margin-bottom: 1.18em;
    gap: 0.75em;
  }
  .profile-meta b { font-size: 1.05em; }
  .profile-row {
    flex-direction: row;
    gap: 1.2em;
    margin-bottom: 0.7em;
  }
  .profile-row > div { flex: 1 1 0; }
  .profile-form input, .profile-form select {
    font-size: 1.13em;
    min-height: 52px;
  }
}
/* Aby šířka input/select nebyla nikdy větší než modal */
@media (max-width: 350px) {
  .profile-form input,
  .profile-form select {
    max-width: 97vw;
  }
}

/* ======================================================================= */
/* ==========   6. Komponenty, CTA, Animace, Utility   =================== */
/* ======================================================================= */

/* Sticky CTA button (mobile) */
.sticky-cta.disabled, button:disabled { opacity: 0.6; pointer-events: none; filter: grayscale(0.3);}
.sticky-cta {
  display: block; position: fixed; left: 0; right: 0; bottom: 0;
  width: 100vw; z-index: 1000; background: linear-gradient(90deg,#6b7cff 0%,#4d5fd6 100%);
  color: #fff; text-align: center; padding: 1.25em 0; font-size: 1.18em; font-weight: 700; letter-spacing: 0.5px;
  border: none; border-radius: 0; box-shadow: 0 -2px 10px rgba(90,110,180,0.07);
  cursor: pointer; transition: background 0.15s, transform 0.12s, box-shadow 0.17s;
}
.sticky-cta:active { background: linear-gradient(90deg, #4d5fd6 0%, #6b7cff 100%); transform: scale(0.98);}
.sticky-cta:focus { outline: 2px solid #b5baf6;}
@media (min-width:900px){ .sticky-cta { display: none; } }

/* Animace */
@keyframes fadeInUp { 0%{opacity: 0; transform: translateY(16px);} 100%{opacity: 1; transform: translateY(0);} }
@keyframes colorShift { 0%,80%,100%{color:#ffffff;} 30%,60%{color:#c02762;} }
@keyframes spin { 0%{transform: rotate(0deg);} 100%{transform: rotate(360deg);} }
@keyframes smoothFade { 0%{ opacity: 1; } 50%{ opacity: 0.45; } 100%{ opacity: 1; } }

.dots span { color: #aaa; opacity: 1; font-weight: bold; font-size: 1.1em; transition: color 0.2s;}
.dots span:nth-child(1){ animation: colorShift 2.4s infinite; animation-delay: 0s;}
.dots span:nth-child(2){ animation: colorShift 2.4s infinite; animation-delay: 0.8s;}
.dots span:nth-child(3){ animation: colorShift 2.4s infinite; animation-delay: 1.6s;}
.spinner { display: inline-block; width: 1.2em; height: 1.2em; border: 2.5px solid #fff; border-top: 2.5px solid #4d5fd6; border-radius: 50%; animation: spin 0.95s linear infinite; vertical-align: middle; margin-right: 0.6em;}

/* ==== Utility ==== */
#order-waiting-msg { display: block; min-height: 3.7em; max-width: 400px; margin: 0 auto; word-break: break-word; text-align: center; line-height: 1.4; font-size: 1.0em; color: #000; font-weight: 500; animation: smoothFade 2.8s ease-in-out infinite alternate;}
.test-version-info { position: fixed; top: 80px; left: 0; right: 0; z-index: 1099; background: rgba(255,255,255,0); color: #fefffd; text-align: left; padding: 14px 10px; border-radius: 0 0 18px 18px; margin: 0; font-size: 0.7rem; letter-spacing: 0.01em; line-height: 1.4; font-family: 'Segoe UI', 'Montserrat', Arial, sans-serif;}
@media (max-width:899px){ .test-version-info { display: none; } .app-main, .main-content { padding-top: 56px; } }

/* Profil modal: avatar/jméno na mobile */
.user-avatar-icon { display: none; }
.user-name { display: inline; }
@media (max-width:600px){
  .user-avatar-icon { display: inline; }
  .user-name { display: none; }
}
/* ======================================================================= */ 
/* ==========   7. Komponenty, CTA, Animace, Utility   =================== */
/* ======================================================================= */
/* =============================== */
/* == Komponenty, CTA, Carousel == */
/* =============================== */

/* Slide obsah (intro box) */
.intro-box {
  background: #f6f9fa;
  border: 1.0px solid #da3c7e;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(120,140,220,0.06);
  padding: 1.3em 0.7em;
  margin: 1.2em auto 1.2em auto;
  max-width: 99vw;
  color: #4153b9;
  font-size: 0.98em;           /* menší písmo na mobile-first */
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.intro-box-flex {
  display: flex;
  flex-direction: column;      /* na mobilu sloupce pod sebe */
  align-items: center;
  gap: 0.5em;
  width: 100%;
}
.intro-box-flex img {
  width: 110px;
  max-width: 45vw;
  min-width: 90px;
  max-height: 180px;
  border-radius: 13px;
  box-shadow: 0 2px 12px #ccd2e332;
  margin: 0 auto 0.6em auto;
  transition: box-shadow 0.2s;
}
.intro-box-text {
  flex: 1;
  min-width: 0;
  font-size: 0.97em;
}

/* Carousel wrapper */
.carousel-center-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 300px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
}

/* Carousel window */
.intro-carousel-window {
  width: 100%;
  max-width: 99vw;
  min-height: 840px;           /* vyšší pro obsahné slidy */
  margin: 0 auto;
  position: relative;
  overflow: visible; 
  background: transparent;
  border-radius: 30px;
  box-shadow: none;
  padding: 0;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

/* Hlavní oblast karuselu */
.intro-carousel {
  position: relative;
  width: 100%;
  min-height: 360px;           /* vyšší výchozí na mobilu */
  overflow: hidden;
  padding-bottom: 0;
  flex: 1 1 auto;
  min-height: 0;
}

/* Track/slidy */
.intro-carousel-track {
  position: relative;
  width: 100%;
  min-height: 260px;
  transition: min-height 0.24s cubic-bezier(.4,0,.2,1);
}

/* Slide */
.intro-carousel-item {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  visibility: hidden;
  transition:
    transform 0.82s cubic-bezier(0.22,0.61,0.36,1),
    opacity 0.54s,
    visibility 0s 0.82s;
  transform: translateX(0);
}
.intro-carousel-item.active,
.intro-carousel-item.slide-in-right,
.intro-carousel-item.slide-in-left,
.intro-carousel-item.slide-out-left,
.intro-carousel-item.slide-out-right {
  visibility: visible;
  pointer-events: auto;
}
.intro-carousel-item.active  { z-index: 3; opacity: 1; }
.intro-carousel-item.slide-in-right,
.intro-carousel-item.slide-in-left    { z-index: 2; opacity: 1; }
.intro-carousel-item.slide-out-left,
.intro-carousel-item.slide-out-right  { z-index: 1; opacity: 0; }

/* Sliding efekty */
.intro-carousel-item.slide-in-right {
  transform: translateX(100%);
  animation: slideInRight 0.55s cubic-bezier(.38,1.09,.64,.95) forwards;
}
.intro-carousel-item.slide-in-left {
  transform: translateX(-100%);
  animation: slideInLeft 0.55s cubic-bezier(.38,1.09,.64,.95) forwards;
}
.intro-carousel-item.slide-out-left {
  transform: translateX(0);
  animation: slideOutLeft 0.55s cubic-bezier(.38,1.09,.64,.95) forwards;
}
.intro-carousel-item.slide-out-right {
  transform: translateX(0);
  animation: slideOutRight 0.55s cubic-bezier(.38,1.09,.64,.95) forwards;
}
@keyframes slideInRight { from { opacity: 0; transform: translateX(100%);} to { opacity: 1; transform: translateX(0);} }
@keyframes slideOutLeft { from { opacity: 1; transform: translateX(0);} to { opacity: 0; transform: translateX(-100%);} }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-100%);} to { opacity: 1; transform: translateX(0);} }
@keyframes slideOutRight { from { opacity: 1; transform: translateX(0);} to { opacity: 0; transform: translateX(100%);} }

/* === Šipky - responzivní pozicování === */
.intro-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 50%;
  border: 2px solid #e3e6fa;
  width: 30px;
  height: 30px;
  box-shadow: 0 2px 12px #b7c2df36;
  cursor: pointer;
  font-size: 1em;
  color: #4051ad;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.98;
  z-index: 40;
  padding: 0;
  transition: background 0.17s, box-shadow 0.18s, color 0.17s, border 0.17s;
}
.intro-carousel-arrow svg { width: 15px; height: 15px; display: block; }
.intro-carousel-arrow.left  { left: 10px; }
.intro-carousel-arrow.right { right: 10px; }
.intro-carousel-arrow:focus,
.intro-carousel-arrow:hover {
  background: #e7edfa;
  color: #2a3a80;
  border-color: #bfc9f7;
  box-shadow: 0 4px 16px #b7c2df88;
  outline: none;
}

/* --- dots pod karuselem, vždy stejné zarovnání --- */
.intro-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65em;
  margin-top: 10px;
  margin-bottom: 0;
  min-height: 20px;
  align-self: center;
}
.intro-carousel-dot {
  background: #d6daff !important;
  transition: background 0.18s, border-color 0.15s;
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block; cursor: pointer;
  border: 2px solid #f1f3fe; box-sizing: border-box;
}
.intro-carousel-dot.active {
  background: #4051ad !important;
  border-color: #a6b3f5;
}

/* Obrázkový sloupec s odkazy pod obrázkem */
.intro-product-image-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
}

/* Odkaz pod obrázkem */
.product-info-link {
  margin-top: 0.3em;
  color: #5a5aad;
  font-size: 0.98em;
  font-weight: 500;
  text-decoration: underline dotted;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s;
}
.product-info-link:hover,
.product-info-link:focus {
  color: #b91c7b;
  text-decoration: underline solid;
}

/* CTA tlačítko */
.product-price,
.product-price.cta-link {
  display: inline-block;
  background: linear-gradient(90deg, #f7faff 0%, #e7edfd 100%);
  color: #3241a8;
  font-size: 1.07em;
  font-weight: 900;
  border-radius: 13px;
  padding: 0.44em 1.1em;
  box-shadow: 0 2px 12px #cfd5ef66, 0 4px 22px #a6aee81a;
  border: 2px solid #bec8f6;
  margin: 14px auto 10px auto;
  text-align: center;
  letter-spacing: 0.01em;
  transition: 
    box-shadow 0.18s cubic-bezier(.4,0,.2,1),
    transform 0.18s cubic-bezier(.4,0,.2,1),
    background 0.19s;
  cursor: pointer;
  outline: none;
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.product-price.cta-link:hover,
.product-price.cta-link:focus,
.product-price:hover,
.product-price:focus {
  background: linear-gradient(90deg, #e7edfd 0%, #c5e3ff 100%);
  box-shadow: 0 8px 32px #7da8e622, 0 1.5px 8px #bac4ed44;
  color: #ca1313;
  border-color: #4d5fd6;
  transform: scale(1.045) translateY(-1.5px);
  outline: none;
  text-decoration: none;
  text-align: center;
}

.product-price.cta-link:active,
.product-price:active {
  transform: scale(0.98);
  background: #c5e3ff;
  color: #28327c;
  text-align: center;
}

/* --- MOBILNÍ STŘED --- */
@media (max-width: 900px) {
  .product-price,
  .product-price.cta-link {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    min-width: 180px;
  }
}


/* Utility styly */
.d-block {
  display: block;
  text-align: center;
  font-weight: bold;
  margin-top: 0.5em;
  font-size: 1em;
}
.intro-desc, .d-block {
  text-shadow: 0 1px 8px #e3e7f5, 0 2px 12px #b7c2df33;
}

/* --- DESKTOP rozšíření a větší obrázek === */
@media (min-width: 900px) {
  .intro-carousel-window {
    max-width: 900px;
    min-height: 750px;
  }
  .intro-box {
    max-width: 800px;
    padding: 3em 4em;
    font-size: 1.15em;
  }
  .intro-box-flex {
    flex-direction: row;
    gap: 2.7em;
  }
  .intro-box-flex img {
    width: 260px;
    max-width: 260px;
    min-width: 180px;
    max-height: 380px;
    margin-right: 1.2em;
    margin-bottom: 0;
  }
  .d-block {
    font-size: 1.32em;
    margin-top: 1.6em;
    background: linear-gradient(90deg,#eaf0ff 40%,#f8f4fc 100%);
    border-radius: 13px;
    display: inline-block;
    text-align: center;
    font-weight: bold;
    color: #293187;
    box-shadow: 0 1px 8px #e3e7f5, 0 2px 12px #b7c2df33;
    padding: 0.15em 0.6em;
  }
  .product-info-link { font-size: 1em; }
  .product-price,
  .product-price.cta-link { font-size: 1.25em; padding: 0.54em 1.7em;  }
}

/* Responsivita */
@media (max-width: 720px) {
  .intro-carousel-window  { min-height: 680px; }
  .intro-carousel         { min-height: 480px; }
}
@media (max-width: 400px) {
  .intro-carousel-arrow       { width: 24px; height: 24px; }
  .intro-carousel-dot         { width: 10px; height: 10px; }
}

.intro-welcome-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.4em;
  width: 100%;
}

.intro-logo-col {
  display: none; /* logo výchozí stav: schované */
}
@media (min-width: 900px) {
  .intro-logo-col {
    display: flex;
    flex: 0 0 50px;
    align-items: flex-start;
    justify-content: center;
  }
  .intro-logo-col img {
    width: 120px;
    max-width: 28vw;
    border-radius: 13px;
    box-shadow: 0 2px 12px #ccd2e332;
  }
}

.intro-main-col {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.for-whom-wide-block {
  width: 100%;
  margin: 0.5em auto 0.2em auto;
  padding: 1.2em 1.5em;
  border-radius: 0px;
  border: none;
  border-top: 2.3px solid #d1d7f5;  /* Horní border */
  color: #4456ab;
  font-size: 0.8em;
  box-shadow: 0 2px 10px #e5eafe19;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.38em;
}

.for-whom-wide-block b {
  font-size: 0.98em;
  color: #3841a0;
  margin-bottom: 0.18em;
  font-weight: 1000;
  letter-spacing: 0.01em;
}
.for-whom-wide-block span {
  display: block;
  margin-bottom: 0.11em;
  font-size: 1em;
  line-height: 1.6;
}

/* Responsivita pro for-whom-wide-block a logo */
@media (max-width: 900px) {
  .intro-welcome-row { gap: 1.1em; }
  .intro-logo-col img { width: 82px; }
  .for-whom-wide-block { font-size: 0.8em; padding: 0.9em 0.7em; }
}
@media (max-width: 600px) {
  .intro-welcome-row { flex-direction: column; gap: 0.4em; align-items: center; }
  /* logo zůstává skryté */
  .for-whom-wide-block { font-size: 0.94em; margin: 1.1em 0 0 0; }
}
@media (max-width: 900px) {
  .intro-box-flex,
  .intro-box-text {
    align-items: center !important;
    text-align: center !important;
    width: 100%;
  }
  .intro-box-text ul {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 1.1em;
    width: 100%;
    box-sizing: border-box;
  }
  .product-price,
  .product-price.cta-link {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    min-width: 180px;
    max-width: 95%;
  }
}

/* ======================================================================= */
/* ==========   8. Credit platba modál                 =================== */
/* ======================================================================= */
#credit-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,38,72,0.36);
  overflow: auto;
}
#credit-modal .modal-content {
  background: #fff;
  max-width: 97vw;
  margin: 7vh auto;
  padding: 1.1em 0.7em 1.2em 0.7em;
  border-radius: 12px;
  box-shadow: 0 4px 32px #20284822;
  position: relative;
  font-family: 'Montserrat', Arial, sans-serif;
  animation: creditModalFadeIn 0.21s;
}
@keyframes creditModalFadeIn {
  0% { opacity: 0; transform: translateY(32px);}
  100% { opacity: 1; transform: none;}
}
#credit-modal .modal-close {
  position: absolute;
  right: 0.9em;
  top: 0.8em;
  font-size: 1.35em;
  color: #bb2571;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: bold;
  z-index: 10;
  transition: color 0.15s;
}
#credit-modal .modal-close:hover {
  color: #4051ad;
}
#credit-modal .modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 1.4em;
  justify-content: center;
}
#credit-modal .btn {
  min-width: 90px;
  font-size: 1em;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  padding: 0.55em 1em;
  cursor: pointer;
  transition: background .14s, color .14s;
}
#credit-modal .btn-main {
  background: #4051ad;
  color: #fff;
}
#credit-modal .btn-main:hover {
  background: #2b357c;
}
#credit-modal .btn-secondary {
  background: #eee;
  color: #222;
  border: 1.3px solid #cfd5ef;
}
#credit-modal .btn-secondary:hover {
  background: #f8f8fa;
}

/* Desktop (větší než 480px) */
@media (min-width: 481px) {
  #credit-modal .modal-content {
    max-width: 380px;
    padding: 2.1em 1.3em 1.5em 1.3em;
    border-radius: 14px;
  }
  #credit-modal .modal-actions {
    gap: 15px;
    margin-top: 1.8em;
  }
  #credit-modal .btn {
    min-width: 110px;
    padding: 0.65em 1.2em;
    border-radius: 9px;
  }
}
/* Zarovnání poslední položky doprostřed, pokud poslední řádek zbyde jen s 1 tlačítkem
   (funguje pro počet prvků = 3k + 1; např. 4, 7, …) */
@media (min-width: 900px) {
  .type-switch > :last-child:nth-child(3n + 1) {
    grid-column: 2;          /* prostřední sloupec ve 3-sloupcové mřížce */
    justify-self: center;
  }
}
/* ============================================================================
   DOPLNĚK: Skrytí "coming soon" tlačítek v přepínači typů
   (Zůstává zde jako globální override; lze kdykoli odstranit/zakomentovat)
=============================================================================== */
.type-switch button.coming-soon-btn { 
  display: none !important; 
}

/* ============================================================================
   DOPLNĚK: Desktop – vycentrování poslední položky (pokud je v posledním řádku sama)
   Pravidlo platí pro počet prvků = 3k+1 (např. 4, 7, …) v gridu 3×.
=============================================================================== */
@media (min-width: 900px) {
  .type-switch > :last-child:nth-child(3n + 1) {
    grid-column: 2 !important;   /* prostřední sloupec */
    justify-self: center !important;
  }
}


.chip{display:inline-block;padding:.22em .6em;border-radius:10px;font-size:.78em;font-weight:700;letter-spacing:.02em}
.chip-paid{background:#eef2ff;color:#4051ad}
.small-muted{color:#7a83a3;font-size:.94em}

/* Disabled stav pro produktová CTA během generování */
body[data-generating="1"] .intro-carousel .cta-link,
body[data-generating="1"] .product-price.cta-link,
body[data-generating="1"] .carousel-cta-btn,
body[data-generating="1"] a.cta-link[data-type] {
  opacity: .6;
  filter: grayscale(10%);
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .bw-btn-primary.js-open-result {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    margin-top: 8px;
  }
}

