:root {
    --bg-color: #050505; /* Pitch black */
    --panel-bg: rgba(25, 5, 5, 0.75); /* Dark blood red tint */
    --panel-border: rgba(220, 38, 38, 0.3); /* Crimson border */
    --text-main: #f8fafc;
    --text-muted: #d1d5db;
    --accent-color: #ef4444; /* Blood Red / Fire */
    --accent-glow: rgba(239, 68, 68, 0.6);
    --table-header: rgba(15, 0, 0, 0.9);
    --table-row-hover: rgba(239, 68, 68, 0.15);
}

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

body {
    background-color: var(--bg-color);
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background Orbs */
.background-effects {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}
.orb-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(220,38,38,0.25) 0%, rgba(10,0,0,0) 70%); /* Deep Crimson */
}
.orb-2 {
    bottom: -10%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(249,115,22,0.2) 0%, rgba(10,0,0,0) 70%); /* Fire Orange */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
}
header h1 span {
    color: var(--accent-color);
}
.subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* Glass Panels */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 0.5rem;
}

h3.section-title {
    font-size: 1.2rem;
    margin: 2rem 0 1rem;
    color: var(--accent-color);
}

/* Grid Layouts */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
}

/* 3-Column Stats Layout */
.stat-column {
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .label {
    color: #94a3b8;
    font-size: 0.95rem;
}

.stat-row .value {
    color: #fff;
    font-weight: 600;
}

/* Inputs & Buttons */
.lookup-container, .estimator-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

input[type="text"], input[type="number"], select {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

button {
    padding: 1rem 2rem;
    border-radius: 8px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

select option {
    background: var(--bg-color);
}

.xmr-price {
    color: var(--accent-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 8px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

.data-table th {
    background: var(--table-header);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.data-table tr:hover {
    background: var(--table-row-hover);
}

.hidden {
    display: none;
}

/* Charts */
.chart-container {
    width: 100%;
    height: 300px;
    position: relative;
}

footer {
    text-align: center;
    color: var(--text-muted);
    margin-top: 3rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .lookup-container {
        flex-direction: column;
    }
    button, input {
        width: 100%;
    }
}
