/* =====================================================================
 *  site.css — shared chrome for EVERY page of the panel (v5.2.2)
 *
 *  Loaded by index.php, shop.php, blog.php, post.php, legal.php and
 *  includes/header.php (logged-in pages), so the public navbar
 *  (includes/site_nav.php), the single site footer
 *  (includes/site_footer.php) and the long-form `.prose` typography are
 *  styled identically everywhere. Nothing in here is page-specific —
 *  do not add per-page rules.
 * ===================================================================== */

:root {
  --brand: #059669;
  --brand-2: #10b981;
  --brand-3: #34d399;
  --forest: #04231a;
  --forest-2: #052e21;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e7eef2;
  --tg: #229ed9;
}

/* Keyboard users must always be able to see where they are. */
a:focus-visible,
button:focus-visible,
.site-nav .nav-link:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--brand-3);
  outline-offset: 2px;
  border-radius: .4rem;
}

/* =============================================================== navbar */
.site-nav {
  background: rgba(4, 35, 26, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1040;
  box-shadow: 0 4px 20px -10px rgba(0, 0, 0, .6);
  border-bottom: 1px solid rgba(110, 231, 183, .12);
}
.site-nav .navbar-brand {
  font-weight: 900;
  color: #fff;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.site-nav .navbar-brand:hover { color: #fff; }
.site-nav .navbar-brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, .08);
}
.site-nav .nav-link {
  color: #a7f3d0;
  font-weight: 600;
  font-size: .93rem;
  border-radius: .55rem;
  padding: .4rem .8rem !important;
  white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.site-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav .nav-link.active { color: #fff; background: rgba(16, 185, 129, .28); }
.site-nav .btn { border-radius: .6rem; font-weight: 700; font-size: .88rem; }
.site-nav .navbar-toggler {
  border-color: rgba(167, 243, 208, .35);
  padding: .3rem .55rem;
}
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(52, 211, 153, .25); }
.site-nav .nav-balance { color: #6ee7b7; font-weight: 700; font-size: .85rem; }
/* gap between the collapsible action group (Login / Telegram bot) and the
   always-visible cart group so the buttons never touch */
.site-nav .order-xl-last { margin-left: .5rem; }

.btn-tg { background: var(--tg); border-color: var(--tg); color: #fff; }
.btn-tg:hover, .btn-tg:focus { background: #1b87b9; border-color: #1b87b9; color: #fff; }

/* Cart slot (shop.php) — keeps the storefront's own badge markup working. */
.site-nav .cart-badge {
  position: absolute;
  top: -7px;
  right: -9px;
  font-size: .62rem;
  border: 2px solid var(--forest-2);
}

/* =============================================================== footer */
.site-footer {
  background: linear-gradient(180deg, #062e22 0%, var(--forest) 55%);
  border-top: 1px solid rgba(110, 231, 183, .18);
  color: #8fdec0;
  font-size: .92rem;
  padding: 3.4rem 0 1.4rem;
  margin-top: auto;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-2), #22d3ee, transparent);
  opacity: .65;
}
.site-footer h2, .site-footer h3, .site-footer h4 {
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 800;
  margin-bottom: 1rem;
}
.site-footer a { color: #8fdec0; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-col a {
  display: block;
  padding: .24rem 0;
  font-weight: 500;
}
.site-footer .foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-footer .foot-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: -.02em;
  margin-bottom: .6rem;
}
.site-footer .foot-brand:hover { color: #fff; }
.site-footer .foot-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, .08);
}
.site-footer .foot-tagline {
  max-width: 330px;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.site-footer .foot-tg {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(34, 158, 217, .16);
  border: 1px solid rgba(34, 158, 217, .45);
  color: #bfe9ff;
  border-radius: 2rem;
  padding: .42rem .95rem;
  font-weight: 700;
  font-size: .85rem;
}
.site-footer .foot-tg:hover { background: rgba(34, 158, 217, .3); color: #fff; }

.site-footer .foot-pay {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.site-footer .pay-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  border-radius: 2rem;
  padding: .32rem .8rem;
  font-size: .8rem;
  font-weight: 700;
  color: #d1fae5;
}
.site-footer .pay-more { font-size: .8rem; color: #6ee7b7; font-weight: 600; }

.site-footer .foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  font-size: .83rem;
  color: #6ee7b7;
}
.site-footer .foot-bottom .sep { opacity: .5; margin: 0 .45rem; }
.site-footer .foot-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer .foot-legal a { font-size: .83rem; font-weight: 600; }

@media (max-width: 767.98px) {
  .site-footer { padding-top: 2.4rem; }
  .site-footer .foot-tagline { max-width: none; }
  .site-footer .foot-bottom { justify-content: flex-start; }
}

/* ================================================================ prose
 * Long-form admin-authored HTML: blog posts (post.php) and the legal
 * pages (legal.php) share exactly these rules. */
.prose { font-size: 1.06rem; line-height: 1.78; color: #334155; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  font-weight: 800;
  color: var(--ink);
  margin: 2.2rem 0 .8rem;
  line-height: 1.3;
  letter-spacing: -.02em;
  scroll-margin-top: 90px;              /* sticky navbar must not cover anchors */
}
.prose h1 { font-size: 1.85rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.24rem; }
.prose h4 { font-size: 1.08rem; }
.prose h5, .prose h6 { font-size: 1rem; }
.prose p { margin-bottom: 1.25rem; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: #047857; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--brand-2); }
.prose blockquote {
  margin: 1.6rem 0;
  padding: .9rem 1.3rem;
  border-left: 4px solid var(--brand-2);
  background: #ecfdf5;
  border-radius: 0 .9rem .9rem 0;
  color: #065f46;
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: .4rem;
  padding: .12em .38em;
  font-size: .9em;
  color: #be123c;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.prose pre {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  overflow: auto;
  margin: 1.6rem 0;
  font-size: .9rem;
  line-height: 1.6;
}
.prose pre code { background: none; border: 0; color: inherit; padding: 0; font-size: inherit; }
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1.6rem 0;
  box-shadow: 0 20px 45px -22px rgba(2, 44, 34, .45), 0 2px 6px rgba(2, 44, 34, .06);
}
.prose figure { margin: 1.8rem 0; }
.prose figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 1rem;
  margin: 1.6rem 0;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: .94rem;
  display: block;
  overflow-x: auto;
}
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose th { background: #f0fdf7; font-weight: 800; color: #065f46; }
.prose tbody tr:nth-child(even) { background: #fafdfb; }
@media (max-width: 767.98px) { .prose { font-size: 1.02rem; } }

/* ========================================================= legal pages */
.legal-hero {
  color: #fff;
  padding: 3.2rem 0 3.4rem;
  background:
    radial-gradient(800px 380px at 10% -20%, rgba(16, 185, 129, .30), transparent 60%),
    linear-gradient(158deg, #04231a, #064e3b 70%, #065f46);
}
.legal-hero h1 {
  color: #fff;
  font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 2.8rem);
  letter-spacing: -.025em;
  margin-bottom: .7rem;
}
.legal-hero .crumbs { font-size: .82rem; color: #6ee7b7; margin-bottom: .9rem; }
.legal-hero .crumbs a { color: #a7f3d0; text-decoration: none; }
.legal-hero .crumbs a:hover { color: #fff; text-decoration: underline; }
.legal-hero .updated {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(167, 243, 208, .35);
  color: #d1fae5;
  border-radius: 2rem;
  padding: .35rem .95rem;
  font-size: .82rem;
  font-weight: 700;
}
.legal-main { padding: 3rem 0 4rem; }
.legal-body { max-width: 760px; }
.legal-toc {
  position: sticky;
  top: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 20px 45px -22px rgba(2, 44, 34, .45), 0 2px 6px rgba(2, 44, 34, .06);
}
.legal-toc h2 {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: .8rem;
}
/* The policy copy numbers its own sections, so the list stays unnumbered. */
.legal-toc ol { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.legal-toc li { margin-bottom: .1rem; }
.legal-toc a {
  display: block;
  padding: .34rem .55rem;
  border-radius: .55rem;
  color: #475569;
  text-decoration: none;
  font-size: .87rem;
  font-weight: 600;
  line-height: 1.4;
  border-left: 2px solid transparent;
}
.legal-toc a:hover { background: #f0fdf7; color: #065f46; border-left-color: var(--brand-2); }
/* TOC items are <button>s that smooth-scroll without touching the URL. */
.legal-toc .toc-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: .34rem .55rem;
  border-radius: .55rem;
  color: #475569;
  font-size: .87rem;
  font-weight: 600;
  line-height: 1.4;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  cursor: pointer;
}
.legal-toc .toc-link:hover { background: #f0fdf7; color: #065f46; border-left-color: var(--brand-2); }
.legal-toc .toc-link.active { background: #ecfdf5; color: #065f46; border-left-color: var(--brand-2); }
.legal-toc-mobile { margin-bottom: 1.8rem; }
.legal-toc-mobile summary {
  cursor: pointer;
  font-weight: 800;
  color: #065f46;
  background: #f0fdf7;
  border: 1px solid #c6f1e0;
  border-radius: .8rem;
  padding: .7rem 1rem;
  font-size: .92rem;
  list-style: none;
}
.legal-toc-mobile summary::-webkit-details-marker { display: none; }
.legal-toc-mobile summary::after { content: ' ▾'; float: right; }
.legal-toc-mobile[open] summary::after { content: ' ▴'; }
.legal-toc-mobile .legal-toc { position: static; margin-top: .7rem; box-shadow: none; }

.legal-contact {
  margin-top: 2.8rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(160deg, #ffffff, #f0fdf7);
  padding: 1.6rem 1.7rem;
  box-shadow: 0 20px 45px -22px rgba(2, 44, 34, .45), 0 2px 6px rgba(2, 44, 34, .06);
}
.legal-contact h2 { font-size: 1.15rem; font-weight: 900; margin-bottom: .4rem; color: var(--ink); }
.legal-contact p { color: var(--muted); margin-bottom: 1rem; }
.legal-contact .btn { border-radius: .7rem; font-weight: 700; }
.legal-unavailable { max-width: 560px; margin: 0 auto; text-align: center; padding: 4.5rem 1rem; }
.legal-unavailable .ico { font-size: 3.4rem; margin-bottom: .6rem; }

@media (max-width: 991.98px) { .legal-main { padding: 2.2rem 0 3rem; } }

@media (prefers-reduced-motion: reduce) {
  .site-nav *, .site-footer * { animation: none !important; transition: none !important; }
}

/* --- Product-page SEO blocks (competitor-teardown upgrades, 2026-10-09) --- */
.prose .quick-answer{background:#f0fdf4;border:1px solid #a7f3d0;border-left:4px solid #059669;
  border-radius:.9rem;padding:1rem 1.25rem;margin:1rem 0}
.prose .quick-answer p{margin:0}
.prose .persona-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:.9rem;margin:1rem 0}
.prose .persona{background:#f8fafc;border:1px solid #e2e8f0;border-radius:.9rem;padding:.95rem 1.1rem}
.prose .persona p{margin:0;font-size:.95rem}
.prose .guarantee{background:#fffbeb;border:1px solid #fcd34d;border-left:4px solid #d97706;
  border-radius:.9rem;padding:1rem 1.25rem;margin:0 0 1.4rem}
.prose .guarantee p{margin:0}
.prose .guide-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:.9rem;margin:1rem 0}
.prose .guide-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:.9rem;padding:.95rem 1.1rem}
.prose .guide-card p{margin:0;font-size:.95rem}
.prose .guide-card a{font-weight:700}
.prose .price-per-day{font-weight:700;color:#059669}
.prose blockquote{background:#f8fafc;border-left:4px solid #059669;border-radius:0 .9rem .9rem 0;
  padding:.9rem 1.2rem;margin:1.1rem 0;font-style:italic}
.prose blockquote p{margin:.3rem 0}
.prose blockquote p:last-child{font-style:normal;font-size:.9rem;color:#64748b}
