/**
 * IPTV Guides page – iptv-guides.php only
 */
:root {
  --guides-navy: #071a42;
  --guides-blue: #0b2b6f;
  --guides-primary: #ffb302;
  --guides-primary-dark: #e6a000;
  --guides-muted: #5c6370;
  --guides-radius: 16px;
  --guides-shadow: 0 12px 40px rgba(11, 43, 111, 0.1);
  --section-y: clamp(64px, 8vw, 88px);
}

.page-guides main {
  overflow-x: hidden;
}

/* ── Hero ── */
.guides-hero {
  background: linear-gradient(125deg, #071a42 0%, #0b2b6f 48%, #163d7a 100%);
  padding: var(--site-hero-y, clamp(56px, 6vw, 80px)) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.guides-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 90% 35%, rgba(255, 179, 2, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, rgba(7, 26, 66, 0.25) 0%, transparent 35%);
  pointer-events: none;
}

.guides-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.guides-hero .container {
  position: relative;
  z-index: 1;
}

.guides-hero__badge {
  display: inline-block;
  background: rgba(255, 179, 2, 0.15);
  border: 1px solid rgba(255, 179, 2, 0.4);
  color: var(--guides-primary);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
}

.guides-hero h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.45rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 600px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  letter-spacing: -0.02em;
}

.guides-hero__lead {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
  margin-bottom: 28px;
}

.guides-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
  max-width: 520px;
}

.guides-hero__actions .guides-btn {
  flex: 1 1 200px;
  min-height: 50px;
  padding: 14px 22px;
}

.guides-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  min-height: 50px;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.guides-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.guides-btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.guides-btn--whatsapp:hover {
  background: #1fb855;
  color: #fff;
}

.guides-btn--primary {
  background: var(--guides-primary);
  color: var(--guides-navy);
  box-shadow: 0 8px 24px rgba(255, 179, 2, 0.35);
}

.guides-btn--primary:hover {
  background: var(--guides-primary-dark);
  color: var(--guides-navy);
}

.guides-btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.guides-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.guides-hero__img-wrap {
  position: relative;
}

.guides-hero__img-frame {
  position: relative;
  border-radius: calc(var(--guides-radius) + 2px);
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.guides-hero__img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(7, 26, 66, 0.35) 0%, transparent 45%, rgba(7, 26, 66, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
}

.guides-hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center 28%;
  aspect-ratio: 4 / 3;
  filter: brightness(1.06) contrast(1.03) saturate(1.05);
  transform: scale(1.01);
}

/* ── Section shared ── */
.guides-section {
  padding: var(--section-y) 0;
}

.guides-section--alt {
  background: #f8f9fc;
}

.guides-section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 48px);
}

.guides-section__head h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--guides-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.guides-section__head p {
  color: var(--guides-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Device guide cards ── */
#device-guides .row {
  align-items: stretch;
}

#device-guides .col-md-6,
#device-guides .col-lg-4 {
  display: flex;
}

.guide-card {
  background: #fff;
  border-radius: calc(var(--guides-radius) + 2px);
  padding: 24px 22px 22px;
  border: 1px solid #e8ecf4;
  box-shadow: 0 8px 28px rgba(11, 43, 111, 0.08);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(11, 43, 111, 0.14);
  border-color: rgba(255, 179, 2, 0.25);
}

.guide-card__best {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--guides-blue);
  background: rgba(11, 43, 111, 0.07);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.guide-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  min-height: 48px;
}

.guide-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 179, 2, 0.2) 0%, rgba(255, 179, 2, 0.08) 100%);
  color: var(--guides-primary-dark);
  font-size: 22px;
}

.guide-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--guides-navy);
  margin: 0;
  line-height: 1.3;
}

.guide-card__intro {
  font-size: 14px;
  color: var(--guides-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.guide-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  flex: 1;
}

.guide-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--guides-muted);
  line-height: 1.55;
  padding: 7px 0;
  border-bottom: 1px solid #f3f5f9;
}

.guide-card__list li:last-child {
  border-bottom: none;
}

.guide-card__list li i {
  color: #16a34a;
  margin-top: 3px;
  flex-shrink: 0;
}

.guide-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--guides-blue);
  text-decoration: none;
  margin-top: auto;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(11, 43, 111, 0.06);
  border: 1px solid rgba(11, 43, 111, 0.12);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.guide-card__link:hover {
  color: #fff;
  background: var(--guides-blue);
  border-color: var(--guides-blue);
  transform: translateY(-1px);
}

/* ── Setup tabs ── */
.guides-tabs {
  max-width: 960px;
  margin: 0 auto;
}

.guides-tabs__nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 20px;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.guides-tabs__nav::-webkit-scrollbar {
  height: 4px;
}

.guides-tabs__nav::-webkit-scrollbar-thumb {
  background: rgba(11, 43, 111, 0.2);
  border-radius: 4px;
}

@media (min-width: 992px) {
  .guides-tabs__nav {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }
}

.guides-tabs__btn {
  border: 1px solid #dce3ef;
  background: #fff;
  color: var(--guides-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  min-height: 44px;
}

.guides-tabs__btn:hover {
  border-color: var(--guides-blue);
  color: var(--guides-blue);
}

.guides-tabs__btn.is-active {
  background: linear-gradient(135deg, var(--guides-blue) 0%, #163d7a 100%);
  border-color: var(--guides-blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(11, 43, 111, 0.28);
  transform: translateY(-1px);
}

.guides-tabs__panels {
  position: relative;
  min-height: 200px;
}

.guides-tabs__panel {
  display: none;
  background: #fff;
  border-radius: calc(var(--guides-radius) + 2px);
  border: 1px solid #e8ecf4;
  padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 32px);
  box-shadow: 0 10px 36px rgba(11, 43, 111, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.guides-tabs__panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: guidesTabIn 0.32s ease forwards;
}

@keyframes guidesTabIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.guides-tabs__panel h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--guides-navy);
  margin-bottom: 18px;
}

.guides-tabs__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: guide-step;
}

.guides-tabs__steps li {
  counter-increment: guide-step;
  position: relative;
  padding: 0 0 20px 52px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--guides-muted);
  min-height: 36px;
}

.guides-tabs__steps li::before {
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--guides-primary);
  color: var(--guides-navy);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 179, 2, 0.35);
}

.guides-tabs__steps li:last-child {
  padding-bottom: 0;
}

/* ── Quick start ── */
.guides-quick__row {
  align-items: stretch;
}

.guides-quick__steps {
  display: grid;
  gap: 14px;
  height: 100%;
}

.guides-quick-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #eef1f7;
  border-radius: var(--guides-radius);
  padding: 22px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.guides-quick-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--guides-shadow);
}

.guides-quick-card__num {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--guides-blue);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guides-quick-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 179, 2, 0.15);
  color: var(--guides-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.guides-quick-card__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--guides-navy);
  margin-bottom: 6px;
}

.guides-quick-card__body p {
  font-size: 14px;
  color: var(--guides-muted);
  line-height: 1.65;
  margin: 0;
}

.guides-help-box {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--guides-radius) + 2px);
  padding: 26px 24px;
  color: var(--guides-navy);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 32px rgba(11, 43, 111, 0.08);
}

.guides-help-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--guides-navy);
}

.guides-help-box > p:not(.guides-help-box__note) {
  font-size: 14px;
  line-height: 1.65;
  color: var(--guides-muted);
  margin-bottom: 12px;
}

.guides-help-box__note {
  font-size: 14px;
  font-weight: 600;
  color: var(--guides-navy);
  margin-bottom: 14px;
  padding: 12px 14px;
  background: rgba(255, 179, 2, 0.1);
  border-radius: 10px;
  border-left: 3px solid var(--guides-primary);
  line-height: 1.55;
}

.guides-help-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}

.guides-help-box ul li {
  font-size: 14px;
  color: var(--guides-muted);
  padding: 5px 0 5px 22px;
  position: relative;
  line-height: 1.5;
}

.guides-help-box ul li::before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  color: #16a34a;
  font-size: 12px;
}

.guides-help-box .guides-btn {
  width: 100%;
  margin-top: auto;
  min-height: 50px;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.3);
}

/* ── App cards ── */
.guides-apps .col-sm-6,
.guides-apps .col-lg-4 {
  display: flex;
}

.guides-app-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--guides-radius) + 2px);
  padding: 22px 20px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 22px rgba(11, 43, 111, 0.06);
  cursor: default;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.guides-app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(11, 43, 111, 0.12);
  border-color: rgba(255, 179, 2, 0.35);
}

.guides-app-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.guides-app-card__badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 999px;
}

.guides-app-card__badge--free {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.guides-app-card__badge--paid {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.guides-app-card__badge--popular {
  background: rgba(11, 43, 111, 0.1);
  color: var(--guides-blue);
}

.guides-app-card__badge--recommended {
  background: rgba(255, 179, 2, 0.18);
  color: #92400e;
}

.guides-app-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--guides-navy);
  margin-bottom: 10px;
}

.guides-app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.guides-app-card__tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f0f4ff;
  color: var(--guides-blue);
}

.guides-app-card__tag--login {
  background: rgba(255, 179, 2, 0.15);
  color: #92400e;
}

.guides-app-card__note {
  font-size: 12px;
  color: var(--guides-muted);
  margin-top: auto;
  padding-top: 8px;
  font-style: normal;
  line-height: 1.5;
}

/* ── Troubleshooting ── */
.guides-section:has(.guides-fix-card) .row {
  align-items: stretch;
}

.guides-section:has(.guides-fix-card) .col-md-6,
.guides-section:has(.guides-fix-card) .col-lg-4 {
  display: flex;
}

.guides-fix-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--guides-radius) + 2px);
  padding: 22px 20px;
  width: 100%;
  height: 100%;
  box-shadow: 0 6px 20px rgba(11, 43, 111, 0.05);
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.guides-fix-card:hover {
  box-shadow: 0 10px 28px rgba(11, 43, 111, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
}

.guides-fix-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.06) 100%);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 14px;
  border: 1px solid rgba(239, 68, 68, 0.12);
}

.guides-fix-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--guides-navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.guides-fix-card p {
  font-size: 14px;
  color: var(--guides-muted);
  line-height: 1.7;
  margin: 0;
}

.guides-fix-card__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #16a34a;
  margin-bottom: 6px;
}

.guides-section__support-cta {
  text-align: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e8ecf4;
  font-size: 16px;
  color: var(--guides-muted);
}

.guides-section__support-cta a {
  color: var(--guides-blue);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 43, 111, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.guides-section__support-cta a:hover {
  color: #25d366;
  border-color: #25d366;
}

/* ── SEO content ── */
.guides-seo {
  max-width: 820px;
  margin: 0 auto;
}

.guides-seo h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--guides-navy);
  margin: 32px 0 14px;
  line-height: 1.3;
}

.guides-seo h2:first-child {
  margin-top: 0;
}

.guides-seo h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--guides-navy);
  margin: 24px 0 10px;
}

.guides-seo p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--guides-muted);
  margin-bottom: 12px;
  max-width: 72ch;
}

.guides-seo a {
  color: var(--guides-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guides-seo a:hover {
  color: var(--guides-primary-dark);
}

.guides-seo ul {
  padding-left: 0;
  list-style: none;
  margin: 16px 0;
}

.guides-seo ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--guides-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.guides-seo ul li::before {
  content: "\f058";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  color: var(--guides-primary);
}

/* ── FAQ ── */
.guides-faq .tp-custom-accordion .accordion-buttons {
  position: relative;
  background: transparent;
  border-radius: 0;
}

.guides-faq .tp-custom-accordion .accordion-buttons:not(.collapsed) {
  background: rgba(11, 43, 111, 0.04);
  color: var(--guides-blue);
  border-radius: 0;
}

.guides-faq .tp-custom-accordion .accordion-buttons:not(.collapsed)::after {
  color: var(--guides-blue);
}

.guides-faq .accordion-items {
  border: 1px solid #e8ecf4;
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.guides-faq .accordion-items:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.guides-faq .accordion-items:has(.accordion-collapse.show) {
  border-color: rgba(11, 43, 111, 0.15);
  box-shadow: 0 6px 20px rgba(11, 43, 111, 0.07);
}

.guides-faq .accordion-buttons {
  font-size: 16px;
  font-weight: 600;
  padding: 20px 52px 20px 22px;
  color: var(--guides-navy);
  width: 100%;
  text-align: left;
  min-height: 60px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.guides-faq .accordion-buttons:not(.collapsed) {
  color: var(--guides-blue);
  background: rgba(11, 43, 111, 0.04);
}

.guides-faq .accordion-collapse {
  transition: height 0.28s ease;
}

.guides-faq .accordion-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--guides-muted);
  padding: 0 22px 22px;
}

/* ── Final CTA ── */
.guides-cta {
  background: linear-gradient(135deg, var(--guides-navy) 0%, var(--guides-blue) 55%, #1a4a9e 100%);
  padding: clamp(56px, 8vw, 72px) 0;
  color: #fff;
}

.guides-cta__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.guides-cta h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.25;
}

.guides-cta p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.guides-cta__trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--guides-primary);
  margin-bottom: 24px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 179, 2, 0.12);
  border: 1px solid rgba(255, 179, 2, 0.25);
}

.guides-cta__trust i {
  font-size: 14px;
}

.guides-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
}

.guides-cta__actions .guides-btn {
  flex: 1 1 220px;
  max-width: 320px;
  min-height: 50px;
}

.guides-cta .guides-btn--primary {
  color: var(--guides-navy);
}

/* ── Floating buttons (guides page) ── */
.page-guides .floating-contact {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-guides .floating-contact a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease;
}

.page-guides .floating-contact a:hover {
  transform: translateY(-3px);
}

.page-guides .floating-contact .btn-whatsapp { background: #25d366; }
.page-guides .floating-contact .btn-telegram { background: #0088cc; }

.page-guides .floating-contact.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-guides .back-to-top-wrapper.back-to-top-btn-show {
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 124px);
  left: auto;
  z-index: 999;
}

.page-guides .site-footer__trust-badges {
  gap: 10px;
}

.page-guides .site-footer__trust-badges span {
  font-size: 12px;
  padding: 7px 12px;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .guides-hero__img-wrap {
    margin-top: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767.98px) {
  .guides-hero {
    padding-top: var(--site-hero-y, 56px);
    padding-bottom: var(--site-hero-y, 56px);
  }

  .guides-hero__img-wrap {
    display: none !important;
  }

  .guides-hero h1 {
    font-size: 1.55rem;
  }

  .guides-hero__actions {
    flex-direction: column;
    max-width: none;
  }

  .guides-hero__actions .guides-btn {
    flex: 1 1 auto;
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .guides-btn {
    width: 100%;
  }

  #device-guides .col-md-6 {
    margin-bottom: 0;
  }

  .guides-cta__actions .guides-btn {
    max-width: none;
    width: 100%;
  }

  .page-guides .back-to-top-wrapper.back-to-top-btn-show {
    bottom: calc(max(24px, env(safe-area-inset-bottom)) + 124px);
  }

  .page-guides .site-footer__trust-badges {
    justify-content: center;
  }
}
