:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color-scheme: dark;
    --bg: #050814;
    --bg-alt: #0b1020;
    --accent: #00e1ff;
    --accent-soft: rgba(0, 225, 255, 0.12);
    --text: #ffffff;
    --muted: #ffffff;
    --border: #1f2937;
}

* {
    box-sizing: border-box;
}

/* Quantum Neural Network Background Canvas */
#quantum-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

body {
    margin: 0;
    background: radial-gradient(circle at top, #111827 0, #020617 40%, #000 100%);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}

header {
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.7));
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo span {
    font-size: 1.1rem;
}

.logo-badge {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.35), transparent 60%);
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--muted);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.btn-ghost {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.85rem;
    color: var(--muted);
    transition: all 0.2s;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

main {
    padding: 2.5rem 0 3.5rem;
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nav-links {
        display: none;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.hero-badge span {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.3rem, 4vw, 3.1rem);
    line-height: 1.1;
    margin: 0 0 0.75rem;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin: 0 0 1rem;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--muted);
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle strong {
    color: var(--text);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.hero-meta span {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.8);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 2.2rem;
}

.btn-primary {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: radial-gradient(circle at top left, #22d3ee, #0ea5e9, #2563eb);
    color: #0b1120;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-footer {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-footer strong {
    color: var(--text);
}

.card {
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.95));
    border-radius: 1.2rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.card h2 {
    font-size: 1.1rem;
    margin: 0 0 0.4rem;
}

.card p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.section {
    margin-top: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.section-header h2 {
    font-size: 1.15rem;
    margin: 0;
}

.section-header p {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.section-header a {
    font-size: 0.85rem;
    color: var(--muted);
    transition: color 0.2s;
}

.section-header a:hover {
    color: var(--accent);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

article {
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(31, 41, 55, 0.9);
    transition: all 0.3s;
}

article:hover {
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

article h3 {
    font-size: 0.98rem;
    margin: 0 0 0.4rem;
}

article p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.article-meta {
    margin-top: 0.65rem;
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    font-size: 0.7rem;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.9);
}

.newsletter {
    margin-top: 2rem;
    padding: 1.4rem 1.5rem;
    border-radius: 1.1rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
    display: grid;
    gap: 0.9rem;
}

.newsletter h2 {
    font-size: 1.1rem;
    margin: 0;
}

.newsletter label {
    font-size: 0.85rem;
    color: var(--muted);
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.newsletter input[type="email"] {
    flex: 1;
    min-width: 180px;
    padding: 0.6rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    background: rgba(15, 23, 42, 0.9);
    color: var(--text);
    font-size: 0.9rem;
}

.newsletter input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter small {
    font-size: 0.75rem;
    color: var(--muted);
}

footer {
    border-top: 1px solid var(--border);
    padding: 1.7rem 0 2rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 3rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.footer-links a {
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* --- Krypto widget (Kurzy.cz) – appkový vzhled --- */

#krypto_main {
    margin-top: 1.1rem;
    padding: 0.75rem 0.85rem 0.85rem;
    border-radius: 0.9rem;
    background: radial-gradient(circle at top left,
            rgba(56, 189, 248, 0.08),
            rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(55, 65, 81, 0.9);
    font-size: 0.8rem;
    color: var(--muted);
}

/* hlavička widgetu – logo + odkaz Kryptoměny */
#krypto_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

#krypto_main a {
    color: var(--accent);
    text-decoration: none;
}

#krypto_main a:hover {
    text-decoration: underline;
}

/* „logo" Kurzy.cz – spravíme z toho chip */
#KuLOGO {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.7rem;
    height: auto !important;
    width: auto !important;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    background: radial-gradient(circle at top,
            rgba(148, 163, 184, 0.25),
            transparent 70%);
}

/* odkaz "Kryptoměny" */
#krypto_datum {
    font-size: 0.78rem;
    color: var(--muted);
}

/* tabuľka s kryptomenami – natiahneme na šírku a uhladíme */
#k__t {
    width: 100% !important;
    border-collapse: collapse;
    margin-top: 0.15rem;
}

#k__t tr {
    border-bottom: 1px dashed rgba(31, 41, 55, 0.9);
}

#k__t tr:last-child {
    border-bottom: none;
}

#k__t td {
    padding: 0.22rem 0;
    white-space: nowrap;
    font-size: 0.75rem;
}

/* názvy mincí vľavo */
#k__t td:first-child a {
    font-size: 0.8rem;
}

/* čísla vpravo, pekne zarovnané */
#k__t td:nth-child(2),
#k__t td:nth-child(3),
#k__t td:nth-child(4),
#k__t td:nth-child(5) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* hover efekt na riadku – appkový feeling */
#k__t tr:hover {
    background: rgba(15, 23, 42, 0.9);
}

/* Článok styly */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.article-content p {
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content strong {
    color: var(--accent);
    font-weight: 600;
}

.article-content code {
    background: rgba(15, 23, 42, 0.9);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--muted);
}

.info-box {
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.info-box h4 {
    margin: 0 0 0.5rem;
    color: var(--accent);
    font-size: 1.1rem;
}

.warning-box {
    background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.08), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.warning-box h4 {
    margin: 0 0 0.5rem;
    color: #f87171;
    font-size: 1.1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent);
}


/* --- Calculator Styles --- */
.calculator-section {
    margin-top: 3rem;
}

.converter-form,
.pl-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.form-group select,
.form-group input {
    background: rgba(11, 16, 32, 0.6);
    border: 1px solid rgba(55, 65, 81, 0.8);
    border-radius: 0.6rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.form-group select:focus,
.form-group input:focus {
    border-color: var(--accent);
}

.result-box {
    margin-top: 0.5rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.7rem;
    text-align: center;
    border: 1px solid rgba(55, 65, 81, 0.5);
}

#calc-result {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.result-box-pl {
    margin-top: 0.5rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 0.7rem;
    border: 1px solid rgba(55, 65, 81, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.pl-row span {
    color: var(--muted);
}

.pl-row strong {
    font-size: 1.1rem;
}

/* Construction Banner Style */
.construction-banner {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: white;
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    z-index: 1000;
}

.construction-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* FORCE WHITE TEXT MODE (User Request) */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
a,
li,
td,
th,
article,
section,
.card {
    color: #ffffff !important;
}

a:hover {
    color: #00e1ff !important;
    /* Cyan accent */
}

.text-muted {
    color: #ffffff !important;
    opacity: 0.7;
    /* Use opacity for hierarchy instead of color */
}

body {
    --muted: #ffffff;
    --text: #ffffff;
}

/* Bitcoin link is now enabled manually in HTML, so we should NOT disable all links here via CSS global override if we want Bitcoin to work.
       CORRECTION: In index.html, the links have inline styles: style="cursor: default; opacity: 0.6; pointer-events: none;"
    */

/* Advertisement Placeholder */
.ad-placeholder {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 2px dashed var(--border);
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.4);
    text-align: center;
    transition: all 0.3s;
}

.ad-placeholder:hover {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.7);
}

.ad-placeholder h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--text);
}

.ad-placeholder p {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.ad-placeholder .btn-ad {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.ad-placeholder .btn-ad:hover {
    background: var(--accent);
    color: #000;
}
/* Adjust body padding so ticker doesn't overlap header */
body {
    padding-top: 40px;
}

/* Fear & Greed Index Widget */
.fng-widget {
    background: linear-gradient(135deg, #1f1f1f 0%, #0d0d0d 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.fng-widget h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.fng-gauge {
    position: relative;
    width: 200px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.fng-gauge-arc {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 8px solid;
    border-radius: 50%;
    border-color: #22c55e #fbbf24 #ef4444 transparent;
    top: 0;
    left: 0;
    box-sizing: border-box;
}

.fng-needle {
    position: absolute;
    width: 4px;
    height: 80px;
    background: linear-gradient(to bottom, #fff 0%, #00e1ff 100%);
    bottom: 0;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-90deg);
    border-radius: 2px 2px 0 0;
    transition: transform 0.5s ease-out;
    box-shadow: 0 0 10px rgba(0, 225, 255, 0.5);
}

.fng-needle::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #00e1ff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 225, 255, 0.8);
}

.fng-value {
    font-size: 3rem;
    font-weight: bold;
    color: #00e1ff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 225, 255, 0.5);
}

.fng-label {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.fng-update {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ===================================
   Bitcoin Chart Hero Section
   =================================== */
.bitcoin-hero {
    margin: 3rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #333;
}

.bitcoin-hero h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    text-align: center;
}

.chart-container {
    background: #0d0d0d;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #333;
    overflow: hidden;
}

/* ===================================
   Trending Coins Section
   =================================== */
.trending-coins {
    background: linear-gradient(135deg, #1f1f1f 0%, #0d0d0d 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.trending-coins h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.trending-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.trending-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 225, 255, 0.2);
    border-color: #00e1ff;
}

.trending-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: pulse-badge 2s infinite;
    box-shadow: 0 4px 8px rgba(255, 107, 107, 0.4);
}

@keyframes pulse-badge {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(255, 107, 107, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 12px rgba(255, 107, 107, 0.6);
    }
}

.trending-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

.trending-card h4 {
    color: #fff;
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.trending-card .symbol {
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
}

.trending-card .rank {
    display: inline-block;
    margin-top: 0.5rem;
    color: #00e1ff;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===================================
   ENHANCED CRYPTO WIDGETS - PREMIUM DESIGN
   =================================== */

/* ===================================
   Bitcoin Chart Hero Section
   =================================== */
.bitcoin-hero {
    margin: 3rem 0;
    background: linear-gradient(135deg, 
        rgba(0, 225, 255, 0.05) 0%, 
        rgba(26, 26, 26, 0.95) 30%,
        rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 225, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 225, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.bitcoin-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 225, 255, 0.1) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bitcoin-hero h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #00e1ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.chart-container {
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 225, 255, 0.15);
    overflow: hidden;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* ===================================
   Trending Coins Section
   =================================== */
.trending-coins {
    background: linear-gradient(135deg, 
        rgba(31, 31, 31, 0.9) 0%, 
        rgba(13, 13, 13, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(255, 107, 107, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.trending-coins::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ff6b6b 20%, 
        #ff8e53 50%, 
        #ff6b6b 80%, 
        transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.trending-coins h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
}

.trending-card {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.9) 0%, 
        rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.trending-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 225, 255, 0) 0%, 
        rgba(0, 225, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trending-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 225, 255, 0.3),
        0 0 80px rgba(0, 225, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 225, 255, 0.5);
}

.trending-card:hover::before {
    opacity: 1;
}

.trending-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    animation: pulse-badge 2s ease-in-out infinite;
    box-shadow: 
        0 4px 12px rgba(255, 107, 107, 0.5),
        0 0 20px rgba(255, 107, 107, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

@keyframes pulse-badge {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 4px 12px rgba(255, 107, 107, 0.5),
            0 0 20px rgba(255, 107, 107, 0.3);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 
            0 6px 16px rgba(255, 107, 107, 0.7),
            0 0 30px rgba(255, 107, 107, 0.5);
    }
}

.trending-card img {
    width: 56px;
    height: 56px;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.trending-card:hover img {
    transform: scale(1.1);
}

.trending-card h4 {
    color: #fff;
    margin: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.trending-card .symbol {
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.trending-card .rank {
    display: inline-block;
    margin-top: 0.75rem;
    color: #00e1ff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 225, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 225, 255, 0.3);
}

/* ===================================
   Live Crypto Prices Table
   =================================== */
.crypto-table-section {
    margin: 2.5rem 0;
    background: linear-gradient(135deg, 
        rgba(31, 31, 31, 0.9) 0%, 
        rgba(13, 13, 13, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 225, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 225, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.table-header h3 {
    color: #fff;
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #00e1ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.table-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.table-controls input {
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(0, 225, 255, 0.3);
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.95rem;
    min-width: 220px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.table-controls input:focus {
    outline: none;
    border-color: #00e1ff;
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 
        0 0 0 3px rgba(0, 225, 255, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.table-controls input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.table-controls select {
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(0, 225, 255, 0.3);
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.table-controls select:focus {
    outline: none;
    border-color: #00e1ff;
    box-shadow: 0 0 0 3px rgba(0, 225, 255, 0.1);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(13, 13, 13, 0.6);
    backdrop-filter: blur(20px);
    font-size: 0.95rem;
}

.crypto-table th {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(20, 20, 20, 0.98) 100%);
    padding: 1.25rem 1rem;
    text-align: left;
    color: #00e1ff;
    font-weight: 700;
    border-bottom: 2px solid rgba(0, 225, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.crypto-table td {
    padding: 1.25rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
}

.crypto-table tbody tr {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.crypto-table tbody tr:hover {
    background: linear-gradient(90deg, 
        rgba(0, 225, 255, 0.08) 0%, 
        rgba(26, 26, 26, 0.8) 10%);
    border-left-color: #00e1ff;
    box-shadow: inset 0 0 20px rgba(0, 225, 255, 0.05);
}

.coin-name {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coin-name img {
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.coin-info {
    display: flex;
    flex-direction: column;
}

.coin-info strong {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.coin-info .symbol {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.price {
    font-weight: 700;
    font-size: 1.05rem;
    font-family: 'Courier New', monospace;
}

.positive {
    color: #22c55e !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.negative {
    color: #ef4444 !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.market-cap {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
}

.sparkline {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Responsive Design */
@media (max-width: 768px) {
    .bitcoin-hero,
    .trending-coins,
    .crypto-table-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .table-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .table-controls input,
    .table-controls select {
        width: 100%;
    }
    
    .crypto-table {
        font-size: 0.85rem;
    }
    
    .crypto-table th,
    .crypto-table td {
        padding: 0.875rem 0.5rem;
    }
    
    .trending-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}