/* ============================================================
   ORYOTV — Shared site layer (header, mobile nav, WA float,
   reveal motion, FAQ accordion). Scoped to .site-header / .wa-*
   so it layers cleanly over each page's own inline styles.
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 7, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 122, 41, 0.14);
}
.site-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 41, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.site-header.is-scrolled::after { opacity: 1; }

.nav-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-shell .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f3f4f8;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-shell .logo span {
  background: linear-gradient(135deg, #ff7a29 0%, #ffb347 50%, #ff6b1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a {
  color: #8d90a3;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.site-nav a:hover { color: #ffb347; }
.site-nav a[aria-current="page"] { color: #ffb347; font-weight: 700; }

.site-nav a.nav-live { color: #25D366; font-weight: 700; }
.site-nav a.nav-live:hover { color: #4be387; }
.site-nav a.nav-trial { color: #ff7a29; font-weight: 700; }
.site-nav a.nav-trial:hover { color: #ffb347; }

.site-nav a.btn-wa-header {
  background: linear-gradient(135deg, #ff7a29 0%, #ffb347 50%, #ff6b1a 100%);
  color: #06070c !important;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 700 !important;
  font-size: 13.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(255, 122, 41, 0.25);
}
.site-nav a.btn-wa-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 122, 41, 0.4);
}

/* --- Hamburger (mobile) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 122, 41, 0.08);
  border: 1px solid rgba(255, 122, 41, 0.25);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffb347;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 20px 20px;
    background: rgba(6, 7, 12, 0.98);
    border-bottom: 1px solid rgba(255, 122, 41, 0.2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 12px 10px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a.btn-wa-header {
    text-align: center;
    margin-top: 10px;
    padding: 13px 22px;
    font-size: 15px;
  }
}

/* --- Floating WhatsApp button --- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
}

/* --- FAQ accordion (details/summary upgrade) --- */
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .faq-icon {
  flex-shrink: 0;
  color: #ffb347;
  font-weight: 400;
  transition: transform 0.25s ease;
}
details.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
details.faq-item summary:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.wa-float:focus-visible {
  outline: 2px solid #ffb347;
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- Language switcher --- */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 122, 41, 0.08);
  border: 1px solid rgba(255, 122, 41, 0.3);
  color: #ffb347;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 28px 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffb347' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.lang-select:hover { border-color: rgba(255, 179, 71, 0.7); }
.lang-select:focus-visible { outline: 2px solid #ffb347; outline-offset: 2px; }
.lang-select option { background: #0c0e18; color: #f3f4f8; }

@media (max-width: 920px) {
  .site-nav .lang-select {
    margin: 10px 10px 0;
    padding: 12px 36px 12px 14px;
    font-size: 14px;
    width: calc(100% - 20px);
  }
}

/* --- global no-horizontal-scroll guard (clip preserves position:sticky) --- */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

/* --- wide tables on small screens --- */
@media (max-width: 640px) {
  .profit-table { table-layout: fixed; }
  .profit-table th, .profit-table td {
    padding: 8px 6px;
    font-size: 11px;
    overflow-wrap: break-word;
  }
}
