/* VisionPay skin — loaded last. Does not change GTL Radius. */

html.visionpay-theme {
	--vp-ink: #0b1220;
	--vp-panel: #111827;
	--vp-sidebar: #0b1220;
	--vp-line: rgba(148, 163, 184, 0.16);
	--vp-violet: #6366f1;
	--vp-cyan: #67e8f9;
	--vp-text: #e8eef7;
	font-feature-settings: "tnum" 0;
}

html.visionpay-theme.color-sidebar .sidebar-wrapper {
	background: var(--vp-sidebar) !important;
	background-image: none !important;
	border-right: 1px solid var(--vp-line);
}

html.visionpay-theme .sidebar-header {
	border-bottom: 1px solid var(--vp-line) !important;
	background: transparent !important;
}

html.visionpay-theme .vp-brand {
	margin: 0;
	font-family: "Segoe UI", Roboto, system-ui, sans-serif;
	font-weight: 650;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

html.visionpay-theme .vp-brand .vp-a { color: #f1f5f9; }
html.visionpay-theme .vp-brand .vp-b { color: #94a3b8; font-weight: 500; }

html.visionpay-theme .sidebar-wrapper .metismenu a,
html.visionpay-theme .sidebar-wrapper .menu-label,
html.visionpay-theme .sidebar-wrapper .menu-title {
	color: #c9d4e8 !important;
}

html.visionpay-theme .sidebar-wrapper .metismenu a:hover,
html.visionpay-theme .sidebar-wrapper .metismenu li.mm-active > a,
html.visionpay-theme .sidebar-wrapper .metismenu a.active {
	color: #fff !important;
	background: rgba(99, 102, 241, 0.18) !important;
}

html.visionpay-theme .search-bar { display: none !important; }

html.visionpay-theme .topbar {
	background: #0e1524 !important;
	border-bottom: 1px solid var(--vp-line) !important;
	box-shadow: none !important;
}

html.visionpay-theme .topbar .user-name,
html.visionpay-theme .mobile-toggle-menu,
html.visionpay-theme .search-show {
	color: #e8eef7 !important;
}

html.visionpay-theme.dark-theme .page-wrapper,
html.visionpay-theme.dark-theme .page-content,
html.visionpay-theme.dark-theme .wrapper,
html.visionpay-theme.dark-theme body {
	background: var(--vp-ink) !important;
}

html.visionpay-theme.dark-theme .card,
html.visionpay-theme.dark-theme .modal-content {
	background: var(--vp-panel) !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
}

html.visionpay-theme .btn-primary,
html.visionpay-theme .btn-info {
	background-color: #4f46e5 !important;
	border-color: #4f46e5 !important;
	color: #fff !important;
}

html.visionpay-theme .btn-primary:hover,
html.visionpay-theme .btn-info:hover {
	background-color: #4338ca !important;
	border-color: #4338ca !important;
}

html.visionpay-theme .btn-success {
	background-color: #0d9488 !important;
	border-color: #0d9488 !important;
}

html.visionpay-theme a.gtl-user-link,
html.visionpay-theme a.gtl-inv-link,
html.visionpay-theme a.package-link,
html.visionpay-theme a.router-view-link {
	color: var(--vp-cyan) !important;
}

html.visionpay-theme.dark-theme .page-footer {
	background: #070b14 !important;
	border-top: 1px solid var(--vp-line);
	color: #94a3b8 !important;
}

html.visionpay-theme:not(.dark-theme) .page-wrapper,
html.visionpay-theme:not(.dark-theme) .page-content {
	background: #f8fafc !important;
}

html.visionpay-theme:not(.dark-theme) .topbar {
	background: #fff !important;
	border-bottom: 1px solid #e2e8f0 !important;
}

html.visionpay-theme:not(.dark-theme) .topbar .user-name,
html.visionpay-theme:not(.dark-theme) .mobile-toggle-menu {
	color: #1e1b4b !important;
}

/* Login */
body.vp-login {
	min-height: 100vh;
	margin: 0;
	background: #0b1220;
	font-family: "Segoe UI", Roboto, system-ui, sans-serif;
	color: #e8eef7;
}

body.vp-login .vp-login-shell {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
}

body.vp-login .vp-login-card {
	width: 100%;
	max-width: 400px;
	background: #111827;
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 12px;
	padding: 2rem 1.75rem 1.5rem;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

body.vp-login .vp-login-brand {
	text-align: center;
	margin-bottom: 1.5rem;
}

body.vp-login .vp-login-brand h1 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 650;
	letter-spacing: -0.03em;
	color: #f8fafc;
}

body.vp-login .vp-login-brand h1 span:first-child { color: #f8fafc; }
body.vp-login .vp-login-brand h1 span:last-child { color: #94a3b8; font-weight: 500; }

body.vp-login .vp-login-brand p {
	margin: 0.4rem 0 0;
	color: #94a3b8;
	font-size: 0.9rem;
}

body.vp-login .form-label { color: #cbd5e1; }
body.vp-login .form-control,
body.vp-login .input-group-text {
	background: #0b1220;
	border-color: rgba(148, 163, 184, 0.22);
	color: #e8eef7;
}

body.vp-login .form-control:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.2);
	background: #0b1220;
	color: #fff;
}

body.vp-login .btn-vp {
	background: #4f46e5;
	border: 0;
	color: #fff;
	padding: 0.65rem 1rem;
	border-radius: 8px;
	font-weight: 600;
}

body.vp-login .btn-vp:hover { background: #4338ca; color: #fff; }

body.vp-login a { color: #a5b4fc; }
body.vp-login .text-muted-vp { color: #94a3b8; }

/* Dashboard */
.vp-dash { max-width: 1280px; }
.vp-dash-hero { margin-bottom: 1.5rem; }
.vp-dash-hero h1 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.vp-kicker {
	margin: 0 0 0.2rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #22d3ee;
}
.vp-dash-sub { margin: 0.25rem 0 0; color: #94a3b8; font-size: 0.9rem; }

.vp-ops {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1.25rem;
}
@media (max-width: 991px) {
	.vp-ops { grid-template-columns: 1fr; }
}
.vp-metric-card {
	background: #101827;
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 10px;
	padding: 0.85rem 1rem 0.5rem;
}
.vp-metric-card h2 {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
	margin: 0 0 0.35rem;
}
a.vp-metric-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0;
	border-top: 1px solid rgba(148, 163, 184, 0.1);
	text-decoration: none !important;
	color: #cbd5e1;
}
a.vp-metric-row:first-of-type { border-top: 0; }
a.vp-metric-row:hover { color: #fff; }
a.vp-metric-row span { font-size: 0.88rem; }
a.vp-metric-row strong {
	font-size: 1.05rem;
	font-variant-numeric: tabular-nums;
	color: #f8fafc;
}
a.vp-metric-row.is-warn strong { color: #fbbf24; }
.vp-ex-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.65rem;
	margin-bottom: 0.85rem;
}
@media (max-width: 767px) {
	.vp-ex-grid { grid-template-columns: 1fr 1fr; }
}
a.vp-ex {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 0.7rem 0.8rem;
	border-radius: 8px;
	background: rgba(15, 23, 42, 0.5);
	border: 1px solid rgba(148, 163, 184, 0.14);
	text-decoration: none !important;
	color: #94a3b8;
}
a.vp-ex:hover { border-color: rgba(148, 163, 184, 0.35); color: #94a3b8; }
a.vp-ex span { font-size: 0.75rem; }
a.vp-ex strong {
	font-size: 1.35rem;
	font-variant-numeric: tabular-nums;
	color: #f1f5f9;
}
.vp-down-table-wrap { margin-top: 0.4rem; }
.vp-table a { color: #e2e8f0; text-decoration: none; }
.vp-table a:hover { color: #fff; text-decoration: underline; }

.vp-split {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 1rem;
	margin-bottom: 1rem;
}
@media (max-width: 991px) {
	.vp-split { grid-template-columns: 1fr; }
}
.vp-panel {
	background: #111827;
	border: 1px solid rgba(148, 163, 184, 0.14);
	border-radius: 10px;
	padding: 1rem 1.1rem 1.1rem;
	margin-bottom: 1rem;
}
.vp-panel-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}
.vp-panel-head h2 {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 650;
}
.vp-panel-head span { font-size: 0.75rem; color: #94a3b8; }
.vp-chart { position: relative; height: 280px; }
.vp-table { width: 100%; font-size: 0.82rem; }
.vp-table th {
	font-weight: 600;
	color: #94a3b8;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	padding: 0.4rem 0.25rem;
}
.vp-table td {
	padding: 0.45rem 0.25rem;
	border-bottom: 1px solid rgba(255,255,255,0.05);
}
.vp-banner {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	background: rgba(245, 158, 11, 0.12);
	border: 1px solid rgba(245, 158, 11, 0.35);
}
.vp-banner i { font-size: 1.4rem; color: #fbbf24; }

html.visionpay-theme:not(.dark-theme) a.vp-kpi,
html.visionpay-theme:not(.dark-theme) .vp-panel,
html.visionpay-theme:not(.dark-theme) .vp-metric-card {
	background: #fff;
	border-color: #e2e8f0;
}
html.visionpay-theme:not(.dark-theme) a.vp-metric-row { color: #334155; border-color: #f1f5f9; }
html.visionpay-theme:not(.dark-theme) a.vp-metric-row strong { color: #0f172a; }
html.visionpay-theme:not(.dark-theme) a.vp-ex { background: #f8fafc; border-color: #e2e8f0; }
html.visionpay-theme:not(.dark-theme) a.vp-ex strong { color: #0f172a; }
html.visionpay-theme:not(.dark-theme) .vp-kpi-value { color: #1e1b4b; }
html.visionpay-theme:not(.dark-theme) .vp-table th {
	color: #64748b;
	border-color: #e9e4ff;
}
html.visionpay-theme:not(.dark-theme) .vp-table td { border-color: #f1f5f9; }
