	* { margin: 0; padding: 0; box-sizing: border-box; }
	body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #0a0e27; color: #fff; }
	.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
	header { padding: 20px 0; border-bottom: 1px solid #1a1f3a; margin-bottom: 20px; }
	h1 { font-size: 2.5em; margin-bottom: 5px; }
	.subtitle { color: #888; }
	.tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid #1a1f3a; padding-bottom: 10px; }
	.tab-btn { background: #141829; border: 1px solid #1a1f3a; color: #888; padding: 10px 20px; border-radius: 6px; cursor: pointer; font-size: 0.9em; }
	.tab-btn:hover { background: #1a1f3a; color: #fff; }
	.tab-btn.active { background: #5a6dd8; color: #fff; border-color: #5a6dd8; }
	.tab-content { display: none; }
	.tab-content.active { display: block; }
	.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
	.card { background: #141829; border: 1px solid #1a1f3a; border-radius: 8px; padding: 20px; }
	.card h2 { font-size: 0.9em; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
	.card .value { font-size: 2.5em; font-weight: bold; color: #5a6dd8; }
	.card .unit { color: #666; font-size: 0.8em; }
	.table { width: 100%; background: #141829; border: 1px solid #1a1f3a; border-radius: 8px; overflow: hidden; }
	.table th { background: #0a0e27; padding: 15px; text-align: left; border-bottom: 1px solid #1a1f3a; font-weight: 600; color: #888; }
	.table td { padding: 15px; border-bottom: 1px solid #1a1f3a; }
	.table tr:last-child td { border-bottom: none; }
	.table tbody tr:hover { background: #1a1f3a; }
	.table tbody tr.selected { background: #2a3a5a; }
	.th-sort { cursor: pointer; user-select: none; }
	.th-sort:hover { color: #5a6dd8; }
	.th-sort::after { content: ' ⇅'; font-size: 0.8em; opacity: 0.5; }
	.th-sort.asc::after { content: ' ▲'; opacity: 1; }
	.th-sort.desc::after { content: ' ▼'; opacity: 1; }
	.bar { height: 20px; background: #5a6dd8; border-radius: 4px; position: relative; }
	.bar-label { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); color: white; font-size: 0.85em; font-weight: bold; }
	.chart-container { background: #141829; border: 1px solid #1a1f3a; border-radius: 8px; padding: 20px; margin-top: 20px; }
	h3 { margin: 20px 0 10px 0; }
	.loading { text-align: center; color: #666; }
	.search-box { width: 100%; max-width: 400px; background: #0a0e27; border: 1px solid #1a1f3a; color: #fff; padding: 10px 14px; border-radius: 6px; font-size: 0.95em; margin-bottom: 10px; }
	.search-box::placeholder { color: #666; }
	.search-box:focus { outline: none; border-color: #5a6dd8; }
	.search-meta { color: #888; font-size: 0.85em; margin-bottom: 10px; }
	.card-thumb-wrapper {
		position: relative;
		display: inline-block;
	}

	.card-thumb {
		height: 64px;
		border-radius: 6px;
		transition: transform 0.15s ease;
	}

	.card-thumb:hover {
		transform: scale(1.05);
	}

	.card-preview {
		display: none;
		position: absolute;
		z-index: 1000;
		left: 80px;
		top: -40px;
		background: #000;
		padding: 8px;
		border-radius: 10px;
		box-shadow: 0 8px 32px rgba(0,0,0,0.5);
	}

	.card-thumb-wrapper:hover .card-preview {
		display: block;
	}

	.card-preview-img {
		width: 320px;
		border-radius: 12px;
	}

	/* New Features Styling */
	.error { 
		color: #e74c3c; 
		padding: 15px;
		background: rgba(231, 76, 60, 0.1);
		border-left: 4px solid #e74c3c;
		border-radius: 4px;
		text-align: center;
	}

	.success {
		color: #2ecc71;
		padding: 15px;
		background: rgba(46, 204, 113, 0.1);
		border-left: 4px solid #2ecc71;
		border-radius: 4px;
	}

	.recommendation-card {
		padding: 12px;
		background: #0a0e27;
		border-radius: 6px;
		margin-bottom: 8px;
		border-left: 4px solid #4ecdc4;
	}

	.recommendation-card strong {
		color: #fff;
		display: block;
		margin-bottom: 4px;
	}

	.recommendation-card .card-stat {
		font-size: 0.9em;
		color: #888;
		margin-top: 4px;
	}

	.deck-editor-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 20px;
		margin-bottom: 20px;
	}

	.deck-editor-section {
		background: #1a1a1a;
		padding: 15px;
		border-radius: 6px;
		border-left: 4px solid #4ecdc4;
	}

	.deck-editor-section h4 {
		margin: 0 0 15px 0;
		color: #4ecdc4;
	}

	.card-search-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 15px;
	}

	.card-search-result {
		padding: 12px;
		background: #1a1a1a;
		border-radius: 6px;
		border-left: 4px solid #4ecdc4;
	}

	.card-search-result img {
		width: 100%;
		border-radius: 4px;
		margin-bottom: 8px;
		max-height: 200px;
		object-fit: cover;
	}

	.card-search-result strong {
		display: block;
		margin-bottom: 4px;
	}

	.card-search-result .stats {
		font-size: 0.9em;
		color: #888;
		margin: 4px 0;
	}

	.win-rate-high { color: #2ecc71; }
	.win-rate-medium { color: #f39c12; }
	.win-rate-low { color: #e74c3c; }

	.deck-name-truncate {
		max-width: 250px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		direction: rtl;
		text-align: left;
		display: inline-block;
		vertical-align: bottom;
	}

