.form-group {
    margin-bottom: 1rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

.hp-hero-text-gradient {
    background: linear-gradient(90deg, rgb(37,161,244), rgb(249,31,169), rgb(37,161,244));
    background-size: 400% 100%;
    color: transparent !important;
    -webkit-background-clip: text;
    background-clip: text;
    animation: hp-move-bg 24s linear infinite;
}

@keyframes hp-move-bg {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 400% 0;
    }
}

.payment-menu {
    width: 100%;
}

.payment-menu input[type="radio"] {
    display: none;
}

.payment-menu input[type="radio"] + .payment-item {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid #dee2e6;
    word-break: break-word;
}

.payment-menu input[type="radio"]:checked + .payment-item {
    border-color: #0d6efd;
}

.select2,
.select2-container {
    width: 100% !important;
    max-width: 100%;
}

.select2-selection__rendered {
    overflow: hidden;
    text-overflow: ellipsis;
}

.table {
    width: 100%;
}

.table-responsive {
    overflow-x: auto;
}

.modal-dialog {
    max-width: calc(100% - 1rem);
}

.btn {
    min-height: 40px;
}

.pc-mtext,
.ticker-item {
    word-break: break-word;
}

@media (max-width: 991px) {
    .pc-container {
        padding: 10px !important;
    }

    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }


    #headerUserBalance {
        font-size: 12px;
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .pc-sidebar {
        max-width: 280px;
    }

    .card {
        margin-bottom: 12px;
    }

    .modal-dialog {
        max-width: 100%;
        margin: 8px;
    }

    .table th,
    .table td {
        font-size: 13px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .pc-container {
        padding: 6px !important;
    }

    #headerUserBalance {
        font-size: 11px;
        max-width: 100px;
    }

    .btn {
        font-size: 12px;
    }

    .card-body {
        padding: 10px;
    }

    .modal-dialog {
        margin: 5px;
    }
}

/* =========================
   RESPONSIVE OVERRIDE FIX
   tempel paling bawah
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden !important;
}

img,
svg,
video,
iframe,
canvas {
    max-width: 100%;
    height: auto;
}

.pc-container,
.pc-content,
.container,
.container-fluid,
.row,
.col,
[class*="col-"] {
    max-width: 100%;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    max-width: 100%;
}

.modal-dialog {
    max-width: calc(100% - 1rem);
    margin: .5rem auto;
}

.select2,
.select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

.select2-selection__rendered {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pc-mtext,
.ticker-item,
.dropdown-item,
.list-group-item,
.btn,
.badge {
    word-break: break-word;
}

#headerUserBalance {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .pc-container,
    .pc-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .card-body,
    .card-header,
    .card-footer {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .pc-header .ms-auto ul,
    .pc-header .me-auto ul {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin-bottom: 0;
    }

    .pc-header .ms-auto ul {
        justify-content: space-between;
    }

    .pc-head-link {
        padding: .5rem !important;
    }

    #headerUserBalance {
        font-size: 12px;
        max-width: 130px;
        padding: .4rem .7rem !important;
    }

    .pc-sidebar {
        max-width: 280px;
    }

    .card {
        margin-bottom: 12px;
    }

    .modal-dialog {
        max-width: calc(100% - .75rem);
        margin: .375rem auto;
    }

    .table th,
    .table td {
        font-size: 13px;
        padding: 8px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .pc-container {
        padding: 6px !important;
    }

    .pc-content {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    #headerUserBalance {
        font-size: 11px;
        max-width: 100px;
    }

    .btn {
        font-size: 12px;
    }

    .card-body,
    .card-header,
    .card-footer {
        padding: 10px;
    }

    .modal-dialog {
        margin: 5px auto;
    }

    .pc-sidebar {
        max-width: 86vw;
    }
}

/* ===== FIX HEADER MOBILE AGAR ICON TETAP SEBARIS ===== */
@media (max-width: 768px) {
    .pc-header .header-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    .pc-header .me-auto,
    .pc-header .ms-auto {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .pc-header .me-auto ul,
    .pc-header .ms-auto ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pc-header .ms-auto ul {
        justify-content: flex-end !important;
    }

    .pc-header .pc-h-item {
        flex: 0 0 auto !important;
    }

    #headerUserBalance {
        max-width: 110px !important;
        font-size: 12px !important;
        padding: 6px 10px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .header-user-profile .user-avtar,
    .pc-header .user-avtar {
        width: 36px !important;
        height: 36px !important;
        object-fit: cover !important;
    }

    .pc-head-link {
        width: 40px;
        height: 40px;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {
    .pc-header .header-wrapper {
        gap: 6px !important;
    }

    .pc-header .me-auto ul,
    .pc-header .ms-auto ul {
        gap: 6px !important;
    }

    #headerUserBalance {
        max-width: 96px !important;
        font-size: 11px !important;
        padding: 6px 8px !important;
    }

    .pc-head-link {
        width: 36px;
        height: 36px;
    }

    .header-user-profile .user-avtar,
    .pc-header .user-avtar {
        width: 34px !important;
        height: 34px !important;
    }
}