/* Main */
.muted-sm {
	color: #8a8f95;
	font-size: .9rem;
}


/* Trade ticket */
.trade-ticket {
	border-radius: 12px;
	padding: 1.1rem;
	background: linear-gradient(180deg, rgba(7, 119, 93, 0.03), rgba(12, 204, 157, 0.02));
}

.btn-buy {
	background: linear-gradient(180deg, #16a34a, #07775D);
	color: #fff;
	border: none;
}

.btn-sell {
	background: transparent;
	border: 1px solid rgba(220, 53, 69, 0.14);
	color: #dc3545;
}

.table-compact td,
.table-compact th {
	padding: .55rem .6rem;
	vertical-align: middle;
}

.instrument-item {
	cursor: pointer;
	transition: background .12s ease;
	border-radius: 8px;
	padding: .55rem;
}

.instrument-item:hover {
	background: rgba(7, 119, 93, 0.04);
}

.search-input {
	border-radius: 999px;
	padding-left: 1rem;
	padding-right: 1rem;
}

.quote-value {
	font-weight: 700;
	font-size: 1.25rem;
}

/* responsive */
@media (max-width: 991px) {
	.sidebar {
		position: relative;
		width: 100%;
		height: auto;
		display: flex;
		gap: .6rem;
		padding: .6rem;
	}

	.main {
		margin-left: 0;
		padding: 16px;
	}
}

/* small hover lift for top cards */
.card-hover {
	transition: transform .18s ease, box-shadow .18s ease;
}

.card-hover:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 36px rgba(7, 119, 93, 0.12);
}

/* Trade ticket — refreshed styling */
.trade-card {
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(7, 119, 93, 0.03), rgba(255, 255, 255, 0.6));
	padding: 22px;
	box-shadow: 0 8px 24px rgba(7, 119, 93, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(7, 119, 93, 0.06);
}

/* Heading */
.trade-card .title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0;
}

.trade-card .subtitle {
	color: #6b7280;
	margin-top: 4px;
	font-size: .95rem;
}

/* Symbol input with search button */
.symbol-input .form-control {
	border-radius: 12px 0 0 12px;
	border-right: 0;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	padding: 18px 14px;
	font-weight: 600;
	font-size: 1.05rem;
}

.symbol-input .btn-search {
	border-radius: 0 12px 12px 0;
	border-left: 0;
	padding: 0 14px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: none;
}

/* Segmented buy/sell control */
.segment {
	display: inline-flex;
	background: rgba(15, 23, 42, 0.04);
	border-radius: 12px;
	padding: 4px;
	gap: 6px;
}

.segment button {
	border-radius: 10px;
	min-width: 88px;
	padding: 10px 14px;
	border: none;
	font-weight: 700;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
}

.segment button:focus {
	outline: none;
	box-shadow: 0 4px 14px rgba(7, 119, 93, 0.14);
}

/* selected states */
.segment .buy-on {
	background: #00A239;
	color: #fff;
	box-shadow: 0 8px 22px rgba(7, 119, 93, 0.14);
}

.segment .sell-on {
	background: linear-gradient(180deg, #ff7a7a, #dc3545);
	color: #fff;
	box-shadow: 0 8px 22px rgba(220, 53, 69, 0.12);
}

/* inputs */
.trade-grid .form-control {
	border-radius: 12px;
	padding: 14px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 8px rgba(15, 23, 42, 0.02);
}

.trade-grid .form-select {
	border-radius: 12px;
	padding: 12px;
}

/* subtle divider */
.trade-card hr.soft {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.02));
	margin: 18px 0;
}

/* cost and footer CTA */
.estimate {
	font-weight: 700;
	font-size: 1.25rem;
	color: #0f1724;
}

.estimate-sub {
	color: #6b7280;
	font-size: .92rem;
}

.cta-row .btn {
	min-width: 110px;
	padding: 12px 18px;
	border-radius: 12px;
	font-weight: 700;
	box-shadow: 0 8px 22px rgba(7, 119, 93, 0.08);
}

/* Buy btn */
.btn-buy-lg {
	background: #00A239;
	color: white;
	border: none;
}

/* Sell btn (muted outline) */
.btn-sell-lg {
	background: transparent;
	border: 1px solid rgba(220, 53, 69, 0.12);
	color: #dc3545;
}

/* Preview button */
.btn-preview {
	background: transparent;
	border: 1px solid rgba(15, 23, 42, 0.06);
	color: #334155;
}

/* Responsive tweaks */
@media (max-width: 900px) {
	.segment button {
		min-width: 72px;
		padding: 8px 10px;
	}

	.symbol-input .form-control {
		font-size: .98rem;
		padding: 12px 12px;
	}
}
