/*
 * Forex Promo Shortcodes — Frontend Styles
 * Colors matched to site theme from screenshot.
 *
 * Palette:
 *   bg-card:     #131620   card/box backgrounds
 *   border:      #252836   borders & dividers
 *   text-body:   #c4c4cf   body paragraph text (cool gray)
 *   text-strong: #e8e9f0   bold/strong text (near-white cool)
 *   text-white:  #ffffff   headings
 *   text-muted:  #7a7d8a   labels, captions
 *   brand:        #E8B84B   brand accent (underline, why-numbers)
 *   brand-light:  #F0CE6A   brand lighter (CTA button)
 *   green:       #3ecf72   pros, available dot
 *   red:         #e05c5c   cons
 *   blue:        #5b8dee   step numbers, term dots, links
 */

/* ── CSS Variables ────────────────────────────────── */
:root {
    --fps-bg-card:     #131620;
    --fps-border:      #252836;
    --fps-text-body:   #dadce2;
    --fps-text-strong: #e8e9f0;
    --fps-text-white:  #ffffff;
    --fps-text-muted:  #7a7d8a;
    --fps-brand:        #E8B84B;
    --fps-brand-light:  #F0CE6A;
    --fps-green:       #3ecf72;
    --fps-red:         #e05c5c;
    --fps-blue:        #5b8dee;
}

/* ── Reset & Base ─────────────────────────────────── */
.fps-section {
    margin-bottom: 22px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    color: var(--fps-text-body);
    line-height: 1.7;
}

/* ── Section Label — bold white heading + brand underline ── */
.fps-sec-label {
    display: block;
    font-size: 1.55em;
    font-weight: 800;
    color: var(--fps-text-white);
    letter-spacing: -0.3px;
    line-height: 1.15;
    margin-bottom: 18px;
    padding-bottom: 12px;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
}
.fps-sec-label::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 2px;
    background: linear-gradient(90deg, var(--fps-brand), var(--fps-brand-light) 60%, transparent);
    border-radius: 2px;
}

/* ════════════════════════════════════════════════════
   HEADING SHORTCODE  [fps_heading]
════════════════════════════════════════════════════ */
.fps-heading {
    margin-bottom: 24px;
    line-height: 1.2;
}
.fps-heading__text {
    color: var(--fps-text-white);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.15;
}
.fps-heading h1.fps-heading__text { font-size: 2.2em; }
.fps-heading h2.fps-heading__text { font-size: 1.75em; }
.fps-heading h3.fps-heading__text { font-size: 1.35em; }
.fps-heading h4.fps-heading__text { font-size: 1.1em; }

.fps-heading__sub {
    font-size: 13px;
    color: var(--fps-text-muted);
    margin: 6px 0 0;
    font-weight: 400;
}

/* Style: line — brand underline accent */
.fps-heading--line {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--fps-border);
    position: relative;
}
.fps-heading--line::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--fps-brand), var(--fps-brand-light));
    border-radius: 2px;
}

/* Style: bar — brand left border */
.fps-heading--bar {
    padding-left: 16px;
    border-left: 3px solid var(--fps-brand-light);
}

/* Style: plain — no decoration */
.fps-heading--plain { /* intentionally empty */ }

/* ════════════════════════════════════════════════════
   1. ABOUT  [fps_about]
════════════════════════════════════════════════════ */
.fps-intro-box {
    background: var(--fps-bg-card);
    border: 1px solid var(--fps-border);
    border-radius: 12px;
    padding: 20px 22px;
}
.fps-intro-box p {
    font-size: 14.5px;
    color: var(--fps-text-body);
    line-height: 1.8;
    margin-bottom: 12px;
}
.fps-intro-box p:last-child { margin-bottom: 0; }
.fps-intro-box strong {
    color: var(--fps-text-strong);
    font-weight: 600;
}

/* ════════════════════════════════════════════════════
   2. QUICK FACTS  [fps_quick_facts]
════════════════════════════════════════════════════ */
.fps-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}
.fps-ic {
    background: var(--fps-bg-card);
    border: 1px solid var(--fps-border);
    border-radius: 10px;
    padding: 13px 15px;
}
.fps-il {
    font-size: 11px;
    color: var(--fps-text-muted);
    margin-bottom: 5px;
    letter-spacing: .4px;
    text-transform: uppercase;
    font-weight: 500;
}
.fps-iv {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fps-text-strong);
}

/* ════════════════════════════════════════════════════
   3. CLAIM / CTA  [fps_claim]
════════════════════════════════════════════════════ */
@keyframes fps-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.8); }
}

.fps-cta-block {
    background: var(--fps-bg-card);
    border: 1px solid #1e3a22;
    border-radius: 12px;
    padding: 22px 22px 18px;
    text-align: center;
}
.fps-cta-avail {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0d1f10;
    border: 1px solid #1e4028;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11px;
    color: var(--fps-green);
    font-weight: 600;
    letter-spacing: .8px;
    margin-bottom: 16px;
}
.fps-cta-avail-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--fps-green);
    animation: fps-pulse 1.6s ease-in-out infinite;
    display: inline-block;
    flex-shrink: 0;
}
.fps-cta-main {
    display: block;
    width: unset;
    background: var(--fps-brand-light);
    color: #000;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background .15s, transform .1s;
    border: none;
}
.fps-cta-main:hover {
    background: #E8B84B;
    color: #0a0800;
    transform: translateY(-1px);
}
.fps-cta-demo {
    display: block;
    width: unset;
    background: transparent;
    color: var(--fps-text-body);
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--fps-border);
    transition: border-color .15s, color .15s;
}
.fps-cta-demo:hover {
    border-color: #4a5060;
    color: var(--fps-text-strong);
}
.fps-cta-note {
    font-size: 11px;
    color: var(--fps-text-muted);
    margin-top: 14px;
    line-height: 1.6;
}

/* ── Expiry / Countdown Bar ──────────────────────────────── */
.fps-expiry-bar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--fps-text-muted);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 4px 12px;
    margin-bottom: 12px;
    line-height: 1;
    flex-wrap: wrap;
    justify-content: center;
}
.fps-expiry-bar--expired {
    color: #e07070;
    background: rgba(220,60,60,.08);
    border-color: rgba(220,60,60,.2);
}
.fps-expiry-icon {
    font-size: 11px;
    flex-shrink: 0;
}
.fps-expiry-until {
    font-weight: 500;
    color: var(--fps-text-body);
}
.fps-expiry-bar--expired .fps-expiry-text {
    font-weight: 600;
}
.fps-expiry-sep {
    opacity: .4;
    font-size: 10px;
}
.fps-expiry-countdown {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    font-variant-numeric: tabular-nums;
}
.fps-cd-seg {
    font-weight: 700;
    font-size: 12px;
    color: var(--fps-gold);
    min-width: 18px;
    text-align: right;
}
.fps-cd-u {
    font-size: 9px;
    color: var(--fps-text-muted);
    margin-right: 4px;
}
.fps-cd-suffix {
    font-size: 10px;
    color: var(--fps-text-muted);
    margin-left: 2px;
}

/* Disabled CTA button when expired */
.fps-cta-main--disabled {
    display: block;
    background: #2a2a2a;
    color: #666;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    cursor: not-allowed;
    opacity: .55;
    border: 1px dashed #444;
}


/* ════════════════════════════════════════════════════
   4. PROS & CONS  [fps_pros_cons]
════════════════════════════════════════════════════ */
.fps-pc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.fps-pros-box {
    background: #0d1b10;
    border: 1px solid #1a3d20;
    border-radius: 10px;
    padding: 14px 16px;
}
.fps-cons-box {
    background: #1a0d0d;
    border: 1px solid #3d1a1a;
    border-radius: 10px;
    padding: 14px 16px;
}
.fps-pt {
    font-size: 10px;
    color: var(--fps-green);
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.fps-ct {
    font-size: 10px;
    color: var(--fps-red);
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}
.fps-ci {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 13.5px;
    color: var(--fps-text-body);
    margin-bottom: 9px;
    line-height: 1.5;
}
.fps-ci:last-child { margin-bottom: 0; }
.fps-ck { color: var(--fps-green); flex-shrink: 0; margin-top: 1px; font-weight: 700; }
.fps-cx { color: var(--fps-red);   flex-shrink: 0; margin-top: 1px; font-weight: 700; }

/* ════════════════════════════════════════════════════
   5. HOW TO CLAIM  [fps_how_to_claim]
════════════════════════════════════════════════════ */
.fps-steps-box {
    background: var(--fps-bg-card);
    border: 1px solid var(--fps-border);
    border-radius: 12px;
    padding: 18px 20px;
}
.fps-srow {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.fps-srow:last-child { margin-bottom: 0; }
.fps-snum {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #111d33;
    border: 1px solid #1e3560;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    color: var(--fps-blue);
    flex-shrink: 0;
    margin-top: 2px;
}
.fps-stxt {
    font-size: 14px;
    color: var(--fps-text-body);
    line-height: 1.6;
    padding-top: 3px;
}
.fps-stxt strong {
    color: var(--fps-text-strong);
    font-weight: 600;
}

/* ════════════════════════════════════════════════════
   6. WHAT IS THE BONUS  [fps_what_is]
════════════════════════════════════════════════════ */
.fps-bonus-detail-box {
    background: var(--fps-bg-card);
    border: 1px solid var(--fps-border);
    border-radius: 12px;
    padding: 18px 20px;
}
.fps-bd-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--fps-border);
    align-items: flex-start;
}
.fps-bd-item:first-child { padding-top: 0; }
.fps-bd-item:last-child  { border-bottom: none; padding-bottom: 0; }
.fps-bd-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: #111d33;
    border: 1px solid #1e3560;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.fps-bd-txt h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--fps-text-strong);
    margin: 0 0 5px;
}
.fps-bd-txt p {
    font-size: 13.5px;
    color: var(--fps-text-body);
    line-height: 1.7;
    margin: 0;
}

/* ════════════════════════════════════════════════════
   7. WHY CONSIDER  [fps_why_consider]
════════════════════════════════════════════════════ */
.fps-why-box {
    background: var(--fps-bg-card);
    border: 1px solid var(--fps-border);
    border-radius: 12px;
    padding: 18px 20px;
}
.fps-why-item {
    display: flex;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid var(--fps-border);
    align-items: flex-start;
}
.fps-why-item:first-child { padding-top: 0; }
.fps-why-item:last-child  { border-bottom: none; padding-bottom: 0; }
.fps-why-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--fps-brand);
    width: 22px;
    flex-shrink: 0;
    padding-top: 3px;
    letter-spacing: .5px;
}
.fps-why-txt {
    font-size: 14px;
    color: var(--fps-text-body);
    line-height: 1.6;
}
.fps-why-txt strong {
    color: var(--fps-text-strong);
    font-weight: 600;
}

/* ════════════════════════════════════════════════════
   8. TERMS  [fps_terms]
════════════════════════════════════════════════════ */
.fps-terms-box {
    background: #131620;
    border-left: 3px solid #E8B84B;
    border-radius: 0 10px 10px 0;
    padding: 18px 20px;
}
.fps-ti {
    font-size: 14px;
    color: var(--fps-text-body);
    margin-bottom: 9px;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    line-height: 1.6;
}
.fps-ti:last-child { margin-bottom: 0; }
.fps-td-dot {
    color: #E8B84B;
    flex-shrink: 0;
    margin-top: 6px;
    font-size: 7px;
}

/* ════════════════════════════════════════════════════
   9. BROKER AT A GLANCE  [fps_broker_glance]
════════════════════════════════════════════════════ */
.fps-glance-box {
    background: var(--fps-bg-card);
    border: 1px solid var(--fps-border);
    border-radius: 12px;
    padding: 18px 20px;
    overflow-x: auto;
}
.fps-glance-table {
    width: 100%;
    border-collapse: collapse;
}
.fps-glance-table td {
    padding: 10px 6px;
    border-bottom: 1px solid var(--fps-border);
    font-size: 13.5px;
    vertical-align: middle;
    color: var(--fps-text-body);
}
.fps-glance-table tr:last-child td { border-bottom: none; }
.fps-glance-table td:first-child {
    color: #c4c4cf;
    width: 42%;
    font-size: 14px;
}
.fps-glance-table td.good  { color: var(--fps-green); font-weight: 600; }
.fps-glance-table td.bad   { color: var(--fps-red);   font-weight: 600; }
.fps-glance-table td.neutral { color: var(--fps-text-strong); font-weight: 500; }
.fps-link {
    color: var(--fps-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.fps-link:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════
   10. RISK NOTICE  [fps_risk_notice]
════════════════════════════════════════════════════ */
.fps-disclaimer {
    font-size: 11.5px;
    color: var(--fps-text-muted);
    line-height: 1.7;
    padding: 18px 0 0;
    text-align: center;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
    .fps-pc-grid { grid-template-columns: 1fr; }
    .fps-info-grid { grid-template-columns: repeat(2, 1fr); }
    .fps-heading h1.fps-heading__text { font-size: 1.75em; }
    .fps-heading h2.fps-heading__text { font-size: 1.4em; }
    .fps-sec-label { font-size: 1.3em; }
}

/* ════════════════════════════════════════════════════
   12. TABLE OF CONTENTS  [fps_toc]
════════════════════════════════════════════════════ */
.fps-toc {
    background: var(--fps-bg-card);
    border: 1px solid var(--fps-border);
    border-radius: 12px;
    margin-bottom: 22px;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Toggle button — the always-visible header */
.fps-toc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    padding: 14px 18px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.fps-toc-toggle:hover { background: rgba(255,255,255,0.03); }

.fps-toc-toggle-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--fps-text-strong);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex: 1;
    text-align: left;
}

.fps-toc-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--fps-brand);
}

.fps-toc-count {
    font-size: 11px;
    color: var(--fps-text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.fps-toc-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--fps-text-muted);
    transition: transform 0.25s ease;
}
.fps-toc-toggle[aria-expanded="true"] .fps-toc-chevron {
    transform: rotate(180deg);
}
.fps-toc-toggle[aria-expanded="true"] .fps-toc-toggle-left {
    color: var(--fps-brand-light);
}

/* Collapsible list area */
.fps-toc-list {
    border-top: 1px solid var(--fps-border);
    padding: 14px 18px 16px;
}
.fps-toc-list[hidden] { display: none; }

/* Main ordered list */
.fps-toc-ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: fps-toc-counter;
}

.fps-toc-li {
    counter-increment: fps-toc-counter;
    padding: 3px 0;
}

.fps-toc-a {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: 13.5px;
    color: var(--fps-text-body);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.15s;
    padding: 2px 0;
}
.fps-toc-a::before {
    content: counter(fps-toc-counter) ".";
    font-size: 11px;
    font-weight: 700;
    color: var(--fps-brand);
    min-width: 18px;
    flex-shrink: 0;
}
.fps-toc-a:hover { color: var(--fps-brand-light); }
.fps-toc-a.fps-toc-active { color: var(--fps-brand-light); font-weight: 600; }

/* FAQ parent item — no counter prefix override needed */
.fps-toc-li--has-sub > .fps-toc-a {
    font-weight: 600;
    color: var(--fps-text-strong);
}

/* FAQ sub-list */
.fps-toc-sub {
    list-style: none;
    margin: 4px 0 4px 26px;
    padding: 0;
    border-left: 2px solid var(--fps-border);
    padding-left: 12px;
}

.fps-toc-sub-li {
    padding: 2px 0;
}

.fps-toc-sub-a {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12.5px;
    color: var(--fps-text-muted);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.15s;
    padding: 1px 0;
}
.fps-toc-sub-a::before {
    content: '—';
    font-size: 10px;
    color: var(--fps-border);
    flex-shrink: 0;
}
.fps-toc-sub-a:hover { color: var(--fps-brand-light); }
.fps-toc-sub-a.fps-toc-active { color: var(--fps-brand); }

/* Active highlight via JS scroll spy */
.fps-toc-a.fps-toc-active::before { color: var(--fps-brand-light); }

@media (max-width: 640px) {
    .fps-toc-toggle { padding: 12px 14px; }
    .fps-toc-list   { padding: 12px 14px 14px; }
    .fps-toc-sub    { margin-left: 18px; }
}
