* {
    box-sizing: border-box
}

:root {
    --bg: #08090d;
    --panel: #0e1016;
    --line: rgba(255, 255, 255, .085);
    --text: #f1f2f5;
    --muted: #9299a8;
    --accent: #8b5cf6;
    --green: #22c55e;
    font-family: "Sora", system-ui, sans-serif
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text)
}

body {
    font: 400 14px/1.55 "Sora", system-ui, sans-serif
}

.shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    min-height: 100vh
}

.side {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 12px 14px;
    background: #090a0e;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 22px
}

.brand {
    height: 48px;
    padding: 0 9px 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none
}

.brand img {
    width: 28px;
    height: 28px;
    object-fit: contain
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.nav h2 {
    margin: 0 8px 7px;
    color: #737b8b;
    font-size: 10px;
    letter-spacing: .1em;
    font-weight: 700
}

.nav-link {
    display: flex;
    align-items: center;
    min-height: 37px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #aeb5c2;
    text-decoration: none;
    font-size: 12px;
    transition: .15s
}

.nav-link:hover {
    background: #ffffff0a;
    color: #fff
}

.nav-link.active {
    background: #8b5cf61c;
    border-color: #8b5cf640;
    color: #fff
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.nav-icon svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav-link span:not(.nav-icon) {
    min-width: 0;
}

.me {
    margin-top: auto;
    padding: 12px 8px 0;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #bfc4cf;
    font-size: 12px;
    min-width: 0;
}

.me #who {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.me a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    color: #aeb5c2;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 5px 8px;
    line-height: 1;
}

.me .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.me .nav-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

main {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 34px clamp(22px, 4vw, 58px) 28px
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 700;
    color: #858c9a;
    margin: 0 0 7px;
    text-transform: uppercase
}

h1 {
    font-size: 26px;
    letter-spacing: -.045em;
    margin: 0;
    font-weight: 600
}

.sub {
    color: var(--muted);
    margin: 5px 0 0;
    font-size: 13px
}

.account-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #c4c9d3;
    font-size: 11px
}

.account-pill i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green)
}

.welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(110deg, #11121a, #0d0f14 70%)
}

.welcome h2 {
    font-size: 21px;
    letter-spacing: -.04em;
    margin: 0 0 4px
}

.welcome p:not(.eyebrow) {
    color: var(--muted);
    margin: 0;
    font-size: 12px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--rk-primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin: 27px 0 12px
}

.section-head h2 {
    font-size: 15px;
    margin: 0;
    letter-spacing: -.025em
}

.section-head p {
    font-size: 11px;
    color: var(--muted);
    margin: 3px 0 0
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
}

.metric {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #0d0f14
}

.metric-icon {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #8b5cf61b;
    color: #b69aff;
    font-size: 20px
}

.metric-label,
.metric small {
    display: block;
    color: var(--muted);
    font-size: 10px
}

.metric strong {
    display: block;
    font-size: 19px;
    letter-spacing: -.035em;
    margin: 2px 0
}

.metric strong.good {
    color: #4ade80
}

.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
}

.product-card {
    display: flex;
    gap: 13px;
    min-height: 146px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #0d0f14;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, background .15s
}

a.product-card:hover {
    border-color: #8b5cf65c;
    background: #11121a
}

.product-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 17px;
    font-weight: 700
}

.purple,
.violet {
    background: #8b5cf61b;
    color: #b69aff
}

.red {
    background: #ef44441a;
    color: #fb7777
}

.green {
    background: #22c55e1a;
    color: #4ade80
}

.cyan {
    background: #06b6d41a;
    color: #67e8f9
}

.gold {
    background: #eab3081a;
    color: #facc15
}

.product-card h3 {
    font-size: 13px;
    margin: 1px 0 5px
}

.product-card p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 12px
}

.product-link {
    font-size: 10px;
    color: #b69aff;
    font-weight: 600
}

.product-card-disabled {
    background: #0a0b10;
    border-color: #20222b;
    cursor: default;
}

.product-card-disabled h3,
.product-card-disabled p,
.product-card-disabled .product-link {
    color: #848893;
}

.product-card-disabled .product-icon {
    color: #777b87;
    background: #151720;
}

.product-card-disabled .tiktok-badge {
    align-self: flex-start;
    margin-left: auto;
    border-color: #41444f;
    background: #20222b;
    color: #a4a7b2;
}

.product-link b {
    margin-left: 5px
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    margin-top: 28px;
    border-top: 1px solid var(--line);
    color: #737b8b;
    font-size: 10px
}

.footer a {
    color: #a78bfa;
    text-decoration: none
}

@media(max-width:1050px) {
    .products {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:760px) {
    .shell {
        grid-template-columns: 1fr
    }

    .side {
        position: relative;
        height: auto;
        min-height: 0;
        gap: 12px
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .nav h2 {
        grid-column: 1/-1
    }

    .me {
        margin-top: 0
    }

    main {
        padding: 22px 16px
    }

    .metrics {
        grid-template-columns: 1fr
    }

    .products {
        grid-template-columns: 1fr
    }

    .welcome {
        align-items: flex-start;
        flex-direction: column
    }

    .top {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px
    }
}
