/* Account and contributor additions. Kept separate to preserve the original storefront. */

.gg-account-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.gg-account-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: radial-gradient(circle at 88% 0%, rgba(217, 35, 46, .14), transparent 30%), var(--content-color);
}

.gg-account-avatar {
    display: grid;
    width: 74px;
    height: 74px;
    overflow: hidden;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background: var(--content-light-color);
    color: #fff;
    font-size: 25px;
}

.gg-account-avatar img,
.gg-contributor-avatar img,
.gg-order-line-image img,
.gg-subscription-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gg-account-identity {
    min-width: 0;
}

.gg-account-identity .gg-kicker,
.gg-account-section-heading .gg-kicker {
    margin-bottom: 5px;
}

.gg-account-identity h1 {
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-account-identity > p:last-child {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 12px;
}

.gg-account-signout,
.gg-subscription-cancel {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 5px;
    background: rgba(255, 255, 255, .04);
    color: #d5d5da;
    font-size: 10px;
    font-weight: 750;
}

.gg-account-signout i {
    margin-left: 7px;
}

.gg-account-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    background: var(--content-color);
    scrollbar-width: none;
}

.gg-account-tabs::-webkit-scrollbar {
    display: none;
}

.gg-account-tabs a {
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border-radius: 4px;
    color: #aaaab0;
    font-size: 11px;
    font-weight: 700;
}

.gg-account-tabs a.is-active {
    background: var(--primary-color);
    color: #fff;
}

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

.gg-account-stats article {
    display: flex;
    min-height: 124px;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 7px;
    background: var(--content-color);
}

.gg-account-stats span {
    color: #929299;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.gg-account-stats strong {
    margin-top: 4px;
    overflow: hidden;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-account-stats small {
    margin-top: 5px;
    overflow: hidden;
    color: #85858c;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-account-stats .gg-account-status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 21px;
}

.gg-account-status i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #55d187;
}

.gg-account-section {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .085);
    border-radius: 8px;
    background: var(--content-color);
}

.gg-account-section-heading,
.gg-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.gg-account-section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.035em;
}

.gg-account-section-heading > span,
.gg-order-header > div > span {
    color: #8b8b92;
    font-size: 9px;
    font-weight: 700;
}

.gg-order-history,
.gg-subscription-list,
.gg-inventory-list {
    display: flex;
    flex-direction: column;
}

.gg-order-card + .gg-order-card,
.gg-subscription-card + .gg-subscription-card,
.gg-inventory-card + .gg-inventory-card {
    border-top: 1px solid rgba(255, 255, 255, .075);
}

.gg-order-header {
    background: rgba(255, 255, 255, .02);
}

.gg-order-header time,
.gg-order-header time small {
    display: block;
}

.gg-order-header time {
    color: #e8e8eb;
    font-size: 11px;
    font-weight: 650;
}

.gg-order-header time small {
    color: #87878e;
    font-size: 9px;
}

.gg-order-header > strong {
    color: #fff;
    font-size: 18px;
}

.gg-order-lines {
    padding: 4px 24px;
}

.gg-order-line {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}

.gg-order-line + .gg-order-line {
    border-top: 1px solid rgba(255, 255, 255, .065);
}

.gg-order-line-image,
.gg-subscription-image,
.gg-inventory-icon,
.gg-contributor-avatar {
    display: grid;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 7px;
    background: var(--content-light-color);
    color: #a5a5ac;
}

.gg-order-line-image {
    width: 56px;
    height: 56px;
}

.gg-order-line-copy h3,
.gg-subscription-copy h3,
.gg-inventory-card h3 {
    margin: 0;
    color: #f5f5f7;
    font-size: 14px;
    font-weight: 750;
}

.gg-order-line-copy p,
.gg-subscription-copy p,
.gg-inventory-card p {
    margin: 4px 0 0;
    color: #898990;
    font-size: 10px;
}

.gg-order-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(85, 209, 135, .08);
    color: #78d99c;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.gg-order-card footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 24px 18px;
}

.gg-order-card footer a,
.gg-inventory-card > a {
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 750;
}

.gg-subscription-card {
    display: grid;
    grid-template-columns: 70px minmax(170px, 1fr) minmax(340px, 1.4fr) auto;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
}

.gg-subscription-image {
    width: 70px;
    height: 70px;
}

.gg-order-badge-status {
    margin-bottom: 7px;
    background: rgba(217, 35, 46, .1);
    color: #f07882;
}

.gg-subscription-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.gg-subscription-details dt {
    color: #83838a;
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
}

.gg-subscription-details dd {
    margin: 0;
    color: #e7e7ea;
    font-size: 10px;
}

.gg-subscription-cancel {
    border-color: rgba(240, 88, 99, .2);
    color: #ef7d86;
}

.gg-inventory-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
}

.gg-inventory-icon {
    width: 52px;
    height: 52px;
}

.gg-account-empty {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 48px 24px;
    text-align: center;
}

.gg-account-empty > i {
    margin-bottom: 14px;
    color: #9999a0;
    font-size: 28px;
}

.gg-account-empty h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.gg-account-empty p {
    margin: 7px 0 18px;
    color: var(--text-muted);
    font-size: 11px;
}

/* Homepage top contributors module */

.gg-top-contributors-section,
.gg-top-contributors-section .gg-community-modules,
.gg-top-contributors-section .gg-community-modules > .gg-contributors {
    width: 100%;
}

.gg-top-contributors-section .gg-community-modules {
    display: block;
}

.gg-contributors {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 26px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--content-color);
}

.gg-contributors-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gg-contributors-heading h2 {
    margin: 0;
}

.gg-contributors-heading h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .035em;
}

.gg-contributor-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gg-contributor-list li {
    display: grid;
    grid-template-columns: 24px 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 6px;
    background: rgba(255, 255, 255, .035);
}

.gg-contributor-rank {
    color: #85858c;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

.gg-contributor-list li:first-child .gg-contributor-rank {
    color: var(--primary-color);
}

.gg-contributor-avatar {
    width: 42px;
    height: 42px;
}

.gg-contributor-copy {
    min-width: 0;
}

.gg-contributor-copy strong,
.gg-contributor-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gg-contributor-copy strong {
    color: #f7f7f9;
    font-size: 12px;
}

.gg-contributor-amount {
    margin-top: 4px;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .gg-contributor-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gg-account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gg-account-stats article:last-child {
        grid-column: 1 / -1;
    }

    .gg-subscription-card {
        grid-template-columns: 70px minmax(0, 1fr) auto;
    }

    .gg-subscription-details {
        grid-column: 2 / -1;
        grid-row: 2;
    }
}

@media (max-width: 680px) {
    .gg-contributors {
        padding: 20px;
    }

    .gg-contributor-list {
        grid-template-columns: 1fr;
    }

    .gg-account-profile {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 22px;
    }

    .gg-account-avatar {
        width: 60px;
        height: 60px;
    }

    .gg-account-profile form {
        grid-column: 1 / -1;
    }

    .gg-account-signout {
        width: 100%;
    }

    .gg-account-tabs a {
        min-width: max-content;
        flex: 1 0 auto;
        padding: 0 13px;
    }

    .gg-account-stats {
        grid-template-columns: 1fr;
    }

    .gg-account-stats article:last-child {
        grid-column: auto;
    }

    .gg-order-line {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .gg-order-line > .gg-order-badge {
        grid-column: 2;
        justify-self: start;
    }

    .gg-subscription-card {
        grid-template-columns: 58px minmax(0, 1fr);
        align-items: start;
    }

    .gg-subscription-image {
        width: 58px;
        height: 58px;
    }

    .gg-subscription-details,
    .gg-subscription-card form {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .gg-subscription-details {
        grid-template-columns: 1fr;
    }

    .gg-subscription-cancel {
        width: 100%;
    }

    .gg-inventory-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .gg-inventory-card > a {
        grid-column: 2;
    }
}
