﻿:root {
	--bg: #081120;
	--bg-2: #0d1729;
	--card: rgba(16, 25, 40, 0.86);
	--card-2: rgba(20, 31, 47, 0.96);
	--line: rgba(148, 163, 184, 0.18);
	--text: #ebf1ff;
	--muted: #9bb0d1;
	--green: #2ce39b;
	--green-soft: rgba(44, 227, 155, 0.16);
	--red: #ff5f7d;
	--red-soft: rgba(255, 95, 125, 0.16);
	--amber: #ffc857;
	--blue: #59a7ff;
	--purple: #8d7bff;
	--shadow: rgba(2, 8, 23, 0.55);
}

* {
	box-sizing: border-box;
}

img {
	max-width: 100%;
	height: auto;
}

button, input {
	font: inherit;
}

a {
	color: inherit;
	text-decoration:none;
}

html, body {
	margin: 0;
	height: 100%;
	background: radial-gradient(circle at top left, rgba(88,155,255,0.18), transparent 24%), radial-gradient(circle at bottom right, rgba(44,227,155,0.16), transparent 20%), var(--bg);
	color: var(--text);
	font-family: 'Inter', sans-serif;
}

body {
	min-height: 100vh;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

.page-shell {
	width: 100%;
	max-width: 100vw;
	min-height: 100vh;
	background: rgba(8, 17, 32, 0.9);
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 0;
	box-shadow: none;
	overflow-x: hidden;
	overflow-y: visible;
	backdrop-filter: blur(22px);
}

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 22px 34px;
	border-bottom: 1px solid var(--line);
	background: rgba(10, 18, 31, 0.82);
}

.brand-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
}

.brand-mark {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--blue), var(--purple));
	box-shadow: 0 12px 24px rgba(89,167,255,0.35);
	font-size: 1.2rem;
	font-weight: 800;
}

.brand-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.brand-small {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--muted);
}

.brand-main {
	font-size: 1.15rem;
	font-weight: 700;
}

.topbar-tools {
	display: flex;
	align-items: center;
	gap: 16px;
}

.search-box {
	position: relative;
	width: min(420px, 35vw);
}

	.search-box input {
		width: 100%;
		border: 1px solid var(--line);
		background: rgba(15,24,38,0.85);
		color: var(--text);
		border-radius: 12px;
		padding: 12px 18px 12px 42px;
		font-size: 0.96rem;
		outline: none;
	}

	.search-box::before {
		content: "⌕";
		position: absolute;
		left: 16px;
		top: 50%;
		transform: translateY(-50%);
		color: var(--muted);
		font-size: 1.15rem;
	}

.search-results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	background: rgba(8, 15, 26, 0.96);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 18px 42px rgba(2, 8, 23, 0.55);
	overflow: hidden;
	z-index: 20;
}

.search-result-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid rgba(148,163,184,0.12);
	color: var(--text);
	transition: background 0.2s ease;
}

.search-result-item:last-child {
	border-bottom: none;
}

.search-result-item:hover {
	background: rgba(89,167,255,0.08);
}

.search-result-symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 32px;
	padding: 0 10px;
	border-radius: 10px;
	background: rgba(89,167,255,0.15);
	color: #dfeaff;
	font-weight: 700;
	font-size: 0.8rem;
}

.search-result-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.search-result-meta strong {
	font-size: 0.96rem;
}

.search-result-meta small {
	color: var(--muted);
	font-size: 0.75rem;
}

.action-btn, .chip, .range-btn {
	border: 1px solid rgba(148,163,184,0.18);
	background: rgba(16,25,40,0.92);
	color: var(--text);
	border-radius: 12px;
	padding: 11px 15px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s ease;
}

	.action-btn:hover, .chip:hover, .range-btn:hover {
		transform: translateY(-1px);
		border-color: rgba(89,167,255,0.6);
	}

.primary-btn {
	background: linear-gradient(135deg, var(--blue), var(--purple));
	border: 0;
	color: white;
	box-shadow: 0 12px 24px rgba(88,155,255,0.4);
}

.user-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(16,25,40,0.9);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 7px 14px 7px 7px;
}

.avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #f2c94c, #ff7a59);
	color: #0b1020;
	font-weight: 800;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0,1fr);
	min-height: calc(100vh - 86px);
	min-width: 0;
	transition: grid-template-columns 0.25s ease;
}

.layout.sidebar-open {
	grid-template-columns: 240px minmax(0,1fr);
}

.sidebar[hidden] {
	display: none;
}

.sidebar {
	padding: 0;
	border-right: none;
	background: rgba(9,15,26,0.7);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease, padding 0.2s ease;
}

.layout.sidebar-open .sidebar {
	padding: 26px 18px 20px;
	border-right: 1px solid var(--line);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.side-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 28px;
	padding: 0 8px;
	color: var(--muted);
	font-size: 0.74rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.sidebar-toggle {
	padding: 10px 12px;
	min-width: 44px;
	line-height: 1;
}

.menu {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	color: var(--muted);
	font-weight: 600;
	transition: 0.2s ease;
	border: 1px solid transparent;
}

	.menu-item.active {
		background: linear-gradient(135deg, rgba(89,167,255,0.15), rgba(141,123,255,0.1));
		color: var(--text);
		border-color: rgba(89,167,255,0.4);
	}

	.menu-item:hover {
		background: rgba(148,163,184,0.05);
		color: var(--text);
	}

.menu-icon {
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: rgba(255,255,255,0.04);
	font-size: 0.95rem;
}

.sidebar-card {
	margin-top: 26px;
	padding: 18px 16px;
	background: linear-gradient(180deg, rgba(31,44,61,0.90), rgba(14,21,32,0.90));
	border: 1px solid var(--line);
	border-radius: 20px;
	box-shadow: 0 22px 40px rgba(3,8,18,0.3);
}

.mini-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.13em;
	color: var(--muted);
	margin-bottom: 12px;
}

.mini-stat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
	font-size: 0.95rem;
}

	.mini-stat strong {
		font-size: 1.1rem;
	}

.content {
	padding: 28px 30px 34px;
	min-width: 0;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0,1.5fr) minmax(280px,0.8fr);
	gap: 20px;
	margin-bottom: 22px;
}

.panel {
	background: linear-gradient(180deg, rgba(16,25,40,0.95), rgba(11,18,28,0.95));
	border: 1px solid var(--line);
	border-radius: 24px;
	box-shadow: 0 18px 36px rgba(12,17,27,0.35);
	min-width: 0;
}

.headline-panel {
	padding: 24px 26px;
	min-height: 230px;
	position: relative;
	overflow: hidden;
}

	.headline-panel::after {
		content: "";
		position: absolute;
		inset: auto -30px -80px auto;
		width: 280px;
		height: 280px;
		background: radial-gradient(circle, rgba(89,167,255,0.28), transparent 60%);
		pointer-events: none;
	}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	background: rgba(44,227,155,0.1);
	border: 1px solid rgba(44,227,155,0.2);
	border-radius: 999px;
	color: var(--green);
	font-size: 0.74rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 22px;
}

.headline-panel h1 {
	margin: 0;
	font-size: clamp(2.2rem,3vw,3.4rem);
	line-height: 1.05;
	max-width: 620px;
}

.headline-panel p {
	color: var(--muted);
	max-width: 620px;
	font-size: 1rem;
	line-height: 1.7;
	margin: 18px 0 24px;
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.market-tile {
	padding: 22px 20px 18px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.market-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.market-title {
	font-size: 0.75rem;
	color: var(--muted);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.badge-inline {
	padding: 7px 10px;
	border-radius: 999px;
	background: rgba(44,227,155,0.12);
	color: var(--green);
	font-size: 0.75rem;
	font-weight: 700;
}

.hero-metric {
	font-size: 2.2rem;
	font-weight: 800;
	letter-spacing: -0.05em;
}

.delta {
	font-size: 0.96rem;
	font-weight: 700;
}

	.delta.positive {
		color: var(--green);
	}

	.delta.negative {
		color: var(--red);
	}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0,1fr));
	gap: 16px;
	margin-bottom: 22px;
}

.stat-card {
	padding: 18px 20px;
	position: relative;
	overflow: hidden;
}

	.stat-card::after {
		content: "";
		position: absolute;
		width: 160px;
		height: 160px;
		right: -50px;
		top: -56px;
		background: radial-gradient(circle, rgba(89,167,255,0.13), transparent 60%);
		pointer-events: none;
	}

.stat-label {
	color: var(--muted);
	font-size: 0.76rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.stat-value {
	font-size: clamp(1.5rem,2vw,2.15rem);
	font-weight: 800;
	letter-spacing: -0.05em;
}

.stat-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	gap: 10px;
	font-size: 0.8rem;
	color: var(--muted);
}

.chart-grid {
	display: grid;
	grid-template-columns: minmax(0,1.8fr) minmax(320px,0.9fr);
	gap: 20px;
	margin-bottom: 22px;
}

.chart-panel, .watchlist-panel, .table-panel, .allocation-panel {
	padding: 22px 20px 18px;
}

.panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

	.panel-header h3 {
		margin: 0;
		font-size: 1.08rem;
	}

.range-group {
	display: inline-flex;
	gap: 8px;
	background: rgba(11,18,28,0.7);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 5px;
}

.range-btn {
	padding: 8px 10px;
	border: 0;
	background: transparent;
	color: var(--muted);
	font-size: 0.79rem;
	font-weight: 700;
}

	.range-btn.active {
		background: rgba(89,167,255,0.14);
		color: var(--text);
		border: 1px solid rgba(89,167,255,0.3);
	}

.chart-wrap {
	height: 360px;
	position: relative;
}

	.chart-wrap canvas {
		width: 100% !important;
		height: 100% !important;
	}

.watchlist-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 10px;
	width: 100%;
}

.watch-item-link {
	display: block;
	width: 100%;
	text-decoration: none;
	color: inherit;
}

.watch-item {
	display: grid;
	grid-template-columns: 54px minmax(0,1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 12px 10px;
	border-radius: 15px;
	border: 1px solid rgba(148,163,184,0.12);
	background: rgba(8,15,24,0.45);
	width: 100%;
}

.ticker {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(89,167,255,0.2), rgba(141,123,255,0.18));
	color: var(--text);
	font-weight: 700;
	letter-spacing: 0.03em;
}

.watch-meta {
	min-width: 0;
}

.watch-name {
	display: block;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.watch-price {
	display: block;
	color: var(--muted);
	font-size: 0.82rem;
	margin-top: 3px;
}

.watch-change {
	text-align: right;
	font-weight: 700;
}

.positive {
	color: var(--green);
}

.negative {
	color: var(--red);
}

.table-layout {
	display: grid;
	grid-template-columns: minmax(0,1.5fr) minmax(280px,0.8fr);
	gap: 20px;
}

table {
	width: 100%;
	min-width: 600px;
	border-collapse: collapse;
	margin-top: 8px;
}

.table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-top: 8px;
}

thead th {
	color: var(--muted);
	font-size: 0.76rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding: 14px 10px;
	text-align: left;
	border-bottom: 1px solid var(--line);
}

tbody td {
	padding: 14px 10px;
	border-bottom: 1px solid rgba(148,163,184,0.08);
	color: var(--text);
}

.symb {
	color: white;
	font-weight: 700;
}

.pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 88px;
	padding: 7px 8px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
}

	.pill.positive {
		background: var(--green-soft);
		color: var(--green);
	}

	.pill.negative {
		background: var(--red-soft);
		color: var(--red);
	}

.allocation-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 10px;
}

.allocation-row {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
}

.allocation-swatch {
	width: 14px;
	height: 14px;
	border-radius: 4px;
}

.allocation-label {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

	.allocation-label strong {
		font-size: 0.92rem;
	}

	.allocation-label span {
		color: var(--muted);
		font-size: 0.78rem;
	}

.progress {
	height: 8px;
	border-radius: 999px;
	background: rgba(148,163,184,0.12);
	overflow: hidden;
	grid-column: 2 / 4;
}

	.progress > span {
		display: block;
		height: 100%;
		border-radius: inherit;
		background: linear-gradient(90deg, var(--blue), var(--purple));
	}

.status-note {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(89,167,255,0.08);
	border: 1px solid rgba(89,167,255,0.2);
	color: var(--muted);
	font-size: 0.8rem;
}

.tiny-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 10px rgba(44,227,155,0.7);
}

@media (max-width: 1100px) {
	.layout,
	.layout.sidebar-open {
		grid-template-columns: 1fr;
	}

	.sidebar {
		border-right: none;
		border-bottom: 1px solid var(--line);
	}

	.hero, .chart-grid, .table-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) {
	.topbar {
		flex-wrap: wrap;
	}

	.brand-wrap {
		flex: 1 1 100%;
	}

	.topbar-tools {
		width: 100%;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	.search-box {
		flex: 1 1 100%;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.content {
		padding: 16px;
	}

	.topbar {
		flex-wrap: wrap;
		gap: 12px;
		padding: 18px 16px;
	}

	.brand-main {
		font-size: 1rem;
		line-height: 1.2;
	}

	.topbar-tools {
		width: 100%;
		flex-wrap: wrap;
		justify-content: stretch;
	}

	.search-box {
		width: 100%;
		flex: 1 1 100%;
	}

	.topbar-tools .action-btn {
		flex: 1 1 auto;
	}

	.stats-grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}

	.menu {
		display: grid;
		grid-template-columns: repeat(2, minmax(0,1fr));
	}

	.panel-header {
		flex-wrap: wrap;
	}

	.range-group {
		width: 100%;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	.range-btn {
		flex: 1 1 22%;
		text-align: center;
	}
}

@media (max-width: 560px) {
	.topbar {
		padding: 16px;
	}

	.brand-small {
		letter-spacing: 0.1em;
	}

	.sidebar {
		padding: 16px;
	}

	.menu {
		grid-template-columns: 1fr;
	}

	.menu-item {
		justify-content: center;
	}

	.hero {
		gap: 16px;
	}

	.headline-panel,
	.market-tile,
	.chart-panel,
	.watchlist-panel,
	.table-panel,
	.allocation-panel {
		padding-left: 16px;
		padding-right: 16px;
	}

	.headline-panel h1 {
		font-size: clamp(1.9rem, 9vw, 2.5rem);
	}

	.headline-panel p {
		font-size: 0.94rem;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero-actions .action-btn,
	.topbar-tools .action-btn {
		width: 100%;
	}

	.stats-grid {
		grid-template-columns: 1fr;
	}

	.chart-wrap {
		height: 240px;
	}

	.market-strip,
	.status-note {
		flex-direction: column;
		align-items: flex-start;
	}

	.watch-item {
		grid-template-columns: 42px minmax(0,1fr) auto;
		gap: 8px;
		padding: 10px;
	}

	.watch-name {
		font-size: 0.85rem;
	}

	.table-scroll {
		overflow-x: auto;
	}

	.table-scroll table {
		min-width: 520px;
	}

	.content,
	.hero,
	.stats-grid,
	.chart-grid,
	.table-layout,
	.headline-panel,
	.market-tile,
	.chart-panel,
	.watchlist-panel,
	.table-panel,
	.allocation-panel {
		min-width: 0;
	}

	.mini-stat {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

.stock-link-panel {
	margin-top: 24px;
}

.stock-link-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.stock-link-pill {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	background: rgba(17,24,39,0.55);
	border: 1px solid rgba(148,163,184,0.18);
	border-radius: 12px;
	padding: 10px 14px;
	color: #edf4ff;
	text-decoration: none;
	min-width: 130px;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

	.stock-link-pill:hover {
		transform: translateY(-1px);
		border-color: rgba(89,167,255,0.8);
	}

	.stock-link-pill span {
		font-weight: 700;
	}

	.stock-link-pill small {
		color: #9bb0d1;
	}

.watch-item-link, .watch-item-link:hover, .watch-item-link:visited {
	text-decoration: none;
	color: inherit;
	display: flex;
	align-items: center;
	width: 100%;
}

.symb-link {
	color: #59a7ff;
	text-decoration: none;
	font-weight: 700;
}

.globalWayofGoing {
	width: 30px;
	height: 30px;
}