/* =================================
   XENYRA – GLOBAL AI BUTTON SYSTEM
   source: epharo / Xenyra approved button logic
   ================================= */

.xenyra-combo{
  all:unset;
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  line-height:1;
  width:auto;
  max-width:max-content;
  background:transparent !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  text-decoration:none !important;
  font-family:inherit;
  vertical-align:middle;
}

.xenyra-combo,
.xenyra-combo:hover,
.xenyra-combo:focus,
.xenyra-combo:focus-visible,
.xenyra-combo:active{
  background:transparent !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  text-decoration:none !important;
}

.xenyra-orb{
  width:34px;
  height:34px;
  min-width:34px;
  min-height:34px;
  border-radius:999px;
  background:radial-gradient(circle at 30% 20%, #ffffff 0%, #f4fffb 32%, #d4f3e1 62%, #0f4826 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    0 10px 24px rgba(0,0,0,.40),
    0 0 0 1px rgba(255,255,255,.55);
  transform-origin:50% 50%;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
  overflow:hidden;
}

.xenyra-logo{
  width:23px;
  height:23px;
  display:block;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.35));
  transform-origin:50% 50%;
  animation:xenyra-idle 3.4s ease-in-out infinite;
}

.xenyra-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:23px;
  padding:2px 12px 3px;
  border-radius:999px;
  background:#0f4826;
  color:#d9f5e4;
  font-size:11px;
  font-weight:600;
  letter-spacing:.12em;
  line-height:1;
  white-space:nowrap;
  box-shadow:0 10px 26px rgba(0,0,0,.28);
  transition:
    background .16s ease,
    transform .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

/* Hover animation for every Xenyra AI button */
.xenyra-combo:hover .xenyra-orb{
  transform:translateY(-1px) scale(1.06);
  filter:brightness(1.04);
  box-shadow:
    0 18px 42px rgba(0,0,0,.46),
    0 0 24px rgba(29,124,255,.22),
    0 0 0 1px rgba(255,255,255,.62);
}

.xenyra-combo:hover .xenyra-tag{
  background:#165c34;
  color:#ffffff;
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(0,0,0,.36);
}

.xenyra-combo:hover .xenyra-logo{
  animation:xenyra-spin .62s ease-out both !important;
}

@keyframes xenyra-idle{
  0%,100%{
    transform:translateY(0) scale(1);
  }

  50%{
    transform:translateY(-1px) scale(1.04);
  }
}

@keyframes xenyra-spin{
  0%{
    transform:rotate(0deg) scale(1);
  }

  100%{
    transform:rotate(360deg) scale(1.05);
  }
}


/* =================================
   XENYRA – GLOBAL BUTTONS / BADGES
   ================================= */

.xen-btn-lite{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(31,95,63,.14);
  background:#eef6ef;
  color:#1f5f3f !important;
  font-weight:850;
  font-size:13px;
  line-height:1;
  text-decoration:none !important;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(20,55,35,.07);
  transition:
    background .18s ease,
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.xen-btn-lite:hover{
  background:#e4f1e7;
  border-color:rgba(31,95,63,.22);
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(20,55,35,.10);
}

.xen-btn-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 18px;
  border-radius:999px;
  border:1px solid #145c33;
  background:#145c33;
  color:#ffffff !important;
  font-weight:850;
  font-size:13px;
  line-height:1;
  text-decoration:none !important;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.20);
  transition:
    background .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.xen-btn-primary:hover{
  background:#1b6b3f;
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(0,0,0,.24);
}

.xen-badge-info{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:7px 11px;
  border-radius:999px;
  background:#eef6ef;
  border:1px solid rgba(31,95,63,.14);
  color:#1f5f3f;
  font-size:11px;
  font-weight:850;
  letter-spacing:.10em;
  line-height:1;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:0 6px 16px rgba(20,55,35,.06);
}


/* =================================
   XENYRA – AI HINT TOOLTIP
   Default tooltip opens upward
   Header can override direction in xenyra-header.css
   ================================= */

.xen-ai-tip-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.xen-ai-tip{
  position:absolute;
  right:0;
  bottom:calc(100% + 10px);
  padding:6px 12px;
  border-radius:999px;
  background:#3b3f46;
  color:#ffffff;
  font-size:11px;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  box-shadow:0 8px 20px rgba(0,0,0,.22);
  opacity:0;
  pointer-events:none;
  transform:translateY(6px);
  transition:
    opacity .18s ease,
    transform .18s ease;
  z-index:9999;
}

.xen-ai-tip::after{
  content:"";
  position:absolute;
  right:22px;
  top:100%;
  width:0;
  height:0;
  border-width:5px 5px 0 5px;
  border-style:solid;
  border-color:#3b3f46 transparent transparent transparent;
}

.xen-ai-tip-wrap:hover .xen-ai-tip{
  opacity:1;
  transform:translateY(0);
}

/* =================================
   Xenyra – Global Back Button
   Reusable soft AI navigation button
   ================================= */

.xen-back-wrap{
  max-width:1280px;
  margin:0 auto;
  padding:22px 28px 0;
}

.xen-back-btn{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  background:
    radial-gradient(circle at 18% 20%, rgba(0,229,255,.10), transparent 36%),
    radial-gradient(circle at 82% 20%, rgba(176,38,255,.08), transparent 38%),
    rgba(255,255,255,.86);
  color:#243044 !important;
  border:1px solid rgba(29,124,255,.12);
  text-decoration:none !important;
  font-size:13px;
  font-weight:760;
  letter-spacing:-.01em;
  box-shadow:
    0 12px 34px rgba(17,24,39,.07),
    inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  transition:
    transform .16s ease,
    background .16s ease,
    color .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.xen-back-btn:hover{
  transform:translateY(-1px);
  color:#1267d8 !important;
  border-color:rgba(0,229,255,.32);
  background:
    radial-gradient(circle at 18% 20%, rgba(0,229,255,.16), transparent 36%),
    radial-gradient(circle at 82% 20%, rgba(176,38,255,.12), transparent 38%),
    rgba(255,255,255,.94);
  box-shadow:
    0 18px 46px rgba(17,24,39,.10),
    0 0 24px rgba(0,229,255,.10),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.xen-back-btn span:first-child{
  width:22px;
  height:22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(238,244,255,.92);
  color:#1267d8;
  font-size:15px;
  line-height:1;
  box-shadow:inset 0 0 0 1px rgba(29,124,255,.10);
}

.xen-back-btn strong{
  font-size:13px;
  font-weight:760;
  line-height:1;
  white-space:nowrap;
}

@media (max-width:640px){
  .xen-back-wrap{
    padding:18px 18px 0;
  }

  .xen-back-btn{
    min-height:36px;
    padding:0 13px;
  }

  .xen-back-btn strong{
    font-size:12px;
  }
}