:root {
    /* --primary: #0b5c95;
    --primary-dark: #0a4f80;
    --primary-light: #1a6eab; */
    --primary: #950b0b;
    --primary-dark: #800a0a;
    --primary-light: #ab1a1a;
    --text-light: #ffffff;
    --text-muted: #e9f1f7;
    --surface: #ffffff;
    --surface-muted: #f3f6fb;
    --text: #0f172a;
    --text-subtle: #64748b;
    --border: #e2e8f0;
}

#container_nxn_groups {
    background: #e9e9e9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

/* ============================================
   TABLE COMPONENTS - ACCOUNT PAGES (TEMPLATE 4)
============================================ */

.table-wrapper {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.table-search-bar {
    padding: 18px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.table-search {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.table-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 92, 149, 0.15);
}

.table-search::placeholder {
    color: #94a3b8;
}

.table-header {
    padding: 18px 20px;
    border-bottom: 2px solid rgba(11, 92, 149, 0.2);
    background: var(--surface);
}

.table-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.table-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px 20px;
}

.table-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.table-row:hover {
    border-color: rgba(11, 92, 149, 0.5);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.table-row-status {
    display: none;
}

.table-status-dot {
    display: none;
}

.table-row[data-status="success"] .table-status-dot,
.table-row.status-success .table-status-dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.table-row[data-status="pending"] .table-status-dot,
.table-row.status-pending .table-status-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.table-row[data-status="error"] .table-status-dot,
.table-row[data-status="failed"] .table-status-dot,
.table-row.status-error .table-status-dot,
.table-row.status-failed .table-status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.table-row-content {
    flex: 1;
    min-width: 0;
}

.table-row-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.table-row-title-sub {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
}

.table-row-description {
    font-size: 13px;
    color: var(--text-subtle);
    line-height: 1.5;
}

.table-row-date {
    flex-shrink: 0;
    text-align: right;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.table-pagination {
    padding: 18px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

._nxn_table_pagination {
    margin-bottom: 12px;
}

._nxn_pagination_link,
._nxn_pagination .active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

._nxn_pagination_link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(11, 92, 149, 0.08);
}

._nxn_pagination_link[data-current="true"],
._nxn_pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.table-pagination-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    border-radius: 12px;
}

.table-pagination-info span {
    font-size: 12px;
    color: #1e3a8a;
    line-height: 1.5;
}

.table-wrapper.is_loadding .table-list {
    opacity: 0.5;
    pointer-events: none;
}

.table-empty {
    padding: 50px 18px;
    text-align: center;
}

.table-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: #94a3b8;
}

.table-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.table-empty-description {
    font-size: 13px;
    color: var(--text-subtle);
}

.table-row-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.table-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(11, 92, 149, 0.1);
    border: 1px solid transparent;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.table-action-link:hover {
    background: var(--primary);
    color: #ffffff;
}

.back-to-list {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.back-to-list:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   TABLE RESPONSIVE
============================================ */

@media (max-width: 1024px) {
    .table-row {
        gap: 12px;
        padding: 14px;
    }

    .table-row-title {
        font-size: 14px;
    }

    .table-row-description,
    .table-row-date {
        font-size: 12px;
    }
}

@media (max-width: 768px) {

    .table-search-bar,
    .table-header,
    .table-pagination {
        padding: 14px 16px;
    }

    ._nxn_table_main {
        margin: 0 !important;
    }

    .table-header h2 {
        font-size: 16px;
    }

    .table-list {
        gap: 10px;
        padding: 12px 16px 16px;
    }

    .table-row {
        flex-direction: column;
        gap: 10px;
        padding: 14px;
    }

    .table-row-content {
        padding-left: 0;
    }

    .table-row-date {
        text-align: left;
        padding-left: 0;
        font-size: 11px;
    }

    ._nxn_table_pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    ._nxn_itemsperpage,
    ._nxn_pagination {
        justify-content: center;
    }

    ._nxn_pagination ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .table-pagination-info {
        text-align: center;
    }

    .back-to-list {
        display: inline-flex;
    }

    .table-row-action {
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed var(--border);
    }

    .table-action-link {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
    }
}

/* Remove default underline in table links */
.table-wrapper a,
.table-row a,
._nxn_pagination_link,
._nxn_text_split {
    text-decoration: none;
}

.table-wrapper a:hover,
.table-wrapper a:focus {
    text-decoration: none;
}

/* Support button in nickgame history detail */
.account-support-btn .btn {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
    text-decoration: none;
    padding: 12px 16px;
}

.account-support-btn svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .table-row-title {
        font-size: 13px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .table-row-description {
        font-size: 12px;
    }

    ._nxn_pagination_link,
    ._nxn_pagination .active {
        min-width: 30px;
        height: 30px;
        font-size: 12px;
        padding: 0 8px;
    }
}

/* ============================================
   ITEM BOX - TEMPLATE 4
============================================ */

.item-box-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.item-box-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.item-box-card:hover {
    border-color: rgba(11, 92, 149, 0.5);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.item-box-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
}

.item-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.item-box-card:hover .item-box-image img {
    transform: scale(1.06);
}

.item-box-info {
    padding: 14px 14px 10px;
    text-align: center;
}

.item-box-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-box-quantity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-subtle);
}

.quantity-label {
    color: #94a3b8;
    font-weight: 600;
}

.quantity-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.item-box-action {
    padding: 0 14px 14px;
}

.btn-withdraw {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, #1d7fc7 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.btn-withdraw:hover {
    background: linear-gradient(135deg, #0a4f80 0%, var(--primary) 100%);
    box-shadow: 0 10px 18px rgba(11, 92, 149, 0.25);
    transform: translateY(-1px);
}

.btn-withdraw svg {
    width: 16px;
    height: 16px;
}

/* Empty state */
.status-message {
    padding: 50px 18px;
    text-align: center;
}

.status-empty .status-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: #94a3b8;
}

.status-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.status-description {
    font-size: 13px;
    color: var(--text-subtle);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 420px;
}

/* Responsive */
@media (max-width: 1024px) {
    .item-box-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .item-box-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .item-box-info {
        padding: 12px 12px 8px;
    }

    .item-box-name {
        font-size: 13px;
    }

    .item-box-action {
        padding: 0 12px 12px;
    }

    .btn-withdraw {
        padding: 9px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .item-box-grid {
        gap: 10px;
    }

    .item-box-name {
        font-size: 12px;
    }

    .quantity-value {
        font-size: 13px;
    }
}

/* ============================================
   NICKGAME CATEGORIES PAGE - TEMPLATE 4
============================================ */

.search-page-section {
    padding: 20px 0 40px;
}

.search-filters-container {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 18px 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    margin-bottom: 20px;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px;
}

.filters-title svg {
    color: var(--primary);
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-subtle);
}

.filter-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.filter-actions-row ._nxn_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-actions-row ._nxn_btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(11, 92, 149, 0.08);
}

.filter-actions-row .btn-apply-filter {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.filter-actions-row .btn-apply-filter:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
}

.search-table-container {
    margin-top: 10px;
}

/* Shared product grid styles (reuse products-section classes) */
:is(.products-section .product-grid, .search-page-section .related-products-grid) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Fallback for older browsers without :is() */
.search-page-section .related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.search-page-section .related-products-grid .product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.search-page-section .related-products-grid .product-image {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.search-page-section .related-products-grid .product-info {
    padding: 12px 14px 14px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-page-section .related-products-grid .product-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
}

.search-page-section .related-products-grid .product-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
}

:is(.products-section .product-card, .search-page-section .related-products-grid .product-card) {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

:is(.products-section .product-card, .search-page-section .related-products-grid .product-card):hover {
    transform: translateY(-3px);
    border-color: rgba(11, 92, 149, 0.4);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

:is(.products-section .product-card, .search-page-section .related-products-grid .product-card)::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    pointer-events: none;
    transition: border-color 0.2s ease;
}

:is(.products-section .product-card, .search-page-section .related-products-grid .product-card):hover::before {
    border-color: rgba(11, 92, 149, 0.25);
}

:is(.products-section .product-card-inner, .search-page-section .related-products-grid .product-card-inner) {
    display: flex;
    flex-direction: column;
    height: 100%;
}

:is(.products-section .product-image, .search-page-section .related-products-grid .product-image) {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

:is(.products-section .product-image img, .search-page-section .related-products-grid img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

:is(.products-section .product-content, .search-page-section .related-products-grid .product-info) {
    padding: 12px 14px 14px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

:is(.products-section .product-title, .search-page-section .related-products-grid .product-title) {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}

:is(.products-section .product-price, .search-page-section .related-products-grid .product-price) {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none !important;
}

:is(.products-section, .search-page-section) a,
:is(.products-section, .search-page-section) a:hover,
:is(.products-section, .search-page-section) a:focus,
:is(.products-section, .search-page-section) .product-card,
:is(.products-section, .search-page-section) .product-card * {
    text-decoration: none !important;
}

/* Category listing cards: Nickgame/Minigame/Random */
/* Category listing tweaks */

.search-page-section .related-products-grid .product-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.25) 100%);
    pointer-events: none;
}

.search-page-section .related-products-grid .product-price-atm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-subtle);
}

.search-page-section .related-products-grid .product-price-atm span:first-child {
    color: #94a3b8;
    font-weight: 600;
}

.search-page-section .related-products-grid .product-price-atm span:last-child {
    font-weight: 800;
    color: #0f172a;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f1fb;
    border: 1px solid #cfe3f7;
    letter-spacing: 0.2px;
}

/* Badge styles for product cards (use when badge markup exists) */
.search-page-section .related-products-grid .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.search-page-section .related-products-grid .product-badge.is-hot {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fecaca;
}

.search-page-section .related-products-grid .product-badge.is-new {
    color: #0f766e;
    background: #ccfbf1;
    border-color: #99f6e4;
}

.search-page-section .related-products-grid .product-badge.is-sale {
    color: #7c2d12;
    background: #ffedd5;
    border-color: #fed7aa;
}

@media (max-width: 768px) {
    .search-page-section .related-products-grid .product-info {
        gap: 6px;
    }

    .search-page-section .related-products-grid .product-title {
        font-size: 13px;
    }

    .search-page-section .related-products-grid .product-price {
        font-size: 13px;
    }
}

/* Skeleton */
.product-card.skeleton {
    position: relative;
    overflow: hidden;
}

.product-card.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Pagination in category page */
.search-page-section ._nxn_table_pagination {
    margin-top: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 12px 14px;
}

/* Fancy pagination for category pages (no gradient) */
.search-page-section ._nxn_table_pagination ._nxn_pagination ul {
    gap: 8px;
}

.search-page-section ._nxn_table_pagination ._nxn_pagination_link {
    position: relative;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    box-shadow: none !important;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    text-decoration: none !important;
}

.search-page-section ._nxn_table_pagination ._nxn_pagination_link:hover {
    border-color: rgba(11, 92, 149, 0.6) !important;
    background: rgba(11, 92, 149, 0.08) !important;
    color: var(--primary) !important;
    transform: translateY(-1px);
}

.search-page-section ._nxn_table_pagination ._nxn_pagination_link.is_active,
.search-page-section ._nxn_table_pagination ._nxn_pagination_link[data-current="true"],
.search-page-section ._nxn_table_pagination ._nxn_pagination .active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .search-page-section ._nxn_table_pagination {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .search-page-section ._nxn_table_pagination ._nxn_itemsperpage_wrapper {
        justify-content: center;
    }

    .search-page-section ._nxn_table_pagination ._nxn_pagination {
        width: 100%;
    }

    .search-page-section ._nxn_table_pagination ._nxn_pagination ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-page-section ._nxn_table_pagination ._nxn_pagination_link {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
        border-radius: 10px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .filters-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .search-filters-container {
        padding: 16px;
    }

    .filters-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .filter-actions-row {
        flex-direction: column;
    }

    .filter-actions-row ._nxn_btn {
        justify-content: center;
        width: 100%;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .filters-row {
        grid-template-columns: 1fr;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }

}

/* Nickgame categories responsive tuning */
@media (max-width: 1024px) {
    .search-page-section .related-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .search-page-section .related-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Account page: hide header menu, focus on account sidebar */
/* body.page-account .header-nav,
body.page-account .header-menu-toggle,
body.page-account .sidebar-menu,
body.page-account .sidebar-backdrop {
    display: none !important;
} */

/* ============================================
   ACCOUNT PAGE - TEMPLATE 4
============================================ */

/* Breadcrumb */
.breadcrumb {
    background: var(--surface);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-subtle);
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #cbd5f5;
}

.breadcrumb-item a {
    color: var(--text-subtle);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--text);
    font-weight: 600;
}

/* Layout */
.account-page {
    background: var(--surface-muted);
    padding: 32px 0 56px;
    min-height: calc(100vh - 140px);
}

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* Sidebar */
.account-sidebar {
    position: sticky;
    top: 110px;
    background: var(--surface);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border);
}

.account-user-card {
    padding: 22px 18px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.user-avatar {
    width: 74px;
    height: 74px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(11, 92, 149, 0.2);
    box-shadow: 0 8px 16px rgba(11, 92, 149, 0.18);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}

.user-id {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}

.user-edit-btn,
.sidebar-toggle-btn {
    display: none;
}

.account-sidebar-menu {
    padding: 14px 0;
}

.account-nav {
    padding: 0 12px;
}

.account-nav:not(:last-child) {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--text);
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.account-nav-item svg {
    width: 20px;
    height: 20px;
    color: #94a3b8;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.account-nav-item:hover {
    background: rgba(11, 92, 149, 0.08);
    color: var(--primary);
}

.account-nav-item:hover svg {
    color: var(--primary);
}

.account-nav-item.active {
    background: rgba(11, 92, 149, 0.16);
    color: var(--primary);
    font-weight: 600;
}

.account-nav-item.active svg {
    color: var(--primary);
}

.account-logout {
    padding: 14px;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: #dc2626;
    border-radius: 12px;
    transition: background 0.2s ease;
    font-weight: 600;
    text-decoration: none;
}

.logout-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.logout-link:hover {
    background: #fee2e2;
}

.account-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.account-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main content */
.account-main {
    background: var(--surface);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid var(--border);
}

.account-section {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.account-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.account-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(11, 92, 149, 0.2);
}

.account-section-title svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.account-info-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 26px;
}

.account-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-info-item label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
}

.personal-info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-info-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 12px;
    align-items: center;
    border: 1px solid #eef2f7;
}

.info-label {
    font-size: 12px;
    color: var(--text-subtle);
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    word-break: break-word;
}

.info-value.info-highlight {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}

.info-value.info-placeholder {
    color: var(--text-subtle);
}

.account-warning {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 14px;
    border-radius: 12px;
}

.account-warning p {
    font-size: 13px;
    color: #92400e;
    margin: 0;
    line-height: 1.6;
}

.account-warning .text-red {
    color: #dc2626;
    font-weight: 600;
}

.btn-block {
    width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .account-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .account-page {
        padding: 20px 0 40px;
    }

    .account-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .account-sidebar {
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        border: 0;
    }

    .account-user-card {
        display: flex;
        align-items: center;
        background: var(--primary);
        border-radius: 16px;
        padding: 16px 18px;
        margin-bottom: 18px;
        position: relative;
        box-shadow: 0 10px 24px rgba(11, 92, 149, 0.22);
        text-align: left;
        border: none;
    }

    .user-avatar {
        width: 52px;
        height: 52px;
        margin: 0 12px 0 0;
        border-color: rgba(255, 255, 255, 0.4);
    }

    .user-info {
        margin: 0;
        flex: 1;
    }

    .user-name {
        color: var(--text-light);
        font-size: 14px;
        margin-bottom: 3px;
    }

    .user-id {
        color: rgba(255, 255, 255, 0.9);
        font-size: 12px;
    }

    #accountSidebarToggle.sidebar-toggle-btn {
        display: flex !important;
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 12px;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        color: white;
        z-index: 100;
        cursor: pointer;
    }

    #accountSidebarToggle.sidebar-toggle-btn svg {
        width: 20px;
        height: 20px;
    }

    .account-sidebar-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        z-index: 10001;
        background: var(--surface);
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.2);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 16px 0;
        border-left: 1px solid var(--border);
    }

    .account-sidebar-menu.is-open {
        transform: translateX(0) !important;
    }

    .account-sidebar-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(3px);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .account-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .account-sidebar-menu .account-nav,
    .account-sidebar-menu .account-logout {
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .account-sidebar-menu .account-nav:first-of-type {
        border-top: none;
    }

    .account-sidebar-menu .account-nav-item {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
        background: transparent;
        gap: 12px;
    }

    .account-main {
        padding: 20px;
    }

    .account-info-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .account-main {
        padding: 16px;
    }

    .account-section-title {
        font-size: 16px;
        gap: 8px;
    }

    .account-section-title svg {
        width: 20px;
        height: 20px;
    }

    .account-info-row {
        padding: 10px;
    }
}

._nxn_modal_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

._nxn_modal_header h3 {
    margin: 0;
    font-size: 18px;
}

._nxn_modal_close {
    background: transparent;
    border: 0;
    cursor: pointer;
}

/* Auth modal override (template4 distinct) */
.auth-modal {
    padding: 24px 24px 28px;
}

.auth-header {
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin-bottom: 18px;
}

.auth-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.auth-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input-group ._nxn_input_group {
    border-radius: 8px;
}

.auth-input-group ._nxn_input_start,
.auth-input-group ._nxn_input_end {
    display: none;
}

.btn-auth-primary {
    background: var(--primary);
    border: 0;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-auth-primary:hover {
    background: var(--primary-dark);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #94a3b8;
    font-size: 12px;
}

.auth-divider:before,
.auth-divider:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
}

.btn-social img {
    width: 18px;
    height: 18px;
}

.auth-footer {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.footer {
    background: var(--primary);
    color: #ffffff;
    padding: 32px 0 12px;
}

.footer-top {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.4fr 1fr 1fr 1fr;
    gap: 18px;
}

.footer-col--brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 10px;
}

.footer-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.footer-desc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-desc p {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 12px;
    padding: 6px 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-socials {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0;
    margin: 1em 0 0 0;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}

.footer-links a svg {
    display: none;
}

.footer-social {
    color: rgba(255, 255, 255, 0.9);
    background: var(--primary-light);
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.footer-links a:hover,
.footer-social:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.modern-modal {
    padding: 16px;
    height: 100%;
}

.modern-header {
    margin-bottom: 12px;
}

.modern-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.modern-subtitle {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.modern-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modern-label {
    margin-top: 10px;
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.modern-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.modern-tab-btn {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.modern-tab-btn.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.modern-radio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.modern-radio-item input {
    display: none;
}

.modern-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.modern-radio-item input:checked+.modern-radio-label {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-modern-primary {
    background: var(--primary);
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.btn-modern-primary:hover {
    background: var(--primary-dark);
}

.checkout-info-list {
    margin: 0 0 2em 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    font-size: 12px;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-info-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.home-bank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.bank-cell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
}

.home-bank-qr img {
    max-width: 100%;
    border-radius: 8px;
    display: block;
}

/* Fixed elements: scroll-to-top & support widget */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    color: var(--primary);
    border: 1px solid rgba(11, 92, 149, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.support-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-widget .btn-messenger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #006AFF;
    box-shadow: 0 4px 15px rgba(0, 106, 255, 0.4);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 76px;
        right: 15px;
        width: 44px;
        height: 44px;
    }

    .support-widget {
        bottom: 130px;
        right: 15px;
    }

    .support-widget .btn-messenger {
        width: 46px;
        height: 46px;
    }
}

.home-hero {
    padding: 20px 0 28px;
}

.home-grid {
    display: grid;
    grid-template-columns: 450px 8fr;
    gap: 16px;
    align-items: stretch;
}

.home-topup-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.home-topup-desc {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 13px;
}

.home-topup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.home-topup-btn:hover {
    background: var(--primary-dark);
}

.home-banner {
    background: #ffffff;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.home-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-block {
    padding: 28px 0;
}

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

.features-block {
    margin-bottom: 50px;
}

.stats-block .stat-item,
.features-block .feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stats-block .stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.stats-block .stat-label {
    font-size: 12px;
    color: #64748b;
}

.features-block .feature-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.features-block .feature-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-section-title {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}

.home-section-subtitle {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.home-section-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}

.home-block .product-grid .product-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-block .product-grid .product-card:hover {
    transform: translateY(-3px);
    border-color: #c7d2fe;
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.12);
}

.home-block .product-thumb {
    background: #eef2f7;
    overflow: hidden;
}

.home-block .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-block .product-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.home-block .product-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.home-block .product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.home-block .product-price {
    color: var(--primary);
    font-weight: 800;
}

/* Products section (new launch / category blocks) */
:is(.products-section .product-grid, .categories-page .categories-grid) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.products-section {
    padding: 28px 0;
}

.products-section+.products-section {
    margin-top: 24px;
    border-top: 1px dashed rgba(15, 23, 42, 0.1);
    padding-top: 32px;
}

:is(.products-section .product-card, .categories-page .category-card) {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

:is(.products-section .product-card, .categories-page .category-card):hover {
    transform: translateY(-3px);
    border-color: rgba(11, 92, 149, 0.4);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

:is(.products-section .product-image, .categories-page .category-card-image) {
    position: relative;
    min-height: 50px;
    overflow: hidden;
    background: #f1f5f9;
}

:is(.products-section .product-image img, .categories-page .category-card-image img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

:is(.products-section .product-card:hover .product-image img, .categories-page .category-card:hover .category-card-image img) {
    transform: scale(1.06);
}

:is(.products-section .product-content, .categories-page .category-card-body) {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

:is(.products-section .product-title, .categories-page .category-card-title) {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

:is(.products-section .product-meta, .categories-page .category-card-meta) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
}

.products-section .product-category {
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #64748b;
}

.products-section .product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

:is(.products-section .product-price, .categories-page .price-value) {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
}

:is(.products-section .product-badge, .categories-page .category-badge) {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
}

.products-section .product-badge.game {
    color: #1d4ed8;
    background: #e0ecff;
    border-color: #c7ddff;
}

.products-section .product-badge.sale {
    color: #b45309;
    background: #fff7ed;
    border-color: #fed7aa;
}

:is(.products-section .product-views, .categories-page .product-views) {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 1024px) {
    :is(.products-section .product-grid, .categories-page .categories-grid) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    :is(.products-section .product-grid, .categories-page .categories-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    :is(.products-section .product-content, .categories-page .category-card-body) {
        padding: 10px 12px 12px;
    }

    :is(.products-section .product-title, .categories-page .category-card-title) {
        font-size: 13px;
    }
}

/* @media (max-width: 480px) {
    :is(.products-section .product-grid, .categories-page .categories-grid) {
        grid-template-columns: 1fr;
    }
} */

/* ============================================
   MINIGAME PAGES - TEMPLATE 4 (COLOR TUNED)
============================================ */

.section-minigame {
    padding: 30px 0 60px;
    background: #f7fafc;
}

.container-minigame {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.action-minigame {
    position: relative;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 600px;
    background: #0f172a;
}

.action-minigame .background-minigame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    filter: blur(10px);
    transform: scale(1.1);
    pointer-events: none;
}

.action-minigame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.minigame-main-content {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hc-luckywheel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 450px;
    height: 450px;
    margin: 0 auto;
}

.hc-luckywheel-container {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.hc-luckywheel-canvas {
    display: none;
}

.img-wheel {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
    transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hc-luckywheel-start {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    cursor: pointer;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hc-luckywheel-start img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hc-luckywheel-start:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 30px rgba(11, 92, 149, 0.8);
}

.hc-luckywheel-start:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.minigame-group-action {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}

.minigame-container-wheel {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.minigame-container-wheel ._nxn_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 15px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-history {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.btn-history:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-spin-now {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(11, 92, 149, 0.4);
}

.btn-spin-now:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 92, 149, 0.6);
}

.minigame-details-card {
    padding: 40px;
    border-top: 1px solid #e2e8f0;
}

.card-header {
    margin-bottom: 25px;
    text-align: center;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.rule-icon {
    font-size: 28px;
}

.rule-text {
    font-size: 15px;
    color: #64748b;
    line-height: 1.5;
}

.rule-text strong {
    color: var(--primary);
    font-weight: 700;
}

.reward-list-preview {
    text-align: center;
}

.reward-list-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #0f172a;
}

.reward-prizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.prize-tag {
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 768px) {
    .section-minigame {
        padding: 20px 0 40px;
    }

    .action-minigame {
        padding: 40px 15px;
        min-height: 500px;
    }

    .hc-luckywheel {
        width: 300px;
        height: 300px;
    }

    .hc-luckywheel-start {
        width: 60px;
        height: 60px;
    }

    .minigame-container-wheel {
        width: 100%;
        flex-direction: column;
        padding: 15px;
        border-radius: 16px;
    }

    .minigame-container-wheel ._nxn_btn {
        width: 100%;
        justify-content: center;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .minigame-details-card {
        padding: 25px 15px;
    }
}

._minigame3_container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

._minigame3_container a {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

._minigame3_container a:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(11, 92, 149, 0.4);
}

._minigame3_container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    ._minigame3_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ============================================
   STATUS PAGES (LOCKED/EXPIRED/EMPTY)
============================================ */

.status-message {
    padding: 50px 18px;
    text-align: center;
}

.status-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: #94a3b8;
}

.status-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.status-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 520px;
}

.status-expired .status-icon {
    background: #fef3c7;
    color: #d97706;
}

.status-locked .status-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* ============================================
   MAIL PAGE
============================================ */

.mail-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mail-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    transition: all 0.2s ease;
}

.mail-item:hover {
    border-color: rgba(11, 92, 149, 0.4);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.mail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.mail-from {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
}

.mail-from svg {
    color: var(--primary);
}

.mail-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.mail-subject {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 10px;
}

.mail-content {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    padding: 14px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 12px;
}

.mail-code-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #ecfdf5;
    border-radius: 12px;
    border: 1px solid #a7f3d0;
}

.mail-code-label {
    font-size: 12px;
    color: #065f46;
    font-weight: 600;
}

.mail-code-value {
    font-size: 16px;
    color: #059669;
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .mail-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mail-code-section {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   FORGOT PASSWORD (UTILITY CLASSES)
============================================ */

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.text-xs {
    font-size: 12px;
}

.text-sm {
    font-size: 13px;
}

.text-gray-400 {
    color: #94a3b8;
}

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

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 4px;
}

.mt-3 {
    margin-top: 12px;
}

.hover\\:underline:hover {
    text-decoration: underline;
}

/* Buttons */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
    border-color: rgba(11, 92, 149, 0.4);
    transform: translateY(-1px);
}

/* --- Minigame 2: Card Flip (Lật Hình) --- */
.container-latthe {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.card-latthe {
    width: 140px;
    height: 190px;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.card-latthe:hover {
    transform: translateY(-5px);
}

.card-latthe .card__front,
.card-latthe .card__back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Logic Flip: Front is result image, Back is cover image */
.card-latthe .card__front {
    transform: rotateY(0deg);
    background: #ffffff;
}

.card-latthe .card__back {
    transform: rotateY(180deg);
    background: #0f172a;
}

/* Visibility State Logic */
.card-latthe.card__visible .card__front {
    transform: rotateY(0deg);
}

.card-latthe.card__visible .card__back {
    transform: rotateY(180deg);
}

.card-latthe:not(.card__visible) .card__front {
    transform: rotateY(-180deg);
}

.card-latthe:not(.card__visible) .card__back {
    transform: rotateY(0deg);
}

.card-latthe .view-latthe,
.card-latthe .open-latthe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Primed State */
.card-latthe.latthe__primed {
    animation: card-shake 0.5s ease-in-out infinite;
    z-index: 20;
}

.card-latthe.latthe__primed::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 16px;
    background: linear-gradient(45deg, var(--primary), #7dd3fc, var(--primary));
    z-index: -1;
    animation: glow-border 1s linear infinite;
    filter: blur(5px);
}

@keyframes card-shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-3deg);
    }

    75% {
        transform: rotate(3deg);
    }
}

@keyframes glow-border {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .container-latthe {
        padding: 10px;
        gap: 10px;
    }

    .card-latthe {
        width: 100px;
        height: 140px;
    }
}

/* ============================================
   NICKGAME DETAIL - TEMPLATE 4 (NEW LAYOUT)
============================================ */

.product-detail-section {
    padding: 24px 0 48px;
    background: #f7fafc;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.product-detail-right {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    padding: 18px;
}

.product-detail-right {
    position: sticky;
    top: 110px;
}

.game-display-main {
    display: grid;
    gap: 14px;
}

.game-character-slider {
    position: relative;
    background: #0f172a;
}

.game-character-slider .character-placeholder,
.game-character-slider .img-placeholder {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(15, 23, 42, 0.5);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-btn:hover {
    background: rgba(15, 23, 42, 0.75);
    transform: translateY(-50%) scale(1.05);
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

.slider-indicators {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
}

.indicator-dot.active {
    background: #ffffff;
}

.game-character-gallerys {
    border: 1px solid #e2e8f0;
}

.game-character-gallerys img {
    width: 100%;
    height: auto;
    display: block;
}

.product-description {
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed #e2e8f0;
}

.description-text {
    margin: 0;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

.product-detail-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.product-price-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-sku {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.product-detail-price {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.product-tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f1fb;
    border: 1px solid #cfe3f7;
    color: #0f172a;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
}

.product-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-purchase {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-purchase.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Secondary style for ATM button */
.product-detail-right .btn-purchase._nxn_btn_grey {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

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

.btn-purchase .btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.security-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
}

.security-notice svg {
    flex-shrink: 0;
    color: #0f172a;
}

@media (max-width: 1024px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }

    .product-detail-right {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 16px 0 32px;
    }

    .product-detail-left,
    .product-detail-right {
        padding: 14px;
        border-radius: 16px;
    }

    .product-detail-price {
        font-size: 22px;
    }
}

/* ============================================
   CATEGORIES PAGE - TEMPLATE 4
============================================ */

.categories-page {
    padding-bottom: 40px;
    background: #f7fafc;
}

.categories-hero {
    position: relative;
    padding: 32px 0 20px;
    background: #0f172a;
    color: #ffffff;
    overflow: hidden;
}

.categories-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(29, 127, 199, 0.35), transparent 60%);
    opacity: 0.9;
}

.categories-hero-content {
    position: relative;
    z-index: 1;
}

.categories-hero .section-title {
    margin: 0 0 15px;
    font-size: 26px;
    font-weight: 800;
}

.categories-hero .section-subtitle {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.categories-tabs {
    margin: 18px 0 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.categories-tabs .tab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.categories-tabs .tab-item svg {
    color: #64748b;
}

.categories-tabs .tab-item .tab-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 2px 8px;
}

.categories-tabs .tab-item:hover {
    border-color: rgba(11, 92, 149, 0.4);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.categories-tabs .tab-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(11, 92, 149, 0.2);
}

.categories-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.section-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1em;
}

.section-title-sm {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.section-count {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.category-card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.category-card-price .price-label {
    color: #64748b;
    font-weight: 600;
}

.category-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 12px;
    color: #64748b;
}

.category-card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #f59e0b;
    font-weight: 700;
}

.category-card-action {
    padding: 0 14px 14px;
}

.category-card-action .btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}


.empty-state {
    background: #ffffff;
    border: 1px dashed #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.categories-page a,
.categories-page a:hover,
.categories-page a:focus {
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .categories-tabs {
        grid-template-columns: 1fr;
    }

    .section-header-inline {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 6px;
    }
}

.product-count {
    color: #0f172a;
    background: #e2e8f0;
    padding: 2px 10px;
    border-radius: 5px;
    font-weight: 700;
}

.product-sold {
    color: #64748b;
}

.product-actions {
    margin-top: 2px;
}

.product-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 5px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
}

.stats-block.alt .stat-item {
    background: #ffffff;
    border: 1px solid rgba(11, 92, 149, 0.25);
    position: relative;
}

.stats-block.alt .stat-item:before {
    content: none;
}

.features-block.alt .feature-card {
    color: var(--primary);
    background: #ffffff;
    border: 1px solid #dedede;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5em;
}

.header {
    background: var(--primary);
    color: var(--text-light);
}

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

.header-logo img {
    height: 34px;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .btn-cart,
.header .btn-header.btn-cart,
.header button.btn-cart {
    display: none !important;
}

.header-menu-toggle {
    display: none;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid rgba(11, 92, 149, 0.25);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-header:hover {
    background: var(--primary-dark);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1 1 auto;
    justify-content: center;
}

.nav-item {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.header-nav-wrapper {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1003;
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 900;
}

.mobile-bottom-nav .mobile-nav-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 8px 10px 10px;
}

.mobile-bottom-nav .mobile-nav-item {
    color: #0f172a;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 6px 4px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mobile-bottom-nav .mobile-nav-item.mobile-nav-primary {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.mobile-bottom-nav .mobile-nav-item small {
    font-size: 9px;
    line-height: 1;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -280px;
    left: auto;
    width: 260px;
    background: #ffffff;
    z-index: 950;
    transition: right 0.25s ease;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.2);
    padding: 16px;
}

.sidebar-menu.is-open {
    right: 0;
}

.sidebar-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    margin-bottom: 12px;
}

.sidebar-close {
    background: transparent;
    border: 0;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
}

.sidebar-menu-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8fafc;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 940;
}

.sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

._nxn_status_login ._has_login {
    display: none;
}

._nxn_status_login.is_login ._no_login {
    display: none;
}

._nxn_status_login.is_login ._has_login {
    display: inline-flex;
}

@media (max-width: 1024px) {
    .nav-item {
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .header-content {
        min-height: 56px;
    }

    .header-nav {
        display: none;
    }

    .header-menu-toggle {
        display: inline-flex;
    }

    .header .btn-cart {
        display: inline-flex !important;
    }

    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
    }

    .mobile-bottom-nav {
        display: block;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        margin-bottom: 70px;
    }

}

@media (max-width: 792px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 576px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        row-gap: 4em;
    }

    .footer-col--brand {
        grid-column: 1/3;
    }

}

@media (max-width: 480px) {
    .header-logo img {
        height: 28px;
    }

    .btn-header {
        padding: 6px 10px;
        font-size: 12px;
    }

    .auth-socials {
        grid-template-columns: 1fr;
    }
}


.history-footer {
    padding: 24px;
    background: #ffffff;
}

.support-alert {
    background: #fff3f3;
    border: 1px solid #ffe4e4;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-icon {
    width: 36px;
    height: 36px;
    background: #ff4d4f;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 14px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 2px;
}

.alert-desc {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.btn-support-now {
    background: var(--white);
    border: 1px solid #ff4d4f;
    color: #ff4d4f;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-support-now:hover {
    background: #ff4d4f;
    color: var(--white);
}

@media (max-width: 768px) {

    .support-alert {
        flex-direction: column;
        text-align: center;
    }

    .btn-support-now {
        width: 100%;
    }

    .homepage-services {
        gap: 0.5em !important;
    }

}

@media (max-width: 600px) {
    .product-meta {
        flex-direction: column;
        align-items: flex-start !important;
        margin-top: 10px;
    }

    .features-block .home-section-header {
        flex-direction: column;
    }
}

._nxn_mb_10 {
    margin-bottom: 1em;
}

.napthe-homepage {
    position: relative;
}

.napthe-absulote {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.homepage-napthe {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 16px;
    height: 100%;
}

.homepage-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.box-service img {
    width: 100%;
}


.checkout-info-value {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.container-qrcode {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 30px;
}

.qr-container {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #dedede;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6em
}

.qr-container img {
    width: 100%;
}

@media (max-width: 650px) {
    .container-qrcode {
        grid-template-columns: 1fr;
    }
}


.blog-page {
    padding: 24px 0 48px;
    background: #f7fafc;
}

.blog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.blog-header .section-title {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
}

.blog-header .section-subtitle {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.blog-filters .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.blog-filters .search-box input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #0f172a;
    width: 200px;
}

.blog-filters .search-box button {
    border: none;
    background: #0f172a;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.blog-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.featured-container .blog-featured-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.featured-image {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-image .category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
}

.featured-info {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.post-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5f5;
}

.featured-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.5;
    color: #0f172a;
}

.featured-excerpt {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.btn-read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--primary);
}

.blog-main-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.blog-post-card .post-link {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.post-image {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-image .category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
}

.post-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.post-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    cursor: pointer;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.page-num {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #dbe3ef;
    background: #ffffff;
    font-weight: 800;
}

.page-num.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Remove underline */
.blog-page a,
.blog-page a:hover,
.blog-page a:focus {
    text-decoration: none !important;
}

@media (max-width: 1024px) {
    .featured-container .blog-featured-card {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-main-grid {
        grid-template-columns: 1fr;
    }

    .blog-filters {
        width: 100%;
    }

    .blog-filters .search-box {
        width: 100%;
    }

    .blog-filters .search-box input {
        width: 100%;
    }
}

.blog-detail-page {
    padding: 24px 0 48px;
    background: #f7fafc;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.blog-article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.article-header {
    margin-bottom: 16px;
}

.article-category {
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f1fb;
    border: 1px solid #cfe3f7;
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
}

.article-title {
    margin: 10px 0 12px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-featured-image {
    margin: 16px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    line-height: 1.8;
    color: #334155;
    font-size: 15px;
}

.article-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    display: grid;
    gap: 16px;
}

.article-footer .article-tags,
.article-footer .article-share {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tag-pill,
.share-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-navigation {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.article-navigation a {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-navigation a:hover {
    border-color: rgba(11, 92, 149, 0.4);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.nav-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.nav-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
}

.blog-sidebar .sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border-radius: 999px;
    padding: 6px 10px;
}

.sidebar-search-form input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
}

.sidebar-search-form button {
    border: none;
    background: var(--primary);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}


.social-link:hover {
    border-color: rgba(11, 92, 149, 0.4);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.recent-post-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.recent-post-item .item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.recent-post-item .item-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* Remove underline */
.blog-detail-page a,
.blog-detail-page a:hover,
.blog-detail-page a:focus {
    text-decoration: none !important;
}

@media (max-width: 1024px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-navigation {
        grid-template-columns: 1fr;
    }
}

.seo-container {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    font-size: 9px;
    max-width: 100vw;
}

.seo-container h1,
.seo-container p {
    text-wrap: nowrap;
    overflow: hidden;
    width: 100%;
}


/* ===== RESET PASSWORD PAGE ===== */
.reset-pass-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    min-height: 50vh;
}

.reset-pass-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px 24px;
    max-width: 360px;
    width: 100%;
    text-align: center;
}

.reset-pass-card .reset-pass-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--secondary) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.reset-pass-card .reset-pass-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.reset-pass-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px;
}

.reset-pass-card .password-value {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    letter-spacing: 2px;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
}

.reset-pass-card .password-value:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.reset-pass-card .copy-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: 12px 0 24px;
}

.reset-pass-card .btn-login {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reset-pass-card .btn-login:hover {
    background: var(--primary-light);
    color: white;
}

@media (max-width: 480px) {
    .reset-pass-container {
        padding: 24px 16px;
    }

    .reset-pass-card {
        padding: 24px 20px;
    }

    .reset-pass-card .password-value {
        font-size: 18px;
        padding: 12px 14px;
    }

    .footer-bottom {
        margin-bottom: 75px;
    }
}

/* === Empty State Component === */
.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 480px;
    margin: 40px auto;
}

.empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-50) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-radius: 50%;
    margin-bottom: 24px;
}

.empty-state-icon svg {
    color: var(--primary);
    opacity: 0.7;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 360px;
}

.empty-state-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.empty-state-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.empty-state-btn svg {
    transition: transform 0.3s ease;
}

.empty-state-btn:hover svg {
    transform: translateX(-3px);
}

/* Responsive */
@media (max-width: 576px) {
    .empty-state-container {
        padding: 40px 20px;
        margin: 20px 16px;
    }

    .empty-state-icon {
        width: 100px;
        height: 100px;
    }

    .empty-state-icon svg {
        width: 60px;
        height: 60px;
    }

    .empty-state-title {
        font-size: 18px;
    }

    .empty-state-desc {
        font-size: 13px;
    }
}


/* ===== HISTORY DETAIL COMPONENT (Used in nickgame and random history) ===== */
.history-detail-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-bottom: 30px;
}

.history-detail-header {
    background: linear-gradient(135deg, var(--primary) 0%, #0493c5 100%);
    padding: 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-detail-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.status-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.history-section {
    padding: 24px;
}

.history-section:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

.history-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-section-title svg {
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.info-value.text-primary {
    color: var(--primary-color);
    font-size: 18px;
}

.credential-box {
    background: #fffbf5;
    border: 1.5px dashed rgba(242, 113, 33, 0.3);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.credential-item-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credential-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.credential-input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    transition: all 0.3s;
}

.credential-input-group:hover {
    border-color: var(--primary-color);
}

.credential-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: monospace;
}

.history-footer {
    padding: 24px;
    background: #ffffff;
}

@media (max-width: 500px) {
    .history-section {
        padding: 20px 1em;
    }
    .credential-box {
        padding: 20px 1em;
    }
    .credential-input-group {
        gap: 5px;
        flex-wrap: wrap;
    }
    .credential-text {
        font-size: 13px;
        word-break: break-all;
    }
    .history-footer {
        padding: 20px 1em;
    }
}

.support-alert {
    background: #fff3f3;
    border: 1px solid #ffe4e4;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.alert-icon {
    width: 36px;
    height: 36px;
    background: #ff4d4f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 14px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 2px;
}

.alert-desc {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.btn-support-now {
    background: white;
    border: 1px solid #ff4d4f;
    color: #ff4d4f;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-support-now:hover {
    background: #ff4d4f;
    color: white;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .support-alert {
        flex-direction: column;
        text-align: center;
    }

    .btn-support-now {
        width: 100%;
    }
}

.status-badge.success {
    background: #27ae60 !important;
    color: white !important;
}

.status-badge.danger {
    background: #e74c3c !important;
    color: white !important;
}

.status-badge.warning {
    background: #f1c40f !important;
    color: #333 !important;
}

.mail-unread {
    background: rgba(242, 113, 33, 0.05);
}

.mail-unread .mail-from,
.mail-unread .mail-subject {
    font-weight: 700;
}

#mail-frame {
    margin-top: 20px;
    border: 1px solid #7d8e9f;
}