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

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: #000;
    pointer-events: none;
}

html {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    /*background: linear-gradient(135deg, #13151a 0%, #1e2128 100%);*/
    background-color: #1b1b1b !important;
    color: #e1e1e1;
    padding: 10px;
}

body:has(#matrix-canvas) {
    background-color: transparent;
}

.price-increase {
    animation: highlightGreen 1s ease-out;
}

.price-decrease {
    animation: highlightRed 1s ease-out;
}

h1 {
    margin-bottom: 4px;
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
}

h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

h4 {
    padding: 0 5px;
    color: #8a8f98;
}

h5 {
    padding: 0 5px;
    color: #8a8f98;
}

.crypto-market-data>p {
    color: hsl(182, 66%, 55%);
    font-weight: 500;
    font-size: 0.95em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease;
}

a:hover {
    transform: translateY(-2px);
}


.crypto-area {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 10px;
}

.crypto-market-data {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin: 0;
    margin-bottom: 10px;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.market-data-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d9a0ff;
    font-weight: 600;
    font-size: 1.1em;
    padding-right: 24px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.market-data-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: space-around;
}

.market-data-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.market-data-item .label {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a8f98;
    font-weight: 600;
}

.market-data-item .value-group {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.market-data-item .value {
    font-family: 'Inter', sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 1.1em;
    color: #ffffff;
    font-weight: 600;
}

.market-data-item .change {
    font-size: 0.9em;
    font-weight: 500;
}

.market-data-item .coin-label {
    font-size: 0.8em;
    color: #8a8f98;
    font-weight: 500;
    margin-left: 4px;
}

.market-data-item .coin-label:first-child {
    margin-left: 0;
}

.market-data-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.crypto-container-outerbox {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
    margin-top: 50px;
}

.crypto-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    width: 100%;
}

.crypto {
    text-align: center;
    cursor: move;
    user-select: none;
    position: relative;
    z-index: 1;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    will-change: transform;
}

.crypto>* {
    pointer-events: none;
}

.crypto.dragging {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    z-index: 1000;
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.crypto.drop-target {
    background: rgba(52, 152, 219, 0.15);
    border-radius: 12px;
    transform: scale(0.98);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.5);
}

.crypto:hover {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.crypto-placeholder {
    opacity: 0;
    pointer-events: none;
    grid-column: span 1;
}

#totalMcap,
#totalVolume {
    color: #ffffff;
    font-weight: 500;
}

#totalMcapChange,
#totalVolumeChange {
    color: #00ff00;
    font-weight: 500;
}

#bitcoinDominance,
#ethereumDominance {
    color: #d9a0ff;
    font-weight: 500;
}

[id$="-price-container"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 12px;
    margin: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

[id$="-price-container"]:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
}

[id$="-price-container"] img {
    width: 24px;
    height: 24px;
    margin-right: 4px;
}


.reddit-area {
    width: 100%;
    max-width: 1400px;
    margin: 10px auto;
}

.reddit-container-outerbox {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.reddit-sentiment-data {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d9a0ff;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#data-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.reddit-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    transition: all 0.3s ease;
}

.reddit-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
}

.ticker {
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.comments {
    color: #8a8f98;
    margin-bottom: 4px;
}

.sentiment {
    font-weight: 500;
}

.sentiment.bullish {
    color: #00dc82;
}

.sentiment.bearish {
    color: #ff4757;
}


.news-area {
    width: 100%;
    max-width: 1400px;
    margin: 10px auto;
    overflow: hidden;
}

.news-container-outerbox {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.news-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d9a0ff;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#news-container {
    display: flex;
    gap: 12px;
    overflow-x: hidden;
    padding: 1px 0;
    scroll-behavior: smooth;
    width: max-content;
}

#news-container:not(.loading) {
    animation: scrollNews 120s linear infinite;
}

#news-container.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #ffffff;
    gap: 1rem;
    position: relative;
    width: 100%;
    animation: none;
}

#news-container.loading .loading-spinner {
    position: static;
    transform: none;
}

.news-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
    width: 210px;
    height: 215px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
}

.news-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.news-item .source {
    font-size: 0.8em;
    color: #8a8f98;
    margin: 6px 12px 2px 12px;
}

.news-item .title {
    font-size: 0.9em;
    margin: 0 12px 2px 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

.news-item .date {
    font-size: 0.75em;
    color: #8a8f98;
    margin: 0 12px 6px 12px;
    padding-bottom: 0;
}

.news-item a {
    color: inherit;
    text-decoration: none;
}

.news-item .related-coins {
    color: #d9a0ff;
    font-size: 0.85em;
    font-weight: 500;
    margin-top: 4px;
}

@keyframes scrollNews {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

#news-container:hover {
    animation-play-state: paused;
}


.fiat-area {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.fiat-container-outerbox {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.fiat-rates {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d9a0ff;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fiat-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    width: 100%;
}

[id$="-rate-container"] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 12px;
    margin: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

[id$="-rate-container"]:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
}

.fiat-container .crypto {
    text-align: center;
    cursor: move;
    user-select: none;
    position: relative;
    z-index: 1;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    will-change: transform;
}

.fiat-container .crypto>* {
    pointer-events: none;
}

.fiat-container .crypto.dragging {
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    z-index: 1000;
    cursor: grabbing;
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.fiat-container .crypto.drop-target {
    background: rgba(52, 152, 219, 0.15);
    border-radius: 12px;
    transform: scale(0.98);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
    border-color: rgba(52, 152, 219, 0.5);
}

.fiat-container .crypto:hover {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}



.fiat-container .chart-link {
    pointer-events: auto !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: #d9a0ff;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.fiat-container .chart-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.fiat-container .chart-link svg {
    width: 16px;
    height: 16px;
}

.fiat-container .crypto-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

@media (max-width: 1200px) {
    body {
        padding: 8px;
    }

    .crypto-container,
    .fiat-container,
    #data-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }

    .crypto-market-data {
        display: none;
    }

    .crypto-container,
    .fiat-container,
    #data-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 8px;
    }

    h1 {
        font-size: 1.1em;
    }

    h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {

    .crypto-container,
    .fiat-container,
    #data-container {
        grid-template-columns: 1fr;
    }

    [id$="-price-container"],
    [id$="-rate-container"],
    .reddit-item {
        padding: 6px;
    }
}

.chart-link {
    pointer-events: auto !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: #d9a0ff;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.chart-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.chart-link svg {
    width: 16px;
    height: 16px;
}

.crypto-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #d9a0ff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

.crypto-market-data .loading {
    display: inline-flex;
    align-items: center;
    color: #8a8f98;
    font-size: 0.85em;
}

.error {
    color: #ff4757;
    font-weight: 500;
}

@keyframes flashGreen {
    0% {
        background-color: rgba(0, 255, 0, 0.2);
    }

    100% {
        background-color: rgba(255, 255, 255, 0.03);
    }
}

@keyframes flashRed {
    0% {
        background-color: rgba(255, 0, 64, 0.2);
    }

    100% {
        background-color: rgba(255, 255, 255, 0.03);
    }
}

@keyframes highlightGreen {
    0% {
        color: #00ff00;
    }

    100% {
        color: #fff;
    }
}

@keyframes highlightRed {
    0% {
        color: #ff0040;
    }

    100% {
        color: #fff;
    }
}

.crypto.flash-up {
    animation: flashGreen 1s ease-out;
}

.crypto.flash-down {
    animation: flashRed 1s ease-out;
}

.price-digit.price-increase {
    animation: highlightGreen 1s ease-out;
}

.price-digit.price-decrease {
    animation: highlightRed 1s ease-out;
}

#data-container.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 200px;
    color: #8a8f98;
    font-size: 0.9em;
}

#data-container.loading .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #d9a0ff;
    animation: spin 1s ease-in-out infinite;
}

.toggle-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #8a8f98;
    transition: all 0.3s ease;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    color: #ffffff;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-btn.collapsed .toggle-icon {
    transform: rotate(-180deg);
}

.news-container-outerbox,
.fiat-container-outerbox,
.reddit-container-outerbox {
    transition: all 0.3s ease;
}

.news-container-outerbox.collapsed,
.fiat-container-outerbox.collapsed,
.reddit-container-outerbox.collapsed {
    max-height: 60px;
    overflow: hidden;
}

.news-header,
.fiat-rates,
.reddit-sentiment-data {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(19, 21, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    height: 50px;
}

.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.menu-left {
    display: flex;
    align-items: center;
}

.menu-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.menu-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu-item {
    color: #8a8f98;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.menu-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .menu-container {
        padding: 0 10px;
    }

    .menu-right {
        gap: 10px;
    }

    .menu-item {
        padding: 6px 8px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .menu-right {
        display: none;
    }

    .menu-container {
        justify-content: center;
    }
}

.settings-container {
    max-width: 800px;
    margin: 80px auto 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.settings-section {
    margin-top: 20px;
}

.settings-section h2 {
    color: #ffffff;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.settings-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.settings-item h3 {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.settings-item p {
    color: #8a8f98;
    margin-bottom: 15px;
}

.danger-button {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.danger-button:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.4);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1002;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(19, 21, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: #ffffff;
    font-size: 1.4em;
    margin-bottom: 16px;
}

.modal-content p {
    color: #8a8f98;
    margin-bottom: 16px;
}

.modal-content ul {
    list-style-type: none;
    margin-bottom: 24px;
    padding: 0;
}

.modal-content li {
    color: #8a8f98;
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.modal-content li::before {
    content: "•";
    color: #ff4757;
    position: absolute;
    left: 0;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.menu-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .settings-container {
        margin-top: 60px;
        padding: 15px;
    }

    .settings-item {
        padding: 15px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
    }
}

.news-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 80px;
}

.news-page-container h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    padding: 20px;
}

.news-grid-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.news-grid-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-grid-source {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
}

.news-grid-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-grid-title {
    color: #ffffff;
    font-size: 1.2em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-grid-description {
    color: #8a8f98;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.news-grid-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-grid-date {
    color: #8a8f98;
    font-size: 0.9em;
}

.news-grid-link {
    color: #00ff00;
    text-decoration: none;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.news-grid-link:hover {
    color: #00cc00;
}

.error-message {
    color: #ff4757;
    text-align: center;
    padding: 20px;
    grid-column: 1 / -1;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 8px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }

    .news-grid-image {
        height: 180px;
    }

    .news-grid-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .news-page-container {
        margin-top: 60px;
        padding: 10px;
    }

    .news-grid-item {
        border-radius: 12px;
    }
}

.nfts-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 80px;
}

.nfts-page-container h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.nfts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.nft-grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nft-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.nft-grid-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.nft-grid-blockchain {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.nft-grid-content {
    padding: 20px;
}

.nft-grid-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.nft-grid-description {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.nft-grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.nft-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nft-stat-label {
    color: #888;
    font-size: 0.8rem;
}

.nft-stat-value {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.nft-grid-urls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nft-url {
    color: #00ff00;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nft-url:hover {
    background: #00ff00;
    color: #000;
}

@media (max-width: 768px) {
    .nfts-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .nft-grid-image {
        height: 180px;
    }

    .nft-grid-content {
        padding: 15px;
    }

    .nft-grid-stats {
        grid-template-columns: 1fr;
    }
}

.prices-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 80px;
}

.prices-page-container h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.prices-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.header-row {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    color: #ffffff;
    padding: 12px 20px;
    margin-bottom: 5px;
    cursor: default;
}

.header-row:hover {
    transform: none;
    box-shadow: none;
}

.header-row .price-row-rank,
.header-row .price-row-header,
.header-row .price-row-price,
.header-row .price-row-changes,
.header-row .price-row-marketcap,
.header-row .price-row-volume,
.header-row .price-row-supply,
.header-row .price-row-links {
    color: #ffffff;
}

.header-row .price-row-marketcap,
.header-row .price-row-volume,
.header-row .price-row-supply {
    text-align: right;
}

.price-row {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-row:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.price-row-rank {
    color: #888;
    font-size: 1.1rem;
    font-weight: 500;
    min-width: 50px;
}

.price-row-header {
    display: flex;
    align-items: center;
    min-width: 200px;
}

.coin-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 50%;
}

.coin-info {
    display: flex;
    flex-direction: column;
}

.coin-name {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.coin-symbol {
    color: #888;
    font-size: 0.9rem;
}

.price-row-price {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 120px;
}

.price-row-changes {
    display: flex;
    gap: 15px;
    min-width: 150px;
}

.price-change {
    display: flex;
    align-items: center;
    gap: 5px;
}

.change-label {
    color: #888;
    font-size: 0.9rem;
}

.price-row-marketcap {
    color: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.price-row-volume {
    color: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.price-row-supply {
    color: white;
    font-size: 0.9rem;
    min-width: 120px;
}

.price-row-links {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.price-link {
    color: #888;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.price-link:hover {
    color: white;
}

@media (max-width: 1200px) {
    .price-row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .price-row-marketcap,
    .price-row-volume,
    .price-row-supply {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .prices-grid {
        padding: 10px;
    }

    .price-row {
        padding: 12px;
        gap: 10px;
    }

    .price-row-header {
        min-width: 150px;
    }

    .price-row-price {
        font-size: 1.1rem;
    }

    .price-row-changes {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .price-row-header {
        width: 100%;
    }

    .price-row-changes {
        width: 100%;
        justify-content: space-between;
    }

    .price-row-links {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
}

.loading-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #888;
    font-size: 1.1rem;
    padding: 40px;
    grid-column: 1 / -1;
}

.loading-message i {
    font-size: 1.5rem;
    color: #d9a0ff;
}

.fiat-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 80px;
}

.fiat-page-container h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.fiat-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.fiat-row {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fiat-row:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.fiat-row-header {
    display: flex;
    align-items: center;
    min-width: 200px;
    flex: 1;
}

.fiat-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 50%;
}

.fiat-info {
    display: flex;
    flex-direction: column;
}

.fiat-name {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.fiat-row-rate {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 120px;
    text-align: right;
}

.fiat-row-symbol {
    color: #888;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: right;
}

.header-row {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    color: #ffffff;
    padding: 12px 20px;
    margin-bottom: 5px;
    cursor: default;
}

.header-row:hover {
    transform: none;
    box-shadow: none;
}

.header-row .fiat-row-header,
.header-row .fiat-row-rate,
.header-row .fiat-row-symbol {
    color: #ffffff;
}

.header-row .fiat-row-rate,
.header-row .fiat-row-symbol {
    text-align: right;
}

@media (max-width: 768px) {
    .fiat-grid {
        padding: 10px;
    }

    .fiat-row {
        padding: 12px;
        gap: 10px;
    }

    .fiat-row-header {
        min-width: 150px;
    }

    .fiat-row-rate {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .fiat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .fiat-row-header {
        width: 100%;
    }

    .fiat-row-rate,
    .fiat-row-symbol {
        width: 100%;
        text-align: left;
    }
}

.fiat-subtitle {
    color: #8a8f98;
    font-size: 0.9em;
    margin-top: 5px;
}

.site-footer {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #8a8f98;
    font-size: 0.9em;
    line-height: 1.5;
}

.footer-content p {
    margin: 0;
}

.footer-content a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-content a:hover {
    color: #6fb1ff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .site-footer {
        margin: 10px auto;
        padding: 15px;
    }

    .footer-content {
        font-size: 0.85em;
    }
}



/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(19, 21, 26, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    z-index: 1003;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    color: #ffffff;
    font-size: 1.3em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-text p {
    color: #8a8f98;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 8px;
}

.cookie-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 12px;
    color: #ffc107;
    font-size: 0.9em;
    animation: fadeIn 0.3s ease;
}

.cookie-warning i {
    margin-right: 6px;
}

.cookie-warning strong {
    color: #ffd54f;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.accept-btn {
    background: linear-gradient(135deg, #00dc82 0%, #00b368 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 220, 130, 0.3);
}

.accept-btn:hover {
    background: linear-gradient(135deg, #00f593 0%, #00dc82 100%);
    box-shadow: 0 6px 16px rgba(0, 220, 130, 0.4);
    transform: translateY(-2px);
}

.reject-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.reject-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column-reverse;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px 20px;
    }

    .cookie-text h3 {
        font-size: 1.2em;
    }

    .cookie-text p {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .cookie-consent {
        padding: 15px;
    }

    .cookie-text h3 {
        font-size: 1.1em;
    }

    .cookie-text p {
        font-size: 0.85em;
    }
}

/* Mobile Menu Styles */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .menu-right {
        position: fixed;
        top: 50px;
        left: 0;
        right: 0;
        background: rgba(19, 21, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        display: flex;
    }

    .menu-right.active {
        transform: translateY(0);
    }

    .menu-item {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: 8px;
        font-size: 1.1em;
    }

    .menu-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    /* Hamburger animation */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .desktop-only {
        display: none !important;
    }
}