/* ============================================================
   FXD Live Chart — chart styles v1.6.1
   ============================================================ */

/* ── Public outer container ─────────────────────────────────── */
.fxd-lc-public-wrap {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin:      0 auto;
}

/* ── Global header row (ticker + live badge + sync time) ────── */
.fxd-lc-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding:         0 4px 10px;
    flex-wrap:       wrap;
    gap:             8px;
}

.fxd-lc-ticker {
    font-size:   15px;
    font-weight: 700;
    color:       #131722;
    display:     flex;
    align-items: center;
    gap:         8px;
}

.fxd-lc-live-badge {
    font-size:      9px;
    font-weight:    700;
    background:     #26a69a;
    color:          #fff;
    padding:        2px 7px;
    border-radius:  3px;
    letter-spacing: 1px;
    animation:      fxd-pulse 2.5s ease-in-out infinite;
}

@keyframes fxd-pulse {
    0%, 100% { opacity: 1;    }
    50%      { opacity: 0.55; }
}

.fxd-lc-update-time {
    font-size:   11px;
    color:       #8c94a1;
    white-space: nowrap;
}

/* ── Chart card — each chart is its own box ──────────────── */
.fxd-lc-chart-card {
    background:    #ffffff;
    border-radius: 8px;
    border:        1px solid #dde1e7;
    box-shadow:    0 2px 12px rgba(0,0,0,0.07);
    overflow:      hidden;
    margin-bottom: 20px;
}

/* ── Card title bar (title + fullscreen button) ────────────── */
.fxd-lc-card-title {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding:         10px 14px;
    background:      #f8f9fb;
    border-bottom:   1px solid #dde1e7;
}

.fxd-lc-card-title-text {
    font-size:      14px;
    font-weight:    700;
    color:          #131722;
    letter-spacing: 0.1px;
}

/* ── Per-card fullscreen button ───────────────────────────── */
.fxd-lc-card-fs-btn {
    background:      transparent;
    border:          1px solid #dde1e7;
    color:           #8c94a1;
    width:           26px;
    height:          26px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    border-radius:   4px;
    cursor:          pointer;
    padding:         0;
    flex-shrink:     0;
    transition:      all 0.15s;
}

.fxd-lc-card-fs-btn:hover { background: #f0f2f5; color: #131722; border-color: #c3c8d0; }

/* ── Fullscreen state for an individual chart card ─────────── */
.fxd-lc-chart-card:fullscreen,
.fxd-lc-chart-card:-webkit-full-screen {
    border-radius:  0;
    border:         none;
    background:     #0d1117;
    display:        flex;
    flex-direction: column;
    height:         100vh;
    overflow:       hidden;
    margin-bottom:  0;
}

.fxd-lc-chart-card:fullscreen .fxd-lc-card-title,
.fxd-lc-chart-card:-webkit-full-screen .fxd-lc-card-title {
    background:    #131722;
    border-color:  #2a2e39;
}

.fxd-lc-chart-card:fullscreen .fxd-lc-card-title-text,
.fxd-lc-chart-card:-webkit-full-screen .fxd-lc-card-title-text {
    color: #d1d4dc;
}

.fxd-lc-chart-card:fullscreen .fxd-lc-card-fs-btn,
.fxd-lc-chart-card:-webkit-full-screen .fxd-lc-card-fs-btn {
    border-color: #2a2e39;
    color:        #8c94a1;
}

.fxd-lc-chart-card:fullscreen .fxd-lc-chart-outer,
.fxd-lc-chart-card:-webkit-full-screen .fxd-lc-chart-outer {
    flex:     1;
    display:  flex;
    overflow: hidden;
}

.fxd-lc-chart-card:fullscreen .fxd-lc-chart-outer img,
.fxd-lc-chart-card:-webkit-full-screen .fxd-lc-chart-outer img {
    width:      100%;
    height:     100%;
    object-fit: contain;
}

/* Hide commentary when a card is fullscreen */
.fxd-lc-chart-card:fullscreen .fxd-lc-commentary,
.fxd-lc-chart-card:-webkit-full-screen .fxd-lc-commentary {
    display: none;
}

/* ── Chart image area ────────────────────────────────────── */
.fxd-lc-chart-outer {
    width:       100%;
    line-height: 0;
    background:  #0d1117;
}

.fxd-lc-chart-outer img {
    width:   100%;
    height:  auto;
    display: block;
}

/* ── No-chart placeholder ─────────────────────────────────── */
.fxd-lc-no-chart {
    display:         flex;
    align-items:     center;
    justify-content: center;
    min-height:      300px;
    color:           #4c535e;
    font-size:       14px;
    font-family:     'Inter', system-ui, sans-serif;
    text-align:      center;
    padding:         40px 20px;
}

/* ── Commentary panel (public) ────────────────────────────── */
.fxd-lc-commentary {
    padding:     18px 20px;
    background:  #fafbfc;
    border-top:  1px solid #dde1e7;
    color:       #3c434a;
    font-size:   14px;
    line-height: 1.75;
}

.fxd-lc-commentary h3,
.fxd-lc-commentary h4    { color: #131722; margin-top: 0; }
.fxd-lc-commentary strong { color: #131722; }
.fxd-lc-commentary a     { color: #2962ff; }
.fxd-lc-commentary ul,
.fxd-lc-commentary ol    { padding-left: 20px; }

/* ── Admin: preview bar (light WP style) ──────────────────── */
.fxd-lc-preview-bar {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    padding:         10px 14px;
    background:      #f6f7f7;
    border-bottom:   1px solid #dde1e7;
    gap:             12px;
    flex-wrap:       wrap;
}

.fxd-lc-preview-bar strong {
    font-size:   13px;
    font-weight: 700;
    color:       #1d2327;
}

.fxd-lc-preview-hint {
    font-size:   12px;
    color:       #646970;
    margin-left: 8px;
}

/* ── Admin: chart image area (light) ──────────────────────── */
.fxd-lc-admin-wrap .fxd-lc-chart-outer {
    background: #1a1a2e; /* keep slightly dark as the MT5 image itself is dark */
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .fxd-lc-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   FXD Live Signals — [fxd_live_signals] shortcode styles
   ============================================================ */

/* ── Signal Cards ──────────────────────────────────────────────────────────── */
.fxd-sig-wrap { margin: 32px 0; font-family: 'Inter', system-ui, sans-serif; }
.fxd-sig-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fxd-sig-title  { font-size: 16px; font-weight: 700; color: #1d2327; display: flex; align-items: center; gap: 8px; }
.fxd-sig-updated { font-size: 12px; color: #9ca3af; }
.fxd-sig-empty { text-align: center; color: #9ca3af; padding: 40px 0; font-size: 14px; background: #f8fafc; border-radius: 12px; border: 1px dashed #e2e8f0; }
.fxd-sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.fxd-sig-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px 20px 14px; box-shadow: 0 1px 6px rgba(0,0,0,.05); transition: transform .15s, box-shadow .15s; cursor: pointer; }
.fxd-sig-card.fxd-wrap-card { cursor: default; }
.fxd-sig-card.fxd-sig-selected { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.25), 0 4px 16px rgba(99,102,241,.12); }
.fxd-sig-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.09); }
.fxd-sig-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.fxd-sig-dir { font-size: 12px; font-weight: 800; letter-spacing: .07em; padding: 3px 10px; border-radius: 5px; text-transform: uppercase; }
.sig-buy  { background: rgba(22,163,74,.12); color: #16a34a; border: 1px solid rgba(22,163,74,.25); }
.sig-sell { background: rgba(220,38,38,.10); color: #dc2626; border: 1px solid rgba(220,38,38,.2); }
.fxd-sig-pair { font-size: 14px; font-weight: 700; color: #374151; flex: 1; }
.fxd-sig-status { font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; }
.sig-active    { background: rgba(99,102,241,.1); color: #6366f1; border: 1px solid rgba(99,102,241,.25); animation: fxd-pulse 2s infinite; }
.sig-tp,.sig-tp1,.sig-tp2 { background: rgba(22,163,74,.1); color: #16a34a; border: 1px solid rgba(22,163,74,.2); }
.sig-sl        { background: rgba(220,38,38,.1); color: #dc2626; border: 1px solid rgba(220,38,38,.2); }
.sig-cancelled { background: #f1f5f9; color: #6b7280; border: 1px solid #e2e8f0; }
.fxd-sig-prices { margin-bottom: 10px; display: flex; flex-direction: column; gap: 5px; }
.fxd-sig-price-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.fxd-sig-price-row:last-child { border-bottom: none; }
.fxd-sig-price-lbl { color: #9ca3af; font-size: 12px; }
.fxd-sig-price-val { font-weight: 700; color: #1d2327; font-variant-numeric: tabular-nums; }
.sl-row .fxd-sig-price-val { color: #dc2626; }
.tp-row .fxd-sig-price-val { color: #16a34a; }
.fxd-sig-notes { display: none; }  /* hidden — shown only in wrap-up cards */
.fxd-sig-time { font-size: 11px; color: #9ca3af; text-align: right; }

/* ── Trade Status Box ──────────────────────────────────────────────────────── */
.fxd-tb-wrap { margin: 0 0 28px; font-family: 'Inter', system-ui, sans-serif; border-top: none !important; }
.fxd-tb-box  { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px 24px; color: #1d2327; position: relative; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); min-height: 120px; }
.fxd-tb-loading, .fxd-tb-empty { text-align: center; color: #9ca3af; padding: 24px 0; font-size: 14px; }
.fxd-tb-inner { position: relative; }
.fxd-tb-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.fxd-tb-header-left { display: flex; align-items: center; gap: 10px; }
.fxd-tb-dir { font-size: 13px; font-weight: 800; letter-spacing: .07em; padding: 4px 12px; border-radius: 6px; text-transform: uppercase; }
.fxd-tb-dir--buy  { background: rgba(22,163,74,.12); color: #16a34a; border: 1px solid rgba(22,163,74,.25); }
.fxd-tb-dir--sell { background: rgba(220,38,38,.10); color: #dc2626; border: 1px solid rgba(220,38,38,.2); }
.fxd-tb-pair { font-size: 15px; font-weight: 700; color: #374151; }
.fxd-tb-status { font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; }
.fxd-tb-status--active    { background: rgba(99,102,241,.1); color: #6366f1; border: 1px solid rgba(99,102,241,.25); animation: fxd-pulse 2s infinite; }
.fxd-tb-status--tp        { background: rgba(22,163,74,.1);  color: #16a34a; border: 1px solid rgba(22,163,74,.2); }
.fxd-tb-status--sl        { background: rgba(220,38,38,.1);  color: #dc2626; border: 1px solid rgba(220,38,38,.2); }
.fxd-tb-status--cancelled { background: #f1f5f9; color: #6b7280; border: 1px solid #e2e8f0; }
.fxd-tb-last-note { font-size: 12px; color: #9ca3af; margin-bottom: 12px; }
.fxd-tb-price-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 14px; }
.fxd-tb-price-item { display: flex; flex-direction: column; gap: 3px; }
.fxd-tb-price-lbl { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }
.fxd-tb-price-val { font-size: 22px; font-weight: 700; color: #1d2327; font-variant-numeric: tabular-nums; }
.fxd-tb-price-live .fxd-tb-price-lbl { color: #6366f1; }
.fxd-tb-price-live .fxd-tb-price-val { color: #6366f1; }
.fxd-tb-pips { font-size: 22px; font-weight: 700; }
.fxd-tb-pos { color: #16a34a !important; }
.fxd-tb-neg { color: #dc2626 !important; }
.fxd-tb-levels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fxd-tb-level { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.fxd-tb-level--sl { background: rgba(220,38,38,.08); color: #dc2626; border: 1px solid rgba(220,38,38,.15); }
.fxd-tb-level--tp { background: rgba(22,163,74,.08);  color: #16a34a; border: 1px solid rgba(22,163,74,.15); }
.fxd-tb-notes { display: none; }
.fxd-tb-calc { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.fxd-tb-calc-title { font-size: 12px; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.fxd-tb-calc-label { font-size: 13px; color: #374151; display: block; margin-bottom: 8px; }
.fxd-tb-lot-slider { width: 100%; cursor: pointer; accent-color: #6366f1; margin-bottom: 10px; }
.fxd-tb-calc-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fxd-tb-pnl { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: #1d2327; }
.fxd-tb-updated { font-size: 11px; color: #9ca3af; text-align: right; margin-top: 8px; }

@keyframes fxd-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}

/* ── Signal count filter buttons ──────────────────────────────────────────── */
.fxd-sig-filter { display: flex; gap: 5px; align-items: center; }
.fxd-sig-filter-btn { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: 3px 11px; font-size: 12px; font-weight: 600; cursor: pointer; color: #64748b; transition: all .15s; font-family: inherit; }
.fxd-sig-filter-btn:hover { background: #e2e8f0; }
.fxd-sig-filter-btn.active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }

/* ── Hit-row highlighting ──────────────────────────────────────────────────── */
.fxd-sig-price-row.hit-row { border-radius: 6px; padding: 5px 8px; margin: 1px -8px; }
.fxd-sig-price-row.hit-row.tp-row { background: rgba(22,163,74,.14); border-bottom: none; }
.fxd-sig-price-row.hit-row.sl-row { background: rgba(220,38,38,.12); border-bottom: none; }
.fxd-sig-price-row.hit-row .fxd-sig-price-lbl { font-weight: 700; }
.fxd-sig-price-row.hit-row.tp-row .fxd-sig-price-lbl,
.fxd-sig-price-row.hit-row.tp-row .fxd-sig-price-val { color: #16a34a; }
.fxd-sig-price-row.hit-row.sl-row .fxd-sig-price-lbl,
.fxd-sig-price-row.hit-row.sl-row .fxd-sig-price-val { color: #dc2626; }

/* ── Daily wrap-up card ────────────────────────────────────────────────────── */
.fxd-sig-card.fxd-wrap-card { border-color: #c7d2fe; background: #fafbff; grid-column: span 2; }
@media (max-width: 600px) { .fxd-sig-card.fxd-wrap-card { grid-column: span 1; } }
.fxd-wrap-card .fxd-sig-card-top { background: linear-gradient(135deg,#1e3a5f 0%,#2d5a8e 100%); margin: -18px -20px 14px; padding: 12px 16px; border-radius: 11px 11px 0 0; }
.fxd-wrap-card .fxd-sig-dir { background: #f59e0b; color: #1a1a1a; border: none; font-size: 11px; }
.fxd-wrap-card .fxd-sig-pair { color: #fff; }
.fxd-wrap-card .fxd-sig-status { display: none; }
.fxd-sig-wrap-body { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.fxd-sig-wrap-stat { display: flex; justify-content: space-between; align-items: center; padding: 5px 8px; border-radius: 6px; font-size: 13px; background: #f8fafc; }
.fxd-sig-wrap-stat.pos { background: rgba(22,163,74,.08); }
.fxd-sig-wrap-stat.neg { background: rgba(220,38,38,.07); }
.fxd-sig-wrap-stat .ws-label { color: #6b7280; font-size: 12px; }
.fxd-sig-wrap-stat .ws-value { font-weight: 700; color: #1d2327; font-variant-numeric: tabular-nums; }
.fxd-sig-wrap-stat.pos .ws-value { color: #16a34a; }
.fxd-sig-wrap-stat.neg .ws-value { color: #dc2626; }
.fxd-sig-wrap-summary { font-size: 12px; color: #6b7280; padding: 6px 0 0; border-top: 1px dashed #e2e8f0; margin-top: 4px; }
/* ── Signal history link ───────────────────────────────────────────────────── */
.fxd-sig-history-btn { display: inline-block; padding: 9px 22px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; font-weight: 600; color: #1e3a5f; text-decoration: none; transition: all .15s; }
.fxd-sig-history-btn:hover { background: #1e3a5f; color: #fff; border-color: #1e3a5f; text-decoration: none; }
/* ── Trade box preview bar ─────────────────────────────────────────────────── */
.fxd-tb-preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f0f4ff; border: 1px solid #c7d2fe; border-radius: 8px; padding: 7px 14px; margin-bottom: 14px; font-size: 12px; color: #1e3a5f; font-weight: 600; }
.fxd-tb-back-btn { background: #1e3a5f; color: #fff; border: none; border-radius: 6px; padding: 4px 12px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; flex-shrink: 0; }
.fxd-tb-back-btn:hover { background: #16294a; }

