* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--bg-primary: #0d1117;
	--bg-secondary: #161b22;
	--bg-tertiary: #21262d;
	--accent-red: #ff4757;
	--accent-orange: #ffa502;
	--accent-cyan: #00d2d3;
	--text-primary: #f0f6fc;
	--text-secondary: #7d8590;
	--text-muted: #484f58;
	--border-light: #30363d;
	--border-accent: #ff4757;
	--glass: rgba(255, 255, 255, 0.1);
	--shadow-glow: 0 0 30px rgba(255, 71, 87, 0.3);
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	min-height: 100vh;
	background: radial-gradient(ellipse at top, #161b22 0%, #0d1117 100%);
	color: var(--text-primary);
	overflow-x: hidden;
	position: relative;
}

/* Animated background particles */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image: 
		radial-gradient(circle at 20% 80%, rgba(255, 71, 87, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(0, 210, 211, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 40% 40%, rgba(255, 165, 2, 0.1) 0%, transparent 50%);
	animation: float 20s ease-in-out infinite;
	z-index: -1;
}

@keyframes float {
	0%, 100% { transform: translateY(0px) rotate(0deg); }
	33% { transform: translateY(-20px) rotate(1deg); }
	66% { transform: translateY(10px) rotate(-1deg); }
}

/* Views */
.view {
	width: 100%;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.view.hidden {
	display: none;
}

/* Login View - Complete Redesign */
.login-container {
	width: min(900px, 95%);
	height: min(600px, 90vh);
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: var(--bg-secondary);
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-glow);
	backdrop-filter: blur(20px);
}

.login-left {
	background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 40px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.login-left::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') center/cover;
}

.hero-content {
	position: relative;
	z-index: 2;
	color: white;
}

.hero-logo {
	width: 80px;
	height: 80px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 24px;
	backdrop-filter: blur(10px);
}

.hero-title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 12px;
	letter-spacing: -0.02em;
}

.hero-subtitle {
	font-size: 1.1rem;
	opacity: 0.9;
	margin-bottom: 32px;
	line-height: 1.6;
}

.hero-features {
	display: flex;
	flex-direction: column;
	gap: 16px;
	text-align: left;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.95rem;
	opacity: 0.9;
}

.feature-icon {
	width: 20px;
	height: 20px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.login-right {
	padding: 60px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.login-header {
	text-align: center;
	margin-bottom: 40px;
}

.login-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--text-primary);
}

.login-description {
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.login-btn {
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
	border: none;
	border-radius: 12px;
	color: white;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 32px;
	box-shadow: 0 8px 24px rgba(255, 71, 87, 0.3);
}

.login-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(255, 71, 87, 0.4);
}

.login-btn:active {
	transform: translateY(0);
}

.divider {
	margin: 24px 0;
	position: relative;
	text-align: center;
}

.divider::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 1px;
	background: var(--border-light);
}

.divider span {
	position: relative;
	padding: 0 16px;
	background: var(--bg-secondary);
	color: var(--text-secondary);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 500;
}

.token-form {
	display: flex;
	gap: 12px;
	margin-bottom: 24px;
}

.token-form input {
	flex: 1;
	padding: 14px 16px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-light);
	border-radius: 12px;
	color: var(--text-primary);
	font-size: 0.95rem;
	transition: all 0.3s ease;
}

.token-form input::placeholder {
	color: var(--text-muted);
}

.token-form input:focus {
	outline: none;
	border-color: var(--accent-red);
	box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
	background: var(--bg-primary);
}

.token-form button {
	padding: 14px 20px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-light);
	border-radius: 12px;
	color: var(--text-primary);
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.token-form button:hover {
	background: var(--accent-red);
	border-color: var(--accent-red);
	color: white;
	transform: translateY(-1px);
}

.status-message {
	text-align: center;
	min-height: 24px;
	font-size: 0.875rem;
	margin-bottom: 32px;
	padding: 12px;
	border-radius: 8px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-light);
}

.status-message.success {
	color: var(--accent-cyan);
	background: rgba(0, 210, 211, 0.1);
	border-color: var(--accent-cyan);
}

.status-message.error {
	color: var(--accent-red);
	background: rgba(255, 71, 87, 0.1);
	border-color: var(--accent-red);
}

.social-links {
	display: flex;
	gap: 16px;
	justify-content: center;
}

.social-links a {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: var(--bg-tertiary);
	color: var(--text-secondary);
	transition: all 0.3s ease;
	border: 1px solid var(--border-light);
}

.social-links a:hover {
	background: var(--accent-red);
	color: white;
	transform: translateY(-2px);
	border-color: var(--accent-red);
}

/* Responsive Design */
@media (max-width: 768px) {
	.login-container {
		grid-template-columns: 1fr;
		height: auto;
	}
	
	.login-left {
		padding: 30px 20px;
	}
	
	.hero-title {
		font-size: 2rem;
	}
	
	.login-right {
		padding: 40px 20px;
	}
}

/* Dashboard View - Complete Redesign */
#dashboard-view {
	padding: 0;
	align-items: stretch;
}

.dashboard-container {
	width: 100%;
	height: 100vh;
	display: grid;
	grid-template-columns: 280px 1fr;
	background: var(--bg-primary);
}

/* Sidebar */
.dashboard-sidebar {
	background: var(--bg-secondary);
	border-right: 1px solid var(--border-light);
	display: flex;
	flex-direction: column;
	padding: 0;
}

.sidebar-header {
	padding: 24px 20px;
	border-bottom: 1px solid var(--border-light);
}

.sidebar-header .brand-compact {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-primary);
}

.sidebar-nav {
	flex: 1;
	padding: 20px 0;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	color: var(--text-secondary);
	text-decoration: none;
	transition: all 0.3s ease;
	font-weight: 500;
	border-left: 3px solid transparent;
}

.nav-item:hover {
	background: var(--bg-tertiary);
	color: var(--text-primary);
	border-left-color: var(--accent-red);
}

.nav-item.active {
	background: var(--bg-tertiary);
	color: var(--accent-red);
	border-left-color: var(--accent-red);
}

.sidebar-footer {
	padding: 20px;
	border-top: 1px solid var(--border-light);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
}

.user-avatar {
	width: 32px;
	height: 32px;
	background: var(--bg-tertiary);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
}

.user-details {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.user-email {
	font-size: 0.85rem;
	color: var(--text-primary);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-status {
	font-size: 0.75rem;
	color: var(--accent-cyan);
	font-weight: 500;
}

.logout-btn {
	width: 32px;
	height: 32px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-light);
	border-radius: 8px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.logout-btn:hover {
	background: var(--accent-red);
	border-color: var(--accent-red);
	color: white;
}

/* Main Content */
.dashboard-main {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Stats Header */
.stats-header {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	padding: 24px;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px) {
	.stats-header {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
}

@media (min-width: 1024px) {
	.stats-header {
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
	}
}

.stat-card {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-light);
	border-radius: 16px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: all 0.3s ease;
	min-width: 0;
}

@media (min-width: 768px) {
	.stat-card {
		padding: 20px;
		gap: 16px;
	}
}

.stat-card:hover {
	border-color: var(--accent-red);
	transform: translateY(-2px);
}

.stat-icon {
	width: 40px;
	height: 40px;
	background: var(--bg-primary);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-red);
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.stat-icon {
		width: 48px;
		height: 48px;
	}
}

.stat-content {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.stat-label {
	font-size: 0.8rem;
	color: var(--text-secondary);
	font-weight: 500;
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 768px) {
	.stat-label {
		font-size: 0.85rem;
	}
}

.stat-value {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-primary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 768px) {
	.stat-value {
		font-size: 1.25rem;
	}
}

.status-connected {
	color: var(--accent-cyan) !important;
}

.status-disconnected {
	color: var(--accent-red) !important;
}

/* Content Sections */
.content-sections {
	flex: 1;
	overflow-y: auto;
	padding: 24px;
}

.content-section {
	display: none;
}

.content-section.active {
	display: block;
}

.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
}

.section-title svg {
	color: var(--accent-red);
}

.section-controls {
	display: flex;
	gap: 12px;
}

.control-btn {
	padding: 8px 16px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-light);
	border-radius: 8px;
	color: var(--text-primary);
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.control-btn:hover {
	background: var(--accent-red);
	border-color: var(--accent-red);
	color: white;
}

/* Overview Grid */
.overview-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
}

.overview-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-light);
	border-radius: 20px;
	padding: 24px;
}

.overview-card .card-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 20px;
}

.overview-card .card-title svg {
	color: var(--accent-red);
}

.quick-stats {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.quick-stat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: var(--bg-tertiary);
	border-radius: 12px;
	border: 1px solid var(--border-light);
}

.quick-stat-label {
	font-size: 0.9rem;
	color: var(--text-secondary);
	font-weight: 500;
}

.quick-stat-value {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--accent-red);
}

/* Analytics Controls */
.analytics-controls {
	margin-bottom: 24px;
}

.market-selector-container {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	background: var(--bg-secondary);
	border-radius: 16px;
	border: 1px solid var(--border-light);
}

.selector-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-primary);
	white-space: nowrap;
}

.selector-label svg {
	color: var(--accent-red);
}

.market-selector {
	flex: 1;
	max-width: 350px;
	padding: 12px 16px;
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: 12px;
	color: var(--text-primary);
	font-size: 0.95rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.market-selector:hover {
	border-color: var(--accent-red);
	background: var(--bg-secondary);
}

.market-selector:focus {
	outline: none;
	border-color: var(--accent-red);
	box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.market-selector option {
	background: var(--bg-primary);
	color: var(--text-primary);
}

.market-selector optgroup {
	background: var(--bg-primary);
	color: var(--accent-red);
	font-weight: 600;
}

/* Markets Grid */
.markets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.market-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-light);
	border-radius: 20px;
	padding: 24px;
	text-align: center;
}

.market-card h3 {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 12px;
}

.market-card p {
	color: var(--text-secondary);
	margin-bottom: 20px;
	line-height: 1.6;
}

.btn-primary {
	padding: 12px 24px;
	background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
	border: none;
	border-radius: 12px;
	color: white;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(255, 71, 87, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
	.dashboard-container {
		grid-template-columns: 1fr;
	}
	
	.dashboard-sidebar {
		display: none;
	}
	
	.overview-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.stats-header {
		padding: 16px;
		gap: 12px;
	}
	
	.content-sections {
		padding: 16px;
	}
	
	.section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	
	.section-title {
		font-size: 1.25rem;
	}
	
	.analytics-controls {
		margin-bottom: 16px;
	}
	
	.market-selector-container {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 16px;
	}
	
	.selector-label {
		justify-content: center;
	}
	
	.market-selector {
		max-width: none;
	}
}

@media (max-width: 480px) {
	.stat-card {
		padding: 12px;
		gap: 10px;
	}
	
	.stat-icon {
		width: 36px;
		height: 36px;
	}
	
	.stat-label {
		font-size: 0.75rem;
	}
	
	.stat-value {
		font-size: 0.9rem;
	}
	
	.prediction-digit {
		font-size: 3rem;
	}
	
	.prediction-countdown {
		font-size: 1.25rem;
	}
}

/* Predictions Grid */
.predictions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
}

.prediction-item {
	background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
	border: 2px solid var(--border-light);
	border-radius: 20px;
	padding: 32px 24px;
	text-align: center;
	position: relative;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.prediction-item:hover {
	border-color: var(--accent-red);
	transform: translateY(-4px);
	box-shadow: var(--shadow-glow);
}

.prediction-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
	border-radius: 20px 20px 0 0;
}

.prediction-digit {
	font-size: 4rem;
	font-weight: 800;
	background: linear-gradient(135deg, var(--accent-red), var(--accent-orange));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 16px;
	text-shadow: 0 0 30px rgba(255, 71, 87, 0.3);
}

.prediction-countdown {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--accent-cyan);
	margin-bottom: 20px;
	text-shadow: 0 0 20px rgba(0, 210, 211, 0.5);
}

.prediction-markets {
	font-size: 0.9rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

.prediction-market-tag {
	display: inline-block;
	padding: 6px 12px;
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: 8px;
	margin: 4px;
	font-size: 0.8rem;
	color: var(--text-primary);
	transition: all 0.2s ease;
}

.prediction-market-tag:hover {
	background: var(--accent-red);
	border-color: var(--accent-red);
	color: white;
}

.no-predictions {
	text-align: center;
	padding: 60px;
	color: var(--text-secondary);
	font-size: 1.1rem;
}

/* Analytics Grid */
.analytics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 24px;
}

.analytics-card {
	background: var(--bg-secondary);
	border-radius: 20px;
	padding: 32px;
	border: 1px solid var(--border-light);
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

.analytics-card:hover {
	border-color: var(--accent-red);
	transform: translateY(-2px);
}

.card-title {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 24px;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 12px;
}

.card-title svg {
	color: var(--accent-red);
}

/* Digit Distribution */
.digit-bars {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.digit-bar-item {
	display: grid;
	grid-template-columns: 40px 1fr 60px;
	align-items: center;
	gap: 16px;
}

.digit-label {
	font-weight: 700;
	color: var(--text-primary);
	text-align: center;
	font-size: 1.1rem;
}

.digit-bar {
	height: 12px;
	background: var(--bg-tertiary);
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

.digit-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
	border-radius: 6px;
	transition: width 0.8s ease;
	position: relative;
}

.digit-bar-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	animation: shimmer 2s infinite;
}

@keyframes shimmer {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

.digit-count {
	font-weight: 600;
	color: var(--text-secondary);
	text-align: right;
}

.digit-bar-track {
	height: 24px;
	background: rgba(148, 163, 184, 0.1);
	border-radius: 6px;
	overflow: hidden;
}

.digit-bar-fill {
	height: 100%;
	background: var(--primary);
	transition: width 0.3s ease;
	border-radius: 6px;
}

.digit-percentage {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-secondary);
	text-align: right;
}

/* Last 50 Digits */
.digits-stream {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-height: 200px;
	overflow-y: auto;
}

.digit-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.875rem;
	background: rgba(59, 130, 246, 0.2);
	color: var(--text-primary);
	cursor: pointer;
	transition: transform 0.2s;
}

.digit-chip:hover {
	transform: scale(1.1);
}

.digit-chip.digit-0 { background: #FF6B6B; }
.digit-chip.digit-1 { background: #4ECDC4; }
.digit-chip.digit-2 { background: #45B7D1; }
.digit-chip.digit-3 { background: #96CEB4; }
.digit-chip.digit-4 { background: #FFEAA7; color: #333; }
.digit-chip.digit-5 { background: #DDA0DD; }
.digit-chip.digit-6 { background: #98D8C8; }
.digit-chip.digit-7 { background: #F7DC6F; color: #333; }
.digit-chip.digit-8 { background: #BB8FCE; }
.digit-chip.digit-9 { background: #85C1E9; }

.loading-text {
	color: var(--text-secondary);
	font-style: italic;
}

/* Extremes Card */
.extremes-card {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.02));
}

.extremes-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.extreme-item {
	text-align: center;
	padding: 20px;
	border-radius: 10px;
}

.extreme-item.highest {
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.3);
}

.extreme-item.lowest {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
}

.extreme-label {
	display: block;
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.extreme-value {
	display: block;
	font-size: 2.5rem;
	font-weight: 700;
}

.extreme-item.highest .extreme-value {
	color: #4ade80;
}

.extreme-item.lowest .extreme-value {
	color: #f87171;
}

/* Responsive */
@media (max-width: 768px) {
	.login-container {
		padding: 36px 28px;
	}

	.token-form {
		flex-direction: column;
	}

	.dashboard-header {
		padding: 16px 20px;
		flex-direction: column;
		gap: 16px;
		align-items: stretch;
	}

	.header-left, .header-right {
		justify-content: space-between;
	}

	.dashboard-main {
		padding: 20px;
	}

	.status-bar {
		flex-direction: column;
		gap: 12px;
	}

	.predictions-grid {
		grid-template-columns: 1fr;
	}

	.analytics-grid {
		grid-template-columns: 1fr;
	}

	.extremes-grid {
		grid-template-columns: 1fr;
	}

	.prediction-digit {
		font-size: 2.5rem;
	}

	.digit-chip {
		width: 28px;
		height: 28px;
		font-size: 0.75rem;
	}

	.market-selector-container {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.market-selector {
		max-width: 100%;
	}
}

/* Auth Modal */
.auth-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 20px;
	backdrop-filter: blur(8px);
	animation: fadeIn 0.3s ease;
}

.auth-modal-content {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 40px;
	box-shadow: var(--shadow);
	max-width: 500px;
	width: 100%;
	animation: slideUp 0.3s ease;
}

.auth-header {
	text-align: center;
	margin-bottom: 24px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

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