* {
    padding: 0;
    margin: 0;
    border: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: "IBM Plex Sans";
}

*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

:focus,
:active {
    outline: none;
}

a:focus,
a:active {
    outline: none;
}

nav,
footer,
header,
aside {
    display: block;
}

html,
body {
    height: 100%;
    width: 100%;
    font-size: 100%;
    line-height: 1;
    font-size: 14px;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

input,
button,
textarea {
    font-family: inherit;
}

input::-ms-clear {
    display: none;
}

button {
    cursor: pointer;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

a,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

ul li {
    list-style: none;
}

img,
picture {
    vertical-align: top;
}

picture {
    display: inline-block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: 400;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

input {
    border-radius: 0;
}

img,
picture {
    width: 100%;
}

@font-face {
    font-family: "IBM Plex Sans";
    font-display: swap;
    src: url("../fonts/IBMPlexSans-Light.woff2") format("woff2"), url("../fonts/IBMPlexSans-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "IBM Plex Sans";
    font-display: swap;
    src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"), url("../fonts/IBMPlexSans-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "IBM Plex Sans";
    font-display: swap;
    src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"), url("../fonts/IBMPlexSans-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "IBM Plex Sans";
    font-display: swap;
    src: url("../fonts/IBMPlexSans-SemiBold.woff2") format("woff2"), url("../fonts/IBMPlexSans-SemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Space Grotesk";
    font-display: swap;
    src: url("../fonts/SpaceGrotesk-Regular.woff2") format("woff2"), url("../fonts/SpaceGrotesk-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Space Grotesk";
    font-display: swap;
    src: url("../fonts/SpaceGrotesk-Medium.woff2") format("woff2"), url("../fonts/SpaceGrotesk-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Space Grotesk";
    font-display: swap;
    src: url("../fonts/SpaceGrotesk-Bold.woff2") format("woff2"), url("../fonts/SpaceGrotesk-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
}

._container {
    padding: 0px 24px;
    margin: 0px auto;
    width: 100%;
    max-width: 430px;
}

body {
    background-color: #111;
    color: #fff;
    font-size: 14px;
}

:root {
    --c-white: #FFFFFF;
    --bg-dark: #121214;
}

.text-right {
    text-align: right;
}

.text-gradient {
    background: linear-gradient(225deg, #FD7F66, #F4D35E);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* referrals-header */
.referrals__header {
    height: 96px;
    background: url("../img/border-header.svg") no-repeat center / 430px 96px;
    display: flex;
    position: relative;
    z-index: 1;
    padding: 16px;
    margin-bottom: 9px;
}

.referrals__header:before,
.referrals__header:after {
    content: '';
    position: absolute;
    top: 45px;
    width: calc(50% - 115px);
    height: 1px;
    background-color: rgb(98 98 99);
}

.referrals__header:before {
    left: 0;
}

.referrals__header:after {
    left: calc(50% + 115px);
}

.referrals__header h1 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    text-transform: uppercase;
    text-align: center;
    margin: auto auto 0;
    color: var(--c-white);
}

/* app__header */
.app__header {
    padding: 0 24px;
    color: var(--c-white);
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 500;
    text-align: center;
    display: flex;
    justify-content: center;
}

.app__header-left {
    width: 115px;
    background: url("../img/border-left.svg") no-repeat center / contain;
    display: flex;
    padding: 4px 0 4px 20px;
}

.app__header-avatar {
    margin: auto 0;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.app__header-center {
    background: url("../img/border-center.svg") no-repeat center / contain;
    width: 186px;
    padding: 0 17px;
    margin: 0 -18px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-height: 70px;
}

.app__header-trapeze {
    transform: perspective(195px) rotateX(45deg);
    border: 1px solid #FFFFFF4D;
    width: 144px;
    height: 22px;
    border-radius: 5px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.app__header-range {
    position: absolute;
    left: -1px;
    top: 0;
    height: 100%;
    border: 1px solid #FFFFFF4D;
    box-sizing: content-box;
    background: linear-gradient(to right, #FD7F66, #F4D35E, #6DB866);
}

.app__header-right {
    background: url("../img/border-right.svg") no-repeat center / contain;
    width: 115px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px 0 0;
}

.app__header-star {
    margin-right: 7px;
    width: 25px;
    height: 24px;
}

.app__header-right p {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 20px;
}

/* referrals page */
.referrals {
    color: var(--c-white);
    font-weight: 400;
    padding: 15px 0;
}

.referrals ._container {
    gap: 8px;
    display: grid;
}

.referrals__block {
    border: 1px solid rgba(77, 58, 58, 0.3);
    padding: 20px;
    border: 1px solid #606062;
    border-radius: 16px;
    background: radial-gradient(407.02% 136.53% at 0.9% 2.98%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.referrals__nr {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.referrals__nr:before,
.referrals__nr:after {
    content: '';
    position: absolute;
    filter: blur(50px);
    border-radius: 50%;
    z-index: -1;
}

.referrals__nr:before {
    left: 0;
    top: 0;
    width: 72px;
    height: 72px;
    background: linear-gradient(225deg, #fd7f66 0%, #f4d35e 100%);
}

.referrals__nr:after {
    background: #6db866;
    width: 61px;
    height: 61px;
    right: 40px;
    bottom: 0;
}

.referrals__info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.referrals__title {
    color: rgba(255, 255, 255, 0.8);
}

.referrals__value {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 20px;
}

/* graph */
.graph {
    display: flex;
    align-items: center;
    margin-top: 12px;
}

.graph__value {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    margin-top: -8px;
    margin-right: 12px;
}

.graph__wrapper {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    position: relative;
    width: 100%;
    padding: 0 13px;
}

.graph__line {
    position: absolute;
    left: 0;
    bottom: 53%;
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
}

.graph__category {
    margin-top: auto;
    margin-bottom: -25px;
    text-align: center;
}

.graph__column {
    width: 13px;
    position: relative;
    z-index: 1;
    height: 110px;
    display: flex;
    margin-bottom: 25px;
}

.graph__border {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: -1;
}

.graph__point {
    position: absolute;
    left: 0;
    bottom: 0;
    background: linear-gradient(to left, #FD7F66, #F4D35E);
    border-radius: 10px;
    width: 100%;
    z-index: 2;
}

/* earnings */

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

.earnings__left {
    gap: 12px;
    display: grid;
}

.earnings__row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8)
}

.earnings__row span {
    font-weight: 500;
    color: var(--c-white)
}

.earnings__circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(to left, #FD7F66, #F4D35E);
    position: relative;
}

.earnings__circle.empty:before {
    content: '';
    position: absolute;
    left: 1px;
    top: 1px;
    width: 10px;
    height: 10px;
    background-color: var(--bg-dark);
    border-radius: 50%;
}

.list__top {
    padding: 23px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list__title {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 500;
    font-size: 20px;
    text-transform: uppercase;
}

.list__nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list__nav button {
    background-color: transparent;
    border: none;
}

.list__nav-current {
    font-weight: 600;
    vertical-align: middle;
}

.list__block {
    padding-top: 7px;
}

.list__table {
    border-spacing: 0 15px;
    text-align: left;
    width: 100%;
}

.list__table b {
    font-weight: 700;
}

.list__table-earned,
.list__table th {
    font-size: 16px;
    font-family: "Space Grotesk", sans-serif;
}

td.list__table-date {
    font-weight: 300;
    font-size: 12px;
}

.list__table-date {
    padding-left: 10px;
}

.list__table-username {
    font-weight: 600;
}

@media (max-width: 400px) {

    .app__header-right,
    .app__header-left {
        width: 27.74vw;
        padding: 0 4.6vw;
    }

    .app__header-center {
        min-height: 17.28vw;
        width: 44.25vw;
        padding: 0 3.95vw;
        margin: 0 -4vw;
        gap: 2.8vw;
        font-size: 3.25vw;
    }

    .app__header-avatar {
        width: 11.2vw;
        height: 11.2vw;
    }

    .app__header-trapeze {
        width: 34.49vw;
        height: 6.1vw;
    }

    .app__header-star {
        width: 6.8vw;
        height: 6.58vw;
    }

    .app__header-right p {
        font-size: 5.65vw;
    }

    .app__header,
    ._container {
        padding: 0px 12px;
    }

    .list__table-earned {
        font-size: 14px;
    }
}

@media (max-width: 375px) {
    .list__table-username {
        font-size: 12px;
    }

    .list__table-date {
        padding-left: 6px;
    }

    .list__table-earned {
        font-size: 13px;
    }

    .earnings__icon {
        width: 35px;
        height: 35px;
    }
}