/* =================================
   XENYRA – HEADER
   Clean AI 2030 platform header
   ================================= */

.xen-header{
  position:sticky;
  top:0;
  z-index:9000;
  width:100%;
  background:rgba(255,255,255,.78);
  border-bottom:1px solid rgba(17,24,39,.08);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  overflow:visible;
}

body.admin-bar .xen-header{
  top:32px;
}

.xen-header-inner{
  max-width:1280px;
  margin:0 auto;
  padding:14px 28px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:28px;
}

.xen-header-brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none !important;
  color:#08111f !important;
}

.xen-header-logo{
  width:36px;
  height:36px;
  display:block;
  object-fit:contain;
  filter:
    drop-shadow(0 8px 18px rgba(29,124,255,.18))
    drop-shadow(0 0 12px rgba(0,229,255,.10));
}

.xen-header-wordmark{
  display:flex;
  flex-direction:column;
  line-height:1;
}

.xen-header-wordmark strong{
  font-size:17px;
  font-weight:720;
  letter-spacing:-.055em;
  color:#08111f;
  line-height:.94;
  text-shadow:0 8px 22px rgba(29,124,255,.08);
}

.xen-header-wordmark span{
  margin-top:5px;
  font-size:8px;
  font-weight:620;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#7b8494;
}

.xen-header-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.xen-header-nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 13px;
  border-radius:999px;
  color:#243044 !important;
  text-decoration:none !important;
  font-size:13px;
  font-weight:850;
  letter-spacing:-.01em;
  transition:background .16s ease, color .16s ease, transform .16s ease;
}

.xen-header-nav a:hover{
  background:rgba(29,124,255,.08);
  color:#1267d8 !important;
  transform:translateY(-1px);
}

.xen-header-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.xen-icon-btn{
  all:unset;
  width:38px;
  height:38px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#243044;
  background:#ffffff;
  border:1px solid rgba(17,24,39,.08);
  box-shadow:0 10px 26px rgba(17,24,39,.06);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.xen-icon-btn:hover{
  transform:translateY(-1px);
  border-color:rgba(29,124,255,.22);
  box-shadow:0 16px 36px rgba(17,24,39,.10);
}

/* =================================
   HEADER AI TOOLTIP
   Same bubble as hero, only opened downward
   ================================= */

.xen-header-inner,
.xen-header-actions,
.xen-header .xen-ai-tip-wrap{
  overflow:visible;
}

.xen-header .xen-ai-tip-wrap{
  position:relative;
}

.xen-header .xen-ai-tip{
  position:absolute !important;
  top:calc(100% + 12px) !important;
  bottom:auto !important;
  left:50% !important;
  right:auto !important;
  transform:translateX(-50%) !important;

  width:max-content !important;
  max-width:none !important;
  min-width:0 !important;

  white-space:nowrap !important;
  text-align:center !important;

  padding:9px 15px !important;
  border-radius:999px !important;
  background:rgba(55,65,81,.96) !important;
  color:#ffffff !important;
  box-shadow:0 16px 40px rgba(17,24,39,.22) !important;
  z-index:9200 !important;
}

/* vypne prípadný starý tvar / druhý pseudo-element */
.xen-header .xen-ai-tip::before{
  content:none !important;
  display:none !important;
}

/* šípka smerom hore k Xenyra AI */
.xen-header .xen-ai-tip::after{
  content:"" !important;
  position:absolute !important;
  left:50% !important;
  top:-7px !important;
  bottom:auto !important;
  transform:translateX(-50%) !important;

  width:0 !important;
  height:0 !important;
  border-left:7px solid transparent !important;
  border-right:7px solid transparent !important;
  border-bottom:7px solid rgba(55,65,81,.96) !important;
  border-top:0 !important;
}

.xen-lang{
  position:relative;
}

.xen-lang-toggle{
  all:unset;
  min-width:56px;
  height:38px;
  padding:0 12px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  cursor:pointer;
  background:#ffffff;
  border:1px solid rgba(17,24,39,.08);
  color:#243044;
  font-size:13px;
  font-weight:900;
  box-shadow:0 10px 26px rgba(17,24,39,.06);
}

.xen-lang-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  min-width:82px;
  padding:8px;
  border-radius:18px;
  background:#ffffff;
  border:1px solid rgba(17,24,39,.08);
  box-shadow:0 24px 60px rgba(17,24,39,.16);
  display:none;
}

.xen-lang.is-open .xen-lang-menu{
  display:grid;
  gap:3px;
}

.xen-lang-menu button{
  all:unset;
  padding:9px 11px;
  border-radius:12px;
  cursor:pointer;
  color:#243044;
  font-size:13px;
  font-weight:850;
}

.xen-lang-menu button:hover{
  background:#eef4ff;
  color:#1267d8;
}

.xen-signin-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 15px;
  border-radius:999px;
  background:#08111f;
  color:#ffffff !important;
  border:1px solid rgba(17,24,39,.12);
  text-decoration:none !important;
  font-size:13px;
  font-weight:850;
  letter-spacing:-.01em;
  box-shadow:0 10px 26px rgba(17,24,39,.10);
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    border-color .16s ease;
}

.xen-signin-btn:hover{
  transform:translateY(-1px);
  background:#1267d8;
  border-color:rgba(29,124,255,.28);
  box-shadow:0 16px 38px rgba(29,124,255,.18);
}

.xen-signin-btn span{
  line-height:1;
  white-space:nowrap;
}

.xen-mobile-toggle{
  display:inline-flex;
}

/* Mobile */
@media (max-width:980px){
  .xen-header-inner{
    grid-template-columns:auto auto;
  }

  .xen-header-nav{
    display:none;
  }

  .xen-signin-btn{
    display:none;
  }

  .xen-mobile-toggle{
    display:inline-flex;
  }

  .xen-header-actions{
    gap:8px;
  }
}

@media (max-width:640px){
  .xen-header-inner{
    padding:12px 16px;
  }

  .xen-header-wordmark span{
    display:none;
  }

  .xen-icon-btn{
    width:36px;
    height:36px;
  }
}

/* =================================
   XENYRA – PLATFORM MENU PANEL
   Hidden hamburger / platform navigation layer
   ================================= */

.xen-platform-menu{
  position:absolute;
  top:calc(100% + 12px);
  right:28px;
  width:min(520px, calc(100vw - 32px));
  z-index:9100;
  display:none;
}

.xen-platform-menu.is-open{
  display:block;
}

.xen-platform-menu-inner{
  border-radius:30px;
  padding:22px;
  background:
    radial-gradient(circle at 18% 10%, rgba(0,229,255,.10), transparent 32%),
    radial-gradient(circle at 82% 10%, rgba(176,38,255,.10), transparent 34%),
    rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.78);
  box-shadow:
    0 34px 100px rgba(8,17,31,.22),
    inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  animation:xenPlatformMenuIn .18s ease forwards;
}

@keyframes xenPlatformMenuIn{
  from{
    opacity:0;
    transform:translateY(-8px) scale(.98);
  }

  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.xen-platform-menu-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.xen-platform-kicker{
  display:inline-flex;
  margin-bottom:8px;
  color:#1267d8;
  font-size:11px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.xen-platform-menu-head h3{
  margin:0;
  color:#08111f;
  font-size:28px;
  line-height:1.05;
  letter-spacing:-.05em;
  font-weight:850;
}

.xen-platform-close{
  all:unset;
  width:42px;
  height:42px;
  min-width:42px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#123624;
  background:#ffffff;
  border:1px solid rgba(17,24,39,.08);
  box-shadow:0 12px 30px rgba(17,24,39,.10);
  transition:
    transform .16s ease,
    color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.xen-platform-close:hover{
  transform:translateY(-1px);
  color:#1267d8;
  background:#eefbf4;
  box-shadow:0 16px 38px rgba(17,24,39,.14);
}

.xen-platform-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.xen-platform-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height:92px;
  padding:16px;
  border-radius:22px;
  background:#ffffff;
  border:1px solid rgba(17,24,39,.08);
  color:#08111f !important;
  text-decoration:none !important;
  box-shadow:0 10px 28px rgba(17,24,39,.05);
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.xen-platform-card:hover{
  transform:translateY(-1px);
  background:#f7faff;
  border-color:rgba(29,124,255,.18);
  box-shadow:0 16px 38px rgba(17,24,39,.09);
}

.xen-platform-card span{
  color:#1267d8;
  font-size:11px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}

.xen-platform-card strong{
  color:#08111f;
  font-size:15px;
  line-height:1.25;
  font-weight:850;
}

.xen-platform-tools{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.xen-platform-tool{
  all:unset;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:#ffffff;
  border:1px solid rgba(17,24,39,.08);
  color:#526071;
  font-size:12px;
  font-weight:850;
  box-shadow:0 8px 22px rgba(17,24,39,.05);
  transition:
    transform .16s ease,
    background .16s ease,
    color .16s ease,
    border-color .16s ease;
}

.xen-platform-tool:hover{
  transform:translateY(-1px);
  background:#eefbf4;
  color:#14532d;
  border-color:rgba(20,83,45,.16);
}

/* =================================
   PLATFORM TOOL ICONS / TOOLTIPS / ACTIVE STATES
   ================================= */

.xen-platform-tool-icon{
  width:34px;
  min-width:34px;
  padding:0 !important;
}

.xen-platform-tool svg{
  width:18px;
  height:18px;
  display:block;
}

.xen-platform-tool.is-active{
  background:#eef4ff;
  color:#1267d8;
  border-color:rgba(29,124,255,.20);
  box-shadow:0 12px 28px rgba(29,124,255,.10);
}

.xen-platform-news-btn{
  position:relative;
}

.xen-platform-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:16px;
  height:16px;
  padding:0 4px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ef4444;
  color:#ffffff;
  font-size:10px;
  font-weight:900;
  line-height:1;
  box-shadow:
    0 8px 18px rgba(239,68,68,.28),
    0 0 0 2px #ffffff;
}

.xen-has-tip{
  position:relative;
}

.xen-has-tip::before{
  content:"";
  position:absolute;
  left:50%;
  top:calc(100% + 6px);
  transform:translateX(-50%);
  width:0;
  height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-bottom:5px solid rgba(55,65,81,.96);
  opacity:0;
  pointer-events:none;
  transition:opacity .16s ease;
  z-index:9500;
}

.xen-has-tip::after{
  content:attr(data-xen-tip);
  position:absolute;
  left:50%;
  top:calc(100% + 11px);
  transform:translateX(-50%) translateY(4px);
  padding:7px 11px;
  border-radius:999px;
  background:rgba(55,65,81,.96);
  color:#ffffff;
  font-size:11px;
  font-weight:750;
  line-height:1.15;
  white-space:nowrap;
  box-shadow:0 14px 34px rgba(17,24,39,.22);
  opacity:0;
  pointer-events:none;
  transition:
    opacity .16s ease,
    transform .16s ease;
  z-index:9500;
}

.xen-has-tip:hover::before,
.xen-has-tip:hover::after{
  opacity:1;
}

.xen-has-tip:hover::after{
  transform:translateX(-50%) translateY(0);
}

/* =================================
   XENYRA – TEXT SIZE MODES
   Accessibility font scaling
   ================================= */

body.xen-font-large{
  font-size:106%;
}

body.xen-font-xlarge{
  font-size:112%;
}

/* Homepage main headings */
body.xen-font-large .xen-hero-title,
body.xen-font-large .xen-section-head h2,
body.xen-font-large .xen-reserve h2,
body.xen-font-large .xen-platform-menu-head h3,
body.xen-font-large .xen-signin-panel-head h3{
  transform:scale(1.035);
  transform-origin:left center;
}

body.xen-font-xlarge .xen-hero-title,
body.xen-font-xlarge .xen-section-head h2,
body.xen-font-xlarge .xen-reserve h2,
body.xen-font-xlarge .xen-platform-menu-head h3,
body.xen-font-xlarge .xen-signin-panel-head h3{
  transform:scale(1.07);
  transform-origin:left center;
}

/* Paragraphs and card text */
body.xen-font-large .xen-home p,
body.xen-font-large .xen-light-card p,
body.xen-font-large .xen-dark-card p,
body.xen-font-large .xen-update-card p,
body.xen-font-large .xen-price-card li{
  font-size:1.06em;
}

body.xen-font-xlarge .xen-home p,
body.xen-font-xlarge .xen-light-card p,
body.xen-font-xlarge .xen-dark-card p,
body.xen-font-xlarge .xen-update-card p,
body.xen-font-xlarge .xen-price-card li{
  font-size:1.12em;
}

/* Card headings */
body.xen-font-large .xen-light-card h3,
body.xen-font-large .xen-dark-card h3,
body.xen-font-large .xen-update-card h3,
body.xen-font-large .xen-price-card h3{
  font-size:1.06em;
}

body.xen-font-xlarge .xen-light-card h3,
body.xen-font-xlarge .xen-dark-card h3,
body.xen-font-xlarge .xen-update-card h3,
body.xen-font-xlarge .xen-price-card h3{
  font-size:1.12em;
}

.xen-platform-footer{
  margin-top:16px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.xen-platform-primary,
.xen-platform-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 15px;
  border-radius:999px;
  text-decoration:none !important;
  font-size:13px;
  font-weight:850;
  line-height:1;
  transition:
    transform .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    border-color .16s ease;
}

.xen-platform-primary{
  background:#145c33;
  color:#ffffff !important;
  border:1px solid #145c33;
  box-shadow:0 12px 30px rgba(20,92,51,.18);
}

.xen-platform-primary:hover{
  transform:translateY(-1px);
  background:#1b6b3f;
  box-shadow:0 16px 38px rgba(20,92,51,.22);
}

.xen-platform-secondary{
  background:#ffffff;
  color:#08111f !important;
  border:1px solid rgba(17,24,39,.08);
  box-shadow:0 10px 26px rgba(17,24,39,.06);
}

.xen-platform-secondary:hover{
  transform:translateY(-1px);
  background:#eef4ff;
  border-color:rgba(29,124,255,.16);
  box-shadow:0 14px 34px rgba(17,24,39,.10);
}

@media (max-width:640px){
  .xen-platform-menu{
    top:calc(100% + 10px);
    right:14px;
    left:14px;
    width:auto;
  }

  .xen-platform-menu-inner{
    border-radius:24px;
    padding:18px;
  }

  .xen-platform-menu-head h3{
    font-size:24px;
  }

  .xen-platform-grid{
    grid-template-columns:1fr;
  }

  .xen-platform-card{
    min-height:78px;
  }
}