/* ==========================================================================
   Anime Slayer — Design System
   RTL-first. Logical properties used throughout so layout mirrors correctly.
   ========================================================================== */

:root {
  --primary: #2E7DF6;
  --primary-dark: #1E5FD1;
  --primary-light: #6DA8FF;
  --secondary: #38BDF8;
  --accent: #FBBF24;
  --accent-dark: #F59E0B;
  --navy: #0B1220;
  --navy-mid: #16223B;
  --navy-light: #223252;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --fg: #0F172A;
  --muted: #64748B;
  --border: #E3E8F0;
  --success: #22C55E;
  --danger: #EF4444;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 16px rgba(15, 23, 42, .10);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .14);
  --shadow-xl: 0 20px 60px rgba(15, 23, 42, .18);

  --font: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  --t: .25s ease;
  --header-h: 72px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 800; }
p { color: var(--muted); }
strong { color: var(--fg); }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.section-pad { padding-block: 88px; }
.section-pad-sm { padding-block: 64px; }

.label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: var(--primary); background: rgba(46, 125, 246, .1);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 14px;
}
.label i { font-size: .75rem; }
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin-inline: auto; }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--fg); margin-bottom: 14px; }
.section-title .hl { color: var(--primary); }
.section-subtitle { font-size: 1.02rem; color: var(--muted); max-width: 640px; line-height: 1.85; }

.text-center { text-align: center; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 700; transition: all var(--t);
  white-space: nowrap; min-height: 48px; width: fit-content;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 20px rgba(46, 125, 246, .35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(46, 125, 246, .45); }
.btn-navy { background: var(--navy); color: var(--white); box-shadow: 0 4px 20px rgba(11, 18, 32, .25); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }
.btn-blue { background: var(--primary); color: var(--white); box-shadow: 0 4px 20px rgba(46, 125, 246, .3); }
.btn-blue:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--fg); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.download-card.featured .btn-outline { background: var(--white); color: var(--secondary); border-color: var(--white); }
.download-card.featured .btn-outline:hover { background: rgba(255, 255, 255, .9); color: var(--primary-dark); border-color: rgba(255, 255, 255, .9); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--white); border: 1px solid rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .85rem; min-height: 38px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
#site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 1000;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: box-shadow var(--t);
}
#site-header.scrolled { box-shadow: 0 4px 24px rgba(0, 0, 0, .25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.logo-name { font-size: 1.2rem; font-weight: 900; color: var(--white); letter-spacing: -.01em; }
.logo-name span { color: var(--secondary); }

nav.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  color: rgba(255, 255, 255, .78); font-size: .875rem; font-weight: 600;
  padding: 9px 13px; border-radius: var(--radius-sm); transition: all var(--t);
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255, 255, 255, .08); }
.header-cta { margin-inline-start: 8px; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 42px; height: 42px; gap: 5px; background: rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm); transition: background var(--t); flex-shrink: 0;
}
.hamburger:hover { background: rgba(255, 255, 255, .16); }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--t); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; background: var(--navy-mid);
  border-top: 1px solid rgba(255, 255, 255, .07); padding: 10px 20px 20px; gap: 2px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: rgba(255, 255, 255, .82); font-size: .92rem; font-weight: 600; padding: 12px 6px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mobile-nav .btn { margin-top: 14px; }

@media (max-width: 860px) {
  nav.main-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--bg); border-bottom: 1px solid var(--border); padding-block: 14px; margin-top: var(--header-h); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.breadcrumbs a { color: var(--primary); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li:not(:last-child)::after { content: "\f104"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-inline-start: 6px; color: var(--border); transform: scaleX(-1); display: inline-block; }
html[dir="rtl"] .breadcrumbs li:not(:last-child)::after { content: "\f104"; transform: none; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--navy); padding-top: calc(var(--header-h) + 64px); padding-bottom: 46px; overflow: hidden; }
.hero-bg::before, .hero-bg::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .35; z-index: 0; }
.hero-bg::before { width: 480px; height: 480px; background: var(--primary); top: -160px; inset-inline-end: -120px; }
.hero-bg::after { width: 420px; height: 420px; background: var(--secondary); bottom: -180px; inset-inline-start: -140px; opacity: .25; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-label { background: rgba(251, 191, 36, .12); color: var(--accent); }
.hero-title { font-size: clamp(2.1rem, 4.4vw, 3.2rem); color: var(--white); margin-bottom: 20px; }
.hero-title .hl { background: linear-gradient(90deg, var(--secondary), var(--primary-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: rgba(255, 255, 255, .72); font-size: 1.05rem; max-width: 540px; margin-bottom: 18px; line-height: 1.9; }
.hero-trust { color: rgba(255, 255, 255, .5); font-size: .85rem; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-web-link { color: rgba(255, 255, 255, .65); font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.hero-web-link:hover { color: var(--white); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.app-card-3d { position: relative; width: 100%; max-width: 340px; }
.app-card-main {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg); padding: 32px 26px; text-align: center; box-shadow: var(--shadow-xl);
}
.app-card-main img { width: 96px; height: 96px; border-radius: 24px; margin-inline: auto; margin-bottom: 16px; box-shadow: 0 12px 30px rgba(46, 125, 246, .4); }
.app-card-main h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 4px; }
.app-card-main p { color: rgba(255, 255, 255, .6); font-size: .85rem; margin-bottom: 20px; }
.app-card-stats { display: flex; justify-content: space-around; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; }
.app-card-stats div { display: flex; flex-direction: column; }
.app-card-stats strong { color: var(--white); font-size: 1.05rem; }
.app-card-stats span { color: rgba(255, 255, 255, .55); font-size: .72rem; margin-top: 2px; }
.floating-badge {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--white); border-radius: 100px; padding: 10px 16px;
  box-shadow: var(--shadow-lg); font-size: .8rem; font-weight: 700; color: var(--fg);
  animation: floaty 3.4s ease-in-out infinite;
}
.floating-badge i { color: var(--accent-dark); }
.floating-badge.fb-1 { top: -8px; inset-inline-start: -18px; animation-delay: 0s; }
.floating-badge.fb-2 { bottom: 24px; inset-inline-end: -22px; animation-delay: .6s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-quicklinks {
  position: relative; z-index: 1; margin-top: 44px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.hero-quicklinks-label {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-size: .82rem; font-weight: 700; color: rgba(255, 255, 255, .5);
}
.hero-quicklinks-label i { color: var(--secondary); }
.hero-quicklinks-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-quicklinks-row a {
  display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600;
  color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1); padding: 8px 14px; border-radius: 100px;
  transition: all var(--t);
}
.hero-quicklinks-row a i { color: var(--secondary); font-size: .78rem; }
.hero-quicklinks-row a:hover { background: rgba(255, 255, 255, .12); color: var(--white); transform: translateY(-2px); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .app-card-3d { max-width: 280px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg); padding: 34px 32px; margin-block: 28px 40px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.page-hero-icon {
  width: 58px; height: 58px; border-radius: var(--radius); flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 6px; }
.page-hero p { color: rgba(255, 255, 255, .68); font-size: .95rem; max-width: 640px; }

/* ---------- Generic content card (legal / article pages) ---------- */
main.page { max-width: 880px; margin-inline: auto; padding-inline: 20px; padding-bottom: 90px; }
.content-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow-sm); }
.updated-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700;
  color: var(--primary); background: rgba(46, 125, 246, .08); padding: 7px 14px; border-radius: 100px; margin-bottom: 28px;
}
.content-card h2 { font-size: 1.3rem; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.content-card h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.content-card p { margin-top: 14px; font-size: .95rem; }
.content-card ul { margin-top: 14px; }
.content-card ul li { position: relative; padding-inline-start: 20px; margin-bottom: 8px; font-size: .95rem; color: var(--muted); }
.content-card ul li::before { content: "•"; color: var(--accent-dark); position: absolute; inset-inline-start: 0; font-weight: 900; }
.content-card a { color: var(--primary); font-weight: 600; }
.content-card a:hover { text-decoration: underline; }
.highlight-box { border-inline-start: 4px solid var(--accent); background: rgba(251, 191, 36, .08); border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 20px; }
.highlight-box p { margin-top: 0; color: var(--fg); }

/* ---------- Grids & cards ---------- */
.grid-auto { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: all var(--t); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--white);
}
.feature-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; }

.device-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; transition: all var(--t); }
.device-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.device-card i { font-size: 1.6rem; color: var(--primary); margin-bottom: 10px; }
.device-card strong { display: block; font-size: .88rem; }
.device-card span { font-size: .72rem; color: var(--muted); }

.overview-point { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.overview-point-icon {
  width: 34px; height: 34px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: rgba(46, 125, 246, .1); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
}
.overview-point p { font-size: .92rem; }
.overview-point strong { color: var(--fg); }

.category-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 12px; text-align: center; transition: all var(--t); }
.category-card:hover { transform: translateY(-3px); border-color: var(--accent-dark); }
.category-card .cat-icon { font-size: 1.5rem; margin-bottom: 8px; display: block; }
.category-card span { font-size: .82rem; font-weight: 700; }

.why-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 24px; transition: all var(--t); }
.why-card:hover { background: rgba(251, 191, 36, .08); }
.why-card .feature-icon { background: rgba(251, 191, 36, .15); color: var(--accent); }
.why-card h3 { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.why-card p { color: rgba(255, 255, 255, .62); font-size: .87rem; }

/* ---------- Download cards ---------- */
.download-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: all var(--t);
}
.download-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transform: scaleX(0); transition: transform var(--t); transform-origin: right; }
.download-card:hover::before { transform: scaleX(1); }
.download-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.download-card.featured { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-color: transparent; color: var(--white); }
.download-card.featured p, .download-card.featured .dl-meta { color: rgba(255, 255, 255, .65); }
.download-card.featured h3 { color: var(--white); }
.dl-icon { width: 54px; height: 54px; border-radius: var(--radius); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--white); background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.dl-icon.navy { background: var(--navy); }
.dl-icon.gold { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #1A1200; }
.dl-icon img { width: 30px; height: 30px; }
.download-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.download-card p { font-size: .87rem; margin-bottom: 14px; flex-grow: 1; }
.dl-meta { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.dl-meta span { display: inline-flex; align-items: center; gap: 5px; }
.dl-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Steps (install guides) ---------- */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 18px; position: relative; }
.step-left { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step-num {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; flex-shrink: 0;
}
.step-line { width: 2px; flex-grow: 1; min-height: 24px; background: linear-gradient(var(--border), transparent); margin-top: 6px; }
.step:last-child .step-line { display: none; }
.step-body { padding-bottom: 30px; flex-grow: 1; }
.step-title { font-size: 1rem; margin-bottom: 6px; color: var(--fg); }
.step-desc { font-size: .92rem; }
.step-tip { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 12px; font-size: .85rem; }
.step-tip i { color: var(--accent-dark); margin-top: 2px; }
.step-code {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--navy); color: var(--white); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm); padding: 16px 18px; margin-top: 12px; flex-wrap: wrap;
}
.step-code code {
  font-family: 'Courier New', ui-monospace, monospace; font-weight: 700;
  font-size: 1.05rem; letter-spacing: .03em; word-break: break-all; flex: 1; min-width: 140px;
}
.step-code .btn { flex-shrink: 0; }
.step-code .btn-outline { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .22); }
.step-code .btn-outline:hover { background: rgba(255, 255, 255, .16); color: var(--white); border-color: rgba(255, 255, 255, .35); }
.step-img { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 12px; }
.step-img img { width: 40px; height: 40px; border-radius: 10px; }
.step-img span { font-size: .82rem; color: var(--muted); }

.sec-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; color: var(--fg); border-bottom: 1px solid var(--border); padding-bottom: 12px; margin: 30px 0 22px; }
.sec-title i { color: var(--primary); }

.note { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px; font-size: .9rem; }
.note.gold { background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); }
.note.gold i { color: var(--accent-dark); }
.note.blue { background: rgba(46, 125, 246, .08); border: 1px solid rgba(46, 125, 246, .25); }
.note.blue i { color: var(--primary); }
.note.danger { background: rgba(239, 68, 68, .07); border: 1px solid rgba(239, 68, 68, .25); }
.note.danger i { color: var(--danger); }
.note p { color: var(--fg); margin: 0; }
.note i { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 100px;
  font-size: .9rem; font-weight: 700; background: var(--bg); color: var(--muted); border: 1px solid var(--border); transition: all var(--t);
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein .3s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 780px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; text-align: start; font-weight: 700; font-size: .96rem; }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform var(--t); color: var(--primary); }
.faq-item.open .faq-icon { transform: rotate(180deg); background: var(--primary); color: var(--white); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-answer-inner { padding: 0 22px 20px; font-size: .9rem; color: var(--muted); line-height: 1.9; }
.faq-item.open .faq-answer { max-height: 600px; }

/* ---------- Related links / topic cluster ---------- */
.related-box { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; margin-top: 46px; }
.related-box h2 { font-size: 1.15rem; margin-bottom: 18px; }
.related-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.related-links a { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .87rem; font-weight: 700; color: var(--fg); transition: all var(--t); }
.related-links a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.related-links a i { color: var(--primary); }

/* ---------- Contact card ---------- */
.contact-card { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: var(--radius-lg); padding: 46px 32px; text-align: center; box-shadow: var(--shadow-xl); max-width: 620px; margin-inline: auto; }
.contact-icon { width: 60px; height: 60px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--white); margin-inline: auto 16px; }
.contact-card h2 { color: var(--white); margin-bottom: 10px; }
.contact-card > p { color: rgba(255, 255, 255, .65); margin-bottom: 22px; }
.contact-email-display { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; margin-bottom: 22px; font-size: .95rem; }
.contact-methods { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 10px; }
.contact-method { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 20px; }
.contact-method i { font-size: 1.3rem; color: var(--secondary); margin-bottom: 10px; }
.contact-method strong { display: block; color: var(--white); margin-bottom: 4px; font-size: .92rem; }
.contact-method span, .contact-method a { color: rgba(255, 255, 255, .6); font-size: .84rem; }
.contact-method a:hover { color: var(--white); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand p { color: rgba(255, 255, 255, .55); font-size: .87rem; margin-top: 14px; line-height: 1.9; }
.footer-col h4 { color: var(--white); font-size: .92rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: rgba(255, 255, 255, .58); font-size: .85rem; transition: color var(--t); }
.footer-col a:hover { color: var(--white); }
.footer-divider { border: none; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-block: 26px; }
.footer-disclaimer { color: rgba(255, 255, 255, .4); font-size: .78rem; max-width: 640px; line-height: 1.8; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-legal-links a { color: rgba(255, 255, 255, .55); font-size: .82rem; }
.footer-legal-links a:hover { color: var(--white); }
.footer-copy { color: rgba(255, 255, 255, .4); font-size: .8rem; width: 100%; text-align: center; padding-bottom: 22px; }

/* Simple flat footer (used on utility pages) */
footer.site-footer.simple { padding-block: 30px; }
.ft-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ft-links a { color: rgba(255, 255, 255, .6); font-size: .85rem; }
.ft-links a:hover { color: var(--white); }
.ft-copy { color: rgba(255, 255, 255, .45); font-size: .82rem; }

/* ---------- Scroll to top ---------- */
.scroll-top {
  position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: all var(--t);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); }

/* ---------- Copy button state ---------- */
.copy-btn.copied { background: var(--success) !important; color: var(--white) !important; border-color: var(--success) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section-pad { padding-block: 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .step-code { flex-direction: column; align-items: stretch; }
  .step-code code { text-align: center; }
  .step-code .btn { width: 100%; }
}
@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .hero { padding-bottom: 70px; }
  .content-card { padding: 28px 20px; }
  .page-hero { padding: 24px 20px; }
}
