@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@font-face {
    font-family: 'BPG Boxo Boxo', sans-serif;
    src: url('../fonts/bpg_boxo-boxo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.category-tabs {
    position: relative;
}

.category-slider {
    position: absolute;
    top: 12px;
    left: 0;
    height: calc(100% - 24px);
    background: white;
    border-radius: 9999px;
    transition: transform 0.35s ease, width 0.35s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.category-btn {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    z-index: 1;
}

.category-btn:focus {
    outline: none;
}

.category-tabs {
    margin: 0 0 2rem 0;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 36px;
    padding: 12px 48px;
    display: flex;
    gap: 36px;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.shop .title {
    font-size: 40px;
    margin-bottom: 48px;
}

.category-btn {
    padding: 28px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    background: transparent;
    font-family: 'BPG Boxo Boxo', sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-size: 24px;
    line-height: 17px;
}

.category-btn:hover {
    background: white;
    color: #505050;
}

.category-btn.active {
    color: #505050;
}

/* .category-btn.active {
    background: white;
    color: #505050;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
} */

.currency-form {
    max-width: 540px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 20px;
    font-family: 'BPG Boxo Boxo', sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    line-height: 17px;
    color: white;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    /* left: 1rem; */
    /* color: #9ca3af; */
    /* font-size: 1.2rem; */
}

.form-input {
    width: 100%;
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    padding: 8px 8px 8px 32px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.form-input:focus {
    border-color: rgba(168, 85, 247, 0.5);
}

.refresh-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.refresh-btn:hover {
    color: white;
}

.coin-display {
    width: 100%;
    border-radius: 12px 12px 0 0;
    padding: 10px;
    gap: 16px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.coin-display .input-icon {
    position: static;
}


.coin-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
}

.coin-value {
    color: white;
    font-size: 20px;
    font-weight: 600;
    font-family: 'BPG Boxo Boxo', sans-serif;
    font-optical-sizing: auto;
    line-height: 17px;
}

.currency-btns {
    display: flex;
    margin-top: 0;
}

.currency-btn {
    padding: 10px;
    outline: none;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.currency-btn.dollar {
    color: white;
    border-radius: 0px 0px 0 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.currency-btn.dollar:hover {
    background: rgba(219, 39, 119, 1);
}

.currency-btn.ecoin {
    color: white;
    border-radius: 0px 0px 12px 0px;
    border-left: 1px solid rgba(255, 255, 255, 0.6);
}

.currency-btn.ecoin:hover {
    background: rgba(40, 40, 50, 0.9);
}

.username-section {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.username-input {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(30, 30, 40, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    padding: 12px;
}

.username-input .input-icon {
    /* position: static; */
    /* color: #9ca3af; */
}

.username-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-size: 1rem;
}

.username-input input::placeholder {
    color: #6b7280;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(to right, #db2777, #9333ea);
    border: none;
    border-radius: 0.75rem;
    padding: 1.25rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'BPG Boxo Boxo', sans-serif;
    margin-bottom: 1.5rem;
}

.submit-btn:hover {
    background: linear-gradient(to right, #be185d, #7e22ce);
}

.checkbox-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.checkbox-wrapper input {
    margin-top: 0.25rem;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: #9333ea;
}

.checkbox-wrapper label {
    font-size: 0.875rem;
    color: #d1d5db;
    line-height: 1.5;
    cursor: pointer;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    row-gap: 80px;
}

.item-card {
    box-shadow: 5px 10px 47px 0px rgba(240, 219, 219, 0.25);

    border-radius: 1rem;
    max-width: 350px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s;
}

.item-card:hover {
    transform: scale(1.05);
    border-color: rgba(168, 85, 247, 0.5);
}

.item-image {
    position: relative;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.item-info {
    padding: 22px;
    background: rgba(21, 21, 21, 0.5);
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.item-name {
    font-size: 26px;
    font-weight: 600;
    font-family: 'BPG Boxo Boxo', sans-serif;
    font-optical-sizing: auto;
    line-height: 26px;
    text-align: center;
    color: #f3f4f6;
}

.item-price-btn {
    font-family: 'BPG Boxo Boxo', sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    line-height: 17px;
    font-size: 20px;
    background: linear-gradient(to right, #BB40A0, #E0193E);
    border: none;
    border-radius: 9999px;
    padding: 16px 24px;
    color: white;
    width: fit-content;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.3s;
}

.item-price-btn:hover {
    background: linear-gradient(to right, #db2777, #7e22ce);
    box-shadow: 0 10px 15px -3px rgba(168, 85, 247, 0.5);
}

.empty-state {
    text-align: center;
    padding: 4rem 0;
    color: #9ca3af;
    font-size: 1.25rem;
}

.hidden {
    display: none;
}

@media screen and (max-width: 1440px) {

    .content{
        max-width: 860px;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
        row-gap: 24px;
    }

    .category-tabs {
        padding: 8px 16px;
        gap: 8px;
    }

    .category-btn {
        padding: 8px 12px;
        font-size: 18px;
    }

    .item-card {
        max-width: 265px;
    }

    .item-name {
        font-size: 18px;
    }

    .item-info {
        gap: 16px;
    }

    .item-price-btn {
        padding: 12px 36px;
        font-size: 16px;
    }

}

@media screen and (max-width: 991px) {

    .category-slider {
        transition: none;
    }
    .content {
        max-width: 660px;
    }

    .shop .title {
        font-size: 24px;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
        row-gap: 24px;
        justify-items: center;
    }

    .category-tabs {
        padding: 8px;
        gap: 8px;
    }

    .category-btn {
        padding: 6px 8px;
        font-size: 14px;
    }

    .item-card {
        max-width: 265px;
    }

    .item-name {
        font-size: 18px;
    }

    .item-info {
        gap: 16px;
    }

    .item-price-btn {
        padding: 12px 36px;
        font-size: 16px;
    }

}


@media (max-width: 768px) {
    .category-tabs {
        width: 100%;
    }

}

@media screen and (max-width: 650px) {

    .form-row {
        flex-direction: column;
    }

    .form-group {
        gap: 12px;
    }

    .content {
        max-width: 90%;
    }

    .category-tabs {
        overflow-y: scroll;
    }

    .item-card {
        max-width: 90%;
        min-width: 315px;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(315px, 1fr));
        row-gap: 24px;
        justify-items: center;
    }

    .category-btn {
        font-size: 13px;
    }
}

/* MODAL */

.modal-agree {
    margin-top: 14px;
}

.modal-agree__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
    user-select: none;
}

.modal-agree__row input {
    margin-top: 3px;
}

.modal-agree__row a {
    color: #fff;
    text-decoration: underline;
}

.submit-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}


.item-modal__image {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.item-modal__image img {
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px;
    max-width: 160px;
}


.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.modal.is-open {
    display: block;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
}

.modal__panel {
    position: relative;
    width: min(560px, calc(100% - 32px));
    margin: 90px auto 0;
    background: #0f0f12;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal__title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.modal__close {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.modal__close:hover {
    background: rgba(255, 255, 255, .12);
}

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

.modal .form-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, .6);
}

.modal .input-wrapper,
.modal .username-input {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #141418;
    border-radius: 14px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .06);
    transition: background .2s ease, border-color .2s ease;
}

.modal .input-wrapper:focus-within,
.modal .username-input:focus-within {
    background: #17171c;
    border-color: rgba(255, 255, 255, .18);
}

.modal .input-icon {
    width: 18px;
    height: 18px;
    opacity: 0.9;
    flex-shrink: 0;
}

.modal .form-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;

    font-family: 'BPG Boxo Boxo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.modal .form-input::placeholder {
    color: rgba(255, 255, 255, .35);
}

.modal .form-input:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.modal input[type="number"]::-webkit-inner-spin-button,
.modal input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

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

.modal .submit-btn {
    margin-top: 6px;
    border-radius: 14px;
    font-weight: 600;
}

.modal.is-open .modal__panel {
    animation: modalIn .18s ease-out;
}

@keyframes modalIn {
    from {
        transform: translateY(12px) scale(.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .modal__panel {
        margin-top: 48px;
        padding: 18px;
        border-radius: 18px;
    }

    .modal__title {
        font-size: 18px;
    }
}