:root {
    --bg: #f7f5fb;
    --surface: #f7f5fb;
    --text: #393640;
    --muted: #85818d;
    --primary: #8f7aea;
    --primary-dark: #7662d1;
    --pink: #e9a9c5;
    --green: #8fc9ad;
    --red: #d98f9b;
    --gold: #d8b55b;
    --shadow-light: #ffffff;
    --shadow-dark: #dedbe5;
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 30px 16px;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Nunito", sans-serif;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

a {
    text-decoration: none;
}

.shop-container {
    width: min(100%, 1050px);
    margin: 0 auto;
}

.hosting-section {
    padding: 24px;
    border-radius: 28px;
    background: var(--surface);
    box-shadow:
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
}

.hosting-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hosting-header h2 {
    margin: 4px 0 6px;
    font-size: 26px;
}

.hosting-header p {
    margin: 0;
    max-width: 600px;
    color: var(--muted);
    line-height: 1.6;
}

.hosting-label {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hosting-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 18px;
}

.hosting-tab {
    padding: 10px 18px;
    border-radius: 14px;
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    box-shadow:
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
    transition: 0.2s ease;
}

.hosting-tab:hover {
    color: var(--primary);
}

.hosting-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow:
        inset 3px 3px 7px rgba(0, 0, 0, 0.12),
        inset -3px -3px 7px rgba(255, 255, 255, 0.15);
}

/* HOSTING FEATURES / KEUNGGULAN */
.hosting-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: var(--surface);
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eeeaf8;
    font-size: 16px;
    line-height: 1;
}

.feature-text strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
    color: var(--text);
}

.feature-text p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.hosting-status {
    min-height: 20px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.hosting-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.hosting-product {
    min-width: 0;
    padding: 18px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hosting-product:hover {
    transform: translateY(-3px);
}

.hosting-product-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.hosting-product-head h3 {
    margin: 5px 0 0;
    font-size: 17px;
}

.hosting-product-type {
    color: var(--primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hosting-memory {
    padding: 6px 9px;
    border-radius: 10px;
    background: #eeeaf8;
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.hosting-price {
    margin: 18px 0;
    font-size: 20px;
    font-weight: 700;
}

.hosting-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.hosting-specs div {
    padding: 8px 4px;
    border-radius: 11px;
    text-align: center;
    background: var(--surface);
    box-shadow:
        inset 3px 3px 6px var(--shadow-dark),
        inset -3px -3px 6px var(--shadow-light);
}

.hosting-specs span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 8px;
}

.hosting-specs strong {
    display: block;
    font-size: 10px;
}

.hosting-empty {
    grid-column: 1 / -1;
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

.hosting-error {
    color: var(--red);
}

.hosting-error button {
    margin-left: 5px;
    padding: 4px 8px;
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
}

/* ROLE CAROUSEL */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 14px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    width: 100%;
    min-width: 100%;
    padding: 12px;
}

.package-box {
    position: relative;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 30px 25px;
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
    box-shadow:
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
}

.tier-logo {
    width: 86px;
    height: 86px;
    margin-bottom: 10px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow:
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.package-box h3 {
    margin: 5px 0 8px;
    font-size: 25px;
}

.package-price {
    margin-bottom: 22px;
    color: var(--primary);
    font-size: 23px;
    font-weight: 700;
}

.package-list,
.feature-list {
    padding: 0;
    margin: 0 0 18px;
    list-style: none;
}

.package-list li,
.feature-list li {
    margin: 9px 0;
    color: var(--muted);
    font-size: 13px;
}

.supported::before {
    content: "✓";
    margin-right: 7px;
    color: var(--green);
    font-weight: 700;
}

.unsupported::before {
    content: "×";
    margin-right: 7px;
    color: var(--red);
    font-weight: 700;
}

.populer-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #f2dfaa;
    color: #84651c;
    font-size: 9px;
    font-weight: 700;
}

.gold-package {
    border: 1px solid rgba(216, 181, 91, 0.25);
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-buy,
.btn-hosting {
    background: var(--primary);
    color: #fff;
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.btn-buy:hover,
.btn-hosting:hover {
    background: var(--primary-dark);
}

.btn-back {
    width: min(100%, 430px);
    margin: 25px auto 0;
    background: var(--surface);
    color: var(--text);
    box-shadow:
        7px 7px 14px var(--shadow-dark),
        -7px -7px 14px var(--shadow-light);
}

/* NAVIGATION */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
}

.nav-btn {
    min-width: 80px;
    padding: 9px 14px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    box-shadow:
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.nav-btn:active {
    box-shadow:
        inset 3px 3px 7px var(--shadow-dark),
        inset -3px -3px 7px var(--shadow-light);
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d8d4df;
    cursor: pointer;
    transition: 0.2s ease;
}

.dot.active {
    width: 22px;
    border-radius: 10px;
    background: var(--primary);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(50, 47, 58, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    width: min(100%, 460px);
    padding: 25px;
    border-radius: 24px;
    background: var(--surface);
    box-shadow:
        15px 15px 30px rgba(40, 37, 48, 0.2),
        -10px -10px 25px rgba(255, 255, 255, 0.8);
}

.modal-box h3 {
    margin: 0 0 18px;
    font-size: 21px;
}

.terms-content {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.terms-content p {
    margin: 0 0 12px;
}

.terms-content strong {
    color: var(--text);
}

.timer-box {
    margin: 18px 0;
    padding: 13px;
    border-radius: 13px;
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--primary);
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.btn-cancel {
    background: var(--surface);
    color: var(--text);
    box-shadow:
        5px 5px 10px var(--shadow-dark),
        -5px -5px 10px var(--shadow-light);
}

.btn-confirm {
    background: var(--primary);
    color: #fff;
}

.btn-confirm:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* MOBILE */
@media (max-width: 900px) {
    .hosting-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hosting-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body {
        padding: 18px 10px;
    }

    .hosting-section {
        padding: 18px;
        border-radius: 22px;
    }

    .hosting-header {
        align-items: flex-start;
    }

    .hosting-header h2 {
        font-size: 22px;
    }

    .hosting-header p {
        font-size: 12px;
    }

    .hosting-tabs {
        margin-top: 20px;
    }

    .hosting-tab {
        flex: 1 1 30%; /* Responsive auto sizing the tabs */
        padding: 10px 8px;
        font-size: 11px;
        text-align: center;
    }

    .hosting-features {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }

    .feature-item {
        padding: 12px;
    }

    .hosting-products {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .hosting-product {
        padding: 16px;
    }

    .carousel-wrapper {
        padding: 8px;
    }

    .carousel-slide {
        padding: 8px;
    }

    .package-box {
        padding: 25px 18px;
    }

    .tier-logo {
        width: 75px;
        height: 75px;
    }

    .package-box h3 {
        font-size: 22px;
    }

    .package-price {
        font-size: 20px;
    }

    .package-list,
    .feature-list li {
        font-size: 12px;
    }

    .modal-box {
        padding: 20px;
        border-radius: 20px;
    }
}