/* ============================================
   TEMPLATE 3 - KAMIKEY STYLE
   Primary Color: #ef1443 (Hồng/Đỏ)
   Background: White
============================================ */

/* ============================================
   CSS VARIABLES
============================================ */
:root {
    --primary-color: #ef1443;
    --primary-hover: #d41239;
    --primary-light: #fef0f3;
    --primary-dark: #b80e33;
    
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --text-white: #ffffff;
    
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --bg-gray: #eeeeee;
    --bg-dark: #333333;
    
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.3s ease;
    
    --container-width: 1200px;
    --header-height: 60px;
    --nav-height: 50px;
}

/* ============================================
   RESET & BASE
============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* ============================================
   CONTAINER
============================================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   HEADER - White Background Style
============================================ */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Logo */
.header-logo {
    flex-shrink: 0;
}

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

/* Search Bar */
.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary-color);
}

.search-input {
    flex: 1;
    height: 40px;
    padding: 0 15px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
}

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

.search-btn {
    width: 46px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--text-white);
    transition: var(--transition);
}

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

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

.btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-header svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-login {
    color: var(--text-dark);
}

.btn-login:hover {
    color: var(--primary-color);
}

.btn-cart {
    background: var(--primary-color);
    color: var(--text-white);
    white-space: nowrap;
    flex-shrink: 0;
}

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

/* Login State */
._nxn_status_login ._has_login {
    display: none;
}

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

._nxn_status_login._is_login ._has_login,
._nxn_status_login.is_login ._has_login {
    display: flex;
}

/* ============================================
   NAVIGATION - Pink Background Style
============================================ */
.nav {
    background: var(--primary-color);
    position: sticky;
    top: var(--header-height);
    z-index: 999;
}

.nav-content {
    display: flex;
    align-items: center;
    height: var(--nav-height);
    gap: 0;
}

/* Category Dropdown Button */
.nav-category-wrapper {
    position: relative;
}

.nav-category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--nav-height);
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-category-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-category-wrapper:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Category Dropdown Panel */
.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: var(--bg-white);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.nav-category-wrapper:hover .category-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
}

.dropdown-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.view-all {
    font-size: 13px;
    color: var(--primary-color);
}

.view-all:hover {
    text-decoration: underline;
}

.dropdown-body {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-section {
    margin-bottom: 15px;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 10px;
}

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

.section-count {
    margin-left: auto;
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.dropdown-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-light);
}

.dropdown-item img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.dropdown-item span {
    font-size: 13px;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--nav-height);
    padding: 0 20px;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nav-item svg {
    display: none; /* Hide icons in nav menu for cleaner look */
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--text-gray);
    font-size: 11px;
    text-align: center;
}

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
}

.mobile-nav-item.mobile-nav-primary {
    color: var(--primary-color);
    position: relative;
}

.mobile-nav-item.mobile-nav-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
}

.mobile-nav-item.mobile-nav-primary {
    color: var(--text-white);
    margin-top: -15px;
}

/* ============================================
   HERO / BANNER SECTION - KAMIKEY STYLE
============================================ */
.hero-section {
    padding: 25px 0 40px;
    background: var(--bg-white);
}

/* Main Hero Layout: Vertical Nav + Banner + Sidebar */
.hero-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr 310px;
    gap: 20px;
    margin-bottom: 30px;
}

/* Side Navigation on Hero */
.hero-side-nav {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.side-nav-header {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 15px;
}

.side-nav-body {
    padding: 8px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.side-nav-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 12px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s ease;
}

.side-nav-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    padding-left: 25px;
}

.side-nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
}

.side-nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-nav-label {
    flex: 1;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-nav-arrow {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    color: var(--primary-color);
}

.side-nav-item:hover .side-nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

.side-nav-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 15px;
}

.side-nav-footer {
    margin-top: auto;
    padding: 12px 20px;
    text-align: center;
    background: var(--bg-light);
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.side-nav-footer:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Main Banner Slider */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 380px;
}

.hero-banner-slide {
    position: relative;
    width: 100%;
    height: 380px;
}

.hero-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: var(--text-white);
}

.hero-banner-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-banner-desc {
    font-size: 14px;
    opacity: 0.9;
    max-width: 500px;
}

/* Banner Navigation Dots */
.hero-banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-banner-dot.active,
.hero-banner-dot:hover {
    background: var(--text-white);
    transform: scale(1.2);
}

/* Sidebar Banners */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-sidebar-banner {
    position: relative;
    height: calc(50% - 7.5px);
    min-height: 180px;
    flex: 1;
}

.hero-sidebar-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-sidebar-banner:hover img {
    transform: scale(1.05);
}

.hero-sidebar-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.hero-sidebar-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    z-index: 2;
    color: var(--text-white);
}

.hero-sidebar-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.hero-sidebar-badge {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-color);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
}

/* Quick Category Cards */
.hero-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.hero-category-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.hero-category-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.hero-category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.hero-category-icon svg {
    width: 24px;
    height: 24px;
}

.hero-category-info {
    flex: 1;
    min-width: 0;
}

.hero-category-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.hero-category-count {
    font-size: 12px;
    color: var(--text-gray);
}

/* Alternative Hero - Text + Image Layout */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    padding-right: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b8a 50%, #ffa500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 450px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--primary-color);
    color: var(--text-white);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-hero-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 20, 67, 0.35);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: transparent;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.btn-hero-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b8a, #ffa500);
    border-radius: calc(var(--radius-lg) + 3px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-image-wrapper:hover::before {
    opacity: 1;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating Cards */
.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    animation: float 3s ease-in-out infinite;
}

.hero-float-card.card-1 {
    top: 15%;
    left: -40px;
    animation-delay: 0s;
}

.hero-float-card.card-2 {
    bottom: 15%;
    right: -40px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-icon {
    font-size: 30px;
}

.float-text {
    display: flex;
    flex-direction: column;
}

.float-text strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.float-text span {
    font-size: 12px;
    color: var(--text-light);
}

/* ============================================
   STATS SECTION
============================================ */
.stats-section {
    padding: 40px 0;
    background: var(--bg-light);
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
}

/* ============================================
   SECTION COMMONS
============================================ */
.section {
    padding: 50px 0;
}

.section-header {
    margin-bottom: 30px;
}

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

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-gray);
}

/* ============================================
   FEATURES SECTION
============================================ */
.features-section {
    background: var(--bg-white);
}

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

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
}

.feature-icon.icon-blue {
    background: #e8f4fd;
    color: #2196f3;
}

.feature-icon.icon-green {
    background: #e8f5e9;
    color: #4caf50;
}

.feature-icon.icon-orange {
    background: #fff3e0;
    color: #ff9800;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ============================================
   PRODUCTS SECTION
============================================ */
.products-section {
    background: var(--bg-light);
}

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

.product-card {
    position: relative;
    background: var(--bg-white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

/* Product Image */
.product-image {
    min-height: 50px;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

/* Product Badge - Corner Style */
.product-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 16px 6px 10px;
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
}

.product-badge.game {
    background: #6366f1;
}

.product-badge.sale {
    background: var(--primary-color);
}

/* Product Views Counter */
.product-views {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    z-index: 2;
}

.product-views svg {
    width: 14px;
    height: 14px;
}

/* Product Content */
.product-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Product Meta */
.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.product-category {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg-light);
    color: var(--text-gray);
    font-size: 10px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
}

.product-price-wrapper {
    text-align: right;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
}



/* Product Info - Alternative styling */
.product-info {
    padding: 15px;
}

.sold-count {
    color: var(--text-gray);
    font-size: 12px;
}

/* ============================================
   TABS
============================================ */
.tabs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.tabs-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.tabs-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tab-btn {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-light);
}

/* ============================================
   FOOTER
============================================ */
/* ============================================
   FOOTER - LIGHT THEME
   Clean, Kamikey Style
============================================ */

.footer {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-light);
}

/* Footer Content Grid - 2 Column Layout */
.footer-content {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 25px;
    padding: 60px 0 50px;
}

@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 3fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

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

@media (max-width: 768px) {
    .footer {
        padding: 48px 0 0;
    }

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

    .footer-links a:hover {
        transform: none;
    }

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

    .footer-links {
        align-items: flex-start;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .footer-content {
        padding: 10px 0 50px;
    }
}



/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo span {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.footer-logo span:first-child {
    display: block;
    width: 4px;
    margin-right: 8px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Footer Title */
.footer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.footer-title span:first-child {
    display: block;
    width: 4px;
    margin-right: 8px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-title::after {
    display: none;
}

/* Footer Description */
.footer-desc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-desc p {
    font-size: 14px;
    color: var(--text-gray);
    transition: var(--transition);
    position: relative;
    padding-left: 0;
    text-align: left;
}

/* Footer Social Links */
.footer-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-gray);
    font-size: 18px;
    transition: var(--transition);
}

.footer-social:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
    transition: var(--transition);
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    color: var(--primary-color);
    font-weight: bold;
}

/* Link Hover Effect */
.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Bottom */
.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
}

/* ============================================
   FIXED ELEMENTS - SCROLL TO TOP & SUPPORT
============================================ */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(239, 20, 67, 0.4);
}

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

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

.scroll-to-top:hover {
    background: #d10f38;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(239, 20, 67, 0.5);
}

/* Support Widget */
.support-widget {
    position: fixed;
    bottom: 160px;
    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;
    animation: pulse-messenger 2s infinite;
}

.support-widget .btn-messenger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 106, 255, 0.5);
}

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

@keyframes pulse-messenger {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 106, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 106, 255, 0.6);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 90px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
    
    .support-widget {
        bottom: 145px;
        right: 15px;
    }
    
    .support-widget .btn-messenger {
        width: 46px;
        height: 46px;
    }
    
    .support-widget .btn-messenger svg {
        width: 36px;
        height: 36px;
    }
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* ============================================
   UTILITIES
============================================ */
.text-center {
    text-align: center;
}

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

.bg-light {
    background: var(--bg-light);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* ============================================
   RESPONSIVE - EXTRA LARGE DESKTOP (1500px)
============================================ */
@media (max-width: 1500px) {
    .container {
        max-width: 1400px;
    }
}

/* ============================================
   RESPONSIVE - LARGE DESKTOP (1320px)
============================================ */
@media (max-width: 1320px) {
    .container {
        max-width: 1280px;
        padding: 0 20px;
    }

    .product-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-categories {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1120px) {
    .hero-wrapper {
        grid-template-columns: 280px 1fr 250px;
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (1300px)
============================================ */
@media (max-width: 1300px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .nav-item {
        padding: 0 16px;
        font-size: 13px;
    }
    
    .header-search {
        max-width: 400px;
    }
    
    .category-dropdown {
        min-width: 280px;
    }
}

/* ============================================
   RESPONSIVE - TABLET (1024px)
============================================ */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
    
    /* Hero - Stack sidebar below banner */
    .hero-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-side-nav {
        display: none;
    }
    
    .hero-sidebar {
        flex-direction: row;
    }
    
    .hero-sidebar-banner {
        height: 200px;
        min-height: auto;
    }
    
    .hero-banner {
        min-height: 320px;
    }
    
    .hero-banner-slide {
        height: 320px;
    }
    
    .hero-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 550px;
        margin: 0 auto;
    }
    
    .hero-float-card {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .nav-item svg {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - TABLET SMALL (991px)
============================================ */
@media (max-width: 991px) {
    .hero-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .hero-category-card {
        padding: 15px;
    }
    
    .hero-category-icon {
        width: 45px;
        height: 45px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
}

/* ============================================
   RESPONSIVE - MOBILE (768px)
============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
        --nav-height: 0px;
    }
    
    .header-search {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    /* Hide deposit button in header on mobile (already in bottom nav) */
    .btn-cart {
        display: none;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 20px 0 30px;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .hero-side-nav {
        display: none;
    }
    
    .hero-banner {
        min-height: 220px;
    }
    
    .hero-banner-slide {
        height: 220px;
    }
    
    .hero-banner-content {
        padding: 20px;
    }
    
    .hero-banner-title {
        font-size: 20px;
    }
    
    .hero-banner-desc {
        font-size: 12px;
    }
    
    .hero-sidebar {
        flex-direction: row;
        gap: 10px;
    }
    
    .hero-sidebar-banner {
        height: 120px;
        min-height: auto;
    }
    
    .hero-sidebar-content {
        padding: 10px;
    }
    
    .hero-sidebar-title {
        font-size: 12px;
    }
    
    .hero-sidebar-badge {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .hero-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .hero-category-card {
        padding: 12px;
        gap: 10px;
    }
    
    .hero-category-icon {
        width: 40px;
        height: 40px;
    }
    
    .hero-category-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .hero-category-title {
        font-size: 13px;
    }
    
    .hero-category-count {
        font-size: 11px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .hero-float-card {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .section {
        padding: 35px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
    }
    
    .feature-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .feature-title {
        font-size: 15px;
    }
    
    .feature-desc {
        font-size: 12px;
    }
    
    .product-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-content {
        padding: 12px;
    }
    

    
    .tabs-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .footer-col:first-child {
        flex: none;
        max-width: none;
        text-align: center;
    }
    
    .footer-col:not(:first-child) {
        flex: none;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-title::after {
        display: none;
    }
    
    /* Add padding for mobile bottom nav */
    body {
        padding-bottom: 80px;
    }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE (576px)
============================================ */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 26px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .btn-hero-primary {
        padding: 12px 22px;
        font-size: 14px;
    }
    
    .stats-grid {
        gap: 10px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-icon {
        width: 42px;
        height: 42px;
    }
    
    .stat-number {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .product-grid,
    .products-grid {
        gap: 10px;
    }
    
    .product-content {
        padding: 10px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 13px;
    }
    
    .product-meta {
        font-size: 11px;
    }
}

/* ============================================
   RESPONSIVE - EXTRA SMALL MOBILE (480px)
============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .hero-section {
        padding: 25px 0;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-description {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .btn-hero-primary {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        gap: 8px;
    }
    
    .stat-item {
        padding: 10px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .stat-icon {
        width: 38px;
        height: 38px;
    }
    
    .stat-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .stat-number {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .features-grid {
        gap: 10px;
    }
    
    .feature-card {
        padding: 15px 10px;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 15px;
    }
    
    .feature-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .feature-title {
        font-size: 13px;
    }
    
    .feature-desc {
        font-size: 11px;
    }
    
    .product-grid,
    .products-grid {
        gap: 8px;
    }
    
    .product-content {
        padding: 10px;
    }
    

    
    .product-info {
        padding: 10px;
    }
    
    .product-title {
        font-size: 12px;
    }
    
    .product-meta {
        font-size: 10px;
    }
    
    .tabs-title {
        font-size: 18px;
    }
    
    .tab-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .footer-title {
        font-size: 14px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-about {
        font-size: 12px;
    }
}

/* ============================================
   RESPONSIVE - VERY SMALL MOBILE (380px)
============================================ */
@media (max-width: 380px) {
    .container {
        padding: 0 10px;
    }
    
    .section {
        padding: 25px 0;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-description {
        font-size: 12px;
    }
    
    .hero-badge {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .btn-hero-primary {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .stat-item {
        padding: 8px;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
    }
    
    .stat-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .stat-number {
        font-size: 14px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .section-subtitle {
        font-size: 12px;
    }
    
    .features-grid {
        gap: 8px;
    }
    
    .feature-card {
        padding: 12px 8px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
    }
    
    .feature-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .feature-title {
        font-size: 12px;
    }
    
    .feature-desc {
        font-size: 10px;
    }
    
    .product-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .product-content {
        padding: 8px;
    }
    
    .product-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .product-views {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    .product-title {
        font-size: 11px;
    }
    
    .product-meta {
        font-size: 9px;
    }
    
    .tabs-title {
        font-size: 16px;
    }
    
    .tab-btn {
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .footer-title {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .footer-links a {
        font-size: 11px;
    }
    
    .footer-about {
        font-size: 11px;
    }
    
    .footer-bottom {
        font-size: 11px;
    }
    
    /* Mobile bottom nav compact */
    .mobile-nav-item {
        padding: 6px 8px;
        font-size: 10px;
    }
    
    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   SCROLLBAR
============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ============================================
   HEADER NAV WRAPPER
============================================ */
.header-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-nav-wrapper .header {
    position: relative;
    top: auto;
}

.header-nav-wrapper .nav {
    position: relative;
    top: auto;
}

/* ============================================
   CATEGORIES PAGE - TEMPLATE 3
   Unique Design: Hero Banner with Image
============================================ */

.categories-page {
    padding: 0 0 60px;
    background: var(--bg-light);
}

/* Hero Banner with Image */
.categories-hero {
    position: relative;
    padding: 60px 0 80px;
    margin-bottom: -40px;
    overflow: hidden;
    background: #1a1a2e;
}

.categories-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.categories-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

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

.categories-page .section-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.categories-page .section-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Categories Tabs - Segment Control Style */
.categories-tabs {
    display: inline-flex;
    gap: 0;
    margin: 50px auto 40px;
    padding: 4px;
    background: var(--bg-white);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-item:hover {
    color: var(--text-dark);
}

.tab-item.active {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(239, 20, 67, 0.25);
}

.tab-item svg {
    width: 18px;
    height: 18px;
}

.tab-count {
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.tab-item.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
}

/* Categories Content */
.categories-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Section Header Inline */
.section-header-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-title-sm {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

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

.section-count {
    font-size: 14px;
    color: var(--text-gray);
    padding: 6px 14px;
    background: var(--bg-white);
    border-radius: var(--radius-full);
}

/* Categories Grid - 4 columns */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ============================================
   CATEGORY CARD - KAMIKEY STYLE
   Clean, White Card, Image Top + Info Below
============================================ */

.category-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* Card Image */
.category-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-light);
}

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

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

/* Category Badge */
.category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    background: var(--primary-color);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-md);
    z-index: 2;
}

.minigame-card .category-badge {
    background: #6366f1;
}

/* Card Body */
.category-card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price */
.category-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.price-label {
    font-size: 13px;
    color: var(--text-gray);
}

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

/* Meta Info */
.category-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-gray);
}

.meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--text-light);
}

.meta-item.sold {
    color: #10b981;
}

/* Rating */
.category-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.stars {
    color: #f59e0b;
    font-size: 12px;
    letter-spacing: -1px;
}

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

/* Card Action */
.category-card-action {
    padding: 0 15px 15px;
}

.btn-explore {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn-explore:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-state svg {
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 15px;
    color: var(--text-gray);
}

/* ============================================
   CATEGORIES RESPONSIVE
============================================ */

@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .section-title-sm {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .categories-page {
        padding: 0 0 40px;
    }
    
    .categories-hero {
        padding: 40px 0 60px;
        margin-bottom: -30px;
    }
    
    .categories-page .section-title {
        font-size: 24px;
    }
    
    .categories-page .section-subtitle {
        font-size: 14px;
    }
    
    .categories-tabs {
        display: flex;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        margin-bottom: 25px;
        padding: 4px;
        white-space: nowrap;
    }
    
    .tab-item {
        padding: 10px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }

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

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-card-body {
        padding: 12px 15px;
        justify-content: center;
    }
    
    .category-card-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .category-card-action {
        display: none;
    }
    
    .section-header-inline {
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    
    .category-card-body {
        padding: 10px 12px;
    }
    
    .category-card-title {
        font-size: 13px;
    }
    
    .meta-item {
        font-size: 11px;
    }
    
    .price-value {
        font-size: 14px;
    }
    
    .category-badge {
        padding: 4px 8px;
        font-size: 10px;
    }
}
/* ============================================
   MINIGAME STYLES - TEMPLATE 3
   Kamikey Style: Clean, Interactive
============================================ */

.section-minigame {
    padding: 30px 0 60px;
    background: var(--bg-light);
}

.container-minigame {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

/* --- Action Area (Game Area) --- */
.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: #1a1a2e; /* Fallback dark bg */
}

/* Background Image with Blur */
.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); /* Prevent blur edges */
    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;
}

/* --- Lucky Wheel --- */
.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; /* Usually canvas is hidden if using img-wheel, check logic */
}

/* Wheel Image */
.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);
}



/* Start Button (Spin) */
.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: var(--bg-white);
    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(255, 40, 80, 0.8);
}

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

/* --- Control Buttons --- */
.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: var(--radius-full);
    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: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

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

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

/* Spin Now Button */
.btn-spin-now {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 20, 67, 0.4);
}

.btn-spin-now:hover {
    background: #d10f38;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 20, 67, 0.6);
}

/* --- Rules & Rewards Section --- */
.minigame-details-card {
    padding: 40px;
    border-top: 1px solid var(--border-light);
}

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

.card-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

/* Rules Grid */
.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: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

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

.rule-text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.5;
}

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

/* Reward List */
.reward-list-preview {
    text-align: center;
}

.reward-list-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

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

.prize-tag {
    padding: 6px 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}

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

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

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

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

    .minigame-container-wheel {
        width: 100%;
        flex-direction: column;
        padding: 15px;
        border-radius: var(--radius-lg);
    }
    
    .minigame-container-wheel ._nxn_btn {
        width: 100%;
        justify-content: center;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .minigame-details-card {
        padding: 25px 15px;
    }
}

/* --- 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: var(--radius-lg);
    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.5);
}

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

.card-latthe .card__back {
    transform: rotateY(180deg);
    background: #1a1a2e; /* Fallback */
}

/* Visibility State Logic (Must match JS logic) */
/* .card__visible = Show Front (Result) */
/* default or not .card__visible = Show Back (Cover) */

.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 (Selected) */
.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: var(--radius-lg);
    background: linear-gradient(45deg, var(--primary-color), #ffeb3b, var(--primary-color));
    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; }
}

/* --- Minigame 3: Slot/Grid --- */
._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: var(--radius-lg);
    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-color);
    box-shadow: 0 8px 25px rgba(239, 20, 67, 0.4);
}

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

/* Responsive Minigames */
@media (max-width: 768px) {
    .container-latthe {
        padding: 10px;
        gap: 10px;
    }
    
    .card-latthe {
        width: 100px;
        height: 140px;
    }
    
    ._minigame3_container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ============================================
   NICKGAME PAGES - TEMPLATE 3
============================================ */

.search-page-section {
    padding: 30px 0 60px;
    background: var(--bg-light);
}

.search-filters-form ._nxn_input_group {
    background: var(--bg-white) !important;
    border-color: rgba(var(--nxn-bg-text), 0.35) !important;
    border-radius: 0;
}

#_nxn_form_nickgame ._nxn_table_main {
    margin: 30px 0 !important;
}

#_nxn_form_nickgame._nxn_container_table.is_loadding ._nxn_table_main::after {
    background: var(--bg-white);
}

.filters-title {
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

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

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

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

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
}

.filter-actions-row {
    padding-top: 10px;
    border-top: 1px dashed var(--border-light);
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-apply-filter, .btn-reset-filter, .btn-refresh-filter {
    height: 40px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    border-radius: 0 !important;
    border-color: rgba(var(--nxn-bg-text), 0.35) !important;
}

.btn-apply-filter { background: var(--primary-color); color: #fff; }
.btn-reset-filter { background: var(--bg-white); color: var(--text-gray); border: 1px solid var(--border-light); }
.btn-refresh-filter { background: #2563eb; color: #fff; }

.search-table-container .related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Product Detail - SINGLE COLUMN LAYOUT */
.product-detail-section {
    padding: 30px 0 60px;
    background: var(--bg-light);
}

.product-detail-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column-reverse;
}

/* Main Card chứa cả Gallery + Info */
.product-detail-left {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-bottom: 25px;
}

.game-display {
    background: transparent;
    border: none;
    border-radius: 0;
}

.game-display-main { padding: 0; }

/* Gallery Full Width */
.game-character-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.slider-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.slider-image .character-placeholder { width: 100%; height: 100%; }
.slider-image .img-placeholder { width: 100%; height: 100%; object-fit: contain; }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.4);
    padding: 8px 15px;
    border-radius: var(--radius-full);
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.indicator-dot.active { 
    background: var(--primary-color); 
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--primary-color);
}

/* Thumbnail Gallery - Horizontal */
.game-character-gallerys { 
    border-top: 1px solid var(--border-light);
}
.game-character-gallerys img { 
    width: 100%; 
    height: auto; 
    display: block;
}

/* Info Card - Separate below */
.product-detail-right {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 30px;
    border: 1px solid var(--border-light);
}

/* Price Header - Horizontal */
.product-detail-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px; 
    padding-bottom: 25px; 
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 15px;
}

.product-price-display {
    width: 100%;
    display: flex; 
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-price-display .product-detail-price {
    order: -1;
}

.product-sku { 
    font-size: 14px;
    color: var(--text-gray);
    margin: 0;
    padding: 8px 15px;
    background: var(--bg-light);
    display: flex;
    gap: 1em;
    align-items: center;
}

.product-sku ._nxn_csp {
    margin-left: 5px;
    color: var(--primary-color);
    cursor: pointer;
}

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

/* Tags inline */
.product-tags { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    margin-bottom: 25px; 
}

.product-tag { 
    padding: 8px 16px; 
    background: var(--primary-light); 
    border-radius: var(--radius-full); 
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.2s ease;
}

.product-tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Description inside card */
.product-description {
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
}

.description-text { 
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
}

/* Action Buttons - Horizontal on Desktop */
.product-actions { 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; 
    margin-bottom: 25px; 
}

.btn-purchase {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-purchase.btn-primary { 
    background: var(--primary-color); 
    color: #fff;
    box-shadow: 0 4px 15px rgba(239, 20, 67, 0.3);
}

.btn-purchase.btn-primary:hover {
    background: #d10f38;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 20, 67, 0.4);
}

.btn-purchase._nxn_btn_grey { 
    background: var(--bg-white); 
    color: var(--text-dark); 
    border: 2px solid var(--border-light);
}

.btn-purchase._nxn_btn_grey:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-purchase .text-primary { color: var(--primary-color); font-weight: 700; }

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
}

.security-notice svg { 
    flex-shrink: 0;
    color: #059669;
    width: 20px;
    height: 20px;
}

.notice-text { 
    font-size: 13px; 
    color: #065f46; 
    line-height: 1.5; 
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .search-table-container .related-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .filter-actions-row {
        justify-content: stretch;
        flex-direction: column;
    }
    .filter-actions-row ._nxn_btn {
        width: 100%;
        justify-content: center;
    }
    .product-detail-wrapper { max-width: 100%; }
    .product-detail-header { flex-direction: column; align-items: flex-start; }
    .product-actions { grid-template-columns: 1fr; }
    .filters-row { grid-template-columns: 1fr 1fr; }
    .search-table-container .related-products-grid { grid-template-columns: repeat(2, 1fr); }
    .slider-btn { width: 40px; height: 40px; }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }
}

@media (max-width: 480px) {
    .filters-row { grid-template-columns: 1fr; }
    .search-table-container .related-products-grid { grid-template-columns: 1fr; }
    .product-detail-price { font-size: 28px; }
    .product-detail-right { padding: 20px; }
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-container {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: 60px;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    flex-shrink: 0;
    stroke-width: 1.8;
}

.mobile-nav-item:active {
    transform: scale(0.95);
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-color);
}

/* Primary Action Button (Nạp tiền) */
.mobile-nav-item.mobile-nav-primary {
    position: relative;
    color: var(--primary-color);
}

.mobile-nav-item.mobile-nav-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 32px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
    box-shadow: 0 4px 15px rgba(239, 20, 67, 0.3);
}

.mobile-nav-item.mobile-nav-primary svg {
    color: #fff;
    width: 24px;
    height: 24px;
}

.mobile-nav-item.mobile-nav-primary span {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 8px;
}

/* Login State for Mobile Nav */
.mobile-nav-container ._has_login {
    display: none;
}

.mobile-nav-container.is_login ._no_login {
    display: none;
}

.mobile-nav-container.is_login ._has_login {
    display: flex;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: 70px;
    }
    
    .header-search {
        display: none;
    }
    
    .mobile-nav-item.mobile-nav-primary::before {
        width: 50px;
        height: 50px;
        top: -12px;
    }
}

@media (max-width: 480px) {
    .mobile-nav-container {
        height: 56px;
    }
    
    .mobile-nav-item {
        font-size: 10px;
    }
    
    .mobile-nav-item svg {
        width: 20px;
        height: 20px;
    }
    
    .mobile-nav-item.mobile-nav-primary::before {
        width: 50px;
        height: 50px;
        top: -12px;
    }
}
/* ============================================
   ACCOUNT PAGE - TEMPLATE 3
   Style: Clean White with Pink Accent
============================================ */

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--text-gray);
    transition: var(--transition);
}

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

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

/* Account Page Layout */
.account-page {
    background: var(--bg-light);
    padding: 40px 0 60px;
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
}

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

/* ============================================
   ACCOUNT SIDEBAR
============================================ */
.account-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + 20px);
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* User Profile Card */
.account-user-card {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(239, 20, 67, 0.2);
}

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

.user-info {
    margin-bottom: 10px;
}

.user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

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

.user-edit-btn,
.sidebar-toggle-btn {
    display: none; /* Hidden on desktop */
}

/* Sidebar Menu */
.account-sidebar-menu {
    padding: 15px 0;
}

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

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

.account-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--text-dark);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.account-nav-item svg {
    width: 20px;
    height: 20px;
    color: var(--text-gray);
    transition: var(--transition);
    flex-shrink: 0;
}

.account-nav-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

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

.account-nav-item.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

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

/* Logout Section */
.account-logout {
    padding: 15px;
    border-top: 1px solid var(--border-light);
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    font-size: 14px;
    color: #dc2626;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
}

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

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

/* Sidebar Overlay (Mobile) */
.account-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* ============================================
   ACCOUNT MAIN CONTENT
============================================ */
.account-main {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.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: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

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

/* Account Info Grid */
.account-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

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

/* Personal Info Grid */
.personal-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-info-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    align-items: center;
}

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

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

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

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

/* Warning Message */
.account-warning {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 15px;
    border-radius: var(--radius-md);
}

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

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

/* Buttons */
.btn-block {
    width: 100%;
}

/* ============================================
   RESPONSIVE STYLES
============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .account-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
    
    .account-sidebar {
        top: calc(var(--header-height) + var(--nav-height) + 15px);
    }
    
    .account-info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .account-page {
        padding: 20px 0 40px;
    }
    
    .account-layout {
        grid-template-columns: 100%;
        gap: 20px;
    }
    
    /* Sidebar stays static, user card shows */
    .account-sidebar {
        position: static;
        background: none;
        box-shadow: none;
        padding: 0;
        width: 100%;
        overflow: visible;
    }
    
    /* User card with primary background */
    .account-user-card {
        display: flex;
        align-items: center;
        background: var(--primary-color);
        border-radius: var(--radius-lg);
        padding: 16px 20px;
        margin-bottom: 24px;
        position: relative;
        box-shadow: 0 4px 12px rgba(239, 20, 67, 0.2);
        text-align: left;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
        margin: 0 15px 0 0;
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .user-info {
        margin: 0;
        flex: 1;
    }
    
    .user-name {
        color: var(--text-white);
        font-size: 15px;
        margin-bottom: 3px;
    }
    
    .user-id {
        color: rgba(255, 255, 255, 0.9);
        font-size: 12px;
    }
    
    /* Toggle button visible on mobile */
    #sidebarToggle.sidebar-toggle-btn {
        display: flex !important;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: var(--radius-md);
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        color: white;
        z-index: 100;
        cursor: pointer;
    }
    
    #sidebarToggle.sidebar-toggle-btn svg {
        width: 20px;
        height: 20px;
    }
    
    /* Menu slides from RIGHT side */
    .account-sidebar-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        z-index: 10001;
        background: var(--bg-white);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    
    .account-sidebar-menu.is-open {
        transform: translateX(0) !important;
    }
    
    /* Overlay */
    .account-sidebar-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 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;
    }
    
    /* Menu content styling */
    .account-sidebar-menu .account-nav,
    .account-sidebar-menu .account-logout {
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        border-top: 1px solid var(--border-light);
    }
    
    .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: var(--radius-md);
        background: transparent;
        gap: 12px;
    }
    
    .account-main {
        padding: 20px;
    }
    
    .account-section-title {
        font-size: 18px;
    }
    
    .account-info-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .info-label {
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .account-main {
        padding: 15px;
    }
    
    .account-section-title {
        font-size: 16px;
        gap: 8px;
    }
    
    .account-section-title svg {
        width: 20px;
        height: 20px;
    }
    
    .account-info-row {
        padding: 10px;
    }
}

/* ============================================
   TABLE COMPONENTS - ACCOUNT PAGES
   Used in: change-balance, deposit-history, nickgame-history, etc.
============================================ */

/* Table Wrapper */
.table-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Table Search Bar */
.table-search-bar {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    padding: 30px 30px 20px 30px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.table-search {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.table-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(239, 20, 67, 0.1);
}

.table-search::placeholder {
    color: var(--text-light);
}

/* Table Header */
.table-header {
    padding: 20px 30px;
    border-bottom: 2px solid var(--primary-color);
    background: var(--bg-white);
}

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

/* Table List */
.table-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Table Row */
.table-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.table-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Table Row Status */
.table-row-status {
    flex-shrink: 0;
    padding-top: 2px;
}

.table-status-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(239, 20, 67, 0.15);
}

/* Status color variants */
.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.15);
}

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

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

/* Table Row Content */
.account-page ._nxn_container_table ._nxn_table_main {
    margin: 20px 30px !important;
}

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

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

.table-row-title-sub {
    display: inline-block;
    margin-left: 8px;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-gray);
}

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

/* Table Row Date */
.table-row-date {
    flex-shrink: 0;
    text-align: right;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* Table Pagination */
.table-pagination {
    padding: 20px 30px 30px 30px;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

._nxn_container_table ._nxn_table_pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Items per page */
._nxn_itemsperpage {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Pagination numbers */
._nxn_pagination ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

._nxn_pagination li {
    margin: 0;
}

._nxn_pagination_link,
._nxn_pagination .active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
}

._nxn_pagination_link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

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

/* Pagination Info Message */
.table-pagination-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
    border-radius: var(--radius-md);
}

.table-pagination-info svg {
    flex-shrink: 0;
}

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

/* Loading State */
.table-wrapper.is_loadding .table-list {
    opacity: 0.5;
    pointer-events: none;
}

/* Empty State */
.table-empty {
    padding: 60px 20px;
    text-align: center;
}

.table-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-light);
}

.table-empty-icon svg {
    width: 40px;
    height: 40px;
}

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

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

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

/* Tablet */
@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;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .table-search-bar,
    .table-header,
    .table-pagination {
        padding: 15px;
    }
    
    .account-page ._nxn_container_table ._nxn_table_main {
        margin: 15px !important;
    }
    
    .table-header h2 {
        font-size: 18px;
    }
    
    .table-list {
        gap: 10px;
    }
    
    .table-row {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .table-row-date {
        text-align: left;
        font-size: 11px;
    }
    
    ._nxn_container_table ._nxn_table_pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    ._nxn_itemsperpage,
    ._nxn_pagination {
        justify-content: center;
    }
    
    ._nxn_pagination ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
}

/* Small Mobile */
@media (max-width: 480px) {
    .table-row-title {
        font-size: 13px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .table-row-description {
        font-size: 12px;
    }
    
    ._nxn_pagination_link,
    ._nxn_pagination .active {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
        padding: 0 10px;
    }
}

/* ============================================
   TABLE ACTION LINK - VIEW DETAIL BUTTON
============================================ */
.table-row-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.table-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    background: var(--primary-light);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

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

.table-action-link svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   BACK TO LIST BUTTON
============================================ */
.back-to-list {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition);
}

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

.back-to-list svg {
    width: 18px;
    height: 18px;
}

/* Mobile: Show back button */
@media (max-width: 768px) {
    .back-to-list {
        display: inline-flex;
    }
    
    .table-row-action {
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed var(--border-light);
    }
    
    .table-action-link {
        flex: 1;
        justify-content: center;
        padding: 10px 16px;
    }
}

/* ============================================
   ITEM BOX - HÒM VẬT PHẨM
============================================ */

/* Item Box Grid */
.item-box-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Item Box Card */
.item-box-card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.item-box-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(239, 20, 67, 0.12);
    transform: translateY(-4px);
}

/* Item Box Image */
.item-box-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-light);
}

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

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

/* Item Box Info */
.item-box-info {
    padding: 15px;
    text-align: center;
}

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

.item-box-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
}

.quantity-label {
    color: var(--text-gray);
}

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

/* Item Box Action */
.item-box-action {
    padding: 0 15px 15px;
}

.btn-withdraw {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff4d6d 100%);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.btn-withdraw:hover {
    background: linear-gradient(135deg, #d10f38 0%, var(--primary-color) 100%);
    box-shadow: 0 4px 12px rgba(239, 20, 67, 0.3);
}

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

/* Status Message (Empty State) */
.status-message {
    padding: 60px 20px;
    text-align: center;
}

.status-empty .status-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--text-light);
}

.status-empty .status-icon svg {
    width: 48px;
    height: 48px;
}

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

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

/* ============================================
   ITEM BOX RESPONSIVE
============================================ */

@media (max-width: 1024px) {
    .item-box-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

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

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

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

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

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

@media (max-width: 480px) {
    .item-box-grid {
        gap: 10px;
    }
    
    .item-box-info {
        padding: 10px;
    }
    
    .item-box-name {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .item-box-quantity {
        font-size: 12px;
    }
    
    .quantity-value {
        font-size: 14px;
    }
    
    .btn-withdraw {
        padding: 8px 10px;
        font-size: 11px;
        gap: 6px;
    }
    
    .btn-withdraw svg {
        width: 14px;
        height: 14px;
    }
}

/* ============================================
   STATUS MESSAGES - VARIANTS
============================================ */

/* Status Expired */
.status-expired .status-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef3c7;
    border-radius: 50%;
    color: #d97706;
}

.status-expired .status-icon svg {
    width: 48px;
    height: 48px;
}

/* Status Locked */
.status-locked .status-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    border-radius: 50%;
    color: #dc2626;
}

.status-locked .status-icon svg {
    width: 48px;
    height: 48px;
}

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

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

.mail-item {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.2s ease;
}

#mail-frame {
    margin-top: 20px;
    border: 1px solid var(--border-light);
}

.mail-item.is_seen {
    background: var(--bg-light);
}

.mail-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.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: var(--text-dark);
    font-weight: 600;
}

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

.mail-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-gray);
}

.mail-subject {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.mail-content {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

.mail-code-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: var(--radius-md);
    border: 1px solid #a7f3d0;
}

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

.mail-code-value {
    font-size: 18px;
    color: #059669;
    font-weight: 700;
    letter-spacing: 2px;
}

.mail-code-value ._nxn_csp {
    cursor: pointer;
    color: #059669;
}


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

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

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

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

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

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

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

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

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

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

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

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

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

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


.btn-reset-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-reset-login:hover {
    background: #d10f38;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 20, 67, 0.3);
}


/* Button Utilities (Merged) */
.btn-block { width: 100%; }

/* Responsive for new components */
@media (max-width: 768px) {
    .mail-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mail-code-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reset-pass-card {
        padding: 40px 25px;
    }
    
    .password-value {
        font-size: 22px;
        letter-spacing: 2px;
    }
}

/* ============================================
   BLOG PAGE - TEMPLATE 3
============================================ */

.blog-page {
    background: var(--bg-light);
    padding: 60px 0;
}

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

.blog-header-content {
    max-width: 600px;
}

.blog-filters .search-box {
    position: relative;
    min-width: 300px;
}

.blog-filters .search-box input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-filters .search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Featured Card */
.blog-featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

.featured-image {
    position: relative;
    aspect-ratio: 16/9;
}

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

.featured-image .category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.featured-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-info .post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

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

.featured-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.featured-excerpt {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 30px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* Main Grid */
.blog-main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-post-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.blog-post-card .post-image {
    position: relative;
    aspect-ratio: 16/10;
}

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

.blog-post-card .category-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.post-body {
    padding: 20px;
}

.post-body .post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.post-meta .dot {
    width: 4px;
    height: 4px;
    background: var(--border-color);
    border-radius: 50%;
}

.post-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-dark);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    padding-top: 15px;
    border-top: 1px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.read-time { color: var(--text-light); }
.btn-link { color: var(--primary-color); }

/* Pagination */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.btn-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-circle:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
}

.page-num.active {
    background: var(--primary-color);
    color: white;
}

/* Newsletter Custom for Blog */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff4d6d 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.newsletter-title {
    font-size: 23px;
    font-weight: 800;
    margin-bottom: 15px;
}

.newsletter-subtitle {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: var(--radius-full);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0 20px;
}

.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.6); }

.newsletter-section .btn-contact {
    background: white;
    color: var(--primary-color);
    border-radius: var(--radius-full);
    padding: 12px 30px;
    font-weight: 700;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: auto;
}

/* ============================================
   BLOG DETAIL - TEMPLATE 3
============================================ */

.blog-detail-page {
    background: var(--bg-white);
    padding-bottom: 80px;
}

.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
}

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

.article-breadcrumb-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.article-category {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.article-breadcrumb-tags .dot {
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
}

.article-breadcrumb-tags .read-time {
    color: var(--text-gray);
    font-size: 14px;
}

.article-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 30px;
}

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

.author-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

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

.author-name {
    font-weight: 700;
    color: var(--text-dark);
}

.post-date {
    font-size: 13px;
    color: var(--text-gray);
}

.article-featured-image {
    margin: 16px 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
}

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

.article-body h2 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: var(--text-dark);
}

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

.article-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-label {
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.tag-pill {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: var(--radius-full);
    font-size: 14px;
    margin-right: 8px;
    transition: all 0.2s;
}

.tag-pill:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.share-pills {
    display: flex;
    gap: 10px;
}

.share-pill {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.share-pill.facebook { background: #1877f2; color: white; }
.share-pill.twitter { background: #1da1f2; color: white; }
.share-pill.copy-link { background: var(--bg-light); color: var(--text-dark); border: none; }

.article-navigation {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.nav-prev, .nav-next {
    padding: 30px;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-prev { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.nav-next { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; align-items: flex-end; text-align: right;}

.nav-prev:hover, .nav-next:hover {
    background: var(--primary-light);
}

.nav-label { font-size: 12px; color: var(--primary-color); font-weight: 700; text-transform: uppercase; }
.nav-title { font-size: 16px; font-weight: 700; color: var(--text-dark); }

/* Sidebar Widget */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.sidebar-search-form {
    position: relative;
}

.sidebar-search-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.sidebar-search-form button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.recent-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    text-decoration: none;
}

.recent-post-item .item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.item-date { font-size: 12px; color: var(--text-light); }

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

.social-link {
    display: block;
    padding: 12px;
    text-align: center;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.social-link.facebook { background: #1877f2; }
.social-link.youtube { background: #ff0000; }
.social-link.tiktok { background: #000000; }

/* Responsive */
@media (max-width: 1024px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }
    .blog-main-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-featured-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .blog-main-grid {
        grid-template-columns: 1fr;
    }
    .article-title { font-size: 32px; }
    .article-featured-image { margin: 0 0 30px; }
    .blog-header { flex-direction: column; align-items: flex-start; }
    .share-pills { flex-wrap: wrap; }
    .tags-list { display: grid; gap: 5px; }
}

/* ============================================
   MODERN MODAL SYSTEM - TEMPLATE 3
============================================ */
.auth-modal, .modern-modal {
    padding: 20px;
    width: 95%;
    margin: 0 auto 5vh auto; /* Responsive margin */
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    position: relative;
    box-sizing: border-box;
    display: block;
}

/* Custom scrollbar for Webkit */
.auth-modal::-webkit-scrollbar, 
.modern-modal::-webkit-scrollbar {
    width: 4px;
}
.auth-modal::-webkit-scrollbar-thumb, 
.modern-modal::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* .modern-modal.wide {
    max-width: 600px;
} */

.auth-header, .modern-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-title, .modern-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-subtitle, .modern-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Form Styles */
.auth-form, .modern-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Override default library styles for cleaner look */
/* Increase specificity using multiple classes and !important */
.auth-modal ._nxn_input_group, 
.modern-modal ._nxn_input_group,
.auth-modal ._nxn_select_group,
.modern-modal ._nxn_select_group {
    border: 1px solid var(--border-color) !important;
    background: var(--bg-light) !important;
    border-radius: var(--radius-md) !important;
    padding: 0 15px !important;
    transition: var(--transition) !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: none !important;
}

.auth-modal ._nxn_input_group:focus-within,
.modern-modal ._nxn_input_group:focus-within,
.auth-modal ._nxn_select_group:focus-within,
.modern-modal ._nxn_select_group:focus-within {
    border-color: var(--primary-color) !important;
    background: var(--bg-white) !important;
    box-shadow: 0 0 0 3px var(--primary-light) !important;
}

.auth-modal ._nxn_input,
.modern-modal ._nxn_input,
.auth-modal ._nxn_select_behind,
.modern-modal ._nxn_select_behind {
    background: transparent !important;
    border: none !important;
    height: 100% !important;
    font-size: 14px !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    color: var(--text-dark) !important;
    outline: none !important;
}

/* Label Styles */
.auth-label, .modern-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Primary Button */
.btn-auth-primary, .btn-modern-primary {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #ef1443 0%, #ff4d73 100%) !important;
    color: var(--text-white) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    margin-top: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(239, 20, 67, 0.2) !important;
}

.btn-auth-primary:hover, .btn-modern-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(239, 20, 67, 0.3) !important;
    opacity: 0.9 !important;
}

/* Checkout Info List */
.checkout-info-list {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 20px;
}

.checkout-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.checkout-info-item:not(:last-child) {
    border-bottom: 1px dashed var(--border-color);
}

.checkout-info-label {
    color: var(--text-gray);
}

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

.checkout-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-total-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.checkout-total-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}

/* Tabs for Modals */
.modern-tabs {
    display: flex;
    background: var(--bg-gray);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 20px;
}

.modern-tab-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    color: var(--text-gray);
}

.modern-tab-btn.is-active {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Radio Group (Denominations) */
@media (max-width: 480px) {
    .auth-modal, .modern-modal {
        padding: 15px;
        margin: 2vh auto;
    }
    .modern-radio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.modern-radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.modern-radio-item {
    position: relative;
}

.modern-radio-item input {
    position: absolute;
    opacity: 0;
}

.modern-radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 5px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-white);
}

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

.modern-radio-value {
    font-size: 14px;
    font-weight: 700;
}

/* Helper Classes */
.mt-15 { margin-top: 15px; }
.mb-15 { margin-bottom: 15px; }
.text-danger { color: #dc3545 !important; }
.fs-12 { font-size: 12px; }

/* Social Login Buttons */

.auth-divider {
    margin: 10px 0;
    text-align: center;
    width: 100%;
}

.auth-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-social:hover {
    background: var(--bg-light);
}

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

/* Footer Links */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    margin-top: 10px;
}

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

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

/* === 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: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.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-color);
    opacity: 0.7;
}

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

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

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

.empty-state-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    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: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-light);
    margin-bottom: 30px;
}

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

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

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

.history-section {
    padding: 24px;
}

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

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

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


@media (max-width: 500px) {
    .history-section {
        padding: 20px 1em;
    }
}


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

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

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

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

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

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


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

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

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

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

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


@media (max-width: 500px) {
    .credential-box {
        padding: 20px 1em;
    }
    .credential-input-group {
        flex-wrap: wrap;
    }
}


.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(--bg-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) {
    .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;
}
