* { box-sizing: border-box; }

html {
    width: 100%;
    height: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgb(175 79 0) rgb(46, 46, 46);
    overflow-x: hidden;
}
html::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
html::-webkit-scrollbar-track {
    background: rgb(46, 46, 46);
}
html::-webkit-scrollbar-thumb {
    background: var(--accent);
}
html::-webkit-scrollbar-thumb:hover {
    background: rgb(175 79 0);
}

:root {
    --sidebar-w: clamp(60px, 40vw, 200px);
    --accent: rgb(255, 102, 0);
    --tab-select: rgb(255, 102, 0);
    --accent-gradient: rgba(255, 102, 0, 0.493);
    --first: rgb(255, 196, 0);
    --third: rgb(177, 107, 61);
    --second: rgb(204, 204, 204);
    --locked-accent: gray;

    --cb-border: rgba(255,255,255,0.06);
    --cb-shadow: rgba(0,0,0,0.22);
}

main {
    padding: 10px;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: row;
    overflow-x: hidden;
}

.content-box {
    border-radius: 5px;
    padding: 8px;
    background: #1e1e1ead;
    border: 1px solid var(--cb-border);
    box-shadow: 0 14px 32px var(--cb-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.sidebar {
    max-width: 200px;
    width: var(--sidebar-w);
    position: fixed;
    top: 10px;
    left: 10px;
    bottom: 10px;
    max-height: calc(100vh - (10px * 2));
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 2px;
}

.title {
    background-color: rgba(31, 31, 31, 0.412);
    padding: 5px 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: fixed;
    border-radius: 5px;
    font-size: 18px;
    margin: 8px;
    display: flex;
    flex-direction: row;
}

.sidebar-tabs {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 50px;
}

.notif-panel {
    position: fixed;
    flex: 1;
    top: 15px;
    bottom: 15px;
    right: 15px;
    width: min(380px, calc(100vw - 30px));
    max-width: calc(100vw - 30px);
    background: linear-gradient(#2a2a2acc, #1c1c1ccc);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translateX(130px);
    transition: transform 0.3s ease;
    box-shadow: 0 0 40px #363636cc;
    outline: 1px rgba(107, 107, 107, 0.349) solid;
}

@media (max-width: 700px) {
    :root {
        --sidebar-w: 90px;
    }
    .title {
        display: none;
    }
    .sidebar-tabs .tab span {
        display: none;
    }
    .sidebar-tabs .tab {
        width: 100%;
        aspect-ratio: 1 / 1;
        justify-content: center;
        align-items: center;
        display: flex;
        flex: 0;
    }
    .sidebar-tabs .tab svg {
        padding: 0;
        width: 100%;
        aspect-ratio: 1 / 1
    }
    .sidebar {
        bottom: 10px;
        left: 10px;
        right: 10px;
        top: auto;

        width: auto;
        max-width: none;
        height: 64px;
        max-height: none;

        padding: 8px;
        z-index: 99999;
        box-shadow: 0 0 20px #00000099 !important;
        border: 1px solid #8080806e !important;

        overflow: auto;
    }
    .notif-panel {
        margin-bottom: 74px;
    }
    .sidebar-tabs {
        flex: 1;
        width: 100%;
        margin: 0;
        flex-direction: row;
        justify-content: space-evenly;
    }
    .content-container {
        margin: 0 !important;
        width: 100% !important;
        margin-bottom: 74px !important;
    }
    main {
        display: flex;
        flex-direction: column;
    }
}

body {
    background: #1a1a1a;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Oxanium;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

span, h1, h2, h3, h4, h5, h6, a, button, p {
    color: white;
}

button {
    border: none;
    outline: none;
    transform: none;
    border-radius: 5px;
    font-family: Oxanium;
}

.content-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    width: calc(100% - var(--sidebar-w) - 10px);
    margin-left: calc(var(--sidebar-w) + 10px);
    gap: 10px;
}

.content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    overflow: auto;
}

.main-content {
    flex: 1;
    min-width: max-content;
    max-height: calc(50% - 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
}

.searchbar {
    flex: 1;
    max-height: 65px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.search-container {
    display: flex;
    background-color: #252525;
    padding: 7px;
    border-radius: 5px;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.search-container input {
    flex: 1;
    background: none;
    outline: none;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    min-width: 0;
}
.search-container #search-btn {
    background-color: var(--accent);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    width: 35px;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
    color: #2b2b2b;
}
#search-btn:hover {
    background-color: #ff9045;
    box-shadow: 0 0 12px var(--accent-gradient);
}
#search-btn svg {
    width: 18px;
}
#search-query::placeholder {
    font-style: italic;
}

.tab {
    background: #292929;
    width: 85%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.3s ease-in-out, box-shadow 0.2s ease-in-out, color 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    font-size: 11.5px;
}

.sidebar-tabs .tab {
    aspect-ratio: unset;
    flex-direction: row;
    padding: 10px 15px;
    justify-content: flex-start;
    background: transparent;
}

.sidebar-tabs .tab:hover {
    background: #242424
}

.tab:hover {
    background: #2e2e2e;
}
.tab:not(.header) .icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.5px;
}
.sidebar-tabs .tab.selected {
    background: var(--tab-select);
    color: #131313;
    box-shadow: 0px 0px 30px var(--accent-gradient);
    pointer-events: none;
    z-index: 99999 !important;
}
.sidebar-tabs .tab.selected span {
    color: #131313
}
.tab.header {
    width: auto;
    aspect-ratio: 1 / 1;
    flex-direction: row;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    position: unset;
}

.icon {
    stroke-width: 1.7px;
}

.noscript {
    z-index: 20;
    background-color: rgba(255, 43, 43, 0.685);
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 0px 10px rgba(255, 43, 43, 0.308);
}
.noscript span {
    margin-top: 3px;
}

.error-container {
    width: calc(100% - 10px);
    display: flex;
    justify-content: center;
    margin: 15px 0;
    height: auto;
}

.errors {
    position: absolute;
    width: calc(100% - 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.settings {
    width: 60%;
    font-size: 10.5px;
    border-radius: 10px;
    position: absolute;
    bottom: 25px;
}
.settings:hover {
    background-color: #363636;
}

.boxes {
    flex: 1;
    gap: 10px;
    display: flex;
    flex-direction: row;
    min-width: 0;
}

.box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.loading {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.096) 50%,
        transparent 60%,
        transparent 100%
    );
    transform: translateX(-160%);
    animation: shimmer 2.5s ease-in-out infinite;
}

.content-box.loading * {
    visibility: hidden;
}

@keyframes shimmer {
    0% { transform: translateX(-160%); }
    60% { transform: translateX(160%); }
    100% { transform: translateX(160%); }
}

.pfp {
    border-radius: 5px;
    width: 70px;
    box-shadow: 0 0 15px var(--accent-gradient);
    outline: 1px var(--accent) solid;
}

.balance {
    flex: 1;
    background-color: #181818;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    text-align: center;
    flex-direction: column;
    gap: 8px;
}

.timeline {
    background: rgb(10, 10, 10);
    width: 100%;
    flex: 1;
    border-radius: 8px;
}

.info {
    display: flex;
    flex: 0.3;
    justify-content: center;
    align-items: center;
}

#balance {
    font-size: 20px;
}
#ranking {
    font-family:
        "Oxanium",
        system-ui,
        "Segoe UI Emoji",
        "Noto Color Emoji",
        "Apple Color Emoji",
        sans-serif;
}

.notif-overlay {
    position: absolute;
    flex: 1;
    background-color: #00000070;
    width: 100%;
    height: 100%;
    inset: 0;
    backdrop-filter: blur(8px);
    z-index: 30;
    overflow-x: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.notif-overlay.show {
    opacity: 1;
    pointer-events: all;
}
.notif-panel.show {
    transform: translateX(0);
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 15px;
    background: none;
}
.notif-header h3 {
    margin: 0;
    font-size: 17px;
}
.notif-box h3 {
    margin: 0;
    font-size: 17px;
}

.notif-btn {
    background-color: #1a1a1a;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: transform 0.3s ease, background-color 0.3s ease, outline 0.3s ease;
    outline: 1px transparent solid;
}
.notif-btn:hover {
    transform: translateY(-3px);
    background-color: #252525;
    outline: 1px rgba(128, 128, 128, 0.267) solid;
}

.notif-content {
    flex: 1 1 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

.notif-box {
    padding: 12px;
    background-color: #202020;
    border-radius: 12px;
    border: 1px solid #ffffff18;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.notif-box:hover {
    background-color: #282828;
    transform: translateY(-3px);
}
.notif-box.unread {
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px var(--accent-gradient);
}
.notif-box h3 {
    margin-bottom: 5px;
}
.notif-body {
    flex: 1;
    font-size: 14px;
}
.notif-body span {
    color: #cecece;
}
.notif-header-title {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
.notif-panel-count {
    color: white;
    background-color: var(--accent);
    border-radius: 10px;
    padding: 3px 7px;
    font-size: 12px;
    justify-content: center;
    align-items: center;
    text-align: center;
    display: none;
}
.notif-panel-count.show {
    display: flex;
}
.notif-box .icon {
    stroke: white;
    stroke-width: 1.8px;
    margin-bottom: 5px;
    width: 20px;
    height: 20px;
}
.notif-time {
    color: gray;
    font-size: 12px;
}
.line {
    flex: 1;
    background-color: rgb(80, 80, 80);
    max-height: 1px;
}
.notif-btns {
    width: max-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.searchbar {
    display: flex;
    flex-direction: row;
}

#notifications {
    position: relative;
}

#notif-count {
    position: absolute;
    border-radius: 10px;
    background: var(--accent);
    padding: 3px 7px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 45px;
    margin-right: 45px;
    text-align: left;

    background: linear-gradient(#ff0000, #a10000);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.459);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
    transform: translateY(7px);
}
#notif-count.show {
    opacity: 1;
    transform: none;
}