* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --yellow: #ffe000;
    --yellow-dark: #e9ca00;

    --background: #080b12;
    --surface: #101722;
    --surface-2: #151e2a;

    --border: #202b39;

    --text: #ffffff;
    --secondary: #9ba6b4;
    --muted: #6f7b89;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    padding-bottom: 78px;

    background: var(--background);

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}


/* =========================
   TOP BAR
========================= */

.top-bar {
    height: 68px;

    padding: 0 17px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: var(--background);

    position: sticky;
    top: 0;
    z-index: 50;
}


.brand {
    display: flex;

    align-items: center;

    gap: 9px;

    font-size: 20px;

    font-weight: 800;
}


.brand-icon {
    width: 36px;
    height: 36px;

    display: flex;

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

    border-radius: 9px;

    background: var(--yellow);

    color: #080b12;

    font-size: 24px;

    font-weight: 900;
}


.brand > span > span {
    color: var(--yellow);
}


.top-actions {
    display: flex;

    align-items: center;

    gap: 15px;
}


.icon-button {
    position: relative;

    width: 32px;
    height: 32px;

    border: 0;

    background: transparent;

    color: white;

    font-size: 23px;
}


.icon-button b {
    position: absolute;

    top: -2px;
    right: -2px;

    width: 17px;
    height: 17px;

    display: flex;

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

    border-radius: 50%;

    background: var(--yellow);

    color: #111;

    font-size: 10px;
}


.profile-button {
    width: 39px;
    height: 39px;

    border: 0;

    border-radius: 50%;

    background: var(--yellow);

    color: #111;

    font-size: 12px;

    font-weight: 800;
}


/* =========================
   CATEGORY CHIPS
========================= */

.category-chips {
    display: flex;

    gap: 8px;

    padding: 8px 16px 17px;

    overflow-x: auto;

    scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
    display: none;
}


.chip {
    flex-shrink: 0;

    padding: 10px 17px;

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

    border-radius: 22px;

    background: var(--surface);

    color: #d7dde4;

    font-size: 13px;

    white-space: nowrap;
}


.chip.active {
    background: var(--yellow);

    border-color: var(--yellow);

    color: #111;

    font-weight: 700;
}


/* =========================
   SECTIONS
========================= */

.app-section {
    margin-top: 10px;

    padding: 0 16px;
}


.section-title {
    min-height: 48px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;
}


.section-title h2 {
    font-size: 21px;

    font-weight: 500;

    letter-spacing: -0.4px;
}


.arrow-button {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;

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

    border-radius: 50%;

    background: var(--surface-2);

    color: var(--yellow);

    font-size: 25px;
}


.sponsored {
    font-size: 12px;

    font-weight: 700;
}


.more-button {
    border: 0;

    background: transparent;

    color: white;

    font-size: 25px;
}


/* =========================
   HORIZONTAL APPS
========================= */

.horizontal-apps {
    display: flex;

    gap: 14px;

    overflow-x: auto;

    padding: 4px 0 18px;

    scrollbar-width: none;
}

.horizontal-apps::-webkit-scrollbar {
    display: none;
}


.app-card-horizontal {
    width: 142px;

    flex-shrink: 0;
}


.app-icon {
    width: 142px;
    height: 142px;

    border-radius: 23px;

    object-fit: cover;

    background: var(--surface-2);
}


.app-name {
    margin-top: 9px;

    font-size: 14px;

    line-height: 1.3;

    color: #e9edf1;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


.app-rating {
    margin-top: 5px;

    display: inline-flex;

    padding: 3px 7px;

    border-radius: 7px;

    background: var(--surface-2);

    color: #c9d0d7;

    font-size: 11px;
}


.app-rating span {
    color: var(--yellow);

    margin-left: 3px;
}


/* =========================
   EMPTY HORIZONTAL
========================= */

.empty-horizontal {
    width: 100%;

    min-height: 150px;

    display: flex;

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

    border: 1px dashed var(--border);

    border-radius: 16px;

    color: var(--muted);

    font-size: 13px;
}


/* =========================
   VERTICAL LIST
========================= */

.list-section {
    margin-top: 5px;
}


.vertical-app-list {
    display: flex;

    flex-direction: column;

    gap: 3px;
}


.app-list-item {
    min-height: 88px;

    display: flex;

    align-items: center;

    gap: 13px;
}


.app-list-icon {
    width: 60px;
    height: 60px;

    flex-shrink: 0;

    border-radius: 15px;

    object-fit: cover;

    background: var(--surface-2);
}


.app-list-info {
    min-width: 0;

    flex: 1;
}


.app-list-name {
    margin-bottom: 5px;

    color: #f2f4f6;

    font-size: 15px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.app-list-meta {
    color: var(--secondary);

    font-size: 12px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.app-list-rating {
    margin-top: 5px;

    color: #d0d5da;

    font-size: 11px;
}


.app-list-rating span {
    color: var(--yellow);
}


/* =========================
   EMPTY LIST
========================= */

.empty-list {
    min-height: 100px;

    display: flex;

    align-items: center;

    gap: 13px;

    color: var(--secondary);
}


.empty-small-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;

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

    border-radius: 15px;

    background: rgba(255, 224, 0, 0.09);

    color: var(--yellow);

    font-size: 25px;

    font-weight: 900;
}


.empty-list strong {
    display: block;

    margin-bottom: 5px;

    color: #e8ebee;

    font-size: 14px;
}


.empty-list p {
    color: var(--muted);

    font-size: 12px;
}


/* =========================
   BOTTOM NAV
========================= */

.bottom-nav {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 100;

    height: 70px;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    background: #0c121b;

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

    padding-bottom: env(safe-area-inset-bottom);
}


.bottom-item {
    display: flex;

    flex-direction: column;

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

    gap: 4px;

    color: #7f8a98;

    font-size: 10px;

    font-weight: 500;
}


.bottom-icon {
    width: 43px;
    height: 27px;

    display: flex;

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

    border-radius: 18px;

    font-size: 21px;
}


.bottom-item.active {
    color: var(--yellow);
}


.bottom-item.active .bottom-icon {
    background: transparent;
}


/* =========================
   TABLET / DESKTOP
========================= */

@media (min-width: 700px) {

    body {
        max-width: 700px;

        margin: 0 auto;

        border-left: 1px solid #121d29;
        border-right: 1px solid #121d29;
    }

    .top-bar {
        padding-left: 24px;
        padding-right: 24px;
    }

    .app-section {
        padding-left: 24px;
        padding-right: 24px;
    }

}