:root {
    --bg-color: #0a0e17;
    --panel-bg: rgba(20, 26, 41, 0.7);
    --panel-border: rgba(255, 255, 255, 0.08);
    --primary: #00f0ff;
    --primary-hover: #00c3ff;
    --secondary: #7000ff;
    --accent: #ff0055;
    --text-main: #f0f4f8;
    --text-muted: #8a9bb3;
    --hot-color: #ff4757;
    --warm-color: #ffa502;
    --cold-color: #1e90ff;
    --success: #2ed573;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.15), transparent 25%);
    color: var(--text-main);
    min-height: 100vh;
    padding: 2rem;
    line-height: 1.6;
}

.glass-container {
    max-width: 1280px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 span {
    font-size: 1rem;
    background: linear-gradient(90deg, #ff0055, #ffaa00);
    -webkit-background-clip: text;
    color: transparent;
    vertical-align: top;
    font-weight: 800;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 1rem;
}

/* Input Section */
.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

textarea {
    width: 100%;
    height: 150px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-main);
    padding: 1rem;
    font-family: monospace;
    resize: vertical;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.settings {
    margin-bottom: 2rem;
}

.settings h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.setting-item {
    margin-bottom: 1rem;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="number"], select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.8rem;
    border-radius: 8px;
    width: 100%;
    outline: none;
    transition: all 0.3s;
}

input[type="number"]:focus, select:focus {
    border-color: var(--primary);
}

.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.primary-btn {
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.8), rgba(0, 240, 255, 0.8));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.run-btn {
    background: linear-gradient(135deg, #00f0ff, #0066ff);
    color: #fff;
    font-size: 1.2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.run-btn:disabled {
    background: #2a3441;
    color: #5a6b82;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.run-btn:not(:disabled):hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Funnel */
.funnel-visualization {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0,0,0,0.1);
    padding: 1.5rem;
    border-radius: 12px;
}

.funnel-stage {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--text-muted);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s;
}

.funnel-stage.active {
    border-left-color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
    color: #fff;
}

.funnel-stage.highlight {
    border-left-color: var(--accent);
    font-weight: 600;
}

/* Progress */
.progress-container {
    margin-top: 1.5rem;
    display: none;
}

.progress-bar {
    height: 8px;
    background: #1a2235;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

#progressBar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.1s linear;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary);
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Results */
.results-desc {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.results-table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--panel-border);
}

th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

td {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
}

.ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 6px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ball.front {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
}

.ball.back {
    background: linear-gradient(135deg, #1e90ff, #70a1ff);
    color: white;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    font-size: 0.9rem;
    font-weight: bold;
}

tr:nth-child(1) .rank-badge { background: linear-gradient(135deg, #ffd700, #ffb142); color: #000; }
tr:nth-child(2) .rank-badge { background: linear-gradient(135deg, #e0e0e0, #a4b0be); color: #000; }
tr:nth-child(3) .rank-badge { background: linear-gradient(135deg, #cd7f32, #cc8e35); color: #fff; }

.freq-bar {
    height: 6px;
    background: rgba(0, 240, 255, 0.2);
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.freq-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

/* Label Badge */
.label-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0,240,255,0.2), rgba(112,0,255,0.2));
    border: 1px solid rgba(0,240,255,0.4);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 6px;
}

/* Checkbox label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Ball hit/miss states */
.ball.hit {
    box-shadow: 0 0 12px 3px rgba(46, 213, 115, 0.9) !important;
    transform: scale(1.15);
    background: linear-gradient(135deg, #2ed573, #7bed9f) !important;
    color: #000 !important;
}

.ball.miss {
    opacity: 0.3;
    filter: grayscale(0.8);
}

/* Hits badge */
.hits-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
}
.hits-badge.hits-1 { background: rgba(255,165,0,0.2); color: #ffa502; }
.hits-badge.hits-2 { background: rgba(46,213,115,0.2); color: #2ed573; }
.hits-badge.hits-3 { background: rgba(0,240,255,0.25); color: #00f0ff; }
.hits-badge.hits-4 { background: rgba(255,0,85,0.25); color: #ff6b81; }
.hits-badge.hits-5 { background: linear-gradient(135deg,#ffd700,#ff6348); color: #000; font-size:1rem; }

/* Verify Section */
.verify-section {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(0,240,255,0.15);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.verify-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.verify-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.verify-front {
    display: flex;
    gap: 6px;
}

.verify-num {
    width: 62px !important;
    padding: 0.6rem !important;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
}

.verify-back {
    width: 62px !important;
    border-color: rgba(30,144,255,0.5) !important;
}

.plus-sign {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 700;
}

.verify-btn {
    width: auto !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 0.95rem !important;
    background: linear-gradient(135deg, rgba(46,213,115,0.8), rgba(0,200,100,0.8));
    color: #000;
    font-weight: 700;
    border-radius: 8px;
}
.verify-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(46,213,115,0.4); }

.clear-verify-btn {
    width: auto !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    border-radius: 8px;
}
.clear-verify-btn:hover { background: rgba(255,0,85,0.2); color: #ff4757; }

.verify-result { margin-top: 1rem; }

.verify-summary {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.win-nums {
    font-size: 1.1rem;
    color: var(--text-muted);
}
.win-nums strong { color: #ffd700; font-size: 1.2rem; letter-spacing: 2px; }

.verify-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.vstat {
    font-size: 0.95rem;
    color: var(--text-muted);
}
.vstat b { color: var(--text-main); }
.vstat.good b { color: var(--success); }

/* Range Slider */
.range-slider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 6px;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
}

#coWeightVal {
    font-family: monospace;
    font-weight: bold;
    color: var(--primary);
    min-width: 40px;
}

/* Refined Badge */
.refined-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); }
    100% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }
}

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

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .dashboard { grid-template-columns: 1fr; }
    .verify-inputs { flex-direction: column; align-items: flex-start; }
    .verify-front { flex-wrap: wrap; }
    .iching-wrapper { grid-template-columns: 1fr; }
    .gua-row { flex-direction: column; }
}

/* ═══════════════════════════════════════════ */
/* Tab Navigation                              */
/* ═══════════════════════════════════════════ */

.tab-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
    background: rgba(0,0,0,0.25);
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--panel-border);
}

.tab-btn {
    flex: 1;
    padding: 0.85rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.tab-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(112,0,255,0.4), rgba(0,240,255,0.3));
    border-color: rgba(0,240,255,0.4);
    color: #fff;
    box-shadow: 0 0 20px rgba(0,240,255,0.15);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease-out; }

/* ═══════════════════════════════════════════ */
/* I Ching Layout                              */
/* ═══════════════════════════════════════════ */

.iching-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.iching-input-panel { }

.iching-grid {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 1.5rem;
}

.iching-section {
    background: rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    border: 1px solid var(--panel-border);
}

.iching-section h3 {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.iching-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.iching-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.iching-field label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.iching-status {
    background: rgba(0,240,255,0.05);
    border: 1px dashed rgba(0,240,255,0.25);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.locate-btn {
    width: auto !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.85rem !important;
    background: rgba(0,240,255,0.15);
    border: 1px solid rgba(0,240,255,0.3);
    color: var(--primary);
    border-radius: 8px;
    margin-bottom: 1px;
}
.locate-btn:hover { background: rgba(0,240,255,0.25); transform: translateY(-1px); }

.iching-run-btn {
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.iching-run-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124,58,237,0.6);
}

/* ═══════════════════════════════════════════ */
/* I Ching Results                             */
/* ═══════════════════════════════════════════ */

.iching-result-panel { }

/* 卦象卡片 */
.gua-row {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.gua-card {
    flex: 1;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s;
}
.gua-card:hover { transform: translateY(-3px); border-color: rgba(124,58,237,0.4); }

.gua-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gua-symbols {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.gua-sym {
    font-size: 2rem;
    line-height: 1;
}
.gua-sym.upper { color: #ffd700; }
.gua-sym.lower { color: #00f0ff; }
.gua-sym.changed { color: #ff6b9d; }
.gua-sym.loc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.6; display: block; white-space: pre-line; }

.gua-names {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.gua-elem {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 五行分布条 */
.iching-wuxing-section {
    margin-bottom: 1.5rem;
}

.iching-wuxing-section h3,
.iching-combos-section h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.8rem;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--panel-border);
}

.wx-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.wx-label {
    width: 20px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.wx-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.wx-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease-out;
    box-shadow: 0 0 6px currentColor;
}

.wx-pct {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 80px;
    text-align: right;
}
.wx-pct small { font-size: 0.7rem; }

/* 推荐组合行 */
.iching-combo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--panel-border);
    animation: fadeIn 0.5s ease-out;
}
.iching-combo-row:last-child { border-bottom: none; }

.iching-balls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.plus-sep {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 700;
    margin: 0 4px;
}

/* ── 老虎机动画相关 ── */
.gua-spin {
    animation: gua-pulse 0.15s ease-in-out infinite alternate;
}

@keyframes gua-pulse {
    from { opacity: 0.7; transform: translateY(-1px) scale(0.99); }
    to   { opacity: 1;   transform: translateY(1px)  scale(1.01); }
}

.gua-flash {
    animation: gua-flash-anim 0.8s ease-out forwards;
    border-color: #ffd700 !important;
}

@keyframes gua-flash-anim {
    0%   { box-shadow: 0 0 0 rgba(255,215,0,0); }
    30%  { box-shadow: 0 0 30px rgba(255,215,0,0.9); }
    100% { box-shadow: 0 0 8px rgba(255,215,0,0.1); }
}

.ball-flash {
    animation: ball-flash-anim 0.5s ease-out forwards;
}

@keyframes ball-flash-anim {
    0%   { transform: scale(1);    box-shadow: 0 0 0 rgba(46,213,115,0); }
    40%  { transform: scale(1.25); box-shadow: 0 0 18px rgba(46,213,115,1); }
    100% { transform: scale(1);    box-shadow: 0 0 0 rgba(46,213,115,0); }
}

/* TTT Bagua Canvas Animation TTT */
.iching-result-panel { min-height: 480px; position: relative; }
#baguaContainer { position: relative; width: 100%; min-height: 460px; display: flex; align-items: flex-end; justify-content: center; }
#baguaCanvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; }
.bagua-hint { position: relative; z-index: 2; margin-bottom: 24px; padding: 12px 22px; background: rgba(0,0,0,0.5); border: 1px solid rgba(0,240,255,0.3); border-radius: 12px; text-align: center; font-size: 1rem; color: rgba(0,240,255,0.9); line-height: 1.8; backdrop-filter: blur(8px); white-space: nowrap; animation: bagua-hint-pulse 3s ease-in-out infinite; }
@keyframes bagua-hint-pulse { 0%,100%{opacity:0.7;text-shadow:0 0 8px rgba(0,240,255,0.4);}50%{opacity:1;text-shadow:0 0 20px rgba(0,240,255,0.9);} }

/* TTT Blend Slider TTT */
.blend-slider-container {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
}
.blend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.blend-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(90deg, var(--primary), #a78bfa);
    border-radius: 3px;
    outline: none;
    margin-bottom: 10px;
}
.blend-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    border: 2px solid #a78bfa;
}
.blend-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    border: 2px solid #a78bfa;
}
.iching-hits-cell { margin-left: auto; min-width: 100px; text-align: right; }  
.iching-combo-row:hover { background: rgba(255,255,255,0.02); } 
  
/* --- Mobile Responsive --- */  
@media (max-width: 768px) {  
  body { padding: 1rem; }  
  h1 { font-size: 1.8rem; }  
  .dashboard { grid-template-columns: 1fr; gap: 1rem; }  
  .panel { padding: 1.2rem; border-radius: 15px; }  
  .stats-grid { grid-template-columns: 1fr; }  
  .tabs { flex-direction: column; gap: 0.5rem; }  
  .tab-btn { width: 100%; justify-content: center; padding: 1rem; }  
  .verify-front { flex-wrap: wrap; gap: 5px; justify-content: center; }  
  .verify-num { width: 45px; height: 45px; }  
  .iching-combo-row { flex-direction: column; gap: 10px; text-align: center; }  
  .iching-hits-cell { margin-left: 0; text-align: center; width: 100%; }  
  .gua-row { flex-direction: column; }  
} 
