
body{
    font-family:Inter, sans-serif;
    background:#0f172a;
    color:white;
    margin:0;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header and Footer */
header, footer {
    background: #1e293b;
    padding: 20px 0;
}

header .container, footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

header h1 a {
    font-size: 24px;
    font-weight: 600;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li a {
    padding: 10px 15px;
    color: #cbd5e1;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.2s;
}

nav li a:hover, nav li a.active {
    background-color: #334155;
    color: white;
}

footer {
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    color: #94a3b8;
}

/* Main Content */
main h1{
    text-align:center;
    margin-bottom:30px;
}

.section{
    margin-bottom:50px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
}

.card{
    background:#1e293b;
    padding:20px;
    border-radius:10px;
    cursor: pointer;
    position: relative;
}

.index-card {
    cursor: default;
    padding: 16px;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.currency-row {
    margin-bottom: 0;
}

.index-card .card-header {
    margin-bottom: 0;
}

.logo {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 4px;
}

.external-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    color: #94a3b8;
}

.symbol{
    color:#94a3b8;
    font-size:16px;
}

.card-link {
    margin-left: auto;
    color: #38bdf8;
    font-size: 13px;
    font-weight: 600;
}

.price{
    font-size:24px;
    font-weight:600;
    margin-top:6px;
}

#m7Grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

#m7Grid > a {
    display: block;
    min-width: 0;
}

#m7Grid .card {
    padding: 16px 18px;
}

.stock-row {
    margin-bottom: 0;
    flex-wrap: wrap;
    row-gap: 8px;
}

.stock-row .symbol {
    min-width: 0;
    flex: 1;
}

.stock-price {
    margin-top: 0;
    margin-left: auto;
    font-size: 21px;
    white-space: nowrap;
}

.stock-change {
    margin-left: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

#cryptoGrid .card {
    padding: 16px;
}

#cryptoGrid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.crypto-row {
    margin-bottom: 0;
}

.crypto-row .symbol {
    min-width: 0;
    flex: 1;
}

.crypto-price {
    margin-top: 0;
    margin-left: auto;
    font-size: 20px;
    white-space: nowrap;
}

.crypto-change {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
}

.currency-price {
    margin-top: 0;
    margin-left: auto;
    font-size: 22px;
}

.price .percentage-change {
    font-size: 18px;
    margin-left: 8px;
}

.up{color:#00ff9c;}
.down{color:#ff4d4d;}

/* News Section */
.news{
    background:#1e293b;
    padding:20px;
    border-radius:10px;
}

.news-panel {
    margin-top: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.section-header h2 {
    margin: 0;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.toggle-btn {
    background: #334155;
    color: #cbd5f5;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
}

.tab-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 11;
}

.active-tab {
    background: #38bdf8;
    color: #0f172a;
}

.market-view-panel {
    width: 100%;
    position: relative;
    z-index: 1;
}

.market-view-panel .tradingview-widget-container,
.market-view-panel .tradingview-widget-container__widget {
    position: relative;
    z-index: 1;
}

.external-link-btn {
    display: inline-flex;
    align-items: center;
}

.heatmap-frame {
    width: 100%;
    height: 720px;
    border: 0;
    border-radius: 10px;
    background: #1e293b;
}

.news li{
    margin: 10px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news li:last-child {
    border-bottom: none;
}

.news a{
    color:#cbd5f5;
    text-decoration:none;
    flex-grow: 1;
    margin-right: 15px;
}

.news-date {
    color: #94a3b8;
    font-size: 12px;
    white-space: nowrap;
}

.more-btn {
    background: #334155;
    color: #cbd5f5;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0;
    font-family: 'Inter', sans-serif;
}

/* Static Page Content */
.page-content {
    background-color: #1e293b;
    padding: 40px;
    border-radius: 10px;
    line-height: 1.8;
}

.page-content h2 {
    margin-top: 0;
    border-bottom: 2px solid #334155;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.page-content p, .page-content li {
    color: #cbd5e1;
}

.page-content a {
    color: #38bdf8;
}

.contact-panel {
    margin-top: 28px;
    padding: 24px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.95));
}

.contact-toggle,
.contact-submit {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.contact-toggle:hover,
.contact-submit:hover {
    transform: translateY(-1px);
}

.contact-toggle {
    background: #38bdf8;
    color: #0f172a;
}

.contact-form {
    margin-top: 20px;
    display: grid;
    gap: 16px;
}

.contact-field {
    display: grid;
    gap: 8px;
}

.contact-field label {
    color: #e2e8f0;
    font-weight: 600;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #475569;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    padding: 12px 14px;
    font: inherit;
}

.contact-field textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: 2px solid rgba(56, 189, 248, 0.35);
    border-color: #38bdf8;
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-submit {
    background: #22c55e;
    color: #052e16;
}

.contact-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.contact-status {
    margin: 0;
    color: #cbd5e1;
}

.contact-status.is-error {
    color: #fca5a5;
}

.contact-status.is-success {
    color: #86efac;
}

.contact-note {
    margin-top: 18px;
}

@media (max-width: 640px) {
    #m7Grid {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        padding: 18px;
    }

    .contact-toggle,
    .contact-submit {
        width: 100%;
        justify-content: center;
    }

    .contact-actions {
        align-items: stretch;
    }
}
