:root {
    --bg: #080b0a;
    --panel: #0d1210;
    --panel-2: #111714;
    --border: #1d2722;

    --text: #f1f5f3;
    --muted: #77817c;

    --green: #35d07f;
    --green-dark: #1b7d4c;

    --red: #ff5d6c;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    min-height: 100vh;
}

button {
    font: inherit;
}

.app {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;

    padding:
        calc(16px + env(safe-area-inset-top))
        14px
        calc(90px + env(safe-area-inset-bottom));
}


/* HEADER */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 8px 2px 20px;
}

.brand {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.subtitle {
    margin-top: 3px;

    font-size: 11px;
    color: var(--muted);

    text-transform: uppercase;
    letter-spacing: 1px;
}

.status {
    display: flex;
    align-items: center;
    gap: 6px;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;

    color: var(--muted);
}

.status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 8px rgba(53, 208, 127, .7);
}


/* HERO */

.hero-card {
    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #101712,
            #0b0f0d
        );

    box-shadow:
        0 15px 40px rgba(0, 0, 0, .25);
}

.label,
.stat-label {
    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.2px;

    color: var(--muted);
}

.profit {
    margin-top: 8px;

    font-size: 38px;
    font-weight: 800;

    letter-spacing: -1.5px;

    color: var(--green);
}

.profit-meta {
    display: flex;
    gap: 12px;

    margin-top: 8px;

    font-size: 11px;
    color: var(--muted);
}

.positive {
    color: var(--green);
}


/* STATS */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 10px;
}

.stat-card {
    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--panel);
}

.stat-value {
    margin-top: 7px;

    font-size: 21px;
    font-weight: 750;
}


/* PANELS */

.panel {
    margin-top: 10px;

    padding: 16px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--panel);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.panel-muted {
    color: var(--muted);
    font-weight: 600;
}

.panel-header button {
    border: 0;
    background: transparent;

    color: var(--green);

    font-size: 9px;
    font-weight: 800;
}


/* CHART */

.chart-placeholder {
    position: relative;

    height: 170px;

    margin-top: 15px;

    overflow: hidden;

    border-radius: 8px;

    background:
        linear-gradient(
            to bottom,
            transparent 24%,
            rgba(255,255,255,.035) 25%,
            transparent 26%,
            transparent 49%,
            rgba(255,255,255,.035) 50%,
            transparent 51%,
            transparent 74%,
            rgba(255,255,255,.035) 75%,
            transparent 76%
        );
}

.chart-line {
    position: absolute;

    left: 5%;
    right: 5%;
    top: 52%;

    height: 2px;

    background: var(--green);

    transform:
        rotate(-3deg)
        skewX(-20deg);

    opacity: .7;

    box-shadow:
        0 0 12px rgba(53,208,127,.35);
}

.chart-empty {
    position: absolute;

    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 9px;
    letter-spacing: 1px;

    color: var(--muted);
}


/* TRADES */

.empty-state {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 8px;

    min-height: 100px;

    color: var(--muted);

    font-size: 11px;
}

.empty-icon {
    font-size: 24px;
    opacity: .5;
}


/* ADD */

.add-button {
    width: 100%;

    margin-top: 10px;
    padding: 15px;

    border: 1px solid var(--green-dark);
    border-radius: 11px;

    background: #102419;

    color: var(--green);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
}

.add-button span {
    font-size: 18px;
    vertical-align: -2px;
}


/* NAV */

.bottom-nav {
    position: fixed;

    left: 50%;
    bottom: 0;

    transform: translateX(-50%);

    width: min(720px, 100%);

    display: grid;
    grid-template-columns:
        1fr
        1fr
        1.2fr
        1fr
        1fr;

    align-items: center;

    padding:
        8px
        10px
        calc(8px + env(safe-area-inset-bottom));

    border-top: 1px solid var(--border);

    background: rgba(8,11,10,.94);

    backdrop-filter: blur(14px);
}

.nav-item {
    display: flex;
    flex-direction: column;

    align-items: center;
    gap: 3px;

    border: 0;
    background: transparent;

    color: var(--muted);
}

.nav-item span {
    font-size: 17px;
}

.nav-item small {
    font-size: 8px;
}

.nav-item.active {
    color: var(--green);
}

.nav-add {
    justify-self: center;

    width: 46px;
    height: 46px;

    border: 0;
    border-radius: 50%;

    background: var(--green);

    color: #06100a;

    font-size: 25px;
    font-weight: 600;

    box-shadow:
        0 0 20px rgba(53,208,127,.25);
}


/* MOBILE */

@media (max-width: 380px) {

    .profit {
        font-size: 32px;
    }

    .brand {
        font-size: 17px;
    }

}
