/* ===== Grunnoppsett ===== */

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 32px;
    font-family: Arial, Helvetica, sans-serif;
    color: #f5f1e8;
    background:
        radial-gradient(circle at top right, rgba(20, 82, 120, 0.22), transparent 35%),
        radial-gradient(circle at bottom left, rgba(181, 126, 38, 0.18), transparent 35%),
        #050b11;
}

/* ===== Preview ===== */

.preview {
    width: min(760px, 100%);
    padding: 56px;
    text-align: center;
    border: 1px solid rgba(215, 168, 82, 0.25);
    border-radius: 24px;
    background: rgba(8, 17, 26, 0.82);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

/* ===== Header Logo ===== */

.header-logo {
    display: flex;
    justify-content: center;
    margin-bottom: -90px;
    margin-top: -90px;
}

.header-logo img {
    width: min(100%, 620px);
    height: auto;
    display: block;
}

.eyebrow {
    margin: 0 0 14px;
    color: #d7a852;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 7vw, 4.6rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    background: linear-gradient(180deg, #fff0b8, #b87922);
    background-clip: text;
    color: transparent;
}

.subtitle {
    margin: 14px 0 40px;
    color: #9eabb7;
    font-size: 1.05rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ===== Status ===== */

.live-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    margin-top: 22px;
    padding: 4px 0;

    color: #aeb8c2;

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.live-status-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.streak-alert {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 11px;

    border: 1px solid rgba(215, 168, 82, 0.38);
    border-radius: 999px;

    color: #f7df9a;
    background: rgba(215, 168, 82, 0.08);

    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.streak-alert:hover {
    transform: translateY(-1px);
    border-color: rgba(215, 168, 82, 0.65);
    background: rgba(215, 168, 82, 0.14);
}

.streak-alert[hidden] {
    display: none;
}

.streak-alert-icon {
    font-size: 0.9rem;
    line-height: 1;
}

/* ===== Main navigation ===== */

.main-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;

    padding: 8px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.035);
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 10px 12px;

    border: 1px solid transparent;
    border-radius: 10px;

    color: #8f9ba6;
    text-decoration: none;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.nav-link:hover {
    color: #f4f6f8;
    border-color: rgba(215, 168, 82, 0.28);
    background: rgba(215, 168, 82, 0.06);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #f7df9a;
    border-color: rgba(215, 168, 82, 0.55);

    background:
        linear-gradient(
            180deg,
            rgba(215, 168, 82, 0.20),
            rgba(185, 120, 33, 0.12)
        );

    box-shadow:
        inset 0 0 18px rgba(215, 168, 82, 0.08),
        0 0 14px rgba(215, 168, 82, 0.08);
}

.status-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #cbd4dc;
    background: rgba(255, 255, 255, 0.035);
}

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 10px;
    border-radius: 50%;
    background: #48d597;
    box-shadow: 0 0 14px rgba(72, 213, 151, 0.8);
}

/* ===== Roadmap ===== */

.roadmap {
    margin-top: 34px;
    text-align: left;
}

.roadmap h2 {
    margin: 0 0 14px;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.progress-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
    width: 75%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9c641e, #e3b45f);
}

.roadmap p {
    margin: 12px 0 0;
    color: #84919d;
    font-size: 0.9rem;
}

/* ===== Dashboard-seksjon ===== */

.kpi-section {
    margin-top: 34px;
    text-align: left;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 16px;
}

.section-eyebrow {
    margin: 0 0 5px;
    color: #d7a852;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
}

.demo-badge {
    padding: 7px 10px;
    border: 1px solid rgba(215, 168, 82, 0.25);
    border-radius: 999px;
    color: #d7a852;
    background: rgba(215, 168, 82, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===== KPI-kort ===== */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kpi-card {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.kpi-label {
    margin: 0 0 14px;
    color: #8f9ba6;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kpi-value-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.kpi-value {
    margin: 0;
    color: #f4f6f8;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 650;
    letter-spacing: -0.04em;
}

.kpi-change {
    font-size: 0.9rem;
    font-weight: 700;
}

.kpi-change.positive {
    color: #48d597;
}

.kpi-change.negative {
    color: #ff6b6b;
}

.kpi-description {
    margin: 12px 0 0;
    color: #778590;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== Equity Performance ===== */

.equity-section {
    margin-top: 18px;
    text-align: left;
}

.equity-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.equity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.equity-header h2 {
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
}

.equity-periods {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.period-button {
    min-width: 42px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #8f9ba6;
    background: rgba(255, 255, 255, 0.025);
    font: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
}

.period-button:hover {
    color: #f4f6f8;
    border-color: rgba(215, 168, 82, 0.35);
}

.period-button.active {
    color: #071018;
    border-color: #d7a852;
    background: linear-gradient(180deg, #f0c96f, #b97821);
}

.equity-summary {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-top: 26px;
}

.equity-summary-label {
    margin: 0 0 5px;
    color: #8f9ba6;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.equity-summary-value {
    margin: 0;
    color: #f4f6f8;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.equity-summary-change {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    color: #48d597;
    font-weight: 700;
}

.equity-summary-change small {
    margin-top: 3px;
    color: #778590;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
}

.equity-chart {
    position: relative;
    height: 260px;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background:
        linear-gradient(
            180deg,
            rgba(72, 213, 151, 0.035),
            rgba(72, 213, 151, 0)
        ),
        rgba(0, 0, 0, 0.12);
}

.chart-grid-line {
    position: absolute;
    left: 0;
    width: 100%;
    border-top: 1px dashed rgba(255, 255, 255, 0.055);
}

.line-one {
    top: 25%;
}

.line-two {
    top: 50%;
}

.line-three {
    top: 75%;
}

.chart-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #66737e;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.equity-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.equity-footer div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.equity-footer span {
    color: #778590;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.equity-footer strong {
    color: #d9e0e6;
    font-size: 0.95rem;
}

.positive-text {
    color: #48d597 !important;
}

.negative-text {
    color: #ff7070 !important;
}

@media (max-width: 600px) {
    .preview {
        padding: 36px 22px;
    }

    .status-card {
        flex-direction: column;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .equity-header,
    .equity-summary {
        align-items: flex-start;
        flex-direction: column;
    }

.equity-summary-change {
    align-items: flex-start;
}

.equity-footer {
    grid-template-columns: 1fr;
}

.equity-chart {
    height: 220px;
}
}

.live-status{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;

    margin-top:30px;
    margin-bottom:30px;

    color:#d8d8d8;

    font-weight:bold;
}

.live-dot{

    width:10px;
    height:10px;

    background:#4ade80;

    border-radius:50%;

    box-shadow:0 0 10px #4ade80;

}

/* ===== Equity chart ===== */

.chart-container {
    position: relative;
    width: 100%;
    height: 340px;
    margin-top: 24px;
}

#equity-chart {
    display: block;
}

@media (max-width: 768px) {
    .chart-container {
        height: 280px;
    }
}

/* ===== Trading bots ===== */

.bots-section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.section-eyebrow {
    margin: 0 0 6px;
    color: #d4af37;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.5rem;
}

.section-status,
.bot-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #aab4c0;
    font-size: 0.82rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #37d67a;
    box-shadow: 0 0 12px rgba(55, 214, 122, 0.65);
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bot-status.offline {
    color: #ff6b6b;
}

.bot-status.offline .status-dot {
    background: #ff6b6b;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.65);
}

.bot-card {
    min-height: 190px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.bot-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.bot-label {
    margin: 0 0 5px;
    color: #7f8b99;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.bot-card h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
}

.bot-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    margin-top: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #657180;
    font-size: 0.85rem;
}

/* ===== Responsive bots ===== */

@media (max-width: 900px) {
    .bots-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== Bot card metrics ===== */

.bot-card-body {
    margin-top: 26px;
}

.bot-primary-metric {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bot-primary-metric span,
.bot-metrics span {
    display: block;
    color: #7f8b99;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bot-primary-metric strong {
    display: block;
    margin-top: 8px;
    font-size: 1.85rem;
    line-height: 1;
}

.bot-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.bot-metrics div + div {
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.bot-metrics strong {
    display: block;
    margin-top: 7px;
    color: #ffffff;
    font-size: 1.15rem;
}

/* ===== Recent activity ===== */

.activity-section {
    margin-top: 40px;
}

.activity-status {
    color: #7f8b99;
    font-size: 0.82rem;
    font-weight: 600;
}

.activity-card {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.activity-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #657180;
    font-size: 0.85rem;
}

/* ===== Activity list ===== */

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: grid;
    grid-template-columns: 60px 10px minmax(0, 1fr) 90px;
    align-items: center;
    gap: 18px;
    min-height: 72px;
    padding: 0 12px;
}

.activity-item-clickable {
    cursor: pointer;

    transition:
        background 0.18s ease,
        transform 0.18s ease;
}

.activity-item-clickable:hover {
    background: rgba(255, 255, 255, 0.035);
    transform: translateX(3px);
}

.activity-result {
    text-align: right;
}

.activity-time {
    color: #7f8b99;
    font-size: 0.82rem;
    font-weight: 600;
}

.activity-indicator {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.activity-indicator.positive {
    background: #37d67a;
    box-shadow: 0 0 12px rgba(55, 214, 122, 0.65);
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    text-align: left;
}

.activity-details strong {
    color: #ffffff;
    font-size: 0.95rem;
}

.activity-details span {
    color: #7f8b99;
    font-size: 0.82rem;
}

.activity-result {
    font-size: 1rem;
    font-weight: 700;
}

.activity-item + .activity-item {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.activity-indicator.negative {
    background: #ff5c5c;
    box-shadow: 0 0 12px rgba(255, 92, 92, 0.55);
}

/* ===== Equity source controls ===== */

.equity-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-left: auto;
}

.equity-sources {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.source-button {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    color: #7f8b99;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.source-button:hover {
    color: #ffffff;
    border-color: rgba(212, 175, 55, 0.35);
}

.source-button.active {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
}

@media (max-width: 700px) {
    .equity-controls {
        align-items: flex-start;
        width: 100%;
    }

    .equity-sources,
    .equity-periods {
        justify-content: flex-start;
    }
}

.source-profit {
    margin-left: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #39e6a3;
    text-shadow:
        0 0 6px rgba(57, 230, 163, 0.65),
        0 0 12px rgba(57, 230, 163, 0.35);
}

.source-profit.negative {
    color: #ff6b6b;
    text-shadow:
        0 0 6px rgba(255, 107, 107, 0.65),
        0 0 12px rgba(255, 107, 107, 0.35);
}

.equity-stat-value#net-growth.negative,
#net-growth.negative {
    color: #ff6b6b !important;
    text-shadow:
        0 0 6px rgba(255, 107, 107, 0.65),
        0 0 12px rgba(255, 107, 107, 0.35);
}

#equity-period-change.negative {
    color: #ff6b6b !important;
    text-shadow:
        0 0 6px rgba(255, 107, 107, 0.65),
        0 0 12px rgba(255, 107, 107, 0.35);
}

.activity-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trade-direction {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 3px 7px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.06em;
}

.trade-direction.long {
    color: #3ddc97;
    background: rgba(61, 220, 151, 0.12);
    border: 1px solid rgba(61, 220, 151, 0.22);
}

.trade-direction.short {
    color: #ff6469;
    background: rgba(255, 100, 105, 0.12);
    border: 1px solid rgba(255, 100, 105, 0.22);
}

/* ===== Splash Screen ===== */

.splash-screen {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #08111a;

    z-index: 9999;

    opacity: 1;
    transition: opacity 0.8s ease;
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-image {
    display: block;

    max-width: 96vw;
    max-height: 96vh;

    width: auto;
    height: auto;

    object-fit: contain;
}

/* ===========================
   Statistics
=========================== */

.statistics-section {
    margin-top: 40px;
}

.statistics-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.statistics-intro {
    margin-top: 10px;
    color: #9aa6b2;
    max-width: 520px;
}

.statistics-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.statistics-panel {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 24px;
}

.statistics-panel-header {
    margin-bottom: 20px;
}

.statistics-panel-header h3 {
    margin-top: 6px;
}

.statistics-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.statistics-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.statistics-row span {
    color: #98a5b5;
}

.statistics-row strong {
    color: #ffffff;
    font-size: 1.05rem;
}

.statistics-record {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.statistics-record-title {
    display: block;
    margin-bottom: 6px;
    color: #f5f5f5;
    font-weight: 600;
}

.statistics-record-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.statistics-record-footer small {
    color: #8f9aaa;
    font-size: 0.85rem;
}

.statistics-record-footer strong {
    white-space: nowrap;
}

.statistics-panel-wide {
    grid-column: 1 / -1;
}

.records-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.records-column {
    min-width: 0;
}

.record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.record-item > div {
    min-width: 0;
    flex: 1;
}

.record-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    text-align: left;
}

.record-item small {
    display: block;
    color: #8f9aaa;
    font-size: 0.85rem;
    text-align: left;
}

.record-item strong {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .records-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.records-column:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding-right: 32px;
}

.records-column:last-child {
    padding-left: 32px;
}

.streaks-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.streak-card {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(255,255,255,0.02);

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 14px;
}

.streak-label {
    color: #9aa4b3;

    font-size: 0.90rem;

    text-align: center;

    margin-bottom: 16px;
}

.streak-value {

    font-size: 2.6rem;

    font-weight: 700;

    line-height: 1;

    margin-bottom: 8px;
}

.streak-card small {

    color: #7e8794;

    text-transform: uppercase;

    letter-spacing: .08em;

    font-size: .75rem;
}

@media (max-width:1000px){

    .streaks-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media (max-width:650px){

    .streaks-grid{

        grid-template-columns:1fr;

    }

}

.streak-good {
    border-color: rgba(255, 196, 0, 0.35);
}

.streak-hot {
    border-color: #ff9f1a;

    box-shadow:
        0 0 18px rgba(255, 120, 0, 0.18);
}

.streak-inferno {

    border-color: rgba(255,140,0,.45);

    box-shadow:
        0 0 8px rgba(255,120,0,.18),
        0 0 22px rgba(255,80,0,.14),
        inset 0 0 12px rgba(255,120,0,.06);
}

.streak-card > :not(.streak-flame) {
    position: relative;
    z-index: 1;
}

.streak-card {
    position: relative;
    overflow: hidden;
}

.streak-flame {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 120px;
    height: 155px;
    object-fit: contain;
    transform: translateX(-50%);
    opacity: 0.20;
    mix-blend-mode: screen;
    filter: blur(0.15px);
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.streak-card.streak-inferno .streak-flame {
    display: block;
}

/* =========================================
   HALL OF FAME
========================================= */

.hall-of-fame-section {
    margin-top: 34px;
}

.hall-of-fame-header {
    text-align: center;
}

.hall-of-fame-header h2 {
    margin: 10px 0 12px;

    font-size: 1.35rem;
    color: #f4f6f8;
}

.hall-of-fame-intro {
    max-width: 620px;

    margin: 0 auto 24px;

    color: #9ca7b3;

    font-size: 0.9rem;
    line-height: 1.65;
}

.achievement-progress {
    margin-top: 30px;
    padding: 22px 24px;

    border: 1px solid rgba(215, 168, 82, 0.18);
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(215, 168, 82, 0.06),
            rgba(255, 255, 255, 0.015)
        );
}

.achievement-progress-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 20px;
}

.achievement-progress-header h3 {
    margin: 6px 0 0;

    color: #f4f6f8;
    font-size: 1.05rem;
}

.achievement-progress-count {
    display: flex;
    align-items: baseline;
    gap: 7px;

    color: #f4d77d;

    font-size: 1.8rem;
    line-height: 1;
}

.achievement-progress-divider {
    color: #6f7984;
    font-size: 1rem;
}

.achievement-progress-track {
    height: 10px;
    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.045);
}

.achievement-progress-fill {
    width: 0%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #9c6b2f,
            #d7a852,
            #f3d67d
        );

    box-shadow:
        0 0 14px rgba(215, 168, 82, 0.35);

    transition: width 0.6s ease;
}

.achievement-progress-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-top: 12px;

    color: #8f9aa6;
    font-size: 0.78rem;
}

.achievement-progress-footer strong {
    color: #d7a852;
}

.achievement-tiers {
    display: flex;
    flex-direction: column;
    gap: 24px;

    margin-top: 32px;
}

.achievement-tier {
    padding: 22px 24px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.025);
}

.achievement-tier-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.achievement-tier-label {
    margin: 0 0 6px;

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.achievement-tier-header h3 {
    margin: 0 0 7px;

    color: #f4f6f8;
    font-size: 1.05rem;
}

.achievement-tier-header p:last-child {
    margin: 0;

    color: #8f9aa6;
    font-size: 0.82rem;
    line-height: 1.5;
}

.achievement-tier-count {
    flex-shrink: 0;

    padding: 6px 10px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;

    color: #aeb8c2;
    background: rgba(255, 255, 255, 0.03);

    font-size: 0.75rem;
    font-weight: 700;
}

.achievement-grid {
    min-height: 50px;

    margin-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.achievement-tier-bronze .achievement-tier-label {
    color: #bd7b42;
}

.achievement-tier-silver .achievement-tier-label {
    color: #c4ccd6;
}

.achievement-tier-gold .achievement-tier-label {
    color: #d7a852;
}

.achievement-tier-platinum .achievement-tier-label {
    color: #9fc8d4;
}

.achievement-tier-diamond .achievement-tier-label {
    color: #5ee8ff;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;

    min-height: 0;
    margin-top: 20px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.achievement-card {
    display: flex;
    flex-direction: column;

    min-height: 250px;
    padding: 18px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.025);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.achievement-card:hover {
    transform: translateY(-2px);
}

.achievement-card-locked {
    opacity: 0.62;
}

.achievement-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    margin-bottom: 16px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.035);

    font-size: 1rem;
}

.achievement-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.achievement-card-status {
    display: block;
    margin-bottom: 7px;

    color: #8f9aa6;

    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.achievement-card h4 {
    margin: 0 0 8px;

    color: #e6eaee;
    font-size: 1rem;
}

.achievement-card p {
    margin: 0;

    color: #7f8995;

    font-size: 0.76rem;
    line-height: 1.5;
}

/* Achievement Progress */

.achievement-progress {
    margin-top: auto;
    padding-top: 18px;
}

.achievement-progress-track {
    width: 100%;
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);
}

.achievement-progress-fill {
    height: 100%;

    border-radius: 999px;

    background: linear-gradient(
        90deg,
        #d7a852,
        #f0c76b
    );

    transition: width 0.4s ease;
}

.achievement-progress-value {
    display: block;

    margin-top: 8px;

    color: #d7a852;

    font-size: 0.74rem;
    font-weight: 700;
    text-align: right;
}

/* Unlocked Achievement */

.achievement-card-unlocked {
    border-color: rgba(215, 168, 82, 0.34);

    background:
        linear-gradient(
            145deg,
            rgba(215, 168, 82, 0.09),
            rgba(255, 255, 255, 0.025)
        );
}

.achievement-card-unlocked .achievement-card-icon {
    border-color: rgba(215, 168, 82, 0.32);

    background: rgba(215, 168, 82, 0.11);
}

.achievement-card-unlocked .achievement-card-status {
    color: #d7a852;
}

.achievement-unlocked-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid rgba(255, 255, 255, 0.07);

    text-align: center;
}

.achievement-unlocked-date span {
    color: #8f9aa6;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.achievement-unlocked-date strong {
    color: #d7a852;

    font-size: 0.82rem;
    line-height: 1.2;
}

@media (max-width: 820px) {
    .achievement-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .achievement-grid {
        grid-template-columns: 1fr;
    }
}