:root {
	--bg: #0f0f12;
	--panel: #16161b;
	--panel-2: #1c1c22;
	--text: #e5e7eb;
	--muted: #9ca3af;
	--purple: #7c3aed;
	--red: #f43f5e;
	--border: #24242c;
	--success: #10b981;
	--shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Poppins', 'Space Grotesk', sans-serif;
	background: radial-gradient(circle at 20% 20%, rgba(124, 58, 237, 0.08), transparent 25%), radial-gradient(circle at 80% 10%, rgba(244, 63, 94, 0.08), transparent 22%), var(--bg);
	color: var(--text);
	-webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
body.menu-open::before {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(6, 6, 8, 0.65);
	backdrop-filter: blur(4px);
	z-index: 10;
}

a { color: inherit; text-decoration: none; }

.theme-dark {
	min-height: 100vh;
}

.page-shell {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px 48px;
}

.page-shell.page-shell-full {
	max-width: 100%;
	padding: 0 32px 48px;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 12;
	padding: 18px 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(244,63,94,0.08)), linear-gradient(180deg, rgba(15, 15, 18, 0.92) 0%, rgba(15, 15, 18, 0.7) 100%);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 16px 40px rgba(0,0,0,0.32);
	gap: 14px;
	border-radius: 18px;
	margin-top: 12px;
	padding: 12px 16px;
}

.brand {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	padding: 4px 0;
}

.brand-mark {
	width: 58px;
	height: 58px;
	border-radius: 18px;
	background: linear-gradient(135deg, var(--purple), var(--red));
	display: grid;
	place-items: center;
	font-weight: 800;
	letter-spacing: 1px;
	color: #fff;
	box-shadow: 0 12px 28px rgba(0,0,0,0.3), 0 6px 14px rgba(124,58,237,0.22);
	border: 2px solid rgba(255,255,255,0.06);
}

.brand-name {
	font-weight: 700;
	font-size: 16px;
}

.brand-logo {
	height: 72px;
	width: 72px;
	max-width: 200px;
	object-fit: contain;
	filter: drop-shadow(0 10px 24px rgba(0,0,0,0.3));
	border-radius: 20px;
	background: var(--panel);
	padding: 6px;
	border: 2px solid rgba(255,255,255,0.08);
}

.brand-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(124, 58, 237, 0.12);
	color: var(--purple);
	font-size: 12px;
	margin-top: 2px;
}

.nav {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
	padding: 8px 10px;
	border-radius: 26px;
	border: 1px solid rgba(255,255,255,0.08);
	overflow: visible;
	scrollbar-width: thin;
	scrollbar-color: var(--border) transparent;
	box-shadow: 0 10px 24px rgba(0,0,0,0.28);
	flex-wrap: wrap;
}

.nav a {
	color: var(--muted);
	font-weight: 600;
	font-size: 12px;
	padding: 7px 10px;
	border-radius: 999px;
	transition: background 0.2s ease, color 0.2s ease;
}
.nav a:hover { color: #fff; background: rgba(124, 58, 237, 0.16); }
.nav::-webkit-scrollbar { height: 6px; }
.nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.nav-single {
	color: var(--muted);
	font-weight: 700;
	font-size: 12px;
	padding: 7px 10px;
	border-radius: 999px;
	transition: background 0.2s ease, color 0.2s ease;
}

.nav-single:hover { color: #fff; background: rgba(124, 58, 237, 0.16); }

.nav-group { position: relative; }
.nav-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	padding: 7px 10px;
	border-radius: 999px;
	color: var(--muted);
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.nav-label:hover { color: #fff; background: rgba(124, 58, 237, 0.16); }

.nav-menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 190px;
	background: var(--panel-2);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 8px;
	flex-direction: column;
	gap: 6px;
	z-index: 20;
	box-shadow: var(--shadow);
}

.nav-menu a { width: 100%; }

.nav-group.active .nav-menu { display: flex; }
.nav.open {
	flex-direction: column;
	align-items: flex-start;
}
.nav.open .nav-menu {
	display: none;
	position: static;
	min-width: 100%;
	box-shadow: none;
	border: 0;
	padding: 6px 0;
}
.nav.open .nav-group { width: 100%; }
.nav.open .nav-group.active .nav-menu { display: flex; }

.actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: 12px;
}

.primary, .ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	padding: 10px 18px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary {
	background: linear-gradient(135deg, var(--purple), var(--red));
	color: #fff;
	box-shadow: var(--shadow);
}

.primary:hover { transform: translateY(-1px) scale(1.01); }

.ghost {
	border-color: var(--border);
	background: var(--panel);
	color: var(--text);
}

.ghost:hover { border-color: var(--purple); color: #fff; }

.burger {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: transparent;
	border: 0;
	padding: 6px;
	cursor: pointer;
}

.burger span {
	width: 22px;
	height: 2px;
	background: var(--text);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

#menuToggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#menuToggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#menuToggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

#app-loader {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(15, 15, 18, 0.85);
	backdrop-filter: blur(6px);
	z-index: 9999;
	gap: 8px;
	text-align: center;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}
#app-loader.hide {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
#app-loader img {
	height: 68px;
	width: 68px;
	object-fit: contain;
	filter: drop-shadow(0 10px 24px rgba(0,0,0,0.3));
}
#app-loader .brand-mark {
	width: 56px;
	height: 56px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--purple), var(--red));
	border-radius: 18px;
	font-weight: 800;
	color: #fff;
}
#app-loader .spinner {
	width: 34px;
	height: 34px;
	border: 3px solid rgba(255,255,255,0.15);
	border-top-color: var(--red);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.content {
	padding-top: 10px;
}

.section {
	margin-top: 32px;
}

.hero {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 24px;
	align-items: center;
}

.hero-text h1 {
	font-size: 36px;
	margin: 10px 0;
}

.subtitle {
	color: var(--muted);
	max-width: 520px;
	line-height: 1.6;
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--purple);
	font-size: 12px;
	margin: 0;
}

.pill-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.pill {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--panel-2);
	border: 1px solid var(--border);
	color: var(--muted);
	font-size: 12px;
}

.pill.success { color: var(--success); border-color: rgba(16, 185, 129, 0.4); }
.pill.accent { color: var(--red); border-color: rgba(244, 63, 94, 0.4); }

.hero-card, .card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 18px;
	box-shadow: var(--shadow);
}

.card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.badge {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(124, 58, 237, 0.14);
	color: var(--purple);
	font-size: 12px;
}

.badge.danger { background: rgba(244, 63, 94, 0.14); color: var(--red); }
.badge.success { background: rgba(16, 185, 129, 0.14); color: var(--success); }
.badge.ghost { background: var(--panel-2); color: var(--text); }

.muted { color: var(--muted); }
.small { font-size: 13px; }

.value {
	font-size: 28px;
	margin: 4px 0;
}

.progress {
	margin: 14px 0;
	height: 8px;
	background: var(--panel-2);
	border-radius: 999px;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	background: linear-gradient(135deg, var(--purple), var(--red));
}

.mini-stats {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	padding: 0;
	margin: 0;
	gap: 12px;
}

.mini-stats li {
	background: var(--panel-2);
	border-radius: 12px;
	padding: 10px 12px;
	border: 1px solid var(--border);
}

.mini-stats strong { display: block; margin-top: 4px; }

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.footer {
	margin-top: 32px;
	padding-top: 18px;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--muted);
}

.footer-left { display: flex; align-items: center; gap: 10px; }

.footer-title { margin: 0; color: var(--text); font-weight: 600; }

.footer-right { display: flex; gap: 12px; }

.impersonation-banner {
	background: linear-gradient(90deg, rgba(244, 63, 94, 0.2), rgba(124, 58, 237, 0.2));
	border: 1px solid rgba(244, 63, 94, 0.4);
	padding: 10px 12px;
	border-radius: 10px;
	margin: 8px 0;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.impersonation-banner a { color: #fff; text-decoration: underline; }

.auth {
	display: grid;
	place-items: center;
	min-height: 60vh;
}

.card-auth {
	max-width: 640px;
	width: 100%;
	padding: 2.5rem;
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
	border-radius: 26px;
	background: linear-gradient(145deg, rgba(19, 9, 32, 0.95), rgba(30, 12, 48, 0.98));
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1rem;
}

.field-full {
	width: 100%;
}

.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.field label { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
	background: var(--panel-2);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 12px;
	color: var(--text);
}
.field textarea {
	resize: vertical;
	min-height: 130px;
}
.field input.is-loading {
	background-image: linear-gradient(90deg, rgba(124,58,237,0.25), rgba(244,63,94,0.25));
	background-size: 200% 100%;
	animation: cepLoading 1.2s ease infinite;
}

.field input:focus, .field select:focus, .field textarea:focus {
	outline: 1px solid var(--purple);
	border-color: var(--purple);
}

/* select universal */
select, .field select, .nav select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: var(--panel-2) url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23e5e7eb' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
	padding-right: 36px;
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text);
	cursor: pointer;
}
select:hover { border-color: var(--purple); }
select:focus { outline: 1px solid var(--purple); }

.full { width: 100%; }

.terms-card {
	margin-top: 1.5rem;
	padding: 1.25rem;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 20px 40px rgba(8, 4, 20, 0.45);
}
.terms-text {
	max-height: 180px;
	overflow-y: auto;
	background: rgba(10, 5, 20, 0.65);
	padding: 0.85rem;
	border-radius: 12px;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #e2dcf8;
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.terms-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 1rem;
	font-size: 0.95rem;
	color: var(--text);
}
.terms-checkbox input {
	margin-top: 0.25rem;
	width: 18px;
	height: 18px;
}

.alert {
	padding: 12px 14px;
	border-radius: 12px;
	margin: 10px 0;
	border: 1px solid var(--border);
}

.alert.success { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.4); color: #c7f9e3; }
.alert.danger { background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.4); color: #ffc1cb; }

#cepFeedback.success { color: #6ee7b7; }
#cepFeedback.danger { color: #fca5a5; }

.user-pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 12px;
	background: var(--panel-2);
	border: 1px solid var(--border);
	color: var(--muted);
	font-weight: 600;
}

.filters {
	display: flex;
	gap: 10px;
	margin: 12px 0;
	flex-wrap: wrap;
}

.filters input, .filters select {
	background: var(--panel-2);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 8px 10px;
	color: var(--text);
}

.api-key-card .card-head {
	align-items: center;
}

.api-head-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.api-key-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.6fr);
	gap: 16px;
	margin-top: 8px;
}

.api-key-info {
	background: var(--panel-2);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 14px;
}

.api-key-value {
	background: rgba(124, 58, 237, 0.12);
	border: 1px solid rgba(124, 58, 237, 0.35);
	border-radius: 12px;
	padding: 12px;
	font-weight: 600;
	word-break: break-all;
	margin: 8px 0 6px;
	color: #fff;
}

.api-key-empty {
	background: var(--panel);
	border: 1px dashed var(--border);
	border-radius: 12px;
	padding: 14px;
	color: var(--muted);
	margin-top: 10px;
}

.api-key-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.api-key-actions .full {
	width: 100%;
	justify-content: center;
}

.table-responsive {
	overflow-x: auto;
}

.table {
	width: 100%;
	border-collapse: collapse;
	min-width: 600px;
}

.table th, .table td {
	padding: 10px 8px;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

.table th {
	color: var(--muted);
	font-weight: 600;
}

.badge.danger { background: rgba(244, 63, 94, 0.14); color: var(--red); }

.small-btn {
	padding: 6px 10px;
	border-radius: 10px;
	border: 1px solid var(--border);
}

.socios-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
	margin-bottom: 8px;
}

.kyc-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.kyc-progress {
	position: relative;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	margin-bottom: 24px;
	overflow: hidden;
}
.kyc-progress span {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 33%;
	border-radius: 999px;
	background: linear-gradient(120deg, rgba(124, 58, 237, 0.9), rgba(244, 63, 94, 0.9));
	box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
	transition: width 0.25s ease;
}

.kyc-step {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted);
	font-weight: 600;
}

.kyc-step span {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(124, 58, 237, 0.2);
	color: var(--purple);
	font-weight: 700;
}

.kyc-step.active {
	border-color: rgba(124, 58, 237, 0.6);
	color: #fff;
	background: linear-gradient(120deg, rgba(124, 58, 237, 0.22), rgba(244, 63, 94, 0.15));
}

.kyc-panel {
	display: none;
	animation: fadeIn 0.3s ease;
}

.step-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
}

.step-actions .ghost {
	border: 1px solid var(--border);
	padding: 10px 16px;
	border-radius: 12px;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes cepLoading {
	0% { background-position: 0% 50%; }
	100% { background-position: 100% 50%; }
}

@media (max-width: 900px) {
	.nav { display: none; width: 100%; }
	.hero { grid-template-columns: 1fr; }
	.burger { display: flex; }
	.nav.open {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: min(92vw, 380px);
		max-height: calc(100vh - 40px);
		background: var(--panel);
		padding: 16px;
		border: 1px solid var(--border);
		border-radius: 18px;
		box-shadow: var(--shadow);
		z-index: 20;
		overflow-y: auto;
	}
	.nav.open .nav-menu { padding: 6px 12px; }
	.nav.open a,
	.nav.open .nav-label {
		width: 100%;
		justify-content: space-between;
		padding: 12px 14px;
		font-size: 14px;
	}
	.page-shell { padding: 0 18px 36px; }
	.page-shell.page-shell-full { padding: 0 18px 36px; }
	.topbar {
		position: sticky;
		align-items: center;
		flex-wrap: wrap;
		gap: 10px;
	}
	.brand-name { display: none; }
	.brand-logo { width: 56px; height: 56px; border-radius: 16px; }
	.actions { width: 100%; justify-content: space-between; margin-left: 0; }
	.user-pill { display: none; }
}

/* Dashboard layout (TeoPay-inspired) */
.dashboard-shell {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 20px;
	margin-top: 18px;
}

.dashboard-sidebar {
	position: sticky;
	top: 120px;
	align-self: start;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 18px;
	padding: 12px 10px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: var(--shadow);
}

.sidebar-item {
	width: 100%;
	height: 46px;
	border-radius: 12px;
	background: var(--panel-2);
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 12px;
	color: var(--muted);
	font-weight: 600;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: rgba(255,255,255,0.06);
	display: grid;
	place-items: center;
	font-size: 11px;
	letter-spacing: 0.5px;
}

.sidebar-text {
	font-size: 13px;
	letter-spacing: 0.2px;
}

.sidebar-item:hover {
	color: #fff;
	border-color: rgba(124, 58, 237, 0.6);
	transform: translateY(-1px);
}

.sidebar-item.active {
	background: linear-gradient(135deg, rgba(124,58,237,0.9), rgba(244,63,94,0.9));
	color: #fff;
	border-color: transparent;
	box-shadow: 0 14px 28px rgba(124,58,237,0.32);
}

.sidebar-item.active .sidebar-icon {
	background: rgba(255,255,255,0.2);
}

.dashboard-main {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.dashboard-topline {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.topline-item {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 10px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 180px;
	box-shadow: var(--shadow);
}

.dashboard-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	align-items: center;
	width: 100%;
}

.dashboard-title h1 {
	margin: 0;
	font-size: 28px;
}

.dashboard-title .muted { margin: 6px 0 0; }

.dashboard-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
}

.chip-group {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	min-width: 0;
}

.chip {
	border: 1px solid var(--border);
	background: var(--panel);
	color: var(--muted);
	padding: 8px 12px;
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

.chip:hover { color: #fff; }

.chip.active {
	background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(244,63,94,0.3));
	color: #fff;
	border-color: rgba(124,58,237,0.6);
	box-shadow: 0 8px 22px rgba(124,58,237,0.25);
}

.dash-select select { min-width: 180px; }

.dashboard-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	width: 100%;
}

.dashboard-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	min-width: 0;
}

.dashboard-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.stat-card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: var(--shadow);
}

.stat-info h3 {
	margin: 6px 0 0;
	font-size: 22px;
}

.stat-icon {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	font-weight: 700;
	color: #fff;
}

.stat-icon.purple { background: rgba(124,58,237,0.35); border: 1px solid rgba(124,58,237,0.6); }
.stat-icon.red { background: rgba(244,63,94,0.35); border: 1px solid rgba(244,63,94,0.6); }
.stat-icon.success { background: rgba(16,185,129,0.35); border: 1px solid rgba(16,185,129,0.6); }
.stat-icon.dark { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); }

.dashboard-methods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.method-card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: var(--shadow);
}

.method-left { display: flex; align-items: center; gap: 12px; }

.method-icon {
	width: 36px;
	height: 36px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	font-weight: 700;
	color: #fff;
}

.method-icon.pix { background: rgba(124,58,237,0.3); border: 1px solid rgba(124,58,237,0.6); }
.method-icon.cartao { background: rgba(244,63,94,0.3); border: 1px solid rgba(244,63,94,0.6); }
.method-icon.boleto { background: rgba(16,185,129,0.3); border: 1px solid rgba(16,185,129,0.6); }

.method-value { font-size: 18px; font-weight: 600; margin: 0; }
.method-percent { color: var(--muted); font-weight: 600; }

.dashboard-lower {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
	gap: 16px;
	align-items: start;
}

.chart-card canvas {
	width: 100%;
	max-width: 100%;
	max-height: 260px;
}

.dashboard-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.summary-card h3 {
	margin: 6px 0 0;
	font-size: 22px;
}

.cta-card {
	background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(244,63,94,0.2));
	border: 1px solid rgba(124,58,237,0.35);
}

@media (max-width: 1100px) {
	.dashboard-lower { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
	.dashboard-shell { grid-template-columns: 1fr; }
	.dashboard-sidebar { display: none; }
}

@media (max-width: 720px) {
	.dashboard-header { align-items: flex-start; }
	.dashboard-controls { justify-content: flex-start; }
}

@media (max-width: 700px) {
	.dashboard-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
	.page-shell.page-shell-full { padding: 0 16px 32px; }
	.dashboard-title h1 { font-size: 24px; }
	.dashboard-controls { width: 100%; }
	.chip-group { width: 100%; }
	.chip-group {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 6px;
	}
	.chip { flex: 0 0 auto; min-width: 120px; text-align: center; }
	.dash-select { width: 100%; }
	.dash-select select { width: 100%; min-width: 0; }
	.dashboard-actions { flex-direction: column; align-items: stretch; }
	.dashboard-meta { width: 100%; }
	.dashboard-topline { flex-direction: column; }
	.topline-item { min-width: 0; width: 100%; }
	.dashboard-kpis { grid-template-columns: 1fr; }
	.dashboard-methods { grid-template-columns: 1fr; }
	.dashboard-lower { grid-template-columns: 1fr; }
	.dashboard-main { gap: 14px; }
	.api-key-panel { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.stat-card, .method-card, .summary-card { padding: 14px; }
	.stat-info h3, .summary-card h3 { font-size: 20px; }
	.method-value { font-size: 16px; }
	.brand-logo { width: 48px; height: 48px; border-radius: 14px; }
	.actions { flex-direction: column; align-items: stretch; }
	.actions .ghost, .actions .primary { width: 100%; justify-content: center; }
}
