/* ═══════════════════════════════════════════════════════════════════
   تعرفه‌های جریان — استایل
   پایه: گاید لاین برند جریان (Primary #675DFF, Navy #0A2540)
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'IRANYekan';
  src: url('assets/fonts/IRANYekanWeb-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('assets/fonts/IRANYekanWeb-Bold.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('assets/fonts/IRANYekanWeb-Bold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('assets/fonts/IRANYekanWeb-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Brand */
  --primary: #675DFF;
  --primary-dark: #533afd;
  --primary-50: #efecfc;
  --primary-25: #f7f5fd;
  --navy: #0A2540;
  --navy-soft: #1a1b25;

  /* Neutrals */
  --white: #FFFFFF;
  --bg: #F6F8FA;
  --bg-2: #F5F6F8;
  --border: #D5DBE1;
  --border-soft: #EEF1F5;
  --text: #1A1B25;
  --text-mid: #414552;
  --text-muted: #687385;

  /* Semantic */
  --success: #2b8700;
  --warning-bg: #fef9da;
  --warning-border: #fcd579;
  --warning-text: #842106;

  /* Shape */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10,37,64,.06);
  --shadow-md: 0 8px 32px rgba(10,37,64,.10);
  --shadow-lg: 0 20px 60px rgba(10,37,64,.14);
  --shadow-purple: 0 4px 14px rgba(103,93,255,.30);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'IRANYekan', Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% -10%, rgba(103,93,255,.10) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 95% 10%, rgba(103,93,255,.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(10,37,64,.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ── STICKY WRAP ─────────────────────────────────────────────── */
.sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0 12px;
  background: var(--bg);
}
.sticky-wrap.scrolled {
  background: rgba(246,248,250,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(10,37,64,.06);
}

/* ── HEADER ──────────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  background: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(103,93,255,.30);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
  pointer-events: none;
}
.header-logo {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.header-logo img { width: 100%; height: 100%; object-fit: contain; }
.header-title {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  text-align: center;
}
.header-spacer { width: 40px; flex-shrink: 0; }

/* ── TOOLBAR ─────────────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* dropdown */
.platform-dropdown { position: relative; }
.pdd-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  box-shadow: var(--shadow-sm);
}
.pdd-btn:hover { border-color: var(--primary); color: var(--primary); }
.pdd-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-25);
}
.pdd-btn .chev {
  display: inline-flex;
  transition: transform .2s;
  color: var(--primary);
}
.pdd-btn.open .chev { transform: rotate(180deg); }

.pdd-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 4px;
  z-index: 200;
  animation: pop .15s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.pdd-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  background: none; border: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: right;
  transition: background .12s;
}
.pdd-item:hover { background: var(--bg-2); }
.pdd-item.active { color: var(--primary); background: var(--primary-25); }
.pdd-count {
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 500;
}
.pdd-item.active .pdd-count { background: var(--primary-50); color: var(--primary); }

/* toggle buttons */
.toggle-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.toggle-btn:hover { border-color: var(--primary); color: var(--primary); }
.toggle-knob {
  width: 26px; height: 15px;
  background: #d1d5db;
  border-radius: 100px;
  position: relative;
  transition: background .2s;
  flex-shrink: 0;
}
.toggle-knob > span {
  position: absolute;
  top: 2px; right: 2px;
  width: 11px; height: 11px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  display: block;
}
.toggle-btn.on { background: var(--primary-25); border-color: var(--primary); color: var(--primary); }
.toggle-btn.on .toggle-knob { background: var(--primary); }
.toggle-btn.on .toggle-knob > span { transform: translateX(-11px); }

.toggle-btn.force.on { background: #fff7ed; border-color: #ea580c; color: #c2410c; }
.toggle-btn.force.on .toggle-knob { background: #ea580c; }

/* ── NOTE BOX ────────────────────────────────────────────────── */
.note-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--warning-text);
  text-align: center;
  margin: 12px 0 16px;
  box-shadow: var(--shadow-sm);
}

/* ── PLATFORM SECTION ────────────────────────────────────────── */
.platform-section {
  margin-bottom: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
  animation: fadeUp .35s ease both;
}
.platform-section:hover { box-shadow: var(--shadow-md); }
.platform-section:nth-child(1) { animation-delay: .04s; }
.platform-section:nth-child(2) { animation-delay: .08s; }
.platform-section:nth-child(3) { animation-delay: .12s; }
.platform-section:nth-child(4) { animation-delay: .16s; }

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

.platform-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--navy) 0%, #0d3060 100%);
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.platform-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(103,93,255,.18) 0%, transparent 60%);
  pointer-events: none;
}
.platform-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden; padding: 6px;
}
.platform-icon img { width: 100%; height: 100%; object-fit: contain; }
.platform-name {
  font-size: 16px; font-weight: 500; color: var(--white); flex: 1;
  position: relative;
}
.platform-meta {
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.platform-count { font-size: 12px; color: rgba(255,255,255,.65); }

.head-chev {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85);
  transition: transform .25s ease;
}
.platform-section.collapsed .head-chev { transform: rotate(180deg); }

/* Platform body smooth collapse */
.platform-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.4,0,.2,1);
}
.platform-collapse.open {
  grid-template-rows: 1fr;
}
.platform-collapse > .body-rows {
  overflow: hidden;
  opacity: 0;
  transition: opacity .3s ease .05s;
}
.platform-collapse.open > .body-rows {
  opacity: 1;
}

/* ── DESKTOP TABLE ──────────────────────────────────────────── */
.desktop-table { display: block; }
.mobile-cards { display: none; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  table-layout: fixed;
}

thead th {
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .01em;
  text-align: center;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.th-sub { font-size: 10px; color: var(--text-muted); opacity: .8; margin-inline-start: 2px; }

tbody tr { transition: background .12s; }
tbody tr:hover td:not([colspan]) { background: var(--primary-25); }
tbody td {
  padding: 13px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  background: var(--white);
  text-align: center;
}
tbody tr:last-child td { border-bottom: none; }

.col-placement { font-weight: 500; color: var(--text); }
.col-min { color: var(--success); font-weight: 500; white-space: nowrap; }

/* chips */
.chip {
  display: inline-flex; align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  white-space: nowrap;
}
.chip.accent {
  background: var(--primary-25);
  border-color: rgba(103,93,255,.18);
  color: var(--primary-dark);
}
.chip.muted { background: transparent; border-color: transparent; color: var(--text-muted); }

/* tiered row — clearly separated from siblings */
.tiered-row-head td {
  background: var(--primary-25) !important;
  border-top: 2px solid var(--primary) !important;
  border-bottom: 1px solid var(--primary) !important;
  position: relative;
}
.tiered-row-head td:first-child { border-right: 3px solid var(--primary) !important; }
.tiered-row-head td:last-child  { border-left: 3px solid var(--primary) !important; }
.tiered-row-head .col-placement { font-weight: 600; color: var(--primary); }
.show-rates-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px;
  background: var(--white);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 100px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
}
.show-rates-btn:hover { background: var(--primary); color: var(--white); }

.tiered-row-body td {
  background: #fafbfc !important;
  padding: 0 !important;
  border-right: 3px solid var(--primary) !important;
  border-left: 3px solid var(--primary) !important;
  border-bottom: 0 solid var(--primary) !important;
  box-shadow: inset 0 4px 8px rgba(103,93,255,.08);
  transition: border-bottom-width .35s ease;
}
.tiered-row-body.open td {
  border-bottom-width: 2px !important;
}
.tiered-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(.4,0,.2,1);
}
.tiered-row-body.open .tiered-collapse {
  grid-template-rows: 1fr;
}
.tiered-collapse-inner {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s ease .05s, transform .42s cubic-bezier(.4,0,.2,1);
}
.tiered-row-body.open .tiered-collapse-inner {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile collapse */
.m-tiered-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(.4,0,.2,1);
}
.m-tiered-collapse.open {
  grid-template-rows: 1fr;
}
.m-tiered-collapse > .m-tiered {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s ease .05s, transform .42s cubic-bezier(.4,0,.2,1);
}
.m-tiered-collapse.open > .m-tiered {
  opacity: 1;
  transform: translateY(0);
  margin-top: 10px;
}

.tiered-block { padding: 18px 22px; }
.tiered-head {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 14px;
}
.tiered-head .th-text { display: flex; align-items: center; gap: 6px; flex: 1; }

.force-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.force-toggle:hover { border-color: #ea580c; color: #c2410c; }
.force-toggle.on { background: #fff7ed; border-color: #ea580c; color: #c2410c; }
.force-toggle.on .toggle-knob { background: #ea580c; }
.force-toggle.on .toggle-knob > span { transform: translateX(-11px); }
.force-toggle.full { width: 100%; justify-content: center; padding: 9px 14px; }

.tiered-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
}
.tg-row { display: contents; }
.tg-row > div {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
  text-align: center;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.tg-row.tg-head > div {
  background: var(--bg-2);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.tg-row:last-child > div { border-bottom: none; }
.tg-cat { font-weight: 500; color: var(--text); justify-content: flex-start !important; text-align: right !important; }
.x3 { color: var(--primary); font-weight: 600; font-size: 11px; margin-inline-start: 2px; }

.tiered-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--warning-text);
}
.tiered-note.small { font-size: 11px; padding: 8px 10px; }

.force-tag {
  display: inline-block;
  margin-inline-start: 8px;
  background: #ea580c;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}

/* ── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page { padding: 0 12px 30px; }
  .sticky-wrap { padding: 12px 0 6px; }
  .header { padding: 0 14px; height: 52px; border-radius: var(--radius-sm); }
  .header-logo { width: 32px; height: 32px; }
  .header-spacer { width: 32px; }
  .header-title { font-size: 13px; }

  .desktop-table { display: none !important; }
  .mobile-cards { display: block; }

  .platform-head { padding: 14px 16px; }
  .platform-name { font-size: 15px; }
  .platform-icon { width: 36px; height: 36px; }

  .m-card {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--white);
  }
  .m-card:last-child { border-bottom: none; }
  .m-place {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.6;
    text-align: center;
  }
  .m-grid {
    display: flex; gap: 6px;
  }
  .m-field {
    flex: 1;
    background: var(--bg-2);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    min-width: 0;
  }
  .m-field.accent { background: var(--primary-25); border-color: rgba(103,93,255,.15); }
  .m-field.min { background: #f0fce8; border-color: rgba(43,135,0,.12); }
  .m-lab {
    font-size: 9px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
  }
  .m-val {
    font-size: 11px;
    color: var(--text-mid);
    font-weight: 500;
    word-break: break-word;
    line-height: 1.5;
  }
  .m-field.accent .m-val { color: var(--primary-dark); }
  .m-field.min .m-val { color: var(--success); }
  .m-val.muted { color: var(--text-muted); opacity: .6; }

  /* tiered card on mobile — stronger separation */
  .m-card.tiered {
    background: var(--primary-25);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    margin: 8px 0;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(103,93,255,.12);
  }
  .m-card.tiered .m-place { color: var(--primary); font-weight: 600; }
  .m-show-rates {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%;
    padding: 9px;
    background: var(--white);
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 100px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
  }
  .m-min-row {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
  }
  .m-min-row b { color: var(--success); font-weight: 600; }
  .m-tiered { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
  .m-tier-card {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 10px;
  }
  .m-tier-cat {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 8px;
    text-align: center;
  }
  .m-tier-grid {
    display: flex; flex-direction: column; gap: 6px;
  }
  .m-tier-grid > div {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px;
  }
  .m-tier-lab { color: var(--text-muted); }

  .toolbar { gap: 6px; margin-top: 10px; }
  .toggle-btn { font-size: 11px; padding: 6px 12px 6px 8px; }
  .pdd-btn { font-size: 11px; padding: 6px 10px; }

  .note-box { font-size: 12px; padding: 10px 14px; border-radius: var(--radius-sm); }
}

/* ── EMPTY / FOOTER ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}
.footer {
  margin-top: 30px;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── MANAGEMENT FEE NOTE (yellow bar) ──────────────────────── */
.mgmt-note {
  max-width: 1280px;
  margin: 8px auto 18px;
  padding: 14px 22px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--warning-text);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
.mgmt-icon { font-size: 16px; }
@media (max-width: 768px) {
  .mgmt-note { margin: 8px 12px 14px; font-size: 12px; padding: 11px 14px; border-radius: var(--radius-sm); }
}

/* ── FLOATING BOTTOM BAR ───────────────────────────────────── */
@keyframes cta-shake {
  0%,8%,100% { transform: translate(0,0) rotate(0deg); }
  1%  { transform: translate(-4px,-3px) rotate(-1.5deg); }
  2%  { transform: translate(4px,-2px) rotate(1.5deg); }
  3%  { transform: translate(-4px,3px) rotate(-1deg); }
  4%  { transform: translate(4px,3px) rotate(1deg); }
  5%  { transform: translate(-3px,-2px) rotate(-0.8deg); }
  6%  { transform: translate(3px,2px) rotate(0.8deg); }
  7%  { transform: translate(-1px,-1px) rotate(0deg); }
}
@keyframes cta-glow {
  0%,100% { box-shadow: 0 0 16px 2px rgba(103,93,255,0.45); }
  50%      { box-shadow: 0 0 32px 6px rgba(103,93,255,0.75); }
}
@keyframes course-bounce {
  0%,100% { transform: scale(1); }
  40%      { transform: scale(1.06); }
  70%      { transform: scale(0.97); }
  85%      { transform: scale(1.02); }
}
@keyframes course-ring {
  0%   { box-shadow: 0 0 0 0 rgba(245,158,11,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

#floating-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(8,20,40,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(103,93,255,0.2);
  box-shadow: 0 -2px 24px rgba(0,0,0,0.3);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#cta-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: linear-gradient(135deg, #675DFF 0%, #4c35fc 100%);
  color: #fff;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  animation: cta-shake 5s ease-in-out infinite, cta-glow 5s ease-in-out infinite;
  transition: opacity 1s ease;
}
#cta-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 55%);
  pointer-events: none;
}
#cta-main:hover { animation: none; box-shadow: 0 0 36px 8px rgba(103,93,255,0.8); filter: brightness(1.1); }

#cta-course {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 10px;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
  border-radius: 9px;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.18);
  white-space: nowrap;
  position: relative;
  overflow: visible;
  animation: course-bounce 2s ease-in-out infinite, course-ring 2s ease-in-out infinite;
  transition: all 0.3s ease;
}
#cta-course::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 55%);
  pointer-events: none;
  border-radius: 9px;
}
#cta-course:hover { animation: none; box-shadow: 0 0 36px 8px rgba(245,158,11,0.8); filter: brightness(1.1); }

#course-badge {
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  position: absolute;
  top: -8px;
  right: 8px;
  white-space: nowrap;
}

#fb-secondaries { display: flex; gap: 8px; align-items: center; }
#floating-bar .fb-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
#floating-bar .fb-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }

#fb-spacer { height: 90px; }
@media (max-width: 768px) { #fb-spacer { height: 220px; } }

@media (max-width: 768px) {
  #floating-bar {
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px 14px;
    align-items: stretch;
  }
  #cta-course { width: 100%; justify-content: center; padding: 13px 16px; border-radius: 10px; text-align: center; }
  #cta-main { width: 100%; justify-content: center; padding: 13px 20px; font-size: 15px; border-radius: 10px; text-align: center; }
  #fb-secondaries { display: flex; gap: 8px; width: 100%; }
  #floating-bar .fb-secondary { flex: 1; justify-content: center; font-size: 11px; padding: 8px 6px; }
}
