:root {
    --primary-color: #0056b3;
    /* Royal Blue */
    --primary-hover: #004494;
    --bg-color: #ffffff;
    --text-primary: #1a1f36;
    --text-secondary: #4f566b;
    --gray-light: #f7f9fc;
    --gray-border: #e3e8ee;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--gray-light);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    text-decoration: none !important;
}

/* Core Utilities */
.fixed {
    position: fixed !important;
}

.absolute {
    position: absolute !important;
}

.relative {
    position: relative !important;
}

.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.top-0 {
    top: 0 !important;
}

.left-0 {
    left: 0 !important;
}

.z-50 {
    z-index: 50 !important;
}

.max-w-6xl {
    max-width: 1152px !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.px-1\.5 {
    padding-left: 0.375rem !important;
    padding-right: 0.375rem !important;
}

.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.px-3 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.pl-2 {
    padding-left: 0.5rem !important;
}

.flex {
    display: flex !important;
}

.inline-flex {
    display: inline-flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.flex-row {
    flex-direction: row !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

.items-center {
    align-items: center !important;
}

.items-start {
    align-items: flex-start !important;
}

.items-end {
    align-items: flex-end !important;
}

.justify-between {
    justify-content: space-between !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-start {
    justify-content: flex-start !important;
}

.justify-end {
    justify-content: flex-end !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.flex-1 {
    flex: 1 1 0% !important;
}

.h-16 {
    height: 4rem !important;
}

.h-8 {
    height: 2rem !important;
}

.w-8 {
    width: 2rem !important;
}

.h-12 {
    height: 3rem !important;
}

.w-12 {
    width: 3rem !important;
}

.h-10 {
    height: 2.5rem !important;
}

.w-10 {
    width: 2.5rem !important;
}

.h-9 {
    height: 2.25rem !important;
}

.w-9 {
    width: 2.25rem !important;
}

.h-8 {
    height: 2rem !important;
}

.w-8 {
    width: 2rem !important;
}

.h-7 {
    height: 1.75rem !important;
}

.w-7 {
    width: 1.75rem !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

.object-contain {
    object-fit: contain !important;
}

.object-cover {
    object-fit: cover !important;
}

.bg-white {
    background-color: #ffffff !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.border {
    border-width: 1px !important;
}

.border-b-2 {
    border-bottom-width: 2px !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-1\.5 {
    gap: 0.375rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 0.75rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

.hidden {
    display: none !important;
}

.block {
    display: block !important;
}

.inline {
    display: inline !important;
}

.min-h-screen {
    min-height: 100vh !important;
}

@media (min-width: 640px) {
    .sm\:block {
        display: block !important;
    }

    .sm\:inline {
        display: inline !important;
    }

    .sm\:inline-block {
        display: inline-block !important;
    }

    .sm\:flex {
        display: flex !important;
    }

    .sm\:gap-1\.5 {
        gap: 0.375rem !important;
    }

    .sm\:gap-2 {
        gap: 0.5rem !important;
    }

    .sm\:gap-3 {
        gap: 0.75rem !important;
    }

    .sm\:px-3 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .sm\:h-9 {
        height: 2.25rem !important;
    }

    .sm\:w-9 {
        width: 2.25rem !important;
    }

    .sm\:h-8 {
        height: 2rem !important;
    }

    .sm\:w-8 {
        width: 2rem !important;
    }

    .sm\:h-10 {
        height: 2.5rem !important;
    }

    .sm\:pl-2 {
        padding-left: 0.5rem !important;
    }
}

@media (min-width: 480px) {
    .xs\:inline-block {
        display: inline-block !important;
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-xs {
    font-size: 0.75rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
}

.text-base {
    font-size: 1rem !important;
}

@media (min-width: 640px) {
    .sm\:text-xs {
        font-size: 0.75rem !important;
    }

    .sm\:text-sm {
        font-size: 0.875rem !important;
    }

    .sm\:text-base {
        font-size: 1rem !important;
    }
}

.header {
    background: var(--bg-color);
    border-bottom: 3px solid var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    width: 100%;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    min-height: auto !important;
    margin-bottom: 25px !important;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 1rem;
}

@media (min-width: 1024px) {
    .header-inner {
        padding: 4px 1rem;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-link img {
    height: 26px;
    width: auto;
}

.logo-text {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
    display: block;
}





/* Header Search Overlay */
.header-search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid var(--primary-color);
    padding: 0.8rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 100;
}

.header-search-overlay.active {
    display: block;
}



.search-inner {
    max-width: 800px;
    margin: 0 auto;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 2px 6px;
    gap: 0.5rem;
}

.search-icon-inner {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    margin-left: 0.5rem;
}

.header-search-input {
    flex: 1;
    border: none;
    background: none;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    font-family: inherit;
}

.header-search-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.header-search-submit:hover {
    opacity: 0.9;
}

/* Utility Classes */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.gap-4 {
    gap: 1rem;
}

#product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
}

@media (max-width: 1024px) {
    #product-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    #product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    #product-grid {
        gap: 8px;
    }
    .product-info {
        padding: 10px;
    }
    .product-name {
        font-size: 12px;
        line-height: 1.3;
        height: 2.6em;
    }
    .current-price {
        font-size: 16px;
    }
    .status-badges {
        gap: 4px;
        margin-bottom: 8px;
    }
    .status-badge.in-stock {
        padding: 2px 6px;
        font-size: 8px;
    }
    .product-buy-btn {
        padding: 8px;
        font-size: 13px;
    }
    .product-image-wrap {
        height: 110px;
    }
}

.btn-primary {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none !important;
    border-radius: 14px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.2);
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hero-slider {
    width: calc(100% - 40px);
    aspect-ratio: 16 / 9;
    max-height: 450px;
    margin: 15px auto;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #2b58cc 0%, #4a90e2 100%);
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 30px 20px !important;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-slider {
        margin: 15px auto;
        width: calc(100% - 24px);
    }
}

.hero-slider::after {
    display: none !important;
}

.slider-card {
    position: relative;
    border-radius: 0;
    overflow: visible;
    width: 100%;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    color: white;
}

.slider-top {
    height: 100%;
    padding: 2.5rem 1.5rem;
    color: white;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.welcome-msg {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 5px;
    padding-top: 0;
}

.slider-title {
    font-family: 'Dangrek', cursive;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #fff;
}

.slider-title .star {
    color: #ffd700;
    font-size: 1.5rem;
}

.slider-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.s-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.icon-circle {
    width: clamp(40px, 8vw, 60px);
    height: clamp(40px, 8vw, 60px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 3vw, 1.5rem);
    background: rgba(255, 255, 255, 0.1);
}

.s-feature span {
    font-size: clamp(0.6rem, 1.5vw, 0.85rem);
    font-weight: 600;
    opacity: 0.9;
}

.slider-bottom {
    background: transparent;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding-bottom: 10px;
}

.white-shape {
    display: none;
}

.slider-link-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.8rem;
    margin-top: 20px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.slider-link-pill:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

@media (min-width: 1024px) {
    .slider-card {
        max-width: 1200px;
    }
}

.sub-icon-1,
.sub-icon-2 {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 1;
    opacity: 0.8;
}

@media (min-width: 768px) {

    .sub-icon-1,
    .sub-icon-2 {
        width: 60px;
        height: 60px;
    }
}

.floating-icons-wrapper {
    position: absolute;
    bottom: -25px;
    /* Float outside */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.main-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 18px;
    padding: 10px;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.sub-icon-1,
.sub-icon-2 {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.sub-icon-1 {
    transform: translateX(-45px) rotate(-15deg);
    z-index: 1;
}

.sub-icon-2 {
    transform: translateX(45px) rotate(15deg);
    z-index: 1;
}

@media (min-width: 768px) {
    .sub-icon-1 {
        left: calc(50% - 70px);
    }

    .sub-icon-2 {
        right: calc(50% - 70px);
    }
}

.hero-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.domain-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.domain-pill:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

.logo-container img {
    height: 40px;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px !important;
}

@media (min-width: 768px) {
    .header-actions {
        gap: 8px !important;
    }
}

.header-search-btn {
    background: transparent !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-color);
    padding: 0 !important;
}

@media (min-width: 640px) {
    .header-search-btn {
        background: var(--bg-secondary) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        width: 36px !important;
        height: 36px !important;
    }
}

.search-btn:hover,
.header-search-btn:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.action-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 8px !important;
    border-radius: 8px !important;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    cursor: pointer;
    font-size: 12px !important;
    font-weight: 700;
    transition: var(--transition);
    height: 32px !important;
    white-space: nowrap;
    color: #475569;
}

.action-pill:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wallet-pill {
    background: #eff6ff;
    border: 2px solid #0056b3;
    color: var(--primary-color);
    font-weight: 700;
    padding: 4px 10px !important;
    height: 32px !important;
    border-radius: 6px !important;
}

.wallet-pill img,
.wallet-pill i {
    width: 14px !important;
    height: auto;
}

.wallet-pill span {
    font-size: 12px !important;
    margin-left: 5px !important;
}

.wallet-pill:hover {
    background: #dbeafe;
}

.wallet-pill svg {
    width: 20px;
    height: 20px;
}

.profile-pill {
    padding: 6px 10px 6px 6px;
    background: #f8fafc;
}

.profile-avatar {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.profile-dropdown-container {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    width: 260px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-border);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
    .profile-dropdown {
        width: 280px;
        right: 0;
        top: calc(100% + 15px);
    }
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
}

.dropdown-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-light);
}

.profile-avatar.large {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.dropdown-menu {
    padding: 0.75rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    color: #4f566b;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 14px;
    transition: var(--transition);
    margin-bottom: 4px;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: #f0f7ff;
    color: var(--primary-color);
}

.dropdown-item svg {
    color: #4f566b;
    opacity: 0.8;
    transition: var(--transition);
}

.dropdown-item:hover svg,
.dropdown-item.active svg {
    color: var(--primary-color);
    opacity: 1;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}



.dropdown-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--gray-light);
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #e53e3e;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
    transition: var(--transition);
}

.logout-link:hover {
    background: #fff5f5;
}

.order-item:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
}

@media (max-width: 500px) {
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.25rem;
    }

    .order-item img {
        width: 100%;
        height: 120px;
    }

    .order-status {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .btn-view {
        width: 100%;
        text-align: center;
    }
}

.categories-wrapper {
    margin-top: 20px !important;
    padding: 0 20px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .category-filters {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 12px !important;
        padding: 10px 5px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-bottom: 20px;
    }

    .category-filters::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        padding: 6px 12px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
        flex: 0 0 auto;
    }

    .category-btn .count {
        font-size: 10px !important;
        width: 18px !important;
        height: 18px !important;
        line-height: 18px !important;
        margin-left: 5px !important;
    }
}

@media (min-width: 1024px) {
    .category-filters {
        flex-wrap: wrap;
        overflow-x: visible;
        display: flex;
        gap: 12px;
        margin-bottom: 35px;
    }

    .category-btn {
        flex: 0 0 auto;
        min-width: 140px;
        max-width: 200px;
        justify-content: center;
    }
}

.filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    background: white;
    padding: 6px 14px;
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-border);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Search UI */
.search-container {
    background: white;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--gray-border);
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .search-container {
        padding: 1.5rem;
    }
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 4px 8px;
    gap: 10px;
    border: 1px solid #f1f5f9;
    flex-wrap: wrap;
}

@media (max-width: 400px) {
    .search-btn-primary {
        width: 100%;
        margin-top: 5px;
    }
}

.search-icon {
    color: #94a3b8;
    margin-left: 8px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
}

.search-input:focus {
    outline: none;
}

.search-btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn-primary:hover {
    background: var(--primary-hover);
}

.results-info {
    margin-bottom: 0.1rem;
    margin-top: -1.25rem;
    line-height: 1;
}

.section-header-accent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.accent-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blue-bar {
    width: 6px;
    height: 28px;
    background: var(--primary-color);
    border-radius: 100px;
}

.filter-btn .count {
    background: #f0f7ff;
    color: var(--primary-color);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 800;
}

.filter-btn.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.product-count {
    color: #4f566b;
    font-weight: 700;
    font-size: 0.85rem;
    opacity: 0.6;
}

.header-divider {
    height: 2px;
    background: var(--primary-color);
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 1rem 3%;
    }

    .login-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Grid System */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 2 columns on very small screens if width allows, but let's stick to 2 for mobile consistency */

@media (min-width: 480px) {
    .grid-cols-1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid {
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.gap-6 {
    gap: 1.5rem;
}

/* Product Section */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* Product Section Headers */
.section-header-accent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 5px;
}

.accent-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blue-bar {
    width: 5px;
    height: 24px;
    background-color: #004dc0;
    border-radius: 10px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    margin: 0;
}

.product-count {
    font-size: 0.85rem;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Premium Product Card (Mockup Match) */
.product-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.product-image-wrap {
    background-color: #1a1c2e;
    height: 140px;
    width: 100%;
    border-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
    transition: background-color 0.3s ease;
}

.product-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image-wrap::after {
    opacity: 1;
}

.product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    border-radius: 0 !important;
    max-height: 100% !important;
}

/* Brand Specific Styles */
.product-card.yt-style .product-image-wrap {
    background-color: #ff0000;
}

.product-card.capcut-style .product-image-wrap {
    background-color: #ffffff;
    border: 1px solid #eee;
}

.product-card.netflix-style .product-image-wrap {
    background-color: #000000;
}

.product-card.alight-style .product-image-wrap {
    background-color: #1a1c2e;
}

.badge-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff4d4d;
    color: white;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 11px;
    font-weight: 700;
    color: #000;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.product-name {
    font-size: 14px;
    font-weight: 900;
    color: #0056b3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
    height: 2.4em;
    margin-top: 4px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 800;
    color: #1a1f36;
}

.old-price {
    font-size: 12px;
    color: #6b7280;
    text-decoration: line-through;
    font-weight: 700;
}

.status-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.status-badge.in-stock {
    background: #dcfce7;
    color: #166534;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 3px;
    border: none;
}

.status-badge.instant {
    font-size: 10px;
    font-weight: 800;
    color: #000;
    display: flex;
    align-items: center;
    gap: 2px;
    background: transparent;
    padding: 0;
    border: none;
}

.status-badge.instant span {
    color: #f59e0b;
    font-size: 12px;
}

.product-buy-btn {
    background-color: #004dc0;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-top: auto;
    letter-spacing: 0.5px;
}

.product-buy-btn:hover {
    background-color: #003a8c;
}



.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
    align-items: stretch;
}

.status-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 0.25rem;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.status-badge.in-stock {
    background: #dcfce7;
    color: #16a34a;
    padding: 4px 14px;
    border-radius: 99px;
}

.status-badge.out-of-stock {
    background: #fee2e2;
    color: #ef4444;
    padding: 4px 14px;
    border-radius: 99px;
    border: 1px solid #fecaca;
}

.status-badge.instant {
    font-size: 10px;
    font-weight: 800;
    color: #000;
    display: flex;
    align-items: center;
    gap: 2px;
    background: transparent;
    padding: 0;
    border: none;
}

.status-badge.instant span {
    color: #f59e0b;
    font-size: 12px;
}

.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.5;
    height: 2.6em;
}

/* Mobile Menu Styles */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    padding: 2.5rem 1.5rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: var(--text-primary);
    margin-bottom: 2rem;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.mobile-user-info {
    margin-bottom: 1rem;
}

.mobile-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-wallet {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.mobile-wallet strong {
    color: var(--primary-color);
}

.results-info {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.overlay.active {
    display: block;
}

/* About Section */
.about-section {
    padding: 4rem 0;
}

.about-card {
    background: var(--bg-color);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--gray-border);
    text-align: center;
}

.about-card p {
    max-width: 800px;
    margin: 1.5rem auto 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--gray-border);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--gray-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.contact-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Footer */
.footer {
    background: #ffffff;
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--gray-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-title .blue-bar {
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-brand-text {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-hover);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-hover);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.legal-link:hover {
    color: var(--primary-hover);
}

/* Account Page Styles */
.account-page-header {
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 600;
}

.profile-overview-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    color: white;
    font-size: 3rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-main-info {
    flex: 1;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.profile-username {
    color: #64748b;
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 1.25rem;
}

.profile-stats-row {
    display: flex;
    gap: 3rem;
}

.p-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.p-stat-val {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-color);
}

.p-stat-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.account-section-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--gray-border);
    margin-bottom: 2rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}

.account-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 14px 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 5px rgba(0, 86, 179, 0.05);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-overview-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
        gap: 1.25rem;
        max-width: 340px;
        margin: 0 auto 2.5rem;
    }

    .profile-stats-row {
        justify-content: center;
        gap: 2.5rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .profile-avatar-large {
        width: 85px;
        height: 85px;
        font-size: 2.75rem;
        margin: 0 auto;
    }

    .profile-name {
        font-size: 1.6rem;
    }

    .profile-username {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .p-stat-val {
        font-size: 1.3rem;
    }

    .p-stat-label {
        font-size: 0.75rem;
    }

    .dashboard-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .welcome-text h1 {
        font-size: 1.6rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }
}

/* Balance Page Styles */
.balance-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1100px) {
    .balance-page-layout {
        grid-template-columns: 1fr 340px;
    }
}

.balance-card-blue {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004494 100%);
    padding: 2.5rem;
    border-radius: 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.2);
}

.b-card-label {
    font-size: 0.8rem;
    font-weight: 800;
    opacity: 0.8;
    letter-spacing: 1.5px;
}

.b-card-val {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0.5rem 0;
    letter-spacing: -2px;
}

.b-card-name {
    font-weight: 700;
    opacity: 0.9;
    font-size: 1.1rem;
}

.b-card-icon {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.25rem;
    border-radius: 18px;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* Bonus Card */
.bonus-card {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #ffd700;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom right, #ffffff, #fffdf2);
}

.bonus-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #b8860b;
    margin-bottom: 2rem;
}

.bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.25rem;
}

.bonus-item {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 18px;
    border: 1px solid #f1f5f9;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.05);
}

.b-min {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-color);
}

.b-perc {
    font-size: 1.5rem;
    font-weight: 900;
    color: #b8860b;
}

.b-note {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

/* Quick Topup */
.quick-topup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.topup-option {
    background: #f8fafc;
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.topup-option:hover {
    border-color: var(--primary-color);
    background: #f0f7ff;
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.08);
}

.topup-option.popular {
    border-color: #10b981;
    background: #f0fdf4;
}

.t-val {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-color);
}

.t-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.8px;
}

.t-badge {
    display: inline-block;
    padding: 6px 12px;
    background: white;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #10b981;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.custom-amount-box {
    margin-bottom: 2.5rem;
}

.custom-amount-box label {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.amount-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 1.75rem;
    font-size: 1.1rem;
    font-weight: 900;
    color: #94a3b8;
}

.amount-input-wrap .form-input {
    padding-left: 3rem;
    height: 56px;
    font-size: 1.1rem;
}

.payment-info-box {
    background: #f0f7ff;
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 86, 179, 0.08);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    color: var(--primary-color);
    line-height: 1.6;
}

.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 56px;
    font-size: 1.1rem;
}

.btn-primary.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Sidebar */
.sidebar-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--gray-border);
    overflow: hidden;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.sidebar-count {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 900;
}

.sidebar-body {
    padding: 5rem 2rem;
    text-align: center;
}

.empty-transactions {
    color: #94a3b8;
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .balance-card-blue {
        padding: 1.5rem;
        border-radius: 16px;
        margin-bottom: 1.25rem;
    }

    .b-card-val {
        font-size: 2.25rem;
    }

    .b-card-icon {
        padding: 0.75rem;
        border-radius: 12px;
    }

    .b-card-icon svg {
        width: 24px;
        height: 24px;
    }

    .bonus-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .bonus-title {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .bonus-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }

    .bonus-item {
        padding: 0.5rem 0.2rem;
        border-radius: 8px;
        gap: 1px;
    }

    .b-min {
        font-size: 0.6rem;
    }

    .b-perc {
        font-size: 0.85rem;
    }

    .b-note {
        font-size: 0.5rem;
    }

    .quick-topup-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.35rem;
    }

    .topup-option {
        padding: 0.5rem 0.15rem;
        border-radius: 6px;
    }

    .t-val {
        font-size: 0.85rem;
    }

    .t-label {
        font-size: 0.4rem;
    }

    .t-badge {
        font-size: 0.4rem;
        padding: 1px 2px;
        border-radius: 3px;
        margin-top: 2px;
    }

    .payment-info-box {
        padding: 1rem;
        font-size: 0.85rem;
    }

    .btn-full {
        height: 48px;
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .quick-topup-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .balance-sidebar {
        margin-top: 1rem;
    }

    .sidebar-card {
        position: static;
    }
}

/* New Balance Page Components */
.balance-alert {
    padding: 1.25rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.balance-alert.error {
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.bonus-calculation-box {
    margin-top: 1.25rem;
    padding: 0.75rem;
    font-size: 0.85rem;
    background: #fffdf2;
    border: 1px solid #ffd700;
    border-radius: 12px;
    color: #b8860b;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-topup-grid {
    position: relative;
}

.topup-option {
    position: relative;
}

.topup-option.active {
    border-color: var(--primary-color);
    background: #f0f7ff;
    border-width: 2px;
}

.select-dot {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.bonus-item.active {
    border-color: #10b981;
    background: #f0fdf4;
}

.count {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 1px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 6px;
}

.active .count {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.search-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

/* KHQR Checkout Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.khqr-modal-card {
    width: 90%;
    max-width: 350px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.khqr-header {
    --header-bg: #e51a26;
    background: var(--header-bg);
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 20px 20px 0 0;
    margin-bottom: 15px;
}

.khqr-header::after {
    content: "";
    position: absolute;
    bottom: -15px;
    right: 0;
    border-top: 15px solid #e51a26;
    border-left: 15px solid transparent;
}

/* Blue Theme for Buy Modal */
.khqr-header.blue {
    background: linear-gradient(135deg, #0056b3, #0078ff) !important;
}

.khqr-header.blue::after {
    border-top-color: #ffffff !important;
}

.khqr-logo-text {
    color: white;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    font-family: sans-serif;
    display: flex;
    align-items: center;
    gap: 3px;
}

.khqr-logo-text .q-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 3px;
    font-size: 0.9rem;
    margin: 0 1px;
}

.modal-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.khqr-body {
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.qr-container {
    background: white;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-container img,
.qr-container canvas {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 12px;
}

.khqr-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid #e53e3e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.timer-text {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.scan-text {
    color: #64748b;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Enhanced KHQR Modal Styles */
.khqr-info {
    text-align: left;
    margin-bottom: 1.25rem;
}

.khqr-merchant-name {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.khqr-amount-display {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.khqr-currency {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.khqr-divider {
    height: 1px;
    border-top: 1px dashed #cbd5e1;
    margin: 1.5rem 0;
}

/* Product Detail Links */
.product-image-link {
    display: block;
    width: 100%;
}

.product-info a {
    text-decoration: none;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scrollbar-width: none;
    /* Firefox */
}

.category-filters::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--gray-border);
    border-radius: 100px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.category-btn .count {
    background: #eff6ff;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
}

.category-btn:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
}

.category-btn.active .count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* KHQR Bottom Sheet Redesign */
.khqr-bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px 24px 0 0;
    padding: 1.25rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.sheet-indicator {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 0 auto 1.5rem;
}

.sheet-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.circular-timer {
    position: relative;
    width: 60px;
    height: 60px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.circle-bg {
    fill: none;
    stroke: #f1f5f9;
    stroke-width: 2.8;
}

.circle {
    fill: none;
    stroke: #3b82f6;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s linear;
}

.circular-timer .timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 800;
    color: #1a202c;
}

.khqr-red-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #edf2f7;
}

.red-card-header {
    background: #e53e3e;
    padding: 12px;
    text-align: center;
}

.khqr-pill {
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.red-card-body {
    padding: 1.5rem;
}

.merchant-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.m-name {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.m-amount {
    font-size: 1.5rem;
    color: #1a202c;
}

.m-amount strong {
    font-weight: 800;
}

.m-amount .currency {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
}

.qr-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: white;
    padding: 10px;
    border-radius: 12px;
}

.qr-container canvas,
.qr-container img {
    width: 100% !important;
    height: auto !important;
}

.qr-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 4px;
    border-radius: 50%;
}

.icon-circle-bg {
    width: 32px;
    height: 32px;
    background: #1a202c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
}

.scan-instruction {
    text-align: center;
    color: #1a202c;
    font-weight: 700;
    margin-top: 1.5rem;
}

.sheet-close-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* Products Container Box */
.products-container-box {
    background: white;
    border-radius: 24px;
    margin-top: -0.25rem;
    padding: 0.75rem 1rem;
}

/* Mobile Responsiveness for Product Grid */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
        width: 100%;
    }

    .product-card {
        border-radius: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 400px) {
    #product-grid {
        gap: 8px;
    }
    .product-info {
        padding: 10px;
    }
    .product-name {
        font-size: 12px;
        line-height: 1.3;
        height: 2.6em;
    }
    .current-price {
        font-size: 16px;
    }
    .status-badges {
        gap: 4px;
        margin-bottom: 8px;
    }
    .status-badge.in-stock {
        padding: 2px 6px;
        font-size: 8px;
    }
    .product-buy-btn {
        padding: 8px;
        font-size: 13px;
    }
    .product-image-wrap {
        height: 130px;
    }
}

/* How to Buy Page Styles */
.htb-wrap {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.htb-head {
    text-align: center;
    margin-bottom: 4rem;
}

.htb-head h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.htb-head p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.htb-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.htb-feat {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--gray-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

.htb-feat:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.htb-feat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.htb-feat h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.htb-feat p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.htb-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.htb-step {
    background: white;
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--gray-border);
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.htb-step-num {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
}

.htb-step-body h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.htb-step-body p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.htb-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
}

.htb-btn:hover {
    background: var(--primary-hover);
}

.faq-card {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 30px;
    margin-bottom: 5rem;
}

.faq-card-head {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.faq-card-head-bar {
    width: 6px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 3px;
}

.faq-card-head h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
}

.htb-cta {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004494 100%);
    border-radius: 40px;
    color: white;
}

.htb-cta h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.htb-cta p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.htb-cta-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.htb-cta-btn-primary {
    padding: 1.25rem 2.5rem;
    background: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 16px;
    font-weight: 800;
    transition: var(--transition);
}

.htb-cta-btn-outline {
    padding: 1.25rem 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 16px;
    font-weight: 800;
    transition: var(--transition);
}

.htb-cta-btn-primary:hover,
.htb-cta-btn-outline:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .htb-head h1 {
        font-size: 2.25rem;
    }

    .htb-step {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }

    .htb-cta h2 {
        font-size: 1.75rem;
    }
}