/* Custom CSS - Bootstrap version */
@import url("https://fonts.googleapis.com/css?family=Exo+2:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&amp;display=swap");

:root {
    --primary-color: #353535;
    --secondary-color: #fb2;
    --background-color: #ffffff;
    --background-color-2: #f5f5f5;
}

html {
    scroll-behavior: smooth !important;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--background-color-2);
}

.text-dot {
    text-overflow: ellipsis;
    overflow: hidden;
    min-width: 240px;
    height: 1.2em;
    white-space: nowrap;
}

/* Override Bootstrap primary color */
.btn-outline-primary {
    --bs-btn-color: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
}

/* Header */
.header-custom {
    height: 96px;
}

.header-menu-toggle {
    width: 56px;
    padding: 1rem 0;
}

.header-menu-spacer {
    width: 56px;
}

.header-logo-link {
    display: inline-block;
}

.logo-custom {
    height: 75px;
}

/* Menu */
.menu-custom {
    width: 0;
    top: 0;
    position: fixed;
    height: 100vh;
    z-index: 109;
    transition: all 0.3s ease-in-out;
}

.menu-wrapper {
    width: 0;
    min-height: 100vh;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.menu-content {
    display: none;
}

.menu-open {
    width: 600px;
}

.menu-wrapper-open {
    width: 192px;
}

.menu-content-open {
    display: block;
}

/* Container */
.container-custom {
    max-width: 650px;
    margin: 0 auto;

}

/* Carousel */
.carousel-custom {
    position: relative;
    width: 100%;

}

.carousel-inner-custom {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    height: 200px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item-custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.05);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    will-change: opacity, transform;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item-custom.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 2;
}

.carousel-item-custom img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 0.5rem;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    object-position: center;
    background-color: transparent;
}

.carousel-indicators-custom {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    height: 8px;
    border-radius: 9999px;
    background-color: white;
    width: 8px;
    transition: width 0.3s;
    cursor: pointer;
}

.carousel-indicator.active {
    width: 32px;
}

/* Responsive carousel */
@media (max-width: 576px) {
    .carousel-inner-custom {
        height: 160px;
    }

    .carousel-item-custom img {
        height: 160px;
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    cursor: pointer;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 8px 6px;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    height: 100%;
    min-height: 160px;
}

.product-card:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.product-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    flex-shrink: 0;
}

.product-card img {
    width: auto;
    height: 100px;
    max-width: 100px;
    object-fit: contain;
    border-radius: 25px;
}

.product-card > div:last-child {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-top: 8px;
    padding: 0 4px;
}

.product-card h1 {
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Card Grid - Riêng cho phần thẻ điện thoại / thẻ game */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

.card-item {
    cursor: pointer;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 12px 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    height: 100%;
    min-height: 110px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
    text-decoration: none;
}

.card-item > div:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    flex: 1;
    flex-shrink: 0;
    padding: 8px 0;
}

.card-item img {
    width: auto;
    height: auto;
    max-height: 100px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 6px;
}

.card-item > div:last-child {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: auto;
    margin-top: 0;
    padding: 0 4px;
    flex-shrink: 0;
}

.card-item h1 {
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #374151;
}

@media (max-width: 576px) {
    .card-grid {
        gap: 8px;
    }

    .card-item {
        padding: 10px 6px;
        min-height: 90px;
        border-radius: 8px;
    }

    .card-item > div:first-child {
        padding: 6px 0;
    }

    .card-item img {
        max-height: 80px;
        max-width: 80px;
    }

    .card-item h1 {
        font-size: 11px;
        line-height: 1.2;
    }

    .card-item > div:last-child {
        padding: 0 2px;
    }
}

/* Category Tabs */
.category-tabs-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f9fafb;
    padding-bottom: 4px;
    flex-wrap: wrap;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.category-tab {
    padding: 8px 16px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background-color: white;
    border-radius: 9999px;
    font-size: 12px;
    white-space: nowrap;
}

.category-tab.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Game Search Input */
.game-search-input-wrapper {
    position: relative;
    flex-shrink: 0;
    min-width: 150px;
    max-width: 200px;
}

.game-search-input {
    width: 100%;
    padding: 8px 32px 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 12px;
    outline: none;
    transition: all 0.3s;
}

.game-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(53, 53, 53, 0.1);
}

.game-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 12px;
    pointer-events: none;
}

@media (max-width: 576px) {
    .category-tabs-wrapper {
        /* flex-direction: column; */
        align-items: stretch;
    }

    .game-search-input-wrapper {
        max-width: 100%;
    }
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.blog-card {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.5rem;
    display: block;
}

/* Footer Info Section */
.footer-info-section {
    padding: 16px;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.footer-description {
    line-height: 1.6;
    color: #6b7280;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    color: #6b7280;
}

.footer-contact-item i {
    width: 20px;
    text-align: center;
}

/* Footer Navigation */
.footer-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    width: 100%;
    max-width: 650px;
    background-color: white;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e5e7eb;
    padding: 8px 16px;
}

.footer-nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-nav li {
    flex: 1;
    text-align: center;
}

.footer-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9ca3af;
    transition: color 0.3s;
    padding: 4px;
}

.footer-nav a.active {
    color: var(--secondary-color) !important;
}

.footer-nav a i {
    font-size: 24px;
    margin-bottom: 4px;
    display: block;
    text-align: center;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
}

.footer-nav a.active svg {
    color: var(--secondary-color);
}

.footer-nav svg {
    display: block;
    margin: 0 auto 4px;
    width: 24px;
    height: 24px;
}

.footer-nav span {
    font-size: 10px;
    display: block;
    line-height: 1.2;
}

/* Utilities */
.text-gg {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-bg {
    background-color: var(--background-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* Content Section */
.content-section {
    padding: 16px;
    gap: 8px;
    border-radius: 0.5rem 0.5rem 0 0;
    margin-top: -32px;
}

/* Spacing Utilities */
.mt-negative-8 {
    margin-top: -32px;
}

/* Loading */
#loader {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease-out;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 767px) {
    .menu-open {
        width: 100%;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Modal Styles */
.modal-dialog {
    max-width: 400px;
}

.modal-content {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
}

.modal-title {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.modal-body {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Contact Modal */
.contact-grid-modal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item-modal {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border: 1px solid #e9ecef;
}

.contact-icon-modal {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a4a4a 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.contact-details-modal strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Guide Modal */
.guide-content-modal {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guide-step-modal {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border-left: 3px solid var(--primary-color);
}

.step-number-modal {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a4a4a 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    flex-shrink: 0;
}

.step-content-modal strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Modal Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ======================== HEADER GAME ======================== */
.header-game {
    text-align: center;
    margin-bottom: 10px;
    padding: 15px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    box-shadow:
        0 10px 40px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    animation: headerSlideIn 1s ease-out;
    backdrop-filter: blur(10px);
}

.header-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

.header-game::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.header-game h1 {
    color: white;
    font-size: 1.8em;
    font-weight: 800;
    margin: 0;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: 3px;
    position: relative;
    z-index: 3;
    animation: textGlow 3s ease-in-out infinite alternate;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
}



@keyframes headerSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    50% {
        transform: translateY(10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes textGlow {
    0% {
        text-shadow:
            2px 2px 4px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow:
            2px 2px 4px rgba(0, 0, 0, 0.3),
            0 0 50px rgba(255, 255, 255, 0.6),
            0 0 80px rgba(255, 255, 255, 0.3);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive cho header-game */
@media only screen and (max-width: 768px) {
    .header-game {
        margin-bottom: 15px;
        padding: 10px 15px;
        border-radius: 15px;
    }

    .header-game h1 {
        font-size: 1.2em;
        letter-spacing: 2px;
    }

    .header-game h1::before {
        font-size: 0.35em;
        margin-bottom: 8px;
    }
}

@media only screen and (max-width: 575px) {
    .header-game {
        margin-bottom: 10px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .header-game h1 {
        font-size: 1.2em;
        letter-spacing: 1.5px;
    }

    .header-game h1::before {
        font-size: 0.3em;
        margin-bottom: 6px;
    }
}

@media only screen and (max-width: 375px) {
    .header-game {
        padding: 10px 10px;
    }

    .header-game h1 {
        font-size: 1.2em;
        letter-spacing: 1px;
    }

    .header-game h1::before {
        font-size: 0.25em;
        margin-bottom: 5px;
    }
}

/* ID Check Input Group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1;
    border-radius: 6px 0 0 6px;
    border-right: none;
}

/* ID Check Button */
#checkIdBtn {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
    border-radius: 0 6px 6px 0;
    min-width: 120px;
    white-space: nowrap;
}

#checkIdBtn:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.4);
}

#checkIdBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

#checkIdBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#checkIdBtn i {
    margin-right: 5px;
}

/* ID Check Result */
#checkIdResult {
    margin-top: 15px;
    animation: fadeInUp 0.3s ease;
}

#checkIdResult .alert {
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0;
}

#checkIdResult .alert-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

#checkIdResult .alert-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
}

#checkIdResult .alert-warning {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

#checkIdResult .d-flex {
    align-items: center;
}

#checkIdResult .me-2 {
    margin-right: 12px !important;
}





#characterName {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

#characterInfo {
    font-size: 12px;
    opacity: 0.9;
    line-height: 1.3;
    margin-top: 2px;
}

/* Server ID Field */
#serverIdField {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #2196F3;
    margin-top: 15px;
}

#serverIdField .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

#serverIdField .form-text {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive for ID Check */
@media only screen and (max-width: 768px) {

    .input-group .form-control {
        border-radius: 6px;
        border-right: 1px solid #ced4da;
    }

    #checkIdBtn {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 100px;
        border-radius: 6px;
        align-self: flex-end;
    }

    #checkIdBtn i {
        margin-right: 3px;
    }

    #checkIdResult .alert {
        padding: 10px 12px;
    }

    #checkIdResult .d-flex {
        align-items: center;
    }

    #checkIdResult .me-2 {
        margin-right: 10px !important;
    }



    #characterName {
        font-size: 13px;
    }

    #characterInfo {
        font-size: 11px;
    }

    #serverIdField {
        padding: 12px;
    }
}

@media only screen and (max-width: 575px) {
    #checkIdBtn {
        font-size: 13px;
        min-width: 90px;
    }

    #checkIdResult .alert {
        padding: 8px 10px;
    }



    #characterName {
        font-size: 12px;
    }

    #characterInfo {
        font-size: 10px;
    }
}

@media only screen and (max-width: 375px) {
    #checkIdBtn {
        font-size: 12px;
        min-width: 80px;
    }

    #checkIdResult .alert {
        padding: 6px 8px;
    }



    #characterName {
        font-size: 11px;
    }

    #characterInfo {
        font-size: 9px;
    }
}

/* ======================== PACKAGE STYLES ======================== */
.package-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.package-item {
    position: relative;
}

.package-item input[type="radio"] {
    display: none;
}

.package-label {
    display: block;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.package-item input[type="radio"]:checked + .package-label {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.package-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.package-name {
    font-weight: 600;
    color: #333;
}

.package-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
}

.discounted-price, .final-price {
    font-weight: 600;
    color: #dc3545;
    font-size: 1.1em;
}

.discount-badge {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
}

.no-packages-alert {
    margin-top: 15px;
}

.no-packages-alert .alert {
    border-radius: 10px;
    border: none;
    padding: 20px;
    text-align: center;
}

.no-packages-alert .alert i {
    font-size: 1.2em;
    margin-right: 8px;
}

/* Payment method styles */
.payment-method-item {
    position: relative;
    margin-bottom: 10px;
}

.payment-method-item input[type="radio"] {
    display: none;
}

.payment-method-label {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.payment-method-item input[type="radio"]:checked + .payment-method-label {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

.payment-method-label i {
    font-size: 1.2em;
    color: #007bff;
    margin-right: 10px;
}

.payment-method-label span {
    font-weight: 500;
    color: #333;
}

/* Total amount styles */
.total-amount {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.total-price {
    font-weight: 700;
    font-size: 1.3em;
    color: #dc3545;
}

/* Responsive package styles */
@media only screen and (max-width: 768px) {
    .package-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .package-label {
        padding: 12px;
    }

    .package-name {
        font-size: 0.9em;
    }

    .package-price {
        font-size: 0.9em;
    }

    .payment-method-label {
        padding: 12px;
        min-height: 50px;
    }

    .payment-method-label i {
        font-size: 1em;
    }

    .payment-method-label span {
        font-size: 0.9em;
    }
}

@media only screen and (max-width: 575px) {
    .package-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .package-label {
        padding: 10px;
    }

    .package-name {
        font-size: 0.8em;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .package-price {
        font-size: 0.8em;
    }

    .discounted-price, .final-price {
        font-size: 0.9em;
    }

    .original-price {
        font-size: 0.75em;
    }

    .discount-badge {
        font-size: 0.65em;
        padding: 1px 3px;
    }
}

@media only screen and (max-width: 768px) {
    .package-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.info-card {

    /* padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
    height: 100%;
}

   /* Instruction Styles */
   .instruction-steps {
    margin-bottom: 20px;
}

.step-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.step-number {
    background: #ff6b35;
    color: white;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 6px;
    margin-right: 15px;
    min-width: 80px;
    text-align: center;
    font-size: 0.9em;
}

.step-content {
    flex: 1;
    line-height: 1.5;
    color: #333;
    font-size: 0.95em;
}

.instruction-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    color: #856404;
    font-size: 0.9em;
    line-height: 1.4;
}

.instruction-note strong {
    color: #d63031;
}

/* Load More Button */
#loadMoreWrapper {
    margin-bottom: 0;
    padding-top: 35px;
    position: relative;
    z-index: 1;
}

#loadMoreBtn {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    /* background-color: white; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(53, 53, 53, 0.2);
}

.game-item-hidden {
    display: none !important;
}

/* Recharge History Home */
.transaction-header-custom {
    padding: 12px 16px !important;
}

.transaction-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.transaction-title-custom {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.transaction-title-custom i {
    font-size: 14px;
}

.transaction-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    display: flex;
    align-items: center;
}

.transaction-search-input {
    flex: 1;
    padding: 6px 40px 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 20px 0 0 20px;
    font-size: 12px;
    outline: none;
    transition: all 0.3s;
}

.transaction-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(53, 53, 53, 0.1);
}

.transaction-search-btn {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-left: none;
    border-radius: 0 20px 20px 0;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transaction-search-btn:hover {
    background-color: #2a2a2a;
}

@media (max-width: 768px) {
    .transaction-header-custom {
        padding: 10px 12px !important;
    }

    .transaction-header-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .transaction-title-custom {
        text-align: center;
    }

    .transaction-search-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .transaction-search-input {
        font-size: 11px;
        padding: 7px 35px 7px 10px;
    }

    .transaction-search-btn {
        padding: 7px 14px;
    }

    .recharge-history-grid-home {
        max-height: 400px;
    }
}

@media (max-width: 576px) {
    .transaction-header-custom {
        padding: 8px 10px !important;
    }

    .transaction-title-custom i {
        font-size: 11px;
    }

    .transaction-search-input {
        font-size: 11px;
        padding: 6px 30px 6px 8px;
    }

    .transaction-search-btn {
        padding: 6px 12px;
    }

    .transaction-search-btn i {
        font-size: 11px;
    }

    .recharge-history-grid-home {
        max-height: 350px;
        grid-template-columns: 1fr;
    }
}

.recharge-history-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.recharge-history-grid-home::-webkit-scrollbar {
    width: 6px;
}

.recharge-history-grid-home::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.recharge-history-grid-home::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.recharge-history-grid-home::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.recharge-history-item-home {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.recharge-history-item-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.15);
    border-color: #2196F3;
}

.recharge-history-content-home {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.recharge-info-home {
    flex: 1;
    min-width: 0;
}

.recharge-game-home {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.recharge-game-home i {
    color: #2196F3;
    font-size: 12px;
}

.game-name-home {
    font-weight: 600;
    color: #1976D2;
    font-size: 12px;
}

.recharge-details-home {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.recharge-amount-home,
.recharge-server-home {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recharge-amount-home i,
.recharge-server-home i {
    color: #666;
    font-size: 11px;
}

.amount-home {
    font-weight: 600;
    color: #dc3545;
    font-size: 11px;
}

.recharge-server-home {
    color: #666;
    font-size: 10px;
}

.recharge-meta-home {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.recharge-status-home {
    flex-shrink: 0;
}

.status-badge-home {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.status-success-home {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.recharge-date-home {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #666;
    font-size: 9px;
    white-space: nowrap;
}

.recharge-date-home i {
    color: #2196F3;
    font-size: 8px;
}

@media (max-width: 768px) {
    .transaction-search-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .recharge-history-grid-home {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .recharge-history-content-home {
        padding: 8px;
        flex-direction: column;
        align-items: flex-start;
    }

    .recharge-meta-home {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
    }

    .game-name-home {
        font-size: 11px;
    }

    .amount-home {
        font-size: 10px;
    }

    .recharge-server-home {
        font-size: 9px;
    }

    .status-badge-home {
        padding: 2px 5px;
        font-size: 7px;
    }

    .recharge-date-home {
        font-size: 8px;
    }
}

.card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(100px,1fr));
    gap:.5rem
}
.card-item{
    background:#fff;
    border:1px solid #e9ecef;
    border-radius:8px;
    padding:.5rem;
    text-align:center;
    cursor:pointer;
    transition:all .2s ease
}
.card-item:hover{
    border-color:#0068ff;
    transform:translateY(-2px)
}
.card-item.selected{
    border-color:#0068ff;
    background-color:#f8f9ff
}
.card-image img{
    height:40px;
    object-fit:contain
}
.amount-grid{
    display:flex;
    flex-wrap:wrap;
    gap:.5rem
}
.amount-grid .image-option{
    flex:0 0 calc(25% - .5rem)
}
.amount-grid .image-option span{
    display:block;
    padding:.5rem;
    border:1px solid #e9ecef;
    border-radius:6px;
    font-size:.85rem;
    transition:all .2s ease;
}
.amount-grid .image-option input[type="radio"]{
    position:absolute;
    opacity:0;
    pointer-events:none;
}
.amount-grid .image-option input[type="radio"]:checked + span{
    border-color:#0068ff;
    background-color:#f0f5ff;
    box-shadow:0 0 0 1px rgba(0,104,255,.3);
}
.quantity-selector{

    padding:.75rem;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:.75rem
}
.quantity-control{
    display:flex;
    align-items:center;
    gap:.5rem;

    padding:.25rem;
    border-radius:6px
}
.quantity-btn{
    width:28px;
    height:28px;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:6px;
    font-size:.8rem
}
.quantity-input{
    width:60px;
    text-align:center;
    font-size:.9rem;
    font-weight:600
}
.price-summary{

    padding:.75rem;
    border-radius:8px;
    font-size:.9rem
}
.payment-method-group{
    display:flex;
    flex-direction:column;
    gap:.75rem
}
.payment-method-option{
    position:relative
}
.payment-method-input{
    position:absolute;
    opacity:0;
    width:100%;
    height:100%;
    cursor:pointer;
    margin:0
}
.payment-method-label{
    display:flex;
    align-items:center;
    gap:.75rem;
    padding:.75rem;
    border:1px solid #e9ecef;
    border-radius:6px;
    width:100%;
    transition:all .2s ease;
    margin:0;
    cursor:pointer
}
.payment-method-input:checked+.payment-method-label{
    border-color:#0068ff;
    background-color:#f8f9ff
}
@media (min-width:768px){
    .payment-method-group{flex-direction:row}
    .payment-method-option{flex:1}
}

@media (max-width:768px){
    .amount-grid .image-option{
        flex:0 0 calc(33.333% - .5rem)
    }
}

.recent-orders-wrapper{
    max-height:260px;
    overflow-y:auto;
    border-radius:8px;
    border:1px solid #e9ecef;
}
.recent-orders-wrapper table{
    margin-bottom:0;
}


