/* Modern My Account – light navigation matching content */

.wcts-modern-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-navigation {
	background: #fff !important;
	border-radius: 16px !important;
	padding: 12px !important;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06) !important;
	border: 1px solid #e2e8f0 !important;
}

.wcts-modern-account .woocommerce-MyAccount-navigation ul,
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wcts-modern-account .woocommerce-MyAccount-navigation li,
body.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0 0 4px !important;
}

.wcts-modern-account .woocommerce-MyAccount-navigation a,
body.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block !important;
	padding: 12px 16px !important;
	color: #64748b !important;
	text-decoration: none !important;
	border-radius: 10px !important;
	font-weight: 500 !important;
	border: none !important;
	background: transparent !important;
	transition: all 0.15s ease !important;
}

.wcts-modern-account .woocommerce-MyAccount-navigation a:hover,
.wcts-modern-account .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: #f1f5f9 !important;
	color: #0f172a !important;
}

.wcts-modern-account .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce-MyAccount-content {
	background: #fff !important;
	border-radius: 16px !important;
	padding: 28px 32px !important;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06) !important;
	border: 1px solid #e2e8f0 !important;
}

/* Hide default WooCommerce dashboard greeting / description (dashboard only) */
body.wcts-is-dashboard .woocommerce-MyAccount-content > p {
	display: none !important;
}

/* Keep our modern dashboard muted text visible */
.wcts-dashboard p.wcts-muted {
	display: block !important;
}

/* Dashboard */
.wcts-dashboard .wcts-dash-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 28px;
}

.wcts-dashboard h2 {
	margin: 0 0 6px;
	font-size: 1.6rem;
	color: #0f172a;
}

.wcts-muted {
	color: #64748b;
	margin: 0;
}

.wcts-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin-bottom: 32px;
}

.wcts-stat-card {
	background: linear-gradient(145deg, #f8fafc, #f1f5f9);
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 18px 20px;
}

.wcts-stat-label {
	display: block;
	font-size: 0.8rem;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
}

.wcts-stat-value {
	font-size: 1.75rem;
	font-weight: 700;
	color: #0f172a;
}

.wcts-terminal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.wcts-terminal-card {
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 18px;
	background: #fff;
	transition: box-shadow 0.15s;
}

.wcts-terminal-card:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.wcts-tc-head {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.wcts-terminal-card h4 {
	margin: 0 0 14px;
	font-size: 1.05rem;
}

/* Badges */
.wcts-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.wcts-badge.platform {
	background: #dbeafe;
	color: #1d4ed8;
}

.wcts-badge.status {
	background: #dcfce7;
	color: #15803d;
}

/* Buttons */
.wcts-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 18px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.9rem;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s ease;
	line-height: 1.2;
}

.wcts-btn-primary {
	background: #2563eb;
	color: #fff !important;
}

.wcts-btn-primary:hover {
	background: #1d4ed8;
	color: #fff !important;
}

.wcts-btn-outline {
	background: transparent;
	border: 1px solid #cbd5e1;
	color: #334155 !important;
}

.wcts-btn-outline:hover {
	background: #f1f5f9;
}

.wcts-btn-danger {
	background: #fef2f2;
	color: #b91c1c !important;
	border: 1px solid #fecaca;
}

.wcts-btn-danger:hover {
	background: #fee2e2;
}

.wcts-btn-sm {
	padding: 7px 12px;
	font-size: 0.8rem;
}

/* Terminals page */
.wcts-page-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 24px;
}

.wcts-terminal-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	margin-bottom: 12px;
	background: #fff;
	flex-wrap: wrap;
}

.wcts-tr-title {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 6px;
}

.wcts-tr-meta {
	display: flex;
	gap: 16px;
	font-size: 0.85rem;
	color: #64748b;
}

.wcts-tr-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wcts-terminal-controls {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
	width: 100%;
	margin-top: 12px;
}

.wcts-control-panel {
	min-width: 0;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 16px;
	background: #f8fafc;
}

.wcts-control-panel h4 {
	margin: 0 0 12px;
	color: #0f172a;
}

.wcts-account-form,
.wcts-ea-form {
	display: grid;
	gap: 10px;
}

.wcts-account-form label,
.wcts-ea-form label {
	display: grid;
	gap: 5px;
	font-size: 0.84rem;
	font-weight: 600;
	color: #334155;
}

.wcts-account-form input,
.wcts-ea-form input,
.wcts-ea-form select {
	width: 100%;
	min-width: 0;
	padding: 9px 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	font: inherit;
}

.wcts-field-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 100px;
	gap: 10px;
}

.wcts-account-message,
.wcts-ea-current {
	margin: 2px 0 0;
	color: #64748b;
	font-size: 0.82rem;
}

.wcts-trading-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
}

.wcts-trading-state {
	color: #64748b;
	font-size: 0.84rem;
}

.wcts-account-state {
	font-weight: 600;
}

.wcts-empty {
	text-align: center;
	padding: 48px 24px;
	color: #64748b;
}

/* Modal */
.wcts-modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.wcts-modal-content {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 440px;
	padding: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.wcts-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.wcts-modal-header h3 {
	margin: 0;
}

.wcts-modal-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #64748b;
	line-height: 1;
}

.wcts-form-row {
	margin-bottom: 16px;
}

.wcts-form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.9rem;
	color: #334155;
}

.wcts-form-row input,
.wcts-form-row select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-size: 0.95rem;
}

.wcts-form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}

.wcts-msg {
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 16px;
}

.wcts-msg.success {
	background: #dcfce7;
	color: #166534;
}

.wcts-msg.error {
	background: #fef2f2;
	color: #b91c1c;
}

@media (max-width: 768px) {
	.wcts-dashboard .wcts-dash-header,
	.wcts-page-header {
		flex-direction: column;
	}
	.wcts-terminal-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

