@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;600;700&display=swap");

/* fxtraderegister.com */
:root {
  --bg: #f5f4f0;
  --bg-warm: #edecea;
  --surface: #ffffff;
  --text: #1a1f2e;
  --text-soft: #3a4055;
  --muted: #6b7280;
  --accent: #0e6675;
  --accent-hover: #0a4f5c;
  --accent-soft: rgba(14, 102, 117, 0.08);
  --accent-mid: rgba(14, 102, 117, 0.16);
  --border: #d8d4cc;
  --border-light: #e8e5de;
  --link: #0e6675;
  --link-hover: #0a4f5c;
  --shadow: 0 1px 3px rgba(26,31,46,0.07), 0 6px 18px rgba(26,31,46,0.06);
  --shadow-hover: 0 4px 12px rgba(26,31,46,0.1), 0 16px 36px rgba(26,31,46,0.08);
  --shadow-card: 0 1px 2px rgba(26,31,46,0.05), 0 4px 14px rgba(26,31,46,0.05);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --font-ar: "Noto Sans Arabic", Tahoma, sans-serif;
  --max: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-soft);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] {
  font-family: var(--font-ar);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.site-header {
  border-bottom: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.brand a {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand a::before {
  content: "";
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  background-color: var(--accent);
  border-radius: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolyline points='2,15 6,9 10,12 14,5 18,7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72%;
  box-shadow: 0 1px 4px rgba(14,102,117,0.3), 0 3px 8px rgba(14,102,117,0.15);
}

.brand span {
  color: var(--accent);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.1rem;
}

.nav-main > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-xs);
  transition: color 0.15s, background 0.15s;
}

.nav-main > a:hover {
  color: var(--text);
  background: var(--bg-warm);
}

.nav-main > a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  margin-left: 0.5rem;
}

.lang-switch a {
  padding: 0.3rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.lang-switch a:hover {
  background: var(--bg-warm);
  color: var(--text);
}

.lang-switch a.active {
  background: var(--accent);
  color: #fff;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.hero {
  padding: 0;
  margin-bottom: 3rem;
}

.hero-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2.25rem 2rem 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #1a9aac 100%);
  border-radius: var(--radius) var(--radius) 0 0;
}

[dir="rtl"] .hero-panel {
  text-align: right;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.18;
  margin: 0 0 0.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.lead {
  font-size: 1.075rem;
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0;
  line-height: 1.7;
}

.section-intro {
  max-width: 62ch;
  color: var(--text-soft);
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #1a9aac);
  opacity: 0;
  transition: opacity 0.2s;
}

.card:hover {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card:hover::after {
  opacity: 1;
}

.card h2 {
  font-size: 1.03rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.card h2 a {
  color: var(--text);
  text-decoration: none;
}

.card h2 a:hover {
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.section {
  margin-bottom: 3.5rem;
}

.section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: var(--text);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-top: 2px;
}

.prose {
  max-width: 65ch;
}

.prose > h2:first-child,
.prose .hero + h2 {
  margin-top: 0.25rem;
}

.prose h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 2.25rem;
  margin-bottom: 0.7rem;
  border: none;
  padding: 0;
  color: var(--text);
  letter-spacing: -0.025em;
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

.prose ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.25rem;
  color: var(--text-soft);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.note {
  background: #fffcf0;
  border: 1px solid #f0de9a;
  border-left: 3px solid #d4a017;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.9rem 1.2rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 2rem 0 0;
  line-height: 1.65;
}

.note strong {
  color: var(--text);
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ── Footer widgets ── */
.footer-widgets {
  background: #f9f8f5;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
  padding: 2.75rem 1.5rem 2rem;
}

.footer-widgets-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2rem 2.5rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  margin: 0 0 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

/* ── Footer bottom (dark disclaimer bar) ── */
.site-footer {
  background: #1c2231;
  padding: 1.75rem 1.25rem;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1rem;
}

.footer-disclaimer a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-disclaimer a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.footer-bottom-bar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.15s;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* keep old footer-links for any legacy use */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  font-weight: 500;
}

.faq-block h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.faq-block p {
  margin: 0 0 1.15rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

[dir="rtl"] .breadcrumb {
  text-align: right;
}

[dir="rtl"] .hero-panel {
  text-align: right;
}

@media (min-width: 768px) {
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
    align-items: start;
  }
}

@media (max-width: 480px) {
  .hero-panel {
    padding: 1.5rem 1.25rem;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  padding: 0.68rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  line-height: 1.4;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(14,102,117,0.25), 0 3px 10px rgba(14,102,117,0.18);
}
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(14,102,117,0.3), 0 8px 20px rgba(14,102,117,0.18);
}
.btn-lg {
  padding: 0.82rem 1.85rem;
  font-size: 0.97rem;
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  color: var(--accent);
  padding: 0.72rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.93rem;
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  letter-spacing: 0.01em;
}
.btn-white:hover {
  background: #f0fafb;
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

/* ── Stats bar ── */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0.5rem;
}
.stat-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.2rem;
  flex: 1 1 130px;
  min-width: 110px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #1a9aac);
}
.stat-item strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.stat-item span {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
  display: block;
  font-weight: 500;
}

/* ── Info table ── */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 480px;
}
.info-table thead th {
  background: #1c2231;
  color: rgba(255,255,255,0.9);
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: none;
  white-space: nowrap;
  text-align: left;
}
.info-table th {
  text-align: left;
  background: var(--bg-warm);
  padding: 0.65rem 1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.info-table td {
  padding: 0.62rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-soft);
  vertical-align: top;
}
.info-table tbody tr:nth-child(even) td {
  background: var(--bg);
}
.info-table tr:last-child td {
  border-bottom: none;
}
.info-table tbody tr:hover td {
  background: var(--accent-soft);
}
.info-table .highlight td {
  background: rgba(12, 95, 107, 0.05);
  font-weight: 500;
}
[dir="rtl"] .info-table th,
[dir="rtl"] .info-table thead th,
[dir="rtl"] .info-table td {
  text-align: right;
}

/* ── Numbered steps ── */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.steps > li {
  counter-increment: step;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 1.5rem;
}
.steps > li:last-child {
  padding-bottom: 0;
}
.steps > li::before {
  content: counter(step);
  background: var(--accent);
  color: #fff;
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  box-shadow: 0 2px 6px rgba(14,102,117,0.35);
  position: relative;
  z-index: 1;
}
.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 2.2rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-mid), transparent);
}
.steps > li strong {
  color: var(--text);
  font-weight: 700;
  font-size: 0.97rem;
}
.steps > li p {
  margin: 0.3rem 0 0;
  font-size: 0.94rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.step-body {
  flex: 1;
}

/* ── CTA box ── */
.cta-box {
  background: linear-gradient(135deg, #0b5a67 0%, #0e7a8a 60%, #12899b 100%);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(14,102,117,0.28);
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.cta-box h3 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cta-box p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Tag / badge ── */
.tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  vertical-align: middle;
  letter-spacing: 0.01em;
}
.tag-green {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
}

/* ── Related links ── */
.related-links {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-top: 2.5rem;
  padding: 1.35rem 1.5rem;
}
.related-links h3 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.85rem;
  color: var(--muted);
}
.related-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.related-links li a {
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.15s;
}
.related-links li a:hover {
  color: var(--accent);
}
.related-links li a::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Hero CTA row ── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ── Prose max-width override for wide tables ── */
.prose-wide {
  max-width: 100%;
}

/* ── Author byline (in hero) ── */
.author-byline {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.1rem;
  font-size: 0.84rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.author-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.author-byline a {
  color: var(--text-soft);
  font-weight: 600;
  text-decoration: none;
}

.author-byline a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.author-byline .byline-sep {
  color: var(--border);
}

/* ── Author box (bottom of article) ── */
.author-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 2.5rem 0 1rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.author-box::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), #1a9aac);
  border-radius: var(--radius) 0 0 var(--radius);
}

.author-box-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.author-box-body {
  flex: 1;
}

.author-box-body strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.author-box-body .author-box-title {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: block;
}

.author-box-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.author-box-body a {
  font-size: 0.84rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
}

/* ── Author profile page ── */
.author-profile-page {
  max-width: var(--max);
  margin: 0 auto;
}

.author-profile-card {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}

.author-avatar-lg {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.author-profile-info h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.author-title {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.author-profile-info p {
  font-size: 0.97rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 0.85rem;
}

.author-articles h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

@media (max-width: 560px) {
  .author-profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── Site-wide affiliate banner (skyscraper) ── */
.site-affiliate {
  position: fixed;
  z-index: 60;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  line-height: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--surface);
  border: 1px solid var(--border-light);
}

.site-affiliate a {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.site-affiliate a:hover {
  opacity: 0.97;
}

.site-affiliate img {
  display: block;
  width: 120px;
  height: auto;
  max-height: min(600px, 82vh);
  vertical-align: middle;
}

@media (min-width: 1200px) {
  .site-affiliate {
    right: max(0.75rem, calc((100vw - 68rem) / 2 - 132px));
  }
}

[dir="rtl"] .site-affiliate {
  right: auto;
  left: 0.75rem;
}

@media (min-width: 1200px) {
  [dir="rtl"] .site-affiliate {
    left: max(0.75rem, calc((100vw - 68rem) / 2 - 132px));
  }
}

@media (max-width: 768px) {
  .site-affiliate {
    top: auto;
    bottom: 5rem;
    transform: none;
    right: 0.5rem;
  }

  .site-affiliate img {
    width: 72px;
    max-height: min(360px, 45vh);
  }

  [dir="rtl"] .site-affiliate {
    left: 0.5rem;
    right: auto;
  }
}

/* ── Cookie consent bar ── */
#cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid #e2ddd5;
  box-shadow: 0 -2px 16px rgba(27, 34, 48, 0.1);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: #333;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#cookie-bar.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

#cookie-bar p {
  margin: 0;
  flex: 1 1 260px;
  line-height: 1.5;
}

#cookie-bar .cookie-accept {
  display: inline-block;
  background: #000;
  color: #fff;
  border: none;
  padding: 0.52rem 1.35rem;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s;
  font-family: var(--font-sans);
  line-height: 1.4;
}

#cookie-bar .cookie-accept:hover {
  background: #222;
}

#cookie-bar .cookie-more {
  color: #444;
  font-size: 0.84rem;
  text-decoration: underline;
  white-space: nowrap;
  transition: color 0.15s;
}

#cookie-bar .cookie-more:hover {
  color: var(--accent);
}

/* ── Additional responsive tweaks ── */
@media (max-width: 640px) {
  .stats-bar {
    gap: 0.6rem;
  }
  .stat-item {
    flex: 1 1 calc(50% - 0.6rem);
    min-width: 0;
  }
  .cta-box {
    padding: 1.75rem 1.25rem;
  }
  .steps > li:not(:last-child)::after {
    left: 1.05rem;
  }
  .related-links ul {
    gap: 0.5rem;
  }
  .info-table {
    font-size: 0.86rem;
  }
  .info-table th,
  .info-table td {
    padding: 0.55rem 0.75rem;
  }
}
