:root {
    --primary: #ffffff;
    --primary-dark: #f1f5f9;
    --primary-light: #ffffff;
    --text-light: #111827;
    --text-muted: #6b7280;
    --surface: #ffffff;
    --surface-muted: #f8f9fa;
    --text: #111827;
    --text-subtle: #6b7280;
    --border: #e5e7eb;
    --secondary: #7c86ff;
}

#container_nxn_groups {
    background-color: #f8f9fa;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

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

.table-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.table-search-bar {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e5e7eb;
}

.table-search {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb !important;
    border-radius: 12px;
    font-size: 14px;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.table-search:hover {
    border-color: #d1d5db !important;
}

.table-search:focus {
    outline: none;
    border-color: #7c86ff !important;
    box-shadow: 0 0 0 3px rgba(124, 134, 255, 0.15);
}

.table-search::placeholder {
    color: #9ca3af;
}

.table-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.94);
}

.table-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    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: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    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(124, 134, 255, 0.6);
    box-shadow: 0 0 30px rgba(124, 134, 255, 0.3);
    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: #111827;
    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: #9ca3af;
}

.table-row-description {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}

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

.table-pagination {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid #e5e7eb;
}

._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: #111827;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

._nxn_pagination li {
    border-radius: 8px;
}

._nxn_pagination_link:hover {
    border-color: rgba(124, 134, 255, 0.6);
    background: rgba(124, 134, 255, 0.1);
    color: #7c86ff;
    transform: translateY(-1px);
}

._nxn_pagination_link[data-current="true"],
._nxn_pagination .active {
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    border-color: rgba(124, 134, 255, 0.8);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 134, 255, 0.3);
}

.table-pagination-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(124, 134, 255, 0.1);
    border-left: 3px solid #7c86ff;
    border-radius: 12px;
}

.table-pagination-info span {
    font-size: 12px;
    color: #7c86ff;
    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: rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    color: #9ca3af;
}

.table-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.table-empty-description {
    font-size: 13px;
    color: #9ca3af;
}

/* Override skeleton loading background for light theme - increased specificity */
._nxn_container_table.is_loadding ._nxn_table_main::after {
    background: linear-gradient(
        rgba(243, 244, 246, 0.8),
        rgba(243, 244, 246, 0.8)
    ),
    linear-gradient(
        rgba(248, 249, 250, 0.95),
        rgba(248, 249, 250, 0.95)
    ) !important;
}

/* Override pagination skeleton loading - increased specificity */
._nxn_container_table.is_loadding ._nxn_table_pagination ._nxn_pagination > ul li a::after,
._nxn_container_table.is_loadding ._nxn_table_pagination ._nxn_pagination > ul li span::after {
    background: linear-gradient(
        rgba(243, 244, 246, 0.8),
        rgba(243, 244, 246, 0.8)
    ),
    linear-gradient(
        rgba(248, 249, 250, 0.95),
        rgba(248, 249, 250, 0.95)
    ) !important;
}

/* Ensure text is dark in all states - increased specificity to override core.css */
body ._nxn_container_table ._nxn_table_pagination ._nxn_pagination > ul li a,
body ._nxn_container_table ._nxn_table_pagination ._nxn_pagination > ul li span {
    color: #111827 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

/* Active state keeps white text */
body ._nxn_container_table ._nxn_table_pagination ._nxn_pagination > ul li a.is_active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%) !important;
}

/* Hover state */
body ._nxn_container_table:not(.is_loadding) ._nxn_table_pagination ._nxn_pagination > ul li a:not(.is_active):hover {
    background: rgba(124, 134, 255, 0.1) !important;
    color: #7c86ff !important;
}

/* Loading state - hide ::after to show text */
body ._nxn_container_table.is_loadding ._nxn_table_pagination ._nxn_pagination > ul li a::after,
body ._nxn_container_table.is_loadding ._nxn_table_pagination ._nxn_pagination > ul li span::after {
    display: none !important;
}

/* Alternative: Add shimmer effect to loading state */
._nxn_container_table.is_loadding ._nxn_table_main {
    position: relative;
}

._nxn_container_table.is_loadding ._nxn_table_main::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(124, 134, 255, 0.1), 
        transparent
    );
    animation: shimmer-loading 1.5s infinite;
    z-index: 1000;
}

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

.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: #7c86ff;
    background: rgba(124, 134, 255, 0.1);
    border: 1px solid rgba(124, 134, 255, 0.2);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.table-action-link:hover {
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    border-color: rgba(124, 134, 255, 0.8);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.3);
}

.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 5
============================================ */

.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: #111827;
    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 5
============================================ */

.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: #111827;
    margin: 0 0 16px;
}

.filters-title svg {
    color: #7c86ff;
}

.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: #9ca3af;
}

.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 #e5e7eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #111827;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-actions-row ._nxn_btn:hover {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 15px rgba(124, 134, 255, 0.2);
    transform: translateY(-1px);
}

.filter-actions-row .btn-apply-filter {
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    border-color: rgba(124, 134, 255, 0.8);
    color: #ffffff;
}

.filter-actions-row .btn-apply-filter:hover {
    background: linear-gradient(135deg, #8b96ff 0%, #7c86ff 100%);
    border-color: rgba(124, 134, 255, 1);
    box-shadow: 0 0 25px rgba(124, 134, 255, 0.4);
}

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

/* Shared product grid styles (reuse products-section classes) */
:is(.products-section .product-grid, .categories-page .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;
}

:is(.products-section .product-card, .categories-page .product-card, .search-page-section .related-products-grid .product-card) {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 8px;
}

:is(.products-section .product-card, .categories-page .product-card, .search-page-section .related-products-grid .product-card):hover {
    transform: translateY(-3px);
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 16px 30px rgba(124, 134, 255, 0.25), 0 0 40px rgba(124, 134, 255, 0.15);
}

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

:is(.products-section .product-card, .categories-page .product-card, .search-page-section .related-products-grid .product-card):hover::before {
    border-color: rgba(124, 134, 255, 0.3);
}

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

:is(.products-section .product-image, .categories-page .product-image, .search-page-section .related-products-grid .product-image) {
    position: relative;
    overflow: hidden;
    background: #0f1419;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
}

:is(.products-section .product-image img, .categories-page .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, .categories-page .product-content, .search-page-section .related-products-grid .product-info) {
    padding: 12px 8px 8px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    text-align: center;
}

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

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

:is(.products-section, .categories-page) .product-price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

:is(.products-section, .categories-page) .product-sold-info {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    text-align: center;
}

:is(.products-section, .categories-page) .product-actions {
    margin-top: 4px;
    text-align: center;
}

:is(.products-section, .categories-page) .product-action {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(124, 134, 255, 0.2) 0%, rgba(99, 110, 255, 0.2) 100%);
    border: 1px solid rgba(124, 134, 255, 0.4);
    color: #7c86ff;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

:is(.products-section, .categories-page, .search-page-section) a,
:is(.products-section, .categories-page, .search-page-section) a:hover,
:is(.products-section, .categories-page, .search-page-section) a:focus,
:is(.products-section, .categories-page, .search-page-section) .product-card,
:is(.products-section, .categories-page, .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;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
}

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

.search-page-section .related-products-grid .product-price-atm span:last-child {
    font-weight: 800;
    color: #7c86ff;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(124, 134, 255, 0.15);
    border: 1px solid rgba(124, 134, 255, 0.3);
    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(124, 134, 255, 0.15), 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;
}

@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 5
============================================ */

/* Breadcrumb */
.breadcrumb {
    background: var(--primary);
    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;
}

.account-page {
    background: #f8f9fa;
    padding: 24px 0 24px;
    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: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid #e5e7eb;
}

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

.user-avatar {
    width: 74px;
    height: 74px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(124, 134, 255, 0.3);
    box-shadow: 0 8px 16px rgba(124, 134, 255, 0.3);
}

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

.user-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
}

.user-id {
    font-size: 12px;
    color: #7c86ff;
    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;
}

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

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

.account-nav-item:hover {
    background: rgba(124, 134, 255, 0.1);
    color: #7c86ff;
}

.account-nav-item:hover svg {
    color: #7c86ff;
}

.account-nav-item.active {
    background: rgba(124, 134, 255, 0.2);
    color: #7c86ff;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.2);
}

.account-nav-item.active svg {
    color: #7c86ff;
}

.account-logout {
    padding: 14px;
}

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

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

.logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.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: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid #e5e7eb;
}

.account-section {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
}

.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: #111827;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(124, 134, 255, 0.3);
}

.account-section-title svg {
    width: 22px;
    height: 22px;
    color: #7c86ff;
}

.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: #111827;
    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 14px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    align-items: center;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.account-info-row:hover {
    background: #ffffff;
    border-color: rgba(124, 134, 255, 0.3);
}

.account-info-row .info-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
}

.account-info-row .info-value {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
    word-break: break-word;
}

.account-info-row .info-value.info-highlight {
    color: #7c86ff;
    font-weight: 700;
    font-size: 15px;
}

.account-info-row .info-value.info-placeholder {
    color: #9ca3af;
}

.account-info-row .info-value._nxn_color_info {
    color: #7c86ff;
}

.account-warning {
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #fbbf24;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

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

.account-warning .text-red {
    color: #ef4444;
    font-weight: 700;
}

.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) {
    .section .categories-page {
        padding-bottom: 0 !important;
    }

    .products-section {
        padding-top: 0px !important;
        padding-bottom: 16px !important;
    }

    .section-header-decorated {
        margin-bottom: 16px !important;
    }

    .home-block {
        padding: 0px !important;
    }

    .features-block {
        margin-bottom: 24px !important;
    }

    .account-page {
        padding: 20px 0 24px;
    }

    .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: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
        border-radius: 16px;
        padding: 16px 18px;
        position: relative;
        box-shadow: 0 10px 24px rgba(124, 134, 255, 0.3);
        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: #ffffff;
        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: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding: 16px 0;
        border-left: 1px solid #e5e7eb;
    }

    .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;
    }
}

/* Account page (user.account) - card layout override */
body.page-account .account-layout {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
}

.account-page .account-sidebar {
    border-radius: 18px;
    overflow: hidden;
    border-color: #e5e7eb;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.account-page .account-user-card {
    padding: 18px 14px 14px;
    border-bottom-color: #e5e7eb;
}

.account-page .user-avatar {
    width: 78px;
    height: 78px;
    margin-bottom: 10px;
}

.account-page .user-name {
    font-size: 18px;
    margin-bottom: 8px;
}

.account-page .user-id {
    font-size: 14px;
}

.account-page .account-nav {
    padding: 8px;
}

.account-page .account-nav:not(:last-child) {
    margin-bottom: 0;
    padding-bottom: 8px;
    border-bottom: none;
}

.account-page .account-sidebar-menu .account-nav-heading {
    margin: 4px 0 15px;
    padding: 0 8px;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
    color: #7c86ff !important;
    -webkit-text-fill-color: #7c86ff !important;
    opacity: 1;
    text-align: center;
}

.account-page .account-sidebar-menu .account-nav-heading--history {
    margin-top: 10px;
    padding: 8px 8px 0;
    border-top: 1px solid #e5e7eb;
}

.account-page .account-nav-item {
    position: relative;
    font-size: 14px;
    border-radius: 12px;
    margin-bottom: 4px;
    padding: 10px 12px;
    gap: 10px;
}

.account-page .account-nav-item.active {
    background: rgba(124, 134, 255, 0.2);
}

.account-page .account-nav-item.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 4px;
    background: #7c86ff;
}

.account-page .logout-link {
    font-size: 14px;
    padding: 10px 12px;
}

.account-page .account-nav--quick:empty {
    display: none;
}

.account-page .account-logout {
    padding: 10px;
    border-top: 1px solid #e5e7eb;
}

body.page-account .account-main {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.page-account .account-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

body.page-account .account-card-head {
    padding: 18px 24px;
    border-bottom: 1px solid #e5e7eb;
}

body.page-account .account-card-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
    letter-spacing: 0.2px;
}

body.page-account .account-card-body {
    padding: 24px;
}

body.page-account .account-kv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
}

body.page-account .account-kv-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

body.page-account .account-kv-label {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    line-height: 1.2;
}

body.page-account .account-kv-value {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    word-break: break-word;
}

body.page-account .account-kv-value--highlight {
    color: #7c86ff;
    font-size: 24px;
    line-height: 1.2;
}

body.page-account .account-kv-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    background: rgba(124, 134, 255, 0.18);
    color: #9ca8ff;
    border: 1px solid rgba(124, 134, 255, 0.45);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

body.page-account .account-warning--account-page {
    margin-top: 18px;
}

body.page-account .account-security-list {
    display: flex;
    flex-direction: column;
}

body.page-account .account-security-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

body.page-account .account-security-item:last-child {
    border-bottom: none;
}

body.page-account .account-security-main {
    min-width: 0;
}

body.page-account .account-security-name {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

body.page-account .account-security-desc {
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.45;
}

body.page-account .account-security-action {
    flex-shrink: 0;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #3a4155;
    background: rgba(21, 26, 39, 0.7);
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.page-account .account-security-action:hover {
    border-color: #6f78e8;
    color: #111827;
    background: rgba(124, 134, 255, 0.18);
}

body.page-account .account-security-action.is-disabled,
body.page-account .account-security-action:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: rgba(21, 26, 39, 0.45);
}

body.page-account .account-security-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #4b5563;
    background: rgba(75, 85, 99, 0.18);
    color: #d1d5db;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    padding: 3px 7px;
    margin-left: 8px;
    vertical-align: middle;
}

body.page-account .account-security-panel {
    padding: 20px 24px 24px;
    background: #ffffff;
}

body.page-account .account-security-panel[hidden] {
    display: none !important;
}

body.page-account .account-security-panel--static {
    border-bottom: none;
}

@media (max-width: 1024px) {
    body.page-account .account-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .account-page .user-name {
        font-size: 16px;
    }

    .account-page .user-id {
        font-size: 13px;
    }

    .account-page .account-sidebar-menu .account-nav-heading {
        font-size: 11px;
    }

    .account-page .account-nav-item {
        font-size: 14px;
    }

    .account-page .logout-link {
        font-size: 14px;
    }

    body.page-account .account-card-title {
        font-size: 20px;
    }

    body.page-account .account-kv-value {
        font-size: 15px;
    }

    body.page-account .account-kv-value--highlight {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    body.page-account .account-layout {
        grid-template-columns: 1fr;
    }

    body.page-account .account-main {
        gap: 14px;
    }

    .account-page .account-sidebar-menu .account-nav-heading {
        font-size: 11px;
        margin-left: 0;
    }

    .account-page .account-nav-item.active::before {
        display: none;
    }

    body.page-account .account-card-head,
    body.page-account .account-card-body,
    body.page-account .account-security-item,
    body.page-account .account-security-panel {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.page-account .account-card-head {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    body.page-account .account-card-body {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    body.page-account .account-card-title {
        font-size: 19px;
    }

    body.page-account .account-kv-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body.page-account .account-kv-value {
        font-size: 15px;
    }

    body.page-account .account-kv-value--highlight {
        font-size: 20px;
    }

    body.page-account .account-security-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    body.page-account .account-security-action {
        width: 100%;
    }

    body.page-account .account-security-name {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body.page-account .account-card-title {
        font-size: 17px;
    }

    body.page-account .account-kv-label,
    body.page-account .account-security-desc {
        font-size: 13px;
    }

    body.page-account .account-kv-value {
        font-size: 14px;
    }

    body.page-account .account-kv-value--highlight {
        font-size: 18px;
    }

    body.page-account .account-security-name {
        font-size: 14px;
    }

    body.page-account .account-security-action {
        height: 36px;
        font-size: 13px;
    }
}

/* Account Page - Input Fields Override */
.account-page ._nxn_input_group {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-page ._nxn_input_group:focus-within {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(124, 134, 255, 0.15);
}

.account-page ._nxn_validator_input,
.account-page ._nxn_select_input,
.account-page input[type="text"],
.account-page input[type="password"],
.account-page input[type="email"],
.account-page textarea {
    background: transparent !important;
    color: #111827 !important;
    border: none !important;
}

.account-page ._nxn_validator_input::placeholder,
.account-page ._nxn_select_input::placeholder,
.account-page input::placeholder,
.account-page textarea::placeholder {
    color: #9ca3af !important;
}

.account-page ._nxn_input_start,
.account-page ._nxn_input_end {
    color: #9ca3af;
}

.account-page ._nxn_input_group:focus-within ._nxn_input_start,
.account-page ._nxn_input_group:focus-within ._nxn_input_end {
    color: #7c86ff;
}

/* Button Override */
.account-page .btn-modern-primary {
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    color: #ffffff;
    border: 1px solid rgba(124, 134, 255, 0.8);
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.3);
    transition: all 0.2s ease;
}

.account-page .btn-modern-primary:hover {
    background: linear-gradient(135deg, #8b95ff 0%, #7a84f0 100%);
    box-shadow: 0 0 30px rgba(124, 134, 255, 0.5);
    transform: translateY(-2px);
}

/* Form Labels */
.account-page ._nxn_flex_column label,
.account-page .account-info-item label {
    color: #111827 !important;
}

/* Form Description Text */
.account-page ._nxn_fs_small,
.account-page ._nxn_flex_column p {
    color: #9ca3af !important;
}

/* Validation Messages */
.account-page ._nxn_validator_message {
    color: #9ca3af;
}

.account-page ._nxn_validator_message.valid {
    color: #10b981;
}

.account-page ._nxn_validator_message.invalid {
    color: #ef4444;
}

/* Text Utility Classes Override for Account Page */
.account-page .text-primary {
    color: #7c86ff !important;
}

.account-page .text-gray-400 {
    color: #9ca3af !important;
}

.account-page .text-dark {
    color: #111827 !important;
}

.account-page .text-light {
    color: #9ca3af !important;
}

.account-page .text-muted {
    color: #9ca3af !important;
}

._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(--secondary);
    border: 0;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-auth-primary:hover {
    background: #6366f1;
}

.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: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    color: #111827;
    padding: 24px 0 12px;
    border-top: 1px solid #e5e7eb;
}

.footer-top {
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

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

.footer-split-layout.is-single {
    grid-template-columns: 1fr;
}

.footer-brand-panel {
    border: 1px solid rgba(124, 134, 255, 0.18);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.footer-brand-panel {
    padding: 22px 20px;
}

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

.footer-col {
    border: 1px solid rgba(124, 134, 255, 0.16);
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
}

.footer-col--brand {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.footer-col--brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: #111827;
    margin: 0 0 16px;
}

.footer-col:not(.footer-col--brand) .footer-logo {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.footer-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-desc p {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    padding: 0;
    margin: 0 0 8px;
}

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

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.footer-links a svg {
    display: block;
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #7c86ff;
    transform: translateX(4px);
}

.footer-links a:hover svg {
    opacity: 1;
    color: #7c86ff;
}

.footer-social {
    color: #111827;
    background: #ffffff;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-social:hover {
    color: #7c86ff;
    background: linear-gradient(135deg, rgba(124, 134, 255, 0.2) 0%, rgba(124, 134, 255, 0.1) 100%);
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.3);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom p {
    margin: 0;
}

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

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

.modern-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.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: #111827;
}

.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: #111827;
    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: linear-gradient(135deg, rgba(124, 134, 255, 0.2) 0%, rgba(124, 134, 255, 0.1) 100%);
    border: 1.5px solid rgba(124, 134, 255, 0.4);
    border-radius: 50%;
    color: #7c86ff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.scroll-to-top:hover {
    background: linear-gradient(135deg, rgba(124, 134, 255, 0.3) 0%, rgba(124, 134, 255, 0.2) 100%);
    border-color: rgba(124, 134, 255, 0.8);
    box-shadow: 0 0 25px rgba(124, 134, 255, 0.4);
    transform: translateY(-2px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

.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;
    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: #111827;
    text-decoration: none;
    font-weight: 700;
}

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

.home-banner {
    width: 100%;
    background: var(--primary);
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.home-live-ticker-section {
    padding: 0 0 24px;
}

.home-live-ticker {
    display: flex;
    align-items: center;
    min-height: 60px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.home-live-ticker-bell {
    width: 60px;
    min-width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7c86ff;
    border-right: 1px solid #e5e7eb;
}

.home-live-ticker-bell svg {
    width: 22px;
    height: 22px;
}

.home-live-ticker-marquee {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.home-live-ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 0;
    padding: 0 14px;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.home-live-ticker-cycle {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding-right: 16px;
}

.home-live-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.home-live-ticker-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

.home-live-ticker-chip--time {
    background: linear-gradient(90deg, #7c86ff 0%, #6b76e8 100%);
    color: #ffffff;
}

.home-live-ticker-chip--user {
    background: #f2de52;
    color: #171717;
}

.home-live-ticker-text {
    color: #111827;
}

.home-live-ticker-amount {
    color: #7c86ff;
}

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

.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.alt .feature-title {
    color: #111827;
    margin-top: 12px;
}

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

.features-block.alt .feature-desc {
    color: #9ca3af;
    margin-top: 8px;
    line-height: 1.6;
}

.features-block .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 134, 255, 0.2) 0%, rgba(124, 134, 255, 0.1) 100%);
    border: 1px solid rgba(124, 134, 255, 0.3);
}

.features-block .feature-icon svg {
    color: #7c86ff;
}

.features-block .feature-icon.icon-blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.features-block .feature-icon.icon-blue svg {
    color: #3b82f6;
}

.features-block .feature-icon.icon-green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.features-block .feature-icon.icon-green svg {
    color: #22c55e;
}

.features-block .feature-icon.icon-orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2) 0%, rgba(249, 115, 22, 0.1) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.features-block .feature-icon.icon-orange svg {
    color: #f97316;
}

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

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

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

.home-section-link {
    color: var(--text-subtle);
    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) */
.products-section {
    padding-bottom: 24px;
}

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

.section-header-decorated {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0 30px;
    position: relative;
}

.header-decoration {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.8;
}

.header-decoration-reverse {
    flex-direction: row-reverse;
}

.decoration-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(124, 134, 255, 0.3), rgba(124, 134, 255, 0.8));
    border-radius: 2px;
}

.decoration-line-reverse {
    background: linear-gradient(to right, rgba(124, 134, 255, 0.8), rgba(124, 134, 255, 0.3), transparent);
}

.decoration-diamonds {
    display: flex;
    align-items: center;
    gap: 8px;
}

.diamond {
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.diamond-border {
    border: 1.5px solid rgba(124, 134, 255, 0.6);
    background: transparent;
}

.diamond-solid {
    background: linear-gradient(135deg, #7c86ff 0%, #a8b0ff 100%);
    box-shadow: 0 0 10px rgba(124, 134, 255, 0.6);
    animation: diamond-glow 2s ease-in-out infinite;
}

@keyframes diamond-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(124, 134, 255, 0.6);
        opacity: 0.9;
    }
    50% {
        box-shadow: 0 0 20px rgba(124, 134, 255, 1);
        opacity: 1;
    }
}

.section-title-glow {
    line-height: 28px;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #111827 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(17, 24, 39, 0.15));
    margin: 0;
    white-space: nowrap;
}

.section-header-content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.section-subtitle-count {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* View All Button */
.section-view-all {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-view-all:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-view-all svg {
    transition: transform 0.3s ease;
}

.btn-view-all:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .section-header-decorated {
        gap: 15px;
        margin: 15px 0 25px;
    }

    .header-decoration {
        display: none;
    }

    .section-title-glow {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .section-view-all {
        margin-top: 25px;
        padding-top: 15px;
    }

    .btn-view-all {
        padding: 10px 24px;
        font-size: 13px;
    }

    .products-section .section-header-decorated {
        gap: 10px;
    }

    .products-section .header-decoration {
        display: inline-flex;
        gap: 6px;
        opacity: 0.72;
    }

    .products-section .decoration-line {
        width: 26px;
        height: 1.5px;
    }

    .products-section .decoration-diamonds {
        gap: 5px;
    }

    .products-section .diamond {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .section-title-glow {
        font-size: 16px;
        letter-spacing: 1.5px;
    }

    .btn-view-all {
        width: 100%;
        justify-content: center;
    }

    .products-section .section-header-decorated {
        gap: 8px;
    }

    .products-section .header-decoration {
        gap: 4px;
        opacity: 0.66;
    }

    .products-section .decoration-line {
        width: 18px;
    }

    .products-section .decoration-diamonds {
        gap: 4px;
    }

    .products-section .diamond {
        width: 6px;
        height: 6px;
    }
}

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

.container-minigame {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.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: #ffffff;
}

.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(124, 134, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(124, 134, 255, 0.3);
}

.btn-history:hover {
    background: rgba(124, 134, 255, 0.3);
    border-color: rgba(124, 134, 255, 0.5);
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.3);
    transform: translateY(-2px);
}

.btn-spin-now {
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(124, 134, 255, 0.4);
    border: 1px solid rgba(124, 134, 255, 0.3);
}

.btn-spin-now:hover {
    background: linear-gradient(135deg, #8b96ff 0%, #7c86ff 100%);
    box-shadow: 0 6px 20px rgba(124, 134, 255, 0.6);
    transform: translateY(-2px);
}

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

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

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.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: rgba(124, 134, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(124, 134, 255, 0.2);
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: rgba(124, 134, 255, 0.1);
    border-color: rgba(124, 134, 255, 0.4);
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.15);
}

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

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

.rule-text strong {
    color: #7c86ff;
    font-weight: 700;
}

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

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

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

.prize-tag {
    padding: 6px 14px;
    background: rgba(124, 134, 255, 0.1);
    border: 1px solid rgba(124, 134, 255, 0.3);
    border-radius: 999px;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.3s ease;
}

.prize-tag:hover {
    background: rgba(124, 134, 255, 0.2);
    border-color: rgba(124, 134, 255, 0.5);
    color: #7c86ff;
}

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

    .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: rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    color: #7c86ff;
}

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

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

.status-expired .status-icon {
    background: rgba(217, 119, 6, 0.1);
    color: #fbbf24;
}

.status-locked .status-icon {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444;
}

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

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

.mail-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    transition: all 0.2s ease;
}

.mail-item:hover {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.2);
}

.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: #111827;
    font-weight: 700;
}

.mail-from svg {
    color: #7c86ff;
}

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

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

.mail-content {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.7;
    padding: 14px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 12px;
    margin-bottom: 12px;
}

.mail-code-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(124, 134, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(124, 134, 255, 0.3);
}

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

.mail-code-value {
    font-size: 16px;
    color: #7c86ff;
    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 #e5e7eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #111827;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: rgba(124, 134, 255, 0.6);
    background: rgba(124, 134, 255, 0.1);
    color: #7c86ff;
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.2);
}

/* --- 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: #ffffff;
}

/* 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 5
============================================ */

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

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

.product-detail-right {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    padding: 18px;
}

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

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

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

.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: #fff;
    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);
    max-width: 100%;
    overflow: hidden;
}

.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 #e5e7eb;
}

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

.product-description {
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    border: 1px dashed #e5e7eb;
}

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

.product-detail-header {
    border-bottom: 1px solid #e5e7eb;
    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: #9ca3af;
    margin: 0;
}

.product-detail-price {
    font-size: 26px;
    font-weight: 600;
    color: #7c86ff;
}

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

.product-tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(124, 134, 255, 0.15);
    border: 1px solid rgba(124, 134, 255, 0.3);
    color: #7c86ff;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.product-tag:hover {
    background: rgba(124, 134, 255, 0.25);
    border-color: rgba(124, 134, 255, 0.5);
}

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

.btn-purchase {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #111827;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-purchase.btn-primary {
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    color: #ffffff;
    border-color: rgba(124, 134, 255, 0.8);
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.3);
}

.btn-purchase.btn-primary:hover {
    box-shadow: 0 0 30px rgba(124, 134, 255, 0.5);
}

/* Secondary style for ATM button */
.product-detail-right .btn-purchase._nxn_btn_grey {
    background: rgba(255, 255, 255, 0.98) !important;
    color: #111827 !important;
    border-color: #e5e7eb !important;
}

.product-detail-right .btn-purchase._nxn_btn_grey:hover {
    border-color: rgba(124, 134, 255, 0.6) !important;
    background: rgba(124, 134, 255, 0.1) !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 #e5e7eb;
    background: rgba(255, 255, 255, 0.98);
    color: #9ca3af;
    font-size: 13px;
}

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

@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 5
============================================ */

.categories-page {
    padding: 24px 0 46px;
    background: #f8f9fa;
}

.categories-topbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(140deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.categories-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.categories-page-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.4px;
    color: #111827;
}

.categories-page-subtitle {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.categories-tabs-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.categories-tabs {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.categories-tabs .tab-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    text-decoration: none;
    color: #374151;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.categories-tabs .tab-item svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
    transition: color 0.3s ease;
}

.categories-tabs .tab-item .tab-count {
    margin-left: 2px;
    font-size: 11px;
    font-weight: 700;
    color: #7c86ff;
    background: rgba(124, 134, 255, 0.1);
    border: 1px solid rgba(124, 134, 255, 0.32);
    border-radius: 999px;
    padding: 3px 8px;
}

.categories-meta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 168px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 8px 12px;
    background: #ffffff;
    white-space: nowrap;
}

.categories-meta-label {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.categories-meta-value {
    font-size: 13px;
    color: #111827;
}

.categories-tabs .tab-item:hover {
    border-color: rgba(124, 134, 255, 0.6);
    background: rgba(124, 134, 255, 0.05);
    transform: translateY(-2px);
}

.categories-tabs .tab-item:hover svg {
    color: #7c86ff;
}

.categories-tabs .tab-item.active {
    border-color: rgba(124, 134, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(124, 134, 255, 0.12);
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    color: #ffffff;
}

.categories-tabs .tab-item.active svg {
    color: #ffffff;
}

.categories-tabs .tab-item.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

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

.category-block {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

.category-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.category-block-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.category-block-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
    font-weight: 800;
    color: #111827;
}

.category-block-count {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.category-block-action {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: #7c86ff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.category-block-action:hover {
    color: #ffffff;
    border-color: rgba(124, 134, 255, 0.8);
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
}

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

.categories-page .category-card {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 9px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    min-height: 100%;
}

.categories-page .category-card:hover {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 12px 24px rgba(124, 134, 255, 0.15);
}

.categories-page .category-card-media {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
}

.categories-page .category-card-body {
    text-align: left;
    padding: 12px 6px 6px;
    gap: 9px;
}

.categories-page .category-card-title {
    text-align: center;
    font-size: 18px;
    line-height: 1.32;
}

.categories-page .category-card-price-wrap {
    justify-content: center;
}

.categories-page .category-card .product-price {
    font-size: 16px;
    letter-spacing: 0.2px;
    text-align: center;
}

.categories-page .category-card-sold {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
}

.category-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid rgba(124, 134, 255, 0.6);
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    color: #ffffff;
    padding: 9px 11px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.category-card-cta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.categories-page .category-card:hover .category-card-cta {
    border-color: rgba(210, 217, 255, 0.9);
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(86, 98, 255, 0.36);
}

.category-empty-state {
    background: rgba(15, 25, 47, 0.65);
    border-color: rgba(124, 134, 255, 0.28);
    color: rgba(214, 224, 248, 0.74);
}

.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 {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 2px 2px 4px;
    }

    .categories-tabs::-webkit-scrollbar {
        display: none;
    }

    .categories-page-title {
        font-size: 24px;
    }

    .categories-tabs-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .categories-meta {
        align-self: flex-start;
    }

    .categories-page .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-block {
        padding: 14px;
    }

    .category-block-title {
        font-size: 18px;
    }

    .category-card-cta {
        padding: 7px 9px;
    }
}

@media (max-width: 480px) {
    .categories-topbar {
        padding: 14px;
        border-radius: 14px;
    }

    .categories-page-subtitle {
        font-size: 13px;
    }

    .categories-tabs .tab-item {
        padding: 9px 10px;
        font-size: 12px;
    }

    .category-block-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .categories-page .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .categories-page .category-card-body {
        padding: 10px 4px 4px;
    }

    .categories-page .category-card-title {
        font-size: 16px;
    }

    .categories-page .category-card .product-price {
        font-size: 15px;
    }

    .category-card-cta {
        font-size: 11px;
    }
}

.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: #5d58ff;
    color: #111827;
    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 {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    padding: 24px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.features-block.alt .feature-card:hover {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.2);
    transform: translateY(-4px);
}

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

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

.header-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 84px;
}

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

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

.header-search {
    position: relative;
    flex: 0 1 800px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.header-search input {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-light);
    font-size: 16px;
    padding: 0 48px 0 16px;
}

.header-search input::placeholder {
    color: var(--text-subtle);
}

.header-search input:focus {
    outline: none;
}

.header-search-submit {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text-subtle);
    cursor: pointer;
    padding: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
}

.header-actions.is_login {
    margin-left: 0;
}

.header-actions ._state_username {
    display: block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-trigger {
    height: 46px;
    padding: 0 12px;
    gap: 10px;
    min-width: 146px;
}

.header-account-trigger-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(124, 134, 255, 0.15);
    color: #7c86ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-account-trigger-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-trigger-chevron {
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.header-actions.is-account-open .header-account-trigger-chevron {
    transform: rotate(180deg);
}

.header-account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, 84vw);
    max-height: min(76vh, 620px);
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    padding: 12px;
    z-index: 1015;
}

.header-account-dropdown[hidden] {
    display: none !important;
}

.header-account-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7c86ff;
    font-weight: 700;
    font-size: 19px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid rgba(124, 134, 255, 0.18);
}

.header-account-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 10px;
}

.header-account-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease;
}

.header-account-link svg {
    flex-shrink: 0;
    opacity: 0.84;
}

.header-account-link:hover {
    background: rgba(124, 134, 255, 0.12);
    color: #111827;
}

.header-account-link.is-active {
    background: rgba(124, 134, 255, 0.22);
    color: #4f46e5;
}

.header-account-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(124, 134, 255, 0.18);
}

.header-account-link.is-logout {
    color: #ff6b6b;
}

.header-account-link.is-logout:hover {
    background: rgba(255, 107, 107, 0.12);
    color: #ff8686;
}

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

.header-menu-toggle {
    display: none;
    background: var(--surface);
    color: var(--text-light);
    border: 1px solid var(--border);
    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;
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-header:hover {
    background: rgba(124, 134, 255, 0.08);
    border-color: rgba(124, 134, 255, 0.35);
}

.header-locale-switcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.header-locale-switcher:hover {
    background: rgba(124, 134, 255, 0.08);
    border-color: rgba(124, 134, 255, 0.35);
}

.header-locale-flag {
    width: 18px;
    height: 12px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: none;
    font-size: 16px;
    opacity: 0.88;
    line-height: 1;
}

.nav-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.92;
}

.nav-item:hover {
    opacity: 1;
}

.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: #111827;
    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;
    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-search {
    position: relative;
    margin-bottom: 4px;
}

.sidebar-search input {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-light);
    font-size: 14px;
    padding: 0 44px 0 12px;
}

.sidebar-search input::placeholder {
    color: var(--text-subtle);
}

.sidebar-search input:focus {
    outline: none;
}

.sidebar-search button {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: var(--text-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.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: 64px;
        gap: 10px;
        min-width: 0;
    }

    .header-top {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .header-logo {
        display: inline-flex;
        flex: 0 0 auto;
        max-width: 128px;
        min-width: 0;
    }

    .header-logo img {
        width: auto;
        height: auto;
        max-height: 35px;
        max-width: 228px;
    }

    .header-bottom {
        display: none;
    }

    .header-search {
        display: none;
    }

    .header-actions,
    .header-actions.is_login {
        margin-left: auto;
        gap: 6px;
        min-width: 0;
        flex: 0 1 auto;
    }

    .header-actions:not(.is_login) {
        gap: 3px;
    }

    .header-actions:not(.is_login) .btn-register {
        display: none !important;
    }

    .header-actions:not(.is_login) .btn-login {
        width: 80px;
        max-width: 80px;
        height: 36px;
        padding: 0 6px;
        font-size: 11px;
        line-height: 1;
        justify-content: center;
        flex: 0 0 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-nav {
        display: none;
    }

    .header-actions .btn-header {
        height: 42px;
        padding: 0 13px;
        font-size: 14px;
        border-radius: 10px;
    }

    .header-actions:not(.is_login) .btn-login {
        width: 80px !important;
        max-width: 80px !important;
        height: 36px !important;
        padding: 0 6px !important;
        font-size: 11px !important;
        line-height: 1 !important;
        flex: 0 0 80px !important;
    }

    .header-actions .btn-register {
        display: none;
    }

    .header-actions .btn-login ._state_username {
        max-width: 120px;
    }

    .header-menu-toggle {
        display: inline-flex;
        order: 99;
        height: 38px;
        width: 38px;
        min-width: 38px;
        padding: 0;
        border-radius: 10px;
        font-size: 0;
        align-items: center;
        justify-content: center;
    }

    .header-menu-toggle::before {
        content: "\2630";
        font-size: 18px;
        line-height: 1;
    }

    .header-actions .header-account-trigger {
        height: 38px;
        width: 38px;
        min-width: 38px;
        padding: 0;
        border-radius: 10px;
        gap: 0;
        justify-content: center;
    }

    .header-account-trigger-name {
        display: none;
    }

    .header-account-trigger-chevron {
        display: none;
    }

    .header-account-trigger-icon {
        width: 18px;
        height: 18px;
        background: transparent;
        color: var(--text-light);
    }

    .header-account-dropdown {
        width: min(320px, calc(100vw - 16px));
        right: 0;
    }

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

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

    .footer-split-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .footer-links-panel .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .home-live-ticker-section {
        padding: 0 0 18px;
    }

    .home-live-ticker {
        min-height: 52px;
    }

    .home-live-ticker-bell {
        width: 52px;
        min-width: 52px;
        height: 52px;
    }

    .home-live-ticker-bell svg {
        width: 20px;
        height: 20px;
    }

    .home-live-ticker-item {
        font-size: 14px;
        gap: 8px;
    }

    .home-live-ticker-chip {
        min-height: 28px;
        padding: 0 10px;
        border-radius: 7px;
        font-size: 13px;
    }

    .footer {
        margin-bottom: 70px;
    }

}

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

@media (max-width: 576px) {
    .footer {
        margin-bottom: 24px !important;
        padding-top: 24px !important;
    }

    .footer-top {
        padding-bottom: 18px;
    }

    .footer-brand-panel,
    .footer-links-panel {
        border-radius: 12px;
    }

    .footer-links-panel .footer-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .footer-col {
        padding: 12px;
    }

    .footer-title {
        margin-bottom: 10px;
        font-size: 14px;
    }

}

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

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

    .header-actions:not(.is_login) .btn-login {
        width: 72px !important;
        max-width: 72px !important;
        flex: 0 0 72px !important;
        padding: 0 4px !important;
        font-size: 11px !important;
    }

    .header-menu-toggle {
        padding: 0;
        min-width: 36px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 0;
    }

    .header-actions .header-account-trigger {
        min-width: 36px;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .home-live-ticker-section {
        padding: 0 0 14px;
    }

    .home-live-ticker {
        min-height: 46px;
        border-radius: 9px;
    }

    .home-live-ticker-bell {
        width: 44px;
        min-width: 44px;
        height: 46px;
    }

    .home-live-ticker-bell svg {
        width: 18px;
        height: 18px;
    }

    .home-live-ticker-track {
        padding: 0 10px;
    }

    .home-live-ticker-cycle {
        gap: 12px;
        padding-right: 12px;
    }

    .home-live-ticker-item {
        font-size: 12px;
        gap: 6px;
    }

    .home-live-ticker-chip {
        min-height: 24px;
        padding: 0 8px;
        border-radius: 6px;
        font-size: 11px;
    }

    .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: var(--primary);
    border: 1px solid var(--border);
    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: #f8f9fa;
}

.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: #111827;
}

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

.blog-filters .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0);
}

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

.blog-filters .search-box input::placeholder {
    color: #9ca3af;
}

.blog-filters .search-box button {
    border: none;
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.blog-filters .search-box button:hover {
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.5);
}

.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: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.featured-container .blog-featured-card:hover {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 30px rgba(124, 134, 255, 0.3);
}

.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: rgba(124, 134, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 134, 255, 0.3);
    font-size: 11px;
    font-weight: 800;
    color: #7c86ff;
}

.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: #9ca3af;
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-meta svg {
    color: #7c86ff;
}

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

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

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

.btn-read-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #7c86ff;
    transition: gap 0.2s ease;
}

.btn-read-more:hover {
    gap: 10px;
}

.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: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-post-card .post-link:hover {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 30px rgba(124, 134, 255, 0.3);
    transform: translateY(-2px);
}

.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: rgba(124, 134, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 134, 255, 0.3);
    font-size: 11px;
    font-weight: 800;
    color: #7c86ff;
}

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

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

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

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

.post-footer .btn-link {
    color: #7c86ff;
    font-weight: 700;
}

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

.btn-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #111827;
    cursor: pointer;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-circle:hover:not(:disabled) {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.3);
}

.btn-circle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.page-num {
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #111827;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-num:hover {
    border-color: rgba(124, 134, 255, 0.6);
}

.page-num.active {
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    border-color: rgba(124, 134, 255, 0.8);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.4);
}

.page-dots {
    color: #9ca3af;
}

/* 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: #f8f9fa;
}

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

.blog-article {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

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

.article-category {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(124, 134, 255, 0.15);
    border: 1px solid rgba(124, 134, 255, 0.3);
    font-size: 11px;
    font-weight: 800;
    color: #7c86ff;
}

.article-title {
    margin: 10px 0 12px;
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    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 #e5e7eb;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 700;
    color: #111827;
    font-size: 14px;
}

.post-date {
    font-size: 12px;
    color: #9ca3af;
}

.read-time {
    color: #9ca3af;
}

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

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

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

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

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    color: #111827;
}

.article-body strong {
    color: #111827;
}

.article-body a {
    color: #7c86ff;
}

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

.footer-label {
    font-weight: 700;
    color: #111827;
    margin-right: 8px;
}

.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 #e5e7eb;
    background: rgba(255, 255, 255, 0.98);
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tag-pill {
    background: rgba(124, 134, 255, 0.15);
    border-color: rgba(124, 134, 255, 0.3);
    color: #7c86ff;
}

.tag-pill:hover {
    background: rgba(124, 134, 255, 0.25);
    border-color: rgba(124, 134, 255, 0.5);
}

.share-pill:hover {
    border-color: rgba(124, 134, 255, 0.6);
    background: rgba(124, 134, 255, 0.1);
}

.tags-list,
.share-pills {
    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: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    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(124, 134, 255, 0.6);
    box-shadow: 0 0 30px rgba(124, 134, 255, 0.3);
    transform: translateY(-2px);
}

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

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

.blog-sidebar .sidebar-widget {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
}

.sidebar-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 10px;
}

.sidebar-search-form input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: #111827;
    font-size: 13px;
}

.sidebar-search-form input::placeholder {
    color: #9ca3af;
}

.sidebar-search-form button {
    border: none;
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.sidebar-search-form button:hover {
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.5);
}

.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 #e5e7eb;
    background: rgba(255, 255, 255, 0.98);
    color: #111827;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 20px rgba(124, 134, 255, 0.3);
    transform: translateY(-1px);
}

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

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-item .item-img {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

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

.recent-post-item .item-title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.recent-post-item .item-date {
    font-size: 11px;
    color: #9ca3af;
}

/* 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(--secondary);
    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: #6366f1;
    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(--secondary);
    color: #ffffff;
    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: #6366f1;
    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: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.history-detail-header {
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 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;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    margin-bottom: 18px;
}

.history-section:not(:last-child) {
    border-bottom: none;
}

.history-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.history-section-title svg {
    color: #7c86ff;
}

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

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

.history-detail-container .info-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.history-detail-container .info-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.history-detail-container .info-value.text-primary {
    color: #7c86ff;
    font-size: 18px;
}

.credential-box {
    background: rgba(124, 134, 255, 0.05);
    border: 1.5px dashed rgba(124, 134, 255, 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: #111827;
}

.credential-input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 16px;
    transition: all 0.3s;
}

.credential-input-group:hover {
    border-color: rgba(124, 134, 255, 0.6);
}

.credential-text {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    font-family: monospace;
}

.history-footer {
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

@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: linear-gradient(135deg, rgba(124, 134, 255, 0.15) 0%, rgba(124, 134, 255, 0.08) 100%);
    border-color: rgba(124, 134, 255, 0.4);
}

.mail-unread .mail-from,
.mail-unread .mail-subject {
    font-weight: 700;
    color: #7c86ff;
}

.mail-read {
    opacity: 0.8;
}

.mail-read:hover {
    opacity: 1;
}

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


/* ============================================
   BLOG PAGE - MAGAZINE LAYOUT (NEW)
============================================ */

/* Category Filter Tabs */
.blog-category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.blog-category-tabs::-webkit-scrollbar {
    height: 4px;
}

.blog-category-tabs::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}

.category-tab {
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #9ca3af;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-tab:hover {
    border-color: rgba(124, 134, 255, 0.6);
    color: #7c86ff;
}

.category-tab.active {
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    border-color: rgba(124, 134, 255, 0.8);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 134, 255, 0.3);
}

/* Magazine Hero Section */
.magazine-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

/* Hero Featured Post (Large, 2/3) */
.hero-featured {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-featured:hover {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 40px rgba(124, 134, 255, 0.4);
    transform: translateY(-4px);
}

.hero-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: #0f1419;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-featured:hover .hero-image img {
    transform: scale(1.05);
}

.hero-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    color: #111827;
}

.hero-excerpt {
    margin: 0;
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

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

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

/* Secondary Featured Post (Vertical, 1/3) */
.hero-secondary {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-secondary:hover {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 30px rgba(124, 134, 255, 0.3);
    transform: translateY(-4px);
}

.secondary-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #0f1419;
}

.secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-secondary:hover .secondary-image img {
    transform: scale(1.05);
}

.secondary-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.secondary-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    color: #111827;
}

.secondary-excerpt {
    margin: 0;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Blog Grid 4 Columns */
.blog-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.blog-card {
    display: flex;
    flex-direction: column;
}

.blog-card .card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card .card-link:hover {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 30px rgba(124, 134, 255, 0.3);
    transform: translateY(-4px);
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #0f1419;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card .card-link:hover .card-image img {
    transform: scale(1.05);
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(124, 134, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 134, 255, 0.3);
    font-size: 11px;
    font-weight: 800;
    color: #7c86ff;
}

.card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

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

.card-excerpt {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    padding-top: 10px;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.author-mini .author-name {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
}

/* Responsive Magazine Layout */
@media (max-width: 1200px) {
    .blog-grid-4col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .magazine-hero {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 300px;
    }

    .secondary-image {
        height: 240px;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 22px;
    }

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

    .blog-category-tabs {
        gap: 6px;
    }

    .category-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ============================================
   BLOG DETAIL - CENTERED READING LAYOUT (NEW)
============================================ */

.article-centered-layout {
    margin: 0 auto;
}

.article-main {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

/* Article Header Centered */
.article-header-centered {
    text-align: center;
    margin-bottom: 32px;
}

.article-meta-top {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #9ca3af;
}

.article-meta-top .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #e5e7eb;
}

.article-meta-top svg {
    color: #7c86ff;
}

.article-title-centered {
    margin: 0 0 24px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    color: #111827;
}

.article-author-centered {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
}

.author-avatar-large {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #7c86ff;
}

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

.author-details-centered {
    text-align: left;
}

.author-name-large {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 4px;
}

.post-date-info {
    font-size: 13px;
    color: #9ca3af;
}

/* Featured Image Centered */
.article-featured-image-centered {
    margin: 32px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

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

/* Article Body Centered */
.article-body-centered {
    line-height: 1.8;
    color: #9ca3af;
    font-size: 16px;
}

.article-body-centered h1,
.article-body-centered h2,
.article-body-centered h3,
.article-body-centered h4,
.article-body-centered h5,
.article-body-centered h6 {
    color: #111827;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 800;
}

.article-body-centered h2 {
    font-size: 28px;
}

.article-body-centered h3 {
    font-size: 24px;
}

.article-body-centered p {
    margin-bottom: 20px;
}

.article-body-centered strong {
    color: #111827;
    font-weight: 700;
}

.article-body-centered a {
    color: #7c86ff;
    text-decoration: underline;
}

.article-body-centered a:hover {
    color: #8b95ff;
}

.article-body-centered img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.article-body-centered ul,
.article-body-centered ol {
    margin: 20px 0;
    padding-left: 24px;
}

.article-body-centered li {
    margin-bottom: 8px;
}

.article-body-centered blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid #7c86ff;
    background: rgba(124, 134, 255, 0.1);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #111827;
}

.article-body-centered code {
    padding: 2px 6px;
    background: rgba(124, 134, 255, 0.15);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #7c86ff;
}

.article-body-centered pre {
    background: #0f1419;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-body-centered pre code {
    background: none;
    padding: 0;
    color: #9ca3af;
}

/* Article Footer Centered */
.article-footer-centered {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.article-tags-section,
.article-share-section {
    margin-bottom: 24px;
}

.article-tags-section:last-child,
.article-share-section:last-child {
    margin-bottom: 0;
}

.footer-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.footer-label svg {
    color: #7c86ff;
}

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

.share-buttons-centered {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.98);
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    border-color: rgba(124, 134, 255, 0.6);
    background: rgba(124, 134, 255, 0.1);
    transform: translateY(-2px);
}

.share-btn.facebook:hover {
    border-color: #1877f2;
    background: rgba(24, 119, 242, 0.1);
}

.share-btn.twitter:hover {
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.1);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* Article Navigation Centered */
.article-navigation-centered {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 30px rgba(124, 134, 255, 0.3);
    transform: translateY(-2px);
}

.nav-arrow {
    font-size: 24px;
    color: #7c86ff;
    font-weight: 800;
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-btn.nav-prev .nav-content {
    align-items: flex-start;
}

.nav-btn.nav-next {
    justify-content: flex-end;
}

.nav-btn.nav-next .nav-content {
    align-items: flex-end;
}

.nav-label {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
}

.nav-title {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Related Posts Section */
.related-posts-section {
    margin-top: 48px;
}

.related-title {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
    text-align: center;
}

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

.related-post-card {
    display: flex;
    flex-direction: column;
}

.related-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-link:hover {
    border-color: rgba(124, 134, 255, 0.6);
    box-shadow: 0 0 30px rgba(124, 134, 255, 0.3);
    transform: translateY(-4px);
}

.related-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #0f1419;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-link:hover .related-image img {
    transform: scale(1.05);
}

.category-badge-small {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(124, 134, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 134, 255, 0.3);
    font-size: 10px;
    font-weight: 800;
    color: #7c86ff;
}

.related-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.related-meta {
    font-size: 12px;
    color: #9ca3af;
}

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

.related-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.author-name-mini {
    font-size: 12px;
    font-weight: 700;
    color: #9ca3af;
}

/* Responsive Centered Layout */
@media (max-width: 1024px) {
    .article-main {
        padding: 32px 24px;
    }

    .article-title-centered {
        font-size: 30px;
    }

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

@media (max-width: 768px) {
    .article-main {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .article-title-centered {
        font-size: 24px;
    }

    .article-body-centered {
        font-size: 15px;
    }

    .article-navigation-centered {
        grid-template-columns: 1fr;
    }

    .nav-btn.nav-next {
        justify-content: flex-start;
    }

    .nav-btn.nav-next .nav-content {
        align-items: flex-start;
    }

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

    .author-author-centered {
        flex-direction: column;
        text-align: center;
    }

    .author-details-centered {
        text-align: center;
    }
}

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

    .article-title-centered {
        font-size: 20px;
    }

    .share-buttons-centered {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

.table-empty-text {
    color: #111827;
}

/* ============================================
   MAIL DETAIL & CREDENTIALS FORM
============================================ */

.account-section-mail {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 18px;
}

.account-section-mail .account-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.account-section-mail .account-section-title svg {
    color: #7c86ff;
}

.credentials-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Override for iframe in mail detail */
#mail-frame {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    padding: 16px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   MODAL COMPONENTS DARK THEME OVERRIDE
============================================ */

/* Modal Container & Content */
body ._nxn_modal_container {
    background: rgba(8, 15, 27, 0.85);
}

body ._nxn_modal_content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    color: #111827;
}

body ._nxn_modal_header {
    border-bottom: 1px solid #e5e7eb;
}

body ._nxn_modal_header h3 {
    color: #111827;
}

body ._nxn_modal_close {
    color: #9ca3af;
}

body ._nxn_modal_close:hover {
    color: #111827;
}

body ._nxn_modal_body {
    background: transparent;
}

body ._nxn_modal_footer {
    border-top: 1px solid #e5e7eb;
}

/* Modern Modal Styles */
body .modern-modal {
    background: transparent;
}

body .modern-header {
    margin-bottom: 24px;
}

body .modern-title {
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

body .modern-subtitle {
    color: #9ca3af;
    font-size: 14px;
}

body .modern-form {
    background: transparent;
}

body .modern-label {
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

/* Checkout Info List */
body .checkout-info-list {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

body .checkout-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

body .checkout-info-item:last-child {
    border-bottom: none;
}

body .checkout-info-label {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
}

body .checkout-info-value {
    color: #111827;
    font-weight: 600;
    font-size: 14px;
}

body .checkout-info-value.text-success {
    color: #10b981;
}

/* Alert Boxes */
body .alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid;
}

body .alert-info {
    background: rgba(124, 134, 255, 0.1);
    border-color: rgba(124, 134, 255, 0.3);
    color: #111827;
}

body .alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #111827;
}

body .alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #111827;
}

body .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #111827;
}

/* Input Components */
body ._nxn_input_component {
    color: #111827;
}

body ._nxn_input_group {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb !important;
}

body ._nxn_input_group:hover {
    border-color: #d1d5db !important;
}

body ._nxn_input_group:focus-within {
    border-color: #7c86ff !important;
    box-shadow: 0 0 0 3px rgba(124, 134, 255, 0.1);
}

body ._nxn_textfield_input,
body ._nxn_select_input,
body ._nxn_numberfield_input,
body ._nxn_textareafield_input {
    background: transparent;
    color: #111827;
}

body ._nxn_textfield_input::placeholder,
body ._nxn_select_input::placeholder,
body ._nxn_numberfield_input::placeholder,
body ._nxn_textareafield_input::placeholder {
    color: #6b7280;
}

body ._nxn_input_start,
body ._nxn_input_end {
    color: #9ca3af;
}

body ._nxn_input_component:has(._nxn_validator_input:focus) ._nxn_input_start,
body ._nxn_input_component:has(._nxn_validator_input:focus) ._nxn_input_end {
    color: #7c86ff;
}

/* Autocomplete Dropdown */
body ._nxn_input_autocomplete,
body ._nxn_select_autocomplete {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body ._nxn_input_autocomplete li,
body ._nxn_select_autocomplete li {
    background: transparent;
    color: #9ca3af;
    border-color: transparent;
}

body ._nxn_input_autocomplete li:hover,
body ._nxn_select_autocomplete li:hover,
body ._nxn_input_autocomplete li.active,
body ._nxn_select_autocomplete li.active {
    background: rgba(124, 134, 255, 0.15);
    color: #111827;
}

body ._nxn_input_autocomplete li p,
body ._nxn_select_autocomplete li p {
    color: inherit;
}

/* Buttons */
body .btn-modern-primary,
body ._btn_checkout {
    background: linear-gradient(135deg, #7c86ff 0%, #6366f1 100%);
    color: #ffffff;
    border: 1px solid #7c86ff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

body .btn-modern-primary:hover,
body ._btn_checkout:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 8px 24px rgba(124, 134, 255, 0.4);
    transform: translateY(-2px);
}

body .btn-modern-primary:active,
body ._btn_checkout:active {
    transform: translateY(0);
}

/* Checkout Footer Notes */
body .checkout-footer-notes {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 8px;
    padding: 12px;
}

body .checkout-footer-notes p {
    color: #9ca3af;
    margin-bottom: 0;
}

/* Validation Messages */
body ._nxn_input_message p {
    color: #9ca3af;
    font-size: 13px;
}

body ._nxn_input_component:has(._nxn_valid) ._nxn_message_valid {
    color: #10b981;
}

body ._nxn_input_component:has(._nxn_invalid) ._nxn_message_invalid {
    color: #ef4444;
}

/* Valid/Invalid States */
body ._nxn_input_group:has(._nxn_valid) {
    border-color: #10b981;
}

body ._nxn_input_group:has(._nxn_invalid) {
    border-color: #ef4444;
}

/* Checkbox & Radio */
body ._nxn_checkbox_label,
body ._nxn_radio_label {
    color: #111827;
}

body ._nxn_checkbox_checker,
body ._nxn_radio_checker {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
}

body ._nxn_checkbox_label:has(._nxn_checkboxfield_input:checked) ._nxn_checkbox_checker,
body ._nxn_checkbox_label:has(._nxn_radiofield_input:checked) ._nxn_radio_checker {
    background: #7c86ff;
    border-color: #7c86ff;
    box-shadow: 0 0 0 3px rgba(124, 134, 255, 0.25);
}

body ._nxn_input_component._nxn_checkbox_two ._nxn_checkbox_label {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
}

body ._nxn_input_component._nxn_checkbox_two ._nxn_checkbox_label:hover {
    border-color: #7c86ff;
    box-shadow: 0 4px 12px rgba(124, 134, 255, 0.25);
}

body ._nxn_input_component._nxn_checkbox_two ._nxn_checkbox_label:has(._nxn_checkboxfield_input:checked) {
    border-color: #7c86ff;
    background: rgba(124, 134, 255, 0.1);
}

body ._nxn_checkbox_context h4,
body ._nxn_checkbox_context h5 {
    color: #111827;
}

body ._nxn_checkbox_context h5 {
    color: #9ca3af;
}

/* File Upload */
body ._nxn_file_group ._nxn_image_placeholder,
body ._nxn_file_group ._nxn_video_placeholder,
body ._nxn_file_group ._nxn_file_placeholder,
body ._nxn_file_empty {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
    color: #9ca3af;
}

body ._nxn_file_group ._nxn_image_placeholder:hover,
body ._nxn_file_group ._nxn_video_placeholder:hover,
body ._nxn_file_group ._nxn_file_placeholder:hover,
body ._nxn_file_empty:hover {
    background: #ffffff;
    border-color: #7c86ff;
}

/* Date/Time Picker */
body ._nxn_datetime_group {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
}

body ._nxn_datetime_display_modal ._nxn_display_datetime {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
    color: #111827;
}

body ._nxn_datetime_display_modal ._nxn_display_datetime.is_active {
    border-color: #7c86ff;
}

body ._nxn_datetime_display_modal ._nxn_display_datetime p {
    color: #9ca3af;
}

body .calendar__dates {
    background: rgba(255, 255, 255, 0.94);
}

body .calendar__date {
    color: #111827;
}

body .calendar__date.is_selected {
    background: #7c86ff;
    color: #111827;
}

body .calendar__date.is_range:not(.is_selected) {
    background: rgba(124, 134, 255, 0.2);
    color: #111827;
}

/* Table Components in Modal */
body ._nxn_modal_body ._nxn_container_table table {
    color: #111827;
}

body ._nxn_modal_body ._nxn_container_table table thead tr th {
    color: #111827;
    border-bottom-color: #e5e7eb;
}

body ._nxn_modal_body ._nxn_container_table table tbody tr td {
    color: #9ca3af;
    border-bottom-color: #e5e7eb;
}

/* Tabs */
body [role="tablist"]::after {
    background: #7c86ff;
}

body [role="tab"] {
    color: #9ca3af;
    border-bottom-color: #e5e7eb;
    background: transparent;
}

body [role="tab"]:hover {
    color: #7c86ff;
    background: rgba(124, 134, 255, 0.1);
}

body [role="tab"][aria-selected="true"] {
    color: #7c86ff;
    background: transparent;
}

/* Toast Notifications */
body ._nxn_toast_modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #e5e7eb;
    color: #111827;
}

body ._nxn_toast_title h3 {
    color: #111827;
}

body ._nxn_toast_description p {
    color: #9ca3af;
}

/* Popup */
body ._nxn_container_popup_body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #e5e7eb;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body ._nxn_menu_popup li a {
    color: #9ca3af;
}

body ._nxn_menu_popup li a:hover {
    background: rgba(124, 134, 255, 0.15);
    color: #111827;
}

/* Code Block */
body ._nxn_code_block ._nxn_code_block__header {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
    color: #111827;
}

/* Step/Wizard */
body ._nxn_control_step {
    background: rgba(255, 255, 255, 0.98);
}

body ._nxn_control_step::after {
    background: rgba(255, 255, 255, 0.98);
}

body ._nxn_step_item ._nxn_step_iconBox {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
    color: #9ca3af;
}

body ._nxn_step_item.is_active ._nxn_step_iconBox,
body ._nxn_step_item.is_completed ._nxn_step_iconBox {
    border-color: #7c86ff;
    color: #7c86ff;
}

body ._nxn_step_item ._nxn_step_context h3 {
    color: #9ca3af;
}

body ._nxn_step_item.is_active ._nxn_step_context h3,
body ._nxn_step_item.is_completed ._nxn_step_context h3 {
    color: #7c86ff;
}

body ._nxn_step_item ._nxn_step_context p {
    color: #6b7280;
}

/* Range Slider */
body ._nxn_container_range::before {
    background: rgba(42, 49, 66, 0.5);
}

body ._nxn_range_point ._progress_bar ._progress_line {
    background: #7c86ff;
}

body ._nxn_range_point ._progress_bar::before,
body ._nxn_range_point ._progress_bar::after {
    background: #7c86ff;
    box-shadow: 0 0 0 4px rgba(124, 134, 255, 0.2);
}

body ._nxn_range_point ._progress_bar ._progress_one,
body ._nxn_range_point ._progress_bar ._progress_two {
    color: #7c86ff;
}

/* OTP Input */
body ._nxn_otp_box {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e5e7eb;
}

body ._nxn_otp_box:has(._nxn_otpfield_input:focus) {
    border-color: #7c86ff;
}

body ._nxn_otpfield_input {
    color: #111827;
    background: transparent;
}

/* Status Badge */
body ._nxn_status {
    font-weight: 600;
}

body ._nxn_status.is_success {
    background: #10b981;
    color: #fff;
}

body ._nxn_status.is_error {
    background: #ef4444;
    color: #fff;
}

body ._nxn_status.is_warning {
    background: #f59e0b;
    color: #fff;
}

body ._nxn_status.is_info {
    background: #7c86ff;
    color: #fff;
}

/* Loading State */
body ._nxn_loadding {
    background: rgba(8, 15, 27, 0.9);
}

/* Scrollbar for Modal */
body ._nxn_modal_body::-webkit-scrollbar-thumb {
    background: rgba(124, 134, 255, 0.3);
    border-color: #111827;
}

body ._nxn_modal_body::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 134, 255, 0.5);
}

/* Additional Text Colors */
body .text-muted {
    color: #9ca3af !important;
}

body .text-success {
    color: #10b981 !important;
}

body .text-danger {
    color: #ef4444 !important;
}

body .text-warning {
    color: #f59e0b !important;
}

body .text-info {
    color: #7c86ff !important;
}

/* Row & Column in Modal */
body ._nxn_modal_body .row {
    margin: 0;
}

body ._nxn_modal_body .col-12 {
    padding: 0;
}

/* Margin/Padding Utilities */
body .mb-15 {
    margin-bottom: 15px;
}

body .mt-10 {
    margin-top: 10px;
}

body .fs-11 {
    font-size: 11px;
}

/* Group Button Checkout */
body ._group_btn_checkout {
    display: flex;
    gap: 12px;
}

body ._group_btn_checkout button {
    flex: 1;
}


/* ============================================
   MODERN RADIO & FORM ELEMENTS
============================================ */

/* Modern Radio Items */
body .modern-radio-item {
    position: relative;
}

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

body .modern-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.98);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.3s ease;
}

body .modern-radio-label:hover {
    border-color: #7c86ff;
    background: rgba(124, 134, 255, 0.1);
    color: #111827;
}

body .modern-radio-item input:checked + .modern-radio-label {
    border-color: #7c86ff;
    background: rgba(124, 134, 255, 0.15);
    color: #7c86ff;
    box-shadow: 0 0 0 3px rgba(124, 134, 255, 0.1);
}

/* Bank Deposit Tabs */
body .tab-bank-deposit {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 16px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
}

body .tab-bank-deposit:hover {
    border-color: #7c86ff;
    background: rgba(124, 134, 255, 0.1);
    color: #7c86ff;
}

body .tab-bank-deposit.active {
    border-color: #7c86ff;
    background: rgba(124, 134, 255, 0.15);
    color: #7c86ff;
}

/* Bank Grid & Cells */
body .home-bank-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

body .bank-cell {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

body .bank-cell:hover {
    border-color: #7c86ff;
    background: rgba(124, 134, 255, 0.05);
}

body .home-bank-qr img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Form Select Dropdown */
body select.form-control,
body select.modern-select {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    color: #111827;
    padding: 10px 16px;
    border-radius: 8px;
}

body select.form-control:focus,
body select.modern-select:focus {
    border-color: #7c86ff;
    box-shadow: 0 0 0 3px rgba(124, 134, 255, 0.1);
    outline: none;
}

body select.form-control option,
body select.modern-select option {
    background: #ffffff;
    color: #111827;
}

/* Additional Input Border Fix */
body input.form-control,
body textarea.form-control {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb !important;
    color: #111827;
}

body input.form-control:hover,
body textarea.form-control:hover {
    border-color: #d1d5db !important;
}

body input.form-control:focus,
body textarea.form-control:focus {
    border-color: #7c86ff !important;
    box-shadow: 0 0 0 3px rgba(124, 134, 255, 0.1);
    outline: none;
}

body input.form-control::placeholder,
body textarea.form-control::placeholder {
    color: #6b7280;
}

/* Payment Method Cards */
body .payment-method-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body .payment-method-card:hover {
    border-color: #7c86ff;
    background: rgba(124, 134, 255, 0.1);
}

body .payment-method-card.active {
    border-color: #7c86ff;
    background: rgba(124, 134, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(124, 134, 255, 0.1);
}

body .payment-method-card .payment-method-title {
    color: #111827;
    font-weight: 600;
}

body .payment-method-card .payment-method-desc {
    color: #9ca3af;
    font-size: 13px;
}

/* Radio Button Groups */
body .radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body .radio-group-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

/* Custom Radio Button */
body .custom-radio {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

body .custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
}

body .custom-radio .radio-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.98);
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

body .custom-radio:hover .radio-checkmark {
    border-color: #7c86ff;
}

body .custom-radio input[type="radio"]:checked ~ .radio-checkmark {
    border-color: #7c86ff;
    background: #7c86ff;
}

body .custom-radio input[type="radio"]:checked ~ .radio-checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

body .custom-radio .radio-label {
    color: #9ca3af;
    font-size: 14px;
    transition: color 0.3s ease;
}

body .custom-radio input[type="radio"]:checked ~ .radio-label {
    color: #111827;
}

/* Checkbox Custom */
body .custom-checkbox {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

body .custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

body .custom-checkbox .checkbox-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.98);
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

body .custom-checkbox:hover .checkbox-checkmark {
    border-color: #7c86ff;
}

body .custom-checkbox input[type="checkbox"]:checked ~ .checkbox-checkmark {
    border-color: #7c86ff;
    background: #7c86ff;
}

body .custom-checkbox input[type="checkbox"]:checked ~ .checkbox-checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body .custom-checkbox .checkbox-label {
    color: #9ca3af;
    font-size: 14px;
    transition: color 0.3s ease;
}

body .custom-checkbox input[type="checkbox"]:checked ~ .checkbox-label {
    color: #111827;
}


/* Modern Tab Buttons */
body .modern-tab-btn {
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb !important;
    background: rgba(255, 255, 255, 0.98);
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s ease;
}

body .modern-tab-btn:hover {
    border-color: #7c86ff !important;
    background: rgba(124, 134, 255, 0.1);
    color: #111827;
}

body .modern-tab-btn.is-active {
    background: rgba(124, 134, 255, 0.15);
    border-color: #7c86ff !important;
    color: #7c86ff;
    box-shadow: 0 0 0 3px rgba(124, 134, 255, 0.1);
}


/* Override core.css input group border states with higher specificity */
body ._nxn_input_group:not(:has(._nxn_valid)):not(:has(._nxn_invalid)):has(._nxn_textfield_input:not(:focus)),
body ._nxn_input_group:not(:has(._nxn_valid)):not(:has(._nxn_invalid)):hover:has(._nxn_select_input:not(:focus)),
body ._nxn_input_group:not(:has(._nxn_valid)):not(:has(._nxn_invalid)):has(._nxn_textareafield_input:not(:focus):hover),
body ._nxn_input_group:not(:has(._nxn_valid)):not(:has(._nxn_invalid)):hover:has(._nxn_codefield_input:not(:focus)),
body ._nxn_input_group:not(:has(._nxn_valid)):not(:has(._nxn_invalid)):has(._nxn_editor_input:not(.focused):hover),
body ._nxn_input_group:not(:has(._nxn_valid)):not(:has(._nxn_invalid)):hover:has(._nxn_numberfield_input:not(:focus)),
body ._nxn_otp_box:not(:has(._nxn_valid)):not(:has(._nxn_invalid)):hover:has(._nxn_otpfield_input:not(:focus)),
body ._nxn_input_group:not(:has(._nxn_valid)):not(:has(._nxn_invalid)):hover:has(._nxn_textfield_input:not(:focus)) ._input_border_line,
body ._nxn_input_group:not(:has(._nxn_valid)):not(:has(._nxn_invalid)):hover:has(._nxn_numberfield_input:not(:focus)) ._input_border_line {
    border-color: #d1d5db !important;
}

/* Ensure valid state border */
body ._nxn_input_group:has(._nxn_valid),
body ._nxn_file_group:has(._nxn_valid),
body ._nxn_input_component > ._nxn_datetime_group:has(._nxn_valid),
body ._nxn_input_component:has(._nxn_valid) > ._nxn_datetime_display_modal ._nxn_display_datetime,
body ._nxn_otp_group:has(._nxn_otp_box ._nxn_valid) ._nxn_otp_box,
body ._nxn_input_component:has(._nxn_valid) ._input_border_line {
    border-color: #10b981 !important;
}

/* Ensure invalid state border */
body ._nxn_input_group:has(._nxn_invalid),
body ._nxn_file_group:has(._nxn_invalid),
body ._nxn_input_component > ._nxn_datetime_group:has(._nxn_invalid),
body ._nxn_input_component:has(._nxn_invalid) > ._nxn_datetime_display_modal ._nxn_display_datetime,
body ._nxn_otp_group:has(._nxn_invalid) ._nxn_otp_box,
body ._nxn_input_component:has(._nxn_invalid) ._input_border_line {
    border-color: #ef4444 !important;
}


/* ============================================
   PRODUCT GRID RESPONSIVE
============================================ */

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

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

    .search-page-section .related-products-grid._minigame5_container {
        grid-template-columns: 1fr 1fr;
    }
    
    :is(.products-section .product-card, .categories-page .product-card, .search-page-section .related-products-grid .product-card) {
        padding: 6px;
    }
    
    :is(.products-section .product-content, .categories-page .product-content, .search-page-section .related-products-grid .product-info) {
        padding: 10px 6px 6px;
        gap: 6px;
    }
}


/* ============================================
   MOBILE NAVIGATION & SIDEBAR DARK THEME
============================================ */

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid #e5e7eb;
}

.mobile-bottom-nav .mobile-nav-container {
    background: transparent;
}

.mobile-bottom-nav .mobile-nav-item {
    color: #9ca3af;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
}

.mobile-bottom-nav .mobile-nav-item:hover {
    background: rgba(124, 134, 255, 0.1);
    border-color: #7c86ff;
    color: #111827;
}

.mobile-bottom-nav .mobile-nav-item.mobile-nav-primary {
    background: linear-gradient(135deg, #7c86ff 0%, #6366f1 100%);
    color: #ffffff;
    border-color: #7c86ff;
}

.mobile-bottom-nav .mobile-nav-item small {
    color: inherit;
}

.sidebar-menu {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-left: 1px solid #e5e7eb;
}

.sidebar-menu.is-open {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.sidebar-menu-header {
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.sidebar-close {
    color: #7c86ff;
    background: transparent;
}

.sidebar-close:hover {
    color: #111827;
}

.account-logout {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    color: #ef4444;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-link:hover {
    background: rgba(239, 68, 68, 0.08);
    transform: translateX(4px);
}

.logout-link svg {
    color: inherit;
}

.sidebar-menu-body {
    background: transparent;
}

.sidebar-menu-body a,
.sidebar-menu-body .menu-item {
    color: #9ca3af;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.sidebar-menu-body a:hover,
.sidebar-menu-body .menu-item:hover {
    background: rgba(124, 134, 255, 0.1);
    color: #111827;
}

.sidebar-menu-body a.active,
.sidebar-menu-body .menu-item.active {
    background: rgba(124, 134, 255, 0.15);
    color: #7c86ff;
}

/* Sidebar Item */
.sidebar-item {
    color: #9ca3af !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background: rgba(124, 134, 255, 0.1) !important;
    border-color: #7c86ff;
    color: #111827 !important;
}

.sidebar-item.active {
    background: rgba(124, 134, 255, 0.15) !important;
    border-color: #7c86ff;
    color: #7c86ff !important;
}

/* Logout Special Item */
.sidebar-item.is-logout {
    margin-top: 15px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 15px;
    border-radius: 0;
    color: #ef4444 !important;
}

.sidebar-item.is-logout:hover {
    background: rgba(239, 68, 68, 0.05) !important;
    border-color: #ef4444;
}

.sidebar-item.is-logout svg {
    color: inherit;
}

/* Sidebar Backdrop */
.sidebar-backdrop {
    background: rgba(8, 15, 27, 0.85) !important;
}

.sidebar-backdrop.is-open {
    background: rgba(8, 15, 27, 0.85) !important;
}

/* Status Login Container */
._nxn_status_login {
    background: transparent;
}

._nxn_status_login.is_login {
    background: transparent;
}

/* Mobile Overlay */
.mobile-overlay,
.sidebar-overlay {
    background: rgba(8, 15, 27, 0.85);
}

/* Mobile Sidebar Header/Profile Block */
@media (max-width: 1024px) {
.sidebar-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 2px 2px 4px;
    border-bottom: 0;
}

.sidebar-mobile-logo {
    display: inline-flex;
    align-items: center;
}

.sidebar-mobile-logo img {
    height: 30px;
    width: auto;
    display: block;
}

.sidebar-mobile-close {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 2px solid rgba(99, 102, 241, 0.88);
    background: rgba(99, 102, 241, 0.08);
    color: #8f97ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.sidebar-mobile-profile {
    margin-bottom: 14px;
}

.sidebar-mobile-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 14px;
}

.sidebar-mobile-profile._nxn_status_login .sidebar-mobile-card._has_login {
    display: none;
}

.sidebar-mobile-profile._nxn_status_login.is_login .sidebar-mobile-card._has_login {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sidebar-mobile-profile._nxn_status_login .sidebar-mobile-card._no_login {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.sidebar-mobile-profile._nxn_status_login.is_login .sidebar-mobile-card._no_login {
    display: none !important;
}

.sidebar-mobile-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.sidebar-mobile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(124, 134, 255, 0.12);
    color: #7c86ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-mobile-user-info {
    min-width: 0;
}

.sidebar-mobile-user-info strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-mobile-user-info span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.2;
}

.sidebar-mobile-card._no_login .sidebar-mobile-user-info strong {
    font-size: 14px;
}

.sidebar-mobile-card._no_login .sidebar-mobile-user-info span {
    max-width: 220px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.35;
}

.sidebar-mobile-quick {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.sidebar-mobile-quick-btn {
    height: 46px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    transition: all 0.2s ease;
}

.sidebar-mobile-quick-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar-mobile-quick-btn.is-primary {
    background: linear-gradient(135deg, #7c86ff 0%, #6b76e8 100%);
    border-color: rgba(124, 134, 255, 0.8);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 134, 255, 0.3);
}

.sidebar-mobile-quick-btn.is-primary:hover {
    background: linear-gradient(135deg, #8b96ff 0%, #7c86ff 100%);
    box-shadow: 0 6px 16px rgba(124, 134, 255, 0.4);
    transform: translateY(-1px);
}
}


/* ============================================
   AUTH MODAL (LOGIN/REGISTER) DARK THEME
============================================ */

/* Auth Modal Container */
.auth-modal {
    background: transparent;
    padding: 24px 24px 28px;
}

/* Auth Header */
.auth-header {
    border-left: 4px solid #7c86ff;
    padding-left: 12px;
    margin-bottom: 18px;
}

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

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

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Auth Input Group */
.auth-input-group {
    margin-bottom: 0;
}

.auth-input-group ._nxn_input_component {
    margin-bottom: 0;
}

.auth-input-group ._nxn_input_group {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb !important;
}

.auth-input-group ._nxn_input_group:hover {
    border-color: #d1d5db !important;
}

.auth-input-group ._nxn_input_group:focus-within {
    border-color: #7c86ff !important;
    box-shadow: 0 0 0 3px rgba(124, 134, 255, 0.1);
}

.auth-input-group ._nxn_input_start,
.auth-input-group ._nxn_input_end {
    color: #9ca3af;
}

.auth-input-group ._nxn_textfield_input,
.auth-input-group ._nxn_validator_input {
    color: #111827;
    background: transparent;
}

.auth-input-group ._nxn_textfield_input::placeholder,
.auth-input-group ._nxn_validator_input::placeholder {
    color: #6b7280;
}

/* Auth Label */
.auth-label {
    color: #111827;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

/* Auth Button */
.btn-auth-primary {
    background: linear-gradient(135deg, #7c86ff 0%, #6366f1 100%);
    border: 0;
    color: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 6px;
}

.btn-auth-primary:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 8px 24px rgba(124, 134, 255, 0.4);
    transform: translateY(-2px);
}

.btn-auth-primary:active {
    transform: translateY(0);
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #6b7280;
    font-size: 12px;
}

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

.auth-divider span {
    color: #9ca3af;
}

/* Social Login Buttons */
.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: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.98);
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: #7c86ff;
    background: rgba(124, 134, 255, 0.1);
    transform: translateY(-2px);
}

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

/* Auth Footer */
.auth-footer {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.auth-footer a {
    color: #7c86ff;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #8b95ff;
}

/* Forgot Password Link */
.auth-input-group a._nxn_color_info {
    color: #7c86ff;
    font-size: 13px;
}

.auth-input-group a._nxn_color_info:hover {
    color: #8b95ff;
}

/* Terms Text */
.auth-modal .text-gray-400 {
    color: #9ca3af !important;
}

.auth-modal .text-primary {
    color: #7c86ff !important;
}

.auth-modal .text-primary:hover {
    color: #8b95ff !important;
}

/* Input Description */
.auth-input-group ._nxn_input_description {
    color: #9ca3af;
    font-size: 12px;
}

.auth-input-group ._nxn_input_description a {
    color: #7c86ff;
}

/* Validation Messages */
.auth-input-group ._nxn_input_message p {
    color: #9ca3af;
    font-size: 12px;
}

.auth-input-group ._nxn_input_component:has(._nxn_valid) ._nxn_message_valid {
    color: #10b981;
}

.auth-input-group ._nxn_input_component:has(._nxn_invalid) ._nxn_message_invalid {
    color: #ef4444;
}

/* Valid/Invalid Input States */
.auth-input-group ._nxn_input_group:has(._nxn_valid) {
    border-color: #10b981 !important;
}

.auth-input-group ._nxn_input_group:has(._nxn_invalid) {
    border-color: #ef4444 !important;
}


/* Force table-search border with higher specificity */
.table-search-bar .table-search,
.table-wrapper .table-search,
input.table-search,
input[type="text"].table-search {
    border: 1px solid #e5e7eb !important;
    background: rgba(255, 255, 255, 0.98) !important;
    color: #111827 !important;
}

.table-search-bar .table-search:hover,
.table-wrapper .table-search:hover,
input.table-search:hover,
input[type="text"].table-search:hover {
    border-color: #d1d5db !important;
}

.table-search-bar .table-search:focus,
.table-wrapper .table-search:focus,
input.table-search:focus,
input[type="text"].table-search:focus {
    border-color: #7c86ff !important;
    box-shadow: 0 0 0 3px rgba(124, 134, 255, 0.15) !important;
    outline: none !important;
}

.table-search-bar .table-search::placeholder,
.table-wrapper .table-search::placeholder,
input.table-search::placeholder,
input[type="text"].table-search::placeholder {
    color: #9ca3af !important;
}


/* ============================================
   ENHANCED AUTH MODAL & STATUS PAGES - TEMPLATE 6
============================================ */

/* Auth Modal - Additional Utility Classes */
.auth-modal .text-xs {
    font-size: 12px;
}

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

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

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

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

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

/* Status Message - Enhanced Styles */
.status-message.status-expired,
.status-message.status-locked {
    padding: 50px 18px;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e5e7eb;
}

.status-message .status-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(124, 134, 255, 0.2);
    transition: all 0.3s ease;
}

.status-message.status-expired .status-icon {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.status-message.status-locked .status-icon {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.status-message .status-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    line-height: 1.2;
}

.status-message .status-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 auto 24px;
    max-width: 520px;
}

/* Account Support Button */
.account-support-btn {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.account-support-btn .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    border: 1px solid #7c86ff;
    background: linear-gradient(135deg, #7c86ff 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(124, 134, 255, 0.3);
}

.account-support-btn .btn:hover {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    box-shadow: 0 6px 20px rgba(124, 134, 255, 0.4);
    transform: translateY(-2px);
}

.account-support-btn .btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.account-support-btn .btn-block {
    width: 100%;
    max-width: 320px;
}

.account-support-btn .btn-primary {
    border-color: #7c86ff;
    background: linear-gradient(135deg, #7c86ff 0%, #6366f1 100%);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .status-message .status-icon {
        width: 80px;
        height: 80px;
    }

    .status-message .status-title {
        font-size: 20px;
    }

    .status-message .status-description {
        font-size: 13px;
    }

    .account-support-btn .btn {
        min-height: 44px;
        font-size: 14px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .status-message {
        padding: 40px 16px;
    }

    .status-message .status-icon {
        width: 72px;
        height: 72px;
    }

    .status-message .status-title {
        font-size: 18px;
    }

    .status-message .status-description {
        font-size: 12px;
    }

    .account-support-btn .btn {
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================
   TEMPLATE 6 - MOBILE FILTER/HEADER TUNING
============================================ */

.filters-mobile-toggle {
    display: none;
}

.search-page-section.nickgame-catalog-page .filter-actions-row input[type="hidden"] {
    display: none !important;
}

.seo-container {
    position: absolute;
    inset: auto auto 0 0;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .header-actions ._has_login.btn-header.header-account-trigger {
        height: 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        flex: 0 0 44px !important;
        border-radius: 12px !important;
        padding: 0 !important;
        gap: 0 !important;
        justify-content: center !important;
    }

    .header-actions ._has_login.btn-header.header-account-trigger .header-account-trigger-icon {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (max-width: 480px) {
    .header-actions ._has_login.btn-header.header-account-trigger {
        min-width: 128px !important;
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
        border-radius: 12px !important;
        padding: 0 !important;
    }

    .header-actions ._has_login.btn-header.header-account-trigger .header-account-trigger-icon {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (max-width: 991px) {
    .search-page-section.nickgame-catalog-page .search-filters-container {
        position: static !important;
        left: auto;
        right: auto;
        top: auto;
        max-height: none;
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .search-page-section.nickgame-catalog-page .search-filters-form {
        display: flex;
        flex-direction: column;
    }

    .search-page-section.nickgame-catalog-page .filters-row {
        overflow: visible;
        padding-right: 0;
    }

    .search-page-section.nickgame-catalog-page .filter-actions-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .search-page-section.nickgame-catalog-page .filter-actions-row ._nxn_btn {
        width: 100%;
        justify-content: center;
    }

    .search-page-section.nickgame-catalog-page .filters-mobile-toggle {
        width: 100%;
        margin-top: 10px;
        min-height: 38px;
        border-radius: 10px;
        border: 1px solid #d1d5db;
        background: #ffffff;
        color: #111827;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .search-page-section.nickgame-catalog-page .search-filters-container .search-filters-form {
        display: none;
    }

    .search-page-section.nickgame-catalog-page .search-filters-container:not(.is-collapsed) .search-filters-form {
        display: flex;
    }
}
