:root {
    --primary: #f7931a; /* Bitcoin Orange */
    --primary-glow: rgba(247, 147, 26, 0.5);
    --bg-dark: #0f111a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --accent: #00ccff;
    --glass: rgba(255, 255, 255, 0.02);
}

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

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Jost', sans-serif;
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% -20%, #1e2130, #0f111a);
    min-height: 100vh;
}

.top-nav {
    padding: 20px 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: rgba(15, 17, 26, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 300;
    gap: 12px;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.nav-logo {
    height: 32px;
    width: auto;
}

.container {
    max-width: 750px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

h1 {
    font-size: 3.5rem;
    font-weight: 300;
    background: linear-gradient(135deg, var(--primary), #ffc107);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.subheader {
    font-size: 1.2rem;
    color: var(--text-dim);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.live-price-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.live-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

.live-value {
    font-size: 2.2rem;
    font-weight: 300;
    color: #26e6a4; /* Neon Teal to match checkmark */
    text-shadow: 0 0 20px rgba(38, 230, 164, 0.3);
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: #26e6a4;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(38, 230, 164, 0.4);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(38, 230, 164, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(38, 230, 164, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(38, 230, 164, 0);
    }
}

.average-tile {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.95), rgba(255, 193, 7, 0.95));
    backdrop-filter: blur(8px);
    padding: 20px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(247, 147, 26, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 85px;
    z-index: 999;
    margin-bottom: 30px;
}

.avg-label {
    color: rgba(0, 0, 0, 0.7);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.avg-price {
    color: #000;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btc-icon {
    vertical-align: middle;
}

.price-diff {
    font-size: 1.7rem;
    font-weight: 300;
    margin-left: 10px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
}

.price-diff.pos {
    color: #26e6a4;
}

.price-diff.neg {
    color: #ff4444;
}

.row-diff {
    font-size: 0.85rem;
    font-weight: 300;
}

.row-diff.pos {
    color: #26e6a4;
}

.row-diff.neg {
    color: #ff4444;
}

.data-container {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 30px;
    padding-top: 0px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out;
    position: relative;
    overflow: hidden;
}

.data-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 0px;
}

th {
    text-align: center;
    padding: 15px 20px;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 1px;
}

td {
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

td:first-child {
    border-left: 1px solid var(--card-border);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

td:last-child {
    border-right: 1px solid var(--card-border);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(247, 147, 26, 0.3);
    transition: all 0.3s ease;
}

.table-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 300;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.table-link:hover {
    border-bottom-color: var(--accent);
    opacity: 0.8;
}

/* Custom Checkbox Style */
.custom-checkbox {
    display: block;
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: transparent;
    border: 2px solid #00ccff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-checkbox:hover input ~ .checkmark {
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.4);
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: transparent;
    border-color: #26e6a4; /* Neon Teal */
    box-shadow: 0 0 15px rgba(38, 230, 164, 0.6);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkmark:after {
    left: 50%;
    top: 45%;
    width: 6px;
    height: 12px;
    border: solid #26e6a4;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: var(--primary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(247, 147, 26, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

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

.coming-soon {
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.coming-soon-badge {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.coming-soon-content h3 {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-main);
    margin-bottom: 10px;
}

.coming-soon-content p {
    font-size: 0.95rem;
    color: var(--text-dim);
    font-weight: 300;
}

.methodology-section {
    margin-top: 80px;
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--card-border);
}

.methodology-section h2 {
    font-size: 1.8rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    letter-spacing: 2px;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.methodology-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.methodology-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(247, 147, 26, 0.2);
    transform: translateY(-5px);
}

.source-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.methodology-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

.methodology-card a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.8rem;
    margin-left: 4px;
    border-bottom: 1px solid transparent;
}

.methodology-card a:hover {
    border-bottom-color: var(--accent);
}

.methodology-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 204, 255, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0, 204, 255, 0.05);
}

.methodology-link:hover {
    background: rgba(0, 204, 255, 0.1);
    border-color: var(--accent);
    transform: translateX(3px);
}

.methodology-link::after {
    content: ' →';
    font-size: 1rem;
    vertical-align: middle;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .container {
        padding: 20px 15px;
    }
    td, th {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
}
