:root {
	--accent-blue: #0053DB;
	--accent-orange: #FD9000;
	--panel-bg: #FAF8FF;
	--text-dark: #202734;
	--text-muted: #737783;
	--card-border: #e9ebf4;
	--soft-shadow: 0 16px 40px rgba(19, 28, 55, 0.08);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	/* background: radial-gradient(circle at 0 0, #edf4ff 0%, #f8f9fd 42%, #f4f5fb 100%); */
	background: var(--panel-bg);
	color: var(--text-dark);
}

.dashboard-wrapper {
	/* max-width: 1460px; */
	margin: 0 auto;
	padding: 0;
}

.hero {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: center;
	padding: 48px 56px;
	background: linear-gradient(105deg, rgba(5, 17, 37, 0.84) 8%, rgba(8, 36, 67, 0.4) 54%, rgba(8, 36, 67, 0.2) 100%), url("../img/Hero\ Section.jpg") center center/cover no-repeat;
	overflow: hidden;
}

.hero-content {
	max-width: 560px;
	position: relative;
	z-index: 2;
}

.hero-title {
	margin: 0;
	font-size: clamp(36px, 3vw, 60px);
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.hero-title .highlight {
	color: var(--accent-orange);
}

.hero-sub {
	margin-top: 24px;
	font-size: 18px;
	line-height: 1.45;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.9);
}

.apps-panel {
	position: relative;
	/* margin: 44px 18px 24px; */
	padding: 24px 32px 24px 32px;
	background: var(--panel-bg);
	/* border-radius: 26px; */
}

.panel-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.panel-title-wrap h2 {
	margin: 0;
	font-size: 30px;
	line-height: 1;
	font-weight: 600;
	color: var(--accent-blue);
}

.panel-title-wrap p {
	margin: 10px 0 0;
	font-size: 16px;
	font-weight: 400;
	color: var(--text-muted);
}

.toolbar {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 8px;
}

.tab-switcher {
	display: inline-flex;
	align-items: center;
	padding: 4px;
	/* border: 1px solid #cfd7e8; */
	border-radius: 999px;
	/* background: #ffffff; */
	/* box-shadow: 0 8px 18px rgba(19, 28, 55, 0.06); */
	flex: 0 0 auto;
}

.tab-button {
	min-width: auto;
	height: 36px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #6e7890;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-button.active {
	background: #e9e9fb;
	color: var(--accent-blue);
	/* box-shadow: 0 8px 16px rgba(0, 83, 219, 0.2); */
}

.tab-button:focus-visible {
	outline: 2px solid rgba(0, 83, 219, 0.35);
	outline-offset: 2px;
}

.search-box {
	position: relative;
}

.search-box input {
	width: 304px;
	height: 45px;
	padding: 0 52px 0 18px;
	font-size: 14px;
	border: 1px solid #ccd3e2;
	border-radius: 4px;
	font-weight: 400;
	background: #ffffff;
	color: #40485b;
}

.search-box input:focus {
	outline: 0;
	border-color: #97addf;
	box-shadow: 0 0 0 3px rgba(22, 89, 212, 0.12);
}

.search-icon {
	position: absolute;
	right: 16px;
	top: 45%;
	width: 15px;
	height: 15px;
	border: 2px solid #9ba3b3;
	border-radius: 50%;
	transform: translateY(-52%);
}

.search-icon::after {
	content: "";
	position: absolute;
	width: 9px;
	height: 2px;
	background: #9ba3b3;
	bottom: -5px;
	right: -6px;
	transform: rotate(45deg);
}

.view-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
}

.view-toggle button {
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #8d95a6;
	padding: 0;
}

.view-toggle button.active {
	color: var(--accent-blue);
}

.apps-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.app-card {
	display: flex;
	align-items: center;
	gap: 24px;
	background: #ffffff;
	border: 1px solid var(--card-border);
	border-radius: 18px;
	padding: 20px;
	min-height: 130px;
}

.app-card[style*="display: none"] {
	display: none !important;
}

.app-logo {
	width: 54px;
	height: 54px;
	flex: 0 0 54px;
	border-radius: 12px;
	background: #f4f7ff;
	border: 1px solid #d8deee;
	object-fit: contain;
	padding: 8px;
}

.app-card-logo {
	width: 150px;
	height: auto;
	/* flex: 0 0 150px; */
	object-fit: contain;
	/* padding: 8px; */
}

.app-info {
	min-width: 0;
	flex: 1;
}

.app-info h3 {
	margin: 0;
	font-size: 28px;
	line-height: 1;
	text-transform: lowercase;
	font-weight: 700;
	color: #1f2635;
}

.app-info .meta {
	margin: 4px 0;
	font-size: 10px;
	line-height: 1;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #77839a;
}

.app-info .desc {
	margin: 3px 0 0;
	font-size: 13px;
	line-height: 1.3;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

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

.portal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid #a4bce9;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent-blue);
	text-decoration: none;
	white-space: nowrap;
}

.platform-icon {
	width: 40px;
	height: 40px;
	object-fit: contain;
	padding: 8px;
	background: #f0f4ff;
	border: 1.5px solid #b8d0f0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icon-btn {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #eff2f9;
	border: 1px solid #d4dbea;
	border-radius: 7px;
}

.icon-btn::before {
	content: "";
	display: block;
	width: 14px;
	height: 10px;
	background: linear-gradient(#7f8798, #7f8798) center 68% / 10px 2px no-repeat, linear-gradient(#7f8798, #7f8798) center 0 / 14px 8px no-repeat;
	border-radius: 2px;
	opacity: 0.9;
}

.icon-btn.cloud::before {
	width: 16px;
	height: 10px;
	background: radial-gradient(circle at 4px 5px, #7f8798 3px, transparent 3px), radial-gradient(circle at 9px 4px, #7f8798 4px, transparent 4px), radial-gradient(circle at 13px 6px, #7f8798 3px, transparent 3px), linear-gradient(#7f8798, #7f8798) 4px 7px / 10px 3px no-repeat;
}

.TrustLogo {
	position: fixed;
	right: 10px;
	bottom: 0;
	z-index: 20;
}

.TrustLogo a img {
	width: 88px;
	height: auto;
}

@media (max-width: 1199px) {
	.apps-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.search-box input {
		width: 280px;
	}
}

@media (max-width: 900px) {
	.hero {
		min-height: 340px;
		padding: 30px 24px;
	}

	.hero-sub {
		font-size: 18px;
		margin-top: 16px;
	}

	.panel-header {
		flex-direction: column;
		align-items: stretch;
	}

	.panel-title-wrap h2 {
		font-size: 34px;
	}

	.panel-title-wrap p {
		font-size: 18px;
	}

	.toolbar {
		justify-content: space-between;
	}

	.search-box {
		flex: 1;
	}

	.search-box input {
		width: 100%;
	}
}

@media (max-width: 860px) {
	.app-card {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 14px 16px;
	}

	.app-info {
		flex: 1 1 calc(100% - 70px);
	}

	.card-actions {
		width: 100%;
		margin-left: 0;
		justify-content: flex-start;
	}

	.app-card-logo {
		width: 128px;
	}
}

@media (max-width: 640px) {
	.apps-panel {
		/* margin: -24px 12px 14px; */
		padding: 14px;
		border-radius: 18px;
	}

	.apps-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.app-card {
		padding: 12px;
		gap: 10px;
	}

	.app-info h3 {
		font-size: 24px;
	}

	.app-info .desc {
		white-space: normal;
	}

	.portal-btn {
		padding: 7px 12px;
		font-size: 12px;
	}

	.TrustLogo a img {
		width: 64px;
	}
}
