:root {
 --primary: #1e90ff;
 --success: #48bb78;
 --error: #f56565;
 --info: #4299e1;
 --progress: #ecc94b;
 --bg-light: #f7fafc;
 --bg-dark: #2d3748;
 --text-light: #2d3748;
 --text-dark: #e2e8f0;
 --card-light: #fff;
 --card-dark: #4a5568;
 --shadow-light: rgba(0, 0, 0, 0.1);
 --shadow-dark: rgba(0, 0, 0, 0.3);
 }
body{
    color: var(--color-text);
    font-size: var(--font-size);
    font-family: 'Prompt', sans-serif;
    background-color: #fff;
}
a{
    color: var(--color-text);
}
a:hover{
    color: var(--color);
    text-decoration: none;
}
#content{
    min-height: 80vh;
}
.bg-navbar{
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: var(--bg-navbar);
    box-shadow: 0px 10px 20px rgb(0 0 0 / 20%);
}
.logo-navbar{
    width: 50px;
}
.title-footer{
    font-size: 16px;
}
.title-footer{
    text-align: center;
}
.menu-footer{
    text-align: center;
}
.item-footer{
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--color-text);
}
.title-page{
    text-align: center;
}
.btn-color{
    background-color: var(--color);
    color: var(--color-white);
}
.btn-color:hover{
    background-color: var(--color-hover);
    color: var(--color-white);
}
.text-input{
    margin-top: 20px;
}
.text-button{
    margin-top: 10px;
}
.text-bottom-button{
    margin-top: 10px;
}
.text-color{
    color: var(--color);
}
.text-recaptcha{
    margin-top: 10px;
}
.details-footer{
    padding-top: 30px;
    padding-bottom: 30px;
    background-color: var(--color-footer);
    color: var(--color-text);
}
.name-developers{
    background-color: var(--color-footer-name);
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    color: var(--color-name-developers);
}
.name-developers a{
    color: var(--color-name-developers);
}
.name-developers a:hover{
    color: var(--color);
}
.item-navbar{
    margin-left: 5px;
    padding: 8px 10px;
    color: var(--color-item-navbar);
}
.item-navbar:hover{
    color: var(--color-text-item-navbar-active);
    background-color: var(--color-item-navbar-hover);
    padding: 8px 10px;
    border-radius: 10px;
}
.item-navbar.active{
    background-color: var(--color-item-navbar-active);
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--color-text-item-navbar-active);
}
.item-navbar.active:hover{
    color: var(--color-text-item-navbar-active);
}
.clickable{
    cursor: pointer;
}
.image-show-home{
    width: 100%;
}
.image-show-home:hover{
    animation-name: shake;
    animation-timing-function: ease;
    animation-duration: 0.88s;
    animation-iteration-count: infinite;
}
.image-robux{
    border-radius: 10px;
    width: 90%;
}
.image-robux:hover{
    animation-name: bounce;
    animation-timing-function: ease;
    animation-duration: 0.88s;
    animation-iteration-count: infinite;
}
.image-services{
    border-radius: 10px;
    width: 90%;
}
.image-services:hover{
    animation-name: bounce;
    animation-timing-function: ease;
    animation-duration: 0.88s;
    animation-iteration-count: infinite;
}
.image-card-services{
    width: 100px;
}
.card-services{
    border-bottom: 4px solid var(--color);
}
.card{
    background-color: var(--color-card);
    border-radius: 10px;
    color: var(--color-text-card);
}
.card-home{
    border-bottom: 4px solid var(--color);
}
.card-home h1{
    color: var(--color);
}
.card-home:hover{
    background-color: var(--color);
    color: var(--color-white);
    border-bottom: 4px solid var(--color-white);
    transition: 1s;
}
.card-home:hover h1{
    color: var(--color-white);
}
.details-product{
    color: rgb(120 113 108 / 1);
}
.details-product>span{
    display: block;
}
.show-product-col:hover{
    animation-name: bounce;
    animation-timing-function: ease;
    animation-duration: 0.88s;
    animation-iteration-count: infinite;
}
.image-card-robux{
    width: 100px;
}
.card-robux{
    border-bottom: 4px solid var(--color);
}
.navbar-mobile{
    background-color: var(--color-background);
    color: var(--color-white);
    position: fixed;
    height: 100%;
    width: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    overflow-x: hidden;
    transition: 0.2s;
}
.title-navbar-mobile{
    background-color: var(--color-hover);
    font-size: 20px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 10px;
}
#closeNavbar{
    position: absolute;
    color: var(--color-white);
    top: 0;
    left: 0;
    background-color: var(--color);
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
}
.item-navbar-mobile{
    margin-top: 15px;
    display: block;
}
.item-navbar-mobile.active{
    color: var(--color);
}
.nav-link-mobile {
    display: block;
}
.btn-while{
    background-color: var(--color-white);
    color: var(--color);
}
.btn-navbar-login-register{
    width: 100%;
    margin-top: 10px;
}
.details-user{
    text-align: center;
}
.logo-navbar-user{
    width: 50px;
    margin-bottom: 10px;
}
.menu-hr{
    background-color: var(--color);
}
.modal-content{
    background-color: var(--color-background);
    border-radius: 10px;
}
.modal-header{
    border-bottom: 1px solid var(--color);
}
.modal-footer{
    border-top: 1px solid var(--color);
}
.badge-color{
    background-color: var(--color);
}
.details-product-modal>span{
    display: block;
}
.details-product-modal-card{
    background-color: var(--color-modal-card);
    border-radius: 20px;
    padding: 20px 20px;
}
.details-product-modal-card>span{
    display: block;
}
hr{
    background-color: var(--color);
}
.dropdown-item:hover{
    background-color: var(--color);
    color: var(--color-white);
}
.card-white{
    background-color: var(--color-white);
    color: var(--color-black);
}
.btn-menu{
    background-color: var(--color-white);
    color: var(--color-black);
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    width: 100%;
    text-align: start;
}
.btn-menu.active{
    background-color: var(--color);
    color: var(--color-white);
}
.btn-menu:hover{
    background-color: #374151;
    color: var(--color-white);
}
.btn-404{
    background-color: var(--color);
    border-radius: 15px;
    margin-top: 50px;
    color: var(--color-white);
}
.btn-404:hover{
    color: var(--color-white);
    background-color: #374151;
}
.page-404{
    margin-top: 100px;
    text-align: center;
    color: #9ca3af;
}
.page-item.active .page-link{
    background-color: var(--color);
    border-color: var(--color);
}
@keyframes shake {
    0%{
        transform: translate(1px, 1px) rotate(0deg);
    }
    10%{
        transform: translate(-1px, -2px) rotate(-1deg);
    }
    20%{
        transform: translate(-3px, 0px) rotate(1deg);
    }
    30%{
        transform: translate(3px, 2px) rotate(0deg);
    }
    40%{
        transform: translate(1px, -1px) rotate(1deg);
    }
    50%{
        transform: translate(-1px, 2px) rotate(-1deg);
    }
    60%{
        transform: translate(-3px, 1px) rotate(0deg);
    }
    70%{
        transform: translate(3px, 1px) rotate(-1deg);
    }
    80%{
        transform: translate(-1px, -1px) rotate(1deg);
    }
    90%{
        transform: translate(1px, 2px) rotate(0deg);
    }
    100%{
        transform: translate(1px, -2px) rotate(-1deg);
    }
}
@keyframes bounce {
    0% {
      transform: width(0);
    }
    50% {
      transform: translateY(-15px);
    }
    100% {
      transform: translateY(0);
    }
    
}
@keyframes roll {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}
.btn-register{
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid var(--color-text-item-navbar-active);
    color: var(--color-text-item-navbar-active);
}
.btn-register:hover{
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid var(--color);
    background-color: var(--color);
    color: var(--color-white);
}
.btn-register.active{
    padding: 5px 10px;
    border-radius: 10px;
    border: 1px solid var(--color);
    background-color: var(--color);
    color: var(--color-white);
}
.list-topup.active{
    background-color: var(--color);
    border-color: var(--color);
}
.text-image-slide{
    height: 100%;
    left: 35%;
    top: 40%;
    position: absolute;
}
.title-web-slide{
    font-size: 30px;
}
.om-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    width: calc(100% - 18px);
    margin: 9px;
    border-radius: 15px;
    background-image: url("https://img.freepik.com/premium-vector/abstract-background-memphis-vector-design_187482-742.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    padding: 31px 25px;
}
.om-header-notify {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    width: calc(100% - 18px);
    margin: 9px;
    border-radius: 15px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    text-align: center;
    padding: 31px 25px;
}
.om-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--root-black, #000);
    font-size: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 5px;
}
.om-body--item {
    grid-column: span 2;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--gray-50, #F0F1F3);
    flex-wrap: wrap;
}
.om-body--item--details {
    grid-column: span 2;
    /* display: flex; */
    gap: 10px;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--gray-50, #F0F1F3);
}
.om-body--item .title {
    color: #556786;
}
.om-body--item .value {
    color: var(--root-black, #000);
    font-weight: 500;
}
.om-body {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    overflow-y: auto;
}

.btn-outline-gafiw {
    color: #000000;
    background: url(https://gafiwshop.xyz/api/image/bg.crad.jpg) no-repeat  center;
    background-size: cover;
    height: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -webkit-background-size: cover;
    border-color: #ff9600;

}
        /* CSS สำหรับข้อความและเอฟเฟกต์การจางหาย */
        .fade-gafiw {
            opacity: 1; /* เริ่มต้นด้วยความโปร่งใสเต็มที่ */
            transition: opacity 1s ease; /* ทำให้ข้อความค่อยๆ จางหายภายใน 1 วินาที */
        }

        .fade-out {
            opacity: 0; /* ทำให้จางหาย */
        }

 @media (max-width: 768px) {
            .table td {
                font-size: 10px;
                padding: 5px;
            }
            .table button {
                font-size: 10px;
                padding: 3px;
                width: 100%;
            }
            .card-body {
                padding: 10px;
            }
            .om-body--item .title, .om-body--item .value {
                font-size: 12px;
            }
            /* Adjust Modal for Mobile */
            .modal-dialog {
                margin: 0.5rem; /* ลด margin เพื่อให้ใกล้ขอบ */
                width: 100%; /* เต็มความกว้าง */
                max-width: 100%; /* ป้องกันการจำกัดความกว้าง */
            }
            .modal-content {
                border-radius: 0; /* ปรับขอบให้เรียบเมื่อเต็มจอ */
                min-height: 80vh; /* ทำให้สูงเต็มจอ */
            }
            .modal-body {
                padding: 10px;
            }
        }
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-vip {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.price {
    font-size: 13px;
    font-weight: bold;
}


.price-range {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    flex-wrap: nowrap; 
}


.price-range::before {
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
}

.price-range::after {
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}
/* แสดงตรงกลางและเต็มจอ */
.service-item.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.service-item h4 {
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #FF9900 0%, #333333 50%, #FF9900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
    animation: animate 5s infinite;
    background-size: 400px 400px;
}

.service-item h5 {
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}

.service-item h6 {
    font-weight: bold;
    font-size: 7px;
}

@keyframes animate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ปรับขนาดรูปภาพบนมือถือ */
@media only screen and (max-width: 768px) {
    .service-item {
        width: calc(50% - 40px);
    }
}

/* ปรับขนาดรูปภาพบนมือถือขนาดเล็ก */
@media only screen and (max-width: 480px) {
    .service-item {
        width: 100%;
    }
}

.price-crossed {
    text-decoration: line-through;
    color: #FF0000; /* สีแดง */
}

 @media (max-width: 768px) {
            .modal-dialog {
                position: fixed;
                bottom: 0;
                margin: 0;
                width: 100%;
            }
            .modal-content {
                border-radius: 10px 10px 0 0;
            }
        }
        /* ปรับ modal สำหรับจอคอม */
@media (min-width: 769px) {
    .modal-dialog {
        display: flex;
        align-items: center;
        min-height: calc(100vh - 3.5rem);
    }
}
		
        .modal-header {
            border-bottom: none;
            padding-bottom: 0;
        }
        .modal-title {
            font-weight: bold;
        }
        .form-control {
            border-radius: 8px;
        }
        .btn-danger {
            background-color: #dc3545;
            border: none;
            border-radius: 8px;
            padding: 10px;
        }
        .btn-danger:hover {
            background-color: #c82333;
        }
        .text-muted {
            font-size: 14px;
        }
/* History Styles */
 .history-list {
 display: flex;
 flex-direction: column;
 gap: 12px;
 max-height: 350px;
 overflow-y: auto;
 }
 .history-card {
 display: flex;
 align-items: center;
 padding: 15px;
 background: var(--card-light);
 border-radius: 12px;
 box-shadow: 0 2px 10px var(--shadow-light);
 transition: all 0.3s ease;
 }
 body.dark .history-card {
 background: var(--card-dark);
 box-shadow: 0 2px 10px var(--shadow-dark);
 }
 .history-card:hover {
 transform: translateY(-3px);
 box-shadow: 0 4px 15px var(--shadow-light);
 }
 body.dark .history-card:hover {
 box-shadow: 0 4px 15px var(--shadow-dark);
 }
 .history-card.success {
 border-left: 4px solid var(--success);
 }
 .history-card.failed {
 border-left: 4px solid var(--error);
 }
 .history-icon {
 margin-right: 15px;
 font-size: 24px;
 }
 .history-icon i {
 color: var(--success);
 }
 .history-card.failed .history-icon i {
 color: var(--error);
 }
 .history-details {
 display: flex;
 flex-direction: column;
 gap: 4px;
 flex-grow: 1;
 }
 .history-product {
 font-weight: 600;
 color: var(--text-light);
 }
 body.dark .history-product {
 color: var(--text-dark);
 }
 .history-date {
 color: #718096;
 font-size: 13px;
 }
 .history-status {
 font-weight: 500;
 }
 .history -time {
 color: #a0aec0;
 font-size: 12px;
 }
 .no-history-card {
 text-align: center;
 padding: 20px;
 background: var(--card-light);
 border-radius: 12px;
 color: var(--error);
 font-weight: 500;
 box-shadow: 0 2px 10px var(--shadow-light);
 }
 body.dark .no-history-card {
 background: var(--card-dark);
 box-shadow: 0 2px 10px var(--shadow-dark);
 }
 .view-all-btn {
 margin-top: 15px;
 padding: 10px 20px;
 background: var(--primary);
 color: #fff;
 border: none;
 border-radius: 8px;
 cursor: pointer;
 transition: all 0.3s ease;
 }
 .view-all-btn:hover {
 background: #3182ce;
 }