.fxs-grid {
	display: grid;
	grid-template-columns: repeat(var(--fxs-columns, 2), 1fr);
	gap: 18px;
	margin: 20px 0;
	direction: rtl;
}

@media (max-width: 780px) {
	.fxs-grid {
		grid-template-columns: repeat(1, 1fr) !important;
	}
}

.fxs-card {
	background: #1e2035;
	border-radius: 16px;
	padding: 18px 20px;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Vazirmatn, sans-serif;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
	position: relative;
}

.fxs-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.fxs-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	background: rgba(255,255,255,.06);
}

.fxs-status-target .fxs-badge { color: #2ecc71; }
.fxs-status-stop .fxs-badge { color: #e74c3c; }
.fxs-status-live .fxs-badge { color: #3498db; }
.fxs-status-pending .fxs-badge { color: #f1c40f; }
.fxs-status-closed .fxs-badge { color: #8e44ad; }

.fxs-status-live .fxs-badge-icon,
.fxs-status-pending .fxs-badge-icon {
	animation: fxs-pulse-opacity 1.4s infinite;
}
@keyframes fxs-pulse-opacity {
	0% { opacity: .3; }
	50% { opacity: 1; }
	100% { opacity: .3; }
}

.fxs-author {
	display: flex;
	align-items: center;
	gap: 8px;
}
.fxs-author img {
	border-radius: 50%;
	width: 28px;
	height: 28px;
}
.fxs-author-name {
	font-size: 12px;
	color: #a9abc4;
}

.fxs-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.fxs-symbol-block {
	display: flex;
	align-items: baseline;
	gap: 10px;
}
.fxs-symbol {
	font-size: 20px;
	font-weight: 800;
}
.fxs-current-price {
	font-size: 18px;
	font-weight: 700;
	color: #4a8cff;
	transition: color .3s ease;
}
.fxs-direction {
	font-weight: 700;
	font-size: 15px;
}
.fxs-direction-buy { color: #2ecc71; }
.fxs-direction-sell { color: #e74c3c; }

.fxs-date {
	font-size: 12px;
	color: #7d7f9a;
	margin: 4px 0 10px;
}

.fxs-pending-note {
	font-size: 12px;
	color: #f1c40f;
	background: rgba(241,196,15,.08);
	border: 1px dashed rgba(241,196,15,.4);
	border-radius: 8px;
	padding: 6px 10px;
	margin-bottom: 16px;
}

/* ---- Bar ---- */
.fxs-bar-wrap {
	position: relative;
	height: 96px;
	margin: 34px 6px 10px;
}
.fxs-bar-line {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	background: rgba(255,255,255,.15);
	transform: translateY(-50%);
}

.fxs-point {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 2;
}
.fxs-point .fxs-dot {
	position: static;
	transform: none;
}
.fxs-point-label {
	position: absolute;
	font-size: 10px;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	font-weight: 600;
}
.fxs-stagger-top .fxs-point-label {
	bottom: 22px;
}
.fxs-stagger-bottom .fxs-point-label {
	top: 22px;
}

.fxs-color-stop { color: #e74c3c; }
.fxs-color-entry { color: #fff; }
.fxs-color-tp { color: #2ecc71; }
.fxs-color-tp-hit { color: #27ae60; opacity: .6; text-decoration: line-through; }

.fxs-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid #1e2035;
	display: block;
}
.fxs-dot-stop { background: #e74c3c; }
.fxs-dot-tp { background: #2ecc71; }
.fxs-dot-tp-hit { background: #27ae60; opacity: .6; }
.fxs-dot-entry { background: #fff; width: 14px; height: 14px; }

.fxs-current-marker {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 3;
	transition: left 1.2s ease;
}
.fxs-dot-current {
	background: #4a8cff;
	width: 14px;
	height: 14px;
	box-shadow: 0 0 0 0 rgba(74,140,255,.6);
}
.fxs-pulse {
	animation: fxs-dot-pulse 1.4s infinite;
}
@keyframes fxs-dot-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(74,140,255,.55); }
	70%  { box-shadow: 0 0 0 8px rgba(74,140,255,0); }
	100% { box-shadow: 0 0 0 0 rgba(74,140,255,0); }
}

.fxs-pnl-summary {
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	margin-top: 6px;
}
.fxs-pnl-positive { color: #2ecc71; }
.fxs-pnl-negative { color: #e74c3c; }
.fxs-hidden { display: none; }

.fxs-empty {
	color: #888;
	text-align: center;
	padding: 30px;
}
