:root {
    --primary-red: #dc1c1c;
    --primary-blue: #3b82f6;
    --primary-success: #22c55e;
    --bg-light: #f9fafb;
    --text-dark: #374151;
    --text-gray: #6b7280;
    --border-color: #e5e7eb;
    --radius: 8px;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid rgb(241, 245, 249);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.search-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px 15px;
    width: 500px;
}

.search-box .search-icon {
    color: #94a3b8;
    font-size: 14px;
    margin-right: 10px;
}

.search-box input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 10px 0;
    outline: none;
    font-size: 14px;
}

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

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.currency-btn {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 13px;
    gap: 8px;
}

.currency-code {
    font-weight: 800;
    color: #1e293b;
}

.currency-symbol {
    color: #64748b;
    font-weight: 500;
}

.currency-btn i {
    font-size: 10px;
    color: #94a3b8;
}

.cart-btn,
.search-btn-mobile,
.wishlist-btn {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 50%;
    color: #475569;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.cart-btn:hover,
.search-btn-mobile:hover,
.wishlist-btn:hover {
    background: #f1f5f9;
    color: var(--primary-red);
    border-color: #e2e8f0;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1001;
    display: none;
    align-items: center;
    padding: 0 1rem;
}

.mobile-search-overlay.active {
    display: flex;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    width: 100%;
    background: #f1f5f9;
    border-radius: 20px;
    padding: 0 15px;
}

.mobile-search-form .iconify {
    color: #64748b;
    font-size: 20px;
}

.mobile-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 10px;
    font-size: 15px;
    outline: none;
}

.close-mobile-search {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #94a3b8;
}

/* Blog Section Styling */
.blog-section {
    margin: 40px 0;
}

.blog-header-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-icon-box {
    width: 60px;
    height: 60px;
    background: #f0f7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-blue);
}

.header-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    margin-bottom: 2px;
}

.header-text p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.blog-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-thumb {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-item:hover .blog-thumb img {
    transform: scale(1.1);
}

.no-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #cbd5e1;
}

.blog-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    color: white;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.blog-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #94a3b8;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

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


/* Search Results Banner */
.search-results-banner {
    text-align: center;
    margin: 20px 0 40px;
    padding: 0 15px;
}

.search-text-content {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.search-main-label {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 500;
}

.search-query-highlight {
    font-size: 18px;
    color: var(--primary-blue);
    font-weight: 700;
}

.search-result-count {
    font-size: 14px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 12px;
}

.search-clear-inline {
    color: var(--primary-red);
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: 0.2s;
    text-decoration: none;
}

.search-clear-inline:hover {
    transform: scale(1.1);
}


/* No Products Message */
.no-products-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    margin: 20px auto;
    width: 100%;
}

.no-products-msg a {
    text-decoration: none !important;
    margin-top: 30px !important;
    display: inline-block;
}

.no-products-msg h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}


.no-products-msg img {
    margin-bottom: 20px;
    opacity: 0.6;
    filter: grayscale(1);
}

.no-products-msg-icon {
    display: flex;
    justify-content: center;
    font-size: 80px;
    color: var(--primary-blue);
    opacity: 0.15;
    margin-bottom: 20px;
}



.no-products-msg p {
    font-size: 16px;
    color: var(--text-gray);
    margin-top: 10px;
    font-weight: 500;
}

.search-btn-mobile {
    display: none;
    /* Hidden on desktop by default */
}

.btn {
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: 0.3s;
    font-size: 14px;
}

.btn-login {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(220, 28, 28, 0.2);
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(220, 28, 28, 0.3);
}

.mobile-hamburger {
    display: none;
    background: #f1f5f9;
    border: none;
    font-size: 20px;
    color: #475569;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.mobile-hamburger:hover {
    background: #e2e8f0;
    color: var(--primary-red);
}

/* User Profile */
.user-profile-wrap {
    position: relative;
    margin-left: 5px;
}

.profile-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    padding: 2px;
    background: #f1f5f9;
    transition: 0.3s;
}

.profile-avatar-btn:hover {
    background: #e2e8f0;
}

.profile-avatar-btn img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid white;
    border-radius: 50%;
}

/* User Profile Dropdown Design V2 - Compact Version */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.user-avatar-large {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

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

.user-info-text {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.user-name-dropdown {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.user-balance-dropdown {
    font-size: 13px;
    font-weight: 700;
    color: #3b82f6;
}

.profile-dropdown .dropdown-section {
    padding: 6px 0;
}

.profile-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    color: #475569;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: 0.2s;
}

.profile-dropdown .dropdown-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.profile-dropdown .dropdown-item .iconify {
    font-size: 18px;
    color: #94a3b8;
}

.profile-dropdown .admin-item {
    color: #ef4444;
    font-weight: 700;
}

.profile-dropdown .admin-item .iconify {
    color: #ef4444;
}

.profile-dropdown .dropdown-footer {
    padding: 2px 0;
    border-top: 1px solid #f1f5f9;
}

.profile-dropdown .logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #ef4444;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
}

.profile-dropdown .logout-link .iconify {
    font-size: 18px;
}

@media (max-width: 768px) {
    .profile-dropdown {
        width: 220px;
        right: -5px;
    }
}


/* Navigation */
.navigation {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 66px;
    /* 45px logo + 20px padding + 1px border */
    z-index: 999;
}

.nav-menu {
    display: flex;
    justify-content: start;
    list-style: none;
    gap: 25px;
    padding: 0;
}

.nav-menu>li>a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu>li.active>a {
    color: var(--primary-red);
}

.nav-menu>li.active>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    transform: none;
    width: 700px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: none;
    z-index: 1000;
    padding: 1.5rem;
    margin-top: 15px;
    border: 1px solid var(--border-color);
}

.dropdown-menu.show {
    display: flex;
    flex-direction: column;
}

.dropdown-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.dropdown-title {
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.dropdown-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    list-style: none;
}

.dropdown-list li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dropdown-list li:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

.dropdown-list li img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.dropdown-list li .item-text {
    font-weight: 600;
    text-transform: uppercase;
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
}

/* Recharge Dropdown */
.recharge-dropdown {
    width: 380px !important;
    padding: 1rem;
}

.docs-dropdown {
    width: 650px !important;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 1.5rem;
}

.docs-dropdown.show {
    display: grid;
}

.utility-dropdown {
    width: 250px !important;
    padding: 0.8rem;
}

.utility-dropdown.show {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.utility-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.utility-item:hover {
    background: #f8fafc;
}

.utility-item .iconify {
    font-size: 18px;
}

.fb-blue {
    color: #1877f2;
}

.two-fa-green {
    color: #22c55e;
}

.utility-text {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.docs-dropdown .recharge-item {
    margin-bottom: 0;
}

.recharge-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: white;
    border: 1px solid #f1f5f9;
    margin-bottom: 10px;
}

.recharge-item:last-child {
    margin-bottom: 0;
}

.recharge-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateY(-2px);
}

.recharge-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.recharge-icon.blue {
    background: #eff6ff;
    color: #3b82f6;
}

.recharge-icon.orange {
    background: #fff8eb;
    color: #f59e0b;
}

.recharge-icon.green {
    background: #f0fdf4;
    color: #22c55e;
}

.recharge-icon.pink {
    background: #fdf2f8;
    color: #ec4899;
}

.recharge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.recharge-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
}

.recharge-desc {
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
}

/* Main Content */
.main-content {
    padding: 20px 0 0 0;
}

.info-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 22px 30px;
    margin-bottom: 30px;
    position: relative;
}

.info-banner p {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.info-banner p:first-child {
    margin-bottom: 5px;
}

.info-banner b {
    color: #334155;
    font-weight: 700;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    gap: 8px;
}

.category-item .icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.category-item.active .icon.circle,
.category-item.active .icon.square {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.category-item.active .icon.circle {
    border-radius: 50%;
}


.icon.square {
    border-radius: 10px;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.icon.yellow {
    color: #eab308;
}

.icon.blue {
    color: var(--primary-blue);
}

.icon.red {
    color: var(--primary-red);
}

.icon.black {
    color: #000;
}

.icon.orange {
    color: #f97316;
}

.category-item span {
    font-size: 11px;
    font-weight: 500;
}

.view-more {
    text-align: center;
    margin: 20px 0;
}

.view-more button {
    border: none;
    background: transparent;
    color: var(--primary-red);
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

/* Feature-List Card Layout (Ref Image Style) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.product-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.item-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.header-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #eee;
    background: white;
}

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

.header-title {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Body: Feature List */
.item-body {
    padding: 20px;
    flex: 1;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #4a5568;
    margin-bottom: 12px;
    line-height: 1.4;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list li .iconify {
    color: #48bb78;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Stats Area: 3 Columns */
.item-stats {
    display: flex;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    background: white;
}

.stat-col {
    flex: 1;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-right: 1px solid #f1f5f9;
}

.stat-col:last-child {
    border-right: none;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #718096;
    text-transform: capitalize;
}

.stat-value img {
    height: 20px;
    width: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-badge {
    background: #3b82f6;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    min-width: 35px;
    text-align: center;
}

.price-col {
    align-items: flex-end;
    padding-right: 20px;
}

.old-price {
    font-size: 11px;
    color: #a0aec0;
    text-decoration: line-through;
}

.new-price {
    font-size: 16px;
    font-weight: 800;
    color: #d69e2e;
    /* Golden brown like image */
}

/* Actions Area */
.item-footer {
    padding: 15px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-item {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
    text-transform: uppercase;
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e1;
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(220, 28, 28, 0.2);
}

.btn-primary:hover {
    background: #c51818;
    transform: scale(1.01);
}

@media (max-width: 992px) {
    .header-center {
        display: none;
    }

    .mobile-hamburger,
    .search-btn-mobile {
        display: flex;
    }

    .navigation {
        display: none;
    }

    .logo-img {
        height: 38px;
    }
}

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

    .header-left {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
    }

    .logo-img {
        height: 32px;
    }

    .header-right {
        gap: 8px;
        display: flex;
        align-items: center;
    }

    .header-right .currency-btn,
    .header-right .btn-login,
    .header-right .cart-btn {
        display: none;
    }

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

/* Off-canvas Sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

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

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 2001;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 24px 20px 10px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-profile-brief {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.user-brief-info {
    display: flex;
    flex-direction: column;
}

.user-balance-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.user-balance-value {
    font-size: 16px;
    font-weight: 800;
    color: #3b82f6;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
}

.close-sidebar:hover {
    color: var(--primary-red);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 0 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.menu-group-title {
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.sidebar-menu li {
    margin-bottom: 2px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-menu li a:active {
    background: transparent !important;
}

.sidebar-menu li a:hover {
    background: transparent;
    color: var(--primary-red);
}

.sidebar-menu li a .iconify {
    font-size: 20px;
    color: #64748b;
}

.sidebar-menu li a .arrow {
    margin-left: auto;
    font-size: 14px;
}

.logout-item {
    margin-top: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}

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

.menu-group-title.divider-top {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.sidebar-logo-img {
    height: 32px;
    width: auto;
}

.menu-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.arrow-img {
    width: 14px;
    height: 14px;
    margin-left: auto;
    transition: 0.3s;
    opacity: 0.4;
}

.sidebar-user-panel {
    background: #f8fafc;
    padding: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-menu li.has-submenu .submenu {
    max-height: 0;
    overflow: hidden;
    list-style: none;
    padding-left: 52px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.sidebar-menu li.has-submenu.active .submenu {
    max-height: 500px;
    padding-top: 5px;
    padding-bottom: 10px;
}

.sidebar-menu li.has-submenu.active .arrow-img {
    transform: rotate(90deg);
}

.submenu li a {
    padding: 10px 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submenu-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 4px;
    /* HÆ¡i bo gÃ³c nháº¹ cho giá»‘ng icon PC */
}

.submenu li a:hover {
    background: transparent !important;
    color: var(--primary-red) !important;
}

/* Floating Support */
.support-float {
    position: fixed;
    bottom: 80px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
}

/* History Section V2 */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.history-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.history-title-light {
    background: #fff;
    color: #1e293b;
    padding: 20px 20px;
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-title-light::before {
    content: '';
    width: 4px;
    height: 18px;
    border-radius: 10px;
}

.title-blue::before {
    background: var(--primary-red);
}

.title-green::before {
    background: #374151;
    /* Äá»•i sang mÃ u xÃ¡m Ä‘en Ä‘á»ƒ bá»›t lÃ²e loáº¹t, hoáº·c dÃ¹ng Ä‘á» náº¿u muá»‘n Ä‘á»“ng bá»™ háº¿t */
}

.history-list {
    display: flex;
    flex-direction: column;
}

.history-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
    border-bottom: 1px solid #ebedef;
    min-height: 80px;
}

.history-row:last-child {
    border-bottom: none;
}

.row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.row-icon {
    width: 24px;
    height: 24px;
    opacity: 0.6;
}

.row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-id {
    font-weight: 700;
    color: #4b5563;
}

.user-green {
    color: var(--primary-red);
}

.action-text {
    font-size: 13.5px;
    color: #333;
    line-height: 1.4;
}

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

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

.row-right {
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #dee2e6;
    height: 100%;
    display: flex;
    align-items: center;
}

.time-badge {
    background: #4b5563;
    /* DÃ¹ng mÃ u xÃ¡m Ä‘áº­m cho thá»i gian Ä‘á»ƒ chuyÃªn nghiá»‡p hÆ¡n */
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .history-grid {
        grid-template-columns: 1fr;
    }

    .history-row {
        flex-direction: row;
        /* Keep icon/info and time on same line if possible, or stack */
    }
}

@media (max-width: 480px) {
    .action-text {
        font-size: 12px;
    }

    .time-badge {
        padding: 4px 8px;
    }
}

/* Site Footer */
.site-footer {
    background: #ffffff;
    color: #475569;
    padding-top: 60px;
    margin-top: 40px;
    font-size: 14px;
    border-top: 1px solid #f1f5f9;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 20px;
}

.footer-desc {
    line-height: 1.6;
    margin-bottom: 25px;
    color: #64748b;
}

.footer-title {
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-red);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

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

.social-link:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
}

.contact-item img {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    background: #f8fafc;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
}

.bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.payment-methods {
    display: flex;
    gap: 15px;
}

.payment-methods img {
    height: 20px;
    opacity: 0.8;
    transition: 0.3s;
}

.payment-methods img:hover {
    opacity: 1;
}

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

@media (max-width: 576px) {
    .site-footer {
        padding-top: 40px;
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .brand-col {
        grid-column: span 2;
        text-align: center;
    }

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

    .footer-title::after {
        left: 0;
        transform: none;
    }

    .contact-item {
        justify-content: flex-start;
    }

    .bottom-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

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

/* Mobile Bottom Navigation Styles */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    display: none;
    /* Hidden on Desktop */
    justify-content: space-around;
    align-items: center;
    padding: 10px 5px;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    border-top: 1px solid #f1f5f9;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 5px;
    flex: 1;
    transition: 0.3s;
}

.bottom-nav-item img {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: 0.3s;
}

.bottom-nav-item span {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Active/Hover State */
.bottom-nav-item.active img,
.bottom-nav-item:hover img {
    opacity: 1;
    filter: invert(15%) sepia(87%) saturate(6325%) hue-rotate(352deg) brightness(92%) contrast(105%);
    /* MÃ u Ä‘á» thÆ°Æ¡ng hiá»‡u */
}

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

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 70px;
        /* Chá»«a chá»— cho menu bottom */
    }
}

/* Category Modal Styles */
.category-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    transition: 0.3s;
}

.category-modal.show {
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: 0.3s;
}

.category-modal.show .modal-overlay {
    opacity: 1;
}

.modal-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    /* Chiá»u cao modal */
    background: #fff;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.category-modal.show .modal-drawer {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.close-modal {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.close-modal img {
    width: 28px;
    height: 28px;
}

.modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar Categories */
.modal-sidebar {
    width: 100px;
    background: #f8fafc;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-item {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: 0.2s;
}

.sidebar-item img {
    width: 32px;
    height: 32px;
}

.sidebar-item span {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.2;
}

.sidebar-item.active {
    background: #fff;
    border-left: 3px solid var(--primary-red);
}

.sidebar-item.active span {
    color: var(--primary-red);
    font-weight: 700;
}

/* Content Area */
.modal-content {
    flex: 1;
    background: #fff;
    overflow-y: auto;
    padding: 15px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-hint {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 15px;
}

.category-grid-mobile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.grid-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    text-decoration: none;
}

.grid-item-mobile img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.grid-item-mobile span {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.p-20 {
    padding: 20px;
}

.recharge-drawer {
    height: auto !important;
}

.recharge-options-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.recharge-opt-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.2s;
}

.recharge-opt-card:active {
    background: #f8fafc;
    transform: scale(0.98);
}

.opt-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    /* MÃ u ná»n chung nháº¹ nhÃ ng */
    flex-shrink: 0;
}

.opt-icon img {
    width: 22px;
    height: 22px;
}

.opt-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.opt-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.opt-desc {
    font-size: 12px;
    color: #64748b;
}

.opt-arrow {
    width: 18px;
    height: 18px;
    opacity: 0.3;
}

/* Purchase Modal Styles */
.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.purchase-modal.show {
    display: flex;
}

.purchase-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 700px;
    /* Reduced from 700px */
    border-radius: 8px;
    /* Changed from 20px */
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* Stronger shadow for floating feel */
    animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-purchase-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.close-purchase-modal .iconify {
    font-size: 32px;
    color: #94a3b8;
    transition: 0.3s;
}

.close-purchase-modal:hover .iconify {
    color: var(--primary-red);
    transform: rotate(90deg);
}

.purchase-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: 450px;
}

/* Left Column */
.purchase-info-col {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid #f1f5f9;
}

.purchase-product-title {
    font-size: 20px;
    /* Reduced from 24px */
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
}

.purchase-product-desc {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.desc-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.desc-content {
    font-size: 15px;
    color: #475569;
}

.purchase-stock-status {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
    margin-top: auto;
}

.purchase-share {
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.share-label {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    display: block;
}

.share-icons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Circle share buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    background: #f1f5f9;
}

.share-btn.fb .iconify {
    font-size: 20px;
}

.share-btn.tw .iconify {
    font-size: 20px;
}

.share-btn.link .iconify {
    font-size: 20px;
    color: #64748b;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Right Column */
.purchase-payment-col {
    background: #fff;
    padding: 30px;
}

.payment-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 25px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.p-label {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
}

.p-format-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.4;
}

.p-format-item i {
    color: #10b981;
    margin-top: 3px;
    font-size: 14px;
}


.price-row {
    gap: 30px;
}

.payment-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-value {
    font-size: 20px;
    /* Reduced from 20px */
    font-weight: 700;
}

.blue-text {
    color: #2563eb;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px;
    width: max-content;
    /* Fit content instead of full width */
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-selector input {
    width: 60px;
    /* Set a specific small width */
    text-align: center;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    outline: none;
}

/* Chrome, Safari, Edge, Opera */
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.discount-box {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.discount-input-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2px 2px 2px 10px;
    position: relative;
    transition: all 0.3s ease;
}

.discount-input-wrap:focus-within {
    border-color: var(--primary-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(220, 28, 28, 0.1);
}

.discount-input-wrap input {
    flex: 1;
    padding: 8px 0;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    font-weight: 500;
}

.discount-input-wrap input::placeholder {
    color: #94a3b8;
}

.btn-apply-discount {
    padding: 0 20px;
    height: 36px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
}


.btn-apply-discount:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 28, 28, 0.2);
}

.btn-apply-discount:active {
    transform: translateY(0);
}

.discount-info {
    margin-top: 10px;
}

.discount-value {
    color: #10b981;
    font-weight: 600;
}

.total-payment-box {
    background: #f0f7ff;
    padding: 15px 20px;
    /* More compact */
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.total-label {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.total-value {
    font-size: 22px;
    font-weight: 800;
    color: #2563eb;
}

.balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.balance-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
}

.balance-value {
    font-size: 20px;
    font-weight: 800;
    color: #2563eb;
}

.btn-final-buy {
    width: 100%;
    padding: 16px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(220, 28, 28, 0.15);
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-final-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(220, 28, 28, 0.3);
}

/* Summary Section (Now global for PC & Mobile) */
.purchase-summary {
    margin: 20px 0 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.summary-label {
    color: #64748b;
}

.summary-value {
    font-weight: 600;
    color: #1e293b;
}

.green-text {
    color: #10b981;
}

.total-border-top {
    border-top: 1px dashed #e2e8f0;
    padding-top: 15px !important;
    margin-top: 15px;
}

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

    .modal-container {
        max-width: 100%;
        border-radius: 0 !important;
        position: absolute;
        bottom: 0;
        animation: modalSlideUpAnim 0.4s ease-out;
    }

    .purchase-layout {
        grid-template-columns: 1fr;
        max-height: 85vh;
        /* Maintain max height */
        overflow-y: auto;
        /* Use layout as scroll container */
        position: relative;
        /* Context for sticky */
    }

    .purchase-info-col {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding: 25px;
    }

    .purchase-share {
        display: none;
        /* Hide share on mobile */
    }

    .purchase-payment-col {
        padding: 25px 25px 0 25px;
        /* No bottom padding here */
        display: block;
    }

    /* Fixed Payment Footer on Mobile */
    .purchase-payment-footer {
        position: sticky;
        bottom: 0;
        left: 0;
        width: calc(100% + 50px);
        /* Account for parent padding */
        margin-left: -25px;
        margin-right: -25px;
        background: #fff;
        padding: 15px 25px 25px 25px;
        border-top: 1px solid #f1f5f9;
        z-index: 20;
        box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
    }

    .purchase-payment-footer .total-payment-box {
        margin: 0 0 15px 0;
        border-radius: 8px;
    }



    .purchase-payment-footer .balance-info {
        margin-bottom: 15px;
    }

    .purchase-payment-footer .btn-final-buy {
        box-shadow: 0 4px 12px rgba(220, 28, 28, 0.15);
    }
}

@keyframes modalSlideUpAnim {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

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

.w-100 {
    width: 100% !important;
}

.text-start {
    text-align: start !important;
}

/* Login Page Styles */
.login-body {
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-blue));
}

.login-header {
    margin-bottom: 20px;
    text-align: center;
}

.login-logo {
    height: 50px;
    margin-bottom: 20px;
    object-fit: contain;
}

.login-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

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

.form-group {
    margin-bottom: 10px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: var(--text-gray);
    font-size: 20px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 20px;
    transition: 0.2s;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary-red);
}

.form-control {
    width: 100%;
    padding: 14px 15px 14px 48px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    font-size: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark);
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    border-color: var(--primary-red);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(220, 28, 28, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-gray);
    font-weight: 500;
}

.remember-me input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    accent-color: var(--primary-red);
}

.forgot-password {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.forgot-password:hover {
    color: #c11919;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-red);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 28, 28, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 28, 28, 0.3);
    background: #c11919;
}

.btn-submit:active {
    transform: translateY(0);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before {
    margin-right: 20px;
}

.divider:not(:empty)::after {
    margin-left: 20px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

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

.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
    color: var(--text-gray);
}

.btn-register {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
    transition: 0.2s;
}

.btn-register:hover {
    color: #c11919;
    text-decoration: underline;
}

/* Premium Toast Styles */
.premium-toast {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    padding: 12px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.premium-toast .swal2-title {
    color: var(--text-dark) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.swal2-timer-progress-bar {
    background: var(--primary-red) !important;
}



@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    .social-login {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
}

/* Profile Page Styles */
.profile-grid {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.profile-sidebar {
    flex: 0 0 320px;
}

.profile-main {
    flex: 1;
}

.profile-card-v2 {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.profile-card-header {
    padding: 30px 20px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto;
    cursor: pointer;
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: 0.3s;
}

.profile-avatar-container:hover .avatar-upload-overlay {
    opacity: 1;
}

.profile-main-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.badge-status-online {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background: #22c55e;
    border: 2px solid white;
    border-radius: 50%;
    z-index: 2;
}

.profile-username {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 18px;
    margin-bottom: 8px;
}

.member-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff8eb;
    color: #f59e0b;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #fee6b5;
}

.profile-stats {
    display: flex;
    margin-top: 25px;
    gap: 15px;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item:first-child {
    border-right: 1px solid var(--border-color);
}

.stat-value {
    font-weight: 800;
    color: var(--primary-red);
    font-size: 16px;
}

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

.profile-nav-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.profile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.profile-nav-list li.active a,
.profile-nav-list li a:hover {
    background: #fff1f2;
    color: var(--primary-red);
}

.profile-nav-list li a .iconify {
    font-size: 18px;
}

.profile-content-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 25px;
}

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

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

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

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

.form-group.full-width {
    grid-column: span 2;
}

.form-label-custom {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    background: white;
    transition: 0.2s;
}

.form-control-custom:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 28, 28, 0.08);
    outline: none;
}

.form-control-custom.readonly {
    background: #f8fafc;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

.form-footer {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-save-profile {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-save-profile:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.security-info-card {
    margin-top: 25px;
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.sec-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #fef2f2;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 28px;
}

.sec-text h5 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
}

.sec-text p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

.btn-sec-action {
    font-size: 12px;
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--primary-red);
    padding: 6px 15px;
    border-radius: var(--radius);
    transition: 0.2s;
}

.btn-sec-action:hover {
    background: var(--primary-red);
    color: white;
}

/* General Page Wrappers */
.recharge-page-wrapper,
.profile-page-wrapper {
    padding: 10px 0;
    background-color: #f9fafb;
}

.container-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Account & Recharge Layouts */
.recharge-layout,
.profile-grid {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.recharge-sidebar,
.profile-sidebar {
    flex: 0 0 320px;
    width: 320px;
}

.recharge-main,
.profile-main {
    flex: 1;
}

/* Sidebar Cards */
.recharge-menu-card,
.profile-card-v2 {
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.recharge-menu-header,
.profile-card-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

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

.menu-desc {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* Sidebar Navigation Lists */
.recharge-nav-list,
.profile-nav-list {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.recharge-nav-list li,
.profile-nav-list li {
    margin-bottom: 5px;
}

.recharge-nav-list li a,
.profile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
    font-weight: 500;
    background: white;
    transition: 0.2s;
}

.form-control-custom:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 28, 28, 0.08);
    outline: none;
}

.form-control-custom.readonly {
    background: #f8fafc;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

.form-footer {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-save-profile {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-save-profile:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.security-info-card {
    margin-top: 25px;
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.sec-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #fef2f2;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 28px;
}

.sec-text h5 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
}

.sec-text p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

.btn-sec-action {
    font-size: 12px;
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid var(--primary-red);
    padding: 6px 15px;
    border-radius: var(--radius);
    transition: 0.2s;
}

.btn-sec-action:hover {
    background: var(--primary-red);
    color: white;
}

/* General Page Wrappers */
.recharge-page-wrapper,
.profile-page-wrapper {
    padding: 10px 0;
    background-color: #f9fafb;
}

.container-profile {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Account & Recharge Layouts */
.recharge-layout,
.profile-grid {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.recharge-sidebar,
.profile-sidebar {
    flex: 0 0 320px;
    width: 320px;
}

.recharge-main,
.profile-main {
    flex: 1;
}

/* Sidebar Cards */
.recharge-menu-card,
.profile-card-v2 {
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.recharge-menu-header,
.profile-card-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

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

.menu-desc {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* Sidebar Navigation Lists */
.recharge-nav-list,
.profile-nav-list {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.recharge-nav-list li,
.profile-nav-list li {
    margin-bottom: 5px;
}

.recharge-nav-list li a,
.profile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    border-radius: var(--radius);
    transition: 0.2s;
    color: var(--text-gray);
    font-weight: 600;
}

.recharge-nav-list li.active a,
.profile-nav-list li.active a {
    background: rgba(220, 28, 28, 0.05);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
}

.recharge-nav-list li a:hover:not(.active),
.profile-nav-list li a:hover:not(.active) {
    background: #f8fafc;
}

/* Icon Boxes */
.nav-icon-box {
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.nav-icon-box.bank-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.nav-icon-box.card-icon {
    background: #fdf2f8;
    color: #db2777;
}

.nav-icon-box.history-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.recharge-nav-list li.active .nav-icon-box,
.profile-nav-list li.active .nav-icon-box {
    background: var(--primary-red);
    /* MÃ u Ä‘á» nháº¡t hÆ¡n */
    color: #ffffff !important;
}

.nav-icon-box span.iconify,
.nav-icon-box i {
    color: inherit !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1;
}

.nav-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.main-text {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
}

.sub-text {
    font-size: 11px;
    color: var(--text-gray);
}

/* Support Contact Card */
.support-contact-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid #fecaca;
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 25px;
}

.sup-icon {
    width: 48px;
    height: 48px;
    background: #fff1f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 24px;
    flex-shrink: 0;
}

.sup-info h6 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 800;
}

.sup-info p {
    margin: 5px 0 12px 0;
    font-size: 11.5px;
    color: var(--text-gray);
    line-height: 1.4;
}

.btn-contact-sup {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    padding: 6px 15px;
    border: 1px solid var(--primary-red);
    border-radius: 6px;
    display: inline-block;
}

/* Recharge/Banking Specific Styles - Premium Refinement */
.banking-content-card,
.profile-content-card,
.history-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
}

.content-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.content-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a202c;
    margin: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #10b981;
    font-weight: 700;
    background: #ecfdf5;
    padding: 6px 12px;
    border-radius: 20px;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.alert-premium {
    display: flex;
    gap: 18px;
    background: linear-gradient(to right, #fff5f5, #fff);
    border: 1px solid #fed7d7;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
}

.alert-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ff4d4d;
}

.alert-icon {
    font-size: 28px;
    color: #ff4d4d;
    background: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.alert-title {
    font-size: 16px;
    font-weight: 700;
    color: #c53030;
    margin-bottom: 6px;
}

.alert-desc {
    font-size: 14px;
    color: #742a2a;
    line-height: 1.6;
}

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

.bank-info-panel {
    width: 100%;
}

.qr-code-panel {
    width: 100%;
    text-align: center;
}

.method-selection-wrap {
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 20px;
    border-radius: var(--radius);
}

.method-selection-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.method-item-list {
    background: #fff;
    border: 1.5px solid #edf2f7;
    border-radius: var(--radius);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.method-item-list:hover {
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(220, 28, 28, 0.1);
}

.method-logo-box {
    width: 80px;
    height: 45px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    flex-shrink: 0;
}

.method-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.method-info-box {
    flex: 1;
}

.bank-name-text {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.bank-min-text {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.arrow-icon {
    color: #cbd5e1;
    font-size: 18px;
}

/* Step Layouts */
.recharge-step {
    display: none;
}

.recharge-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.btn-back-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.2s;
}

.btn-back-step:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.step-actions .btn-back-step {
    margin-bottom: 0;
}

.btn-cancel-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    color: #ef4444;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.btn-cancel-step:hover {
    background: #fee2e2;
    color: #b91c1c;
}

.payment-loader-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fffcef;
    border: 1px dashed #eab308;
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
}

.payment-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid #feeabf;
    border-top-color: #eab308;
    border-radius: 50%;
    animation: wait-spin 1s linear infinite;
    flex-shrink: 0;
}

@keyframes wait-spin {
    to {
        transform: rotate(360deg);
    }
}

.payment-loader-text {
    display: flex;
    flex-direction: column;
}

.payment-loader-text .loader-title {
    color: #eab308;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 3px;
}

.payment-loader-text .loader-desc {
    color: #eab308;
    font-size: 12px;
}

.selected-bank-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8fafc;
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    border: 1px solid #edf2f7;
}

.selected-bank-logo {
    width: 60px;
    height: 35px;
    object-fit: contain;
}

.selected-bank-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}

/* Detail Rows List */
.recharge-detail-list {
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    width: 120px;
    flex-shrink: 0;
}

.info-value-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1;
}

.info-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    text-align: right;
    word-break: break-word;
}

.info-value.highlight {
    color: #ff4d4d;
}

.btn-copy-link {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    transition: 0.2s;
}

.btn-copy-link:hover {
    color: #2563eb;
    transform: scale(1.1);
}

/* Special Content Row */
.info-row.content-row {
    background: rgba(220, 28, 28, 0.05);
    border: 1px dashed var(--primary-red);
    border-radius: 10px;
    margin-top: 10px;
}

.info-row.content-row .info-value {
    color: var(--primary-red);
    letter-spacing: 0.5px;
}

/* Amount Input Group */
.amount-input-wrap {
    margin-bottom: 25px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
}

.amount-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 12px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 15px;
    font-size: 20px;
    color: #94a3b8;
    z-index: 2;
}

.form-control-amount {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    color: #1e293b;
    transition: 0.3s;
    outline: none;
}

.form-control-amount:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(220, 28, 28, 0.1);
}

select.form-control-amount option {
    background-color: #ffffff;
    color: #1e293b;
    padding: 10px;
    font-size: 15px;
}

select.form-control-amount option[value=""] {
    background-color: #2563eb;
    color: #ffffff;
}

/* Custom Radio Grid for Cards */
.custom-radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.amount-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.custom-radio-item {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.custom-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-align: center;
    font-weight: 700;
    color: #475569;
    font-size: 14.5px;
    user-select: none;
}

.custom-radio-item:hover .radio-content {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.custom-radio-item input[type="radio"]:checked+.radio-content {
    border-color: var(--primary-red);
    background: rgba(220, 28, 28, 0.05);
    color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(220, 28, 28, 0.15);
}

.telco-logo-text {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.viettel-text {
    color: #ee0033;
}

.custom-radio-item input[type="radio"]:checked+.radio-content .viettel-text {
    color: #ee0033;
}

.vinaphone-text {
    color: #0088cc;
}

.custom-radio-item input[type="radio"]:checked+.radio-content .vinaphone-text {
    color: #0088cc;
}

.mobifone-text {
    color: #005aa9;
}

.custom-radio-item input[type="radio"]:checked+.radio-content .mobifone-text {
    color: #005aa9;
}

.zing-text {
    color: #f58220;
}

.custom-radio-item input[type="radio"]:checked+.radio-content .zing-text {
    color: #f58220;
}


.btn-create-invoice {
    width: 100%;
    margin-top: 20px;
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-create-invoice:hover {
    background: var(--primary-red);
    filter: brightness(0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 28, 28, 0.2);
}

.btn-create-invoice:active {
    transform: translateY(0);
}

/* Hidden state */
.recharge-result-area {
    display: none;
}

.recharge-result-area.show {
    display: grid;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-side-panel {
    width: 280px;
}

.qr-container {
    background: #ffffff;
    padding: 15px;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.qr-container:hover {
    transform: translateY(-5px);
}

.qr-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.qr-label-box {
    margin-top: 15px;
    font-weight: 800;
    font-size: 14px;
    color: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-hint {
    font-size: 13px;
    color: #718096;
    line-height: 1.6;
    font-style: italic;
}

/* Table System */
.table-responsive {
    overflow-x: auto;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom th {
    text-align: left;
    padding: 15px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-gray);
    background: #f8fafc;
    border-bottom: 2px solid var(--border-color);
}

.table-custom td {
    padding: 15px;
    font-size: 14.5px;
    border-bottom: 1px solid var(--border-color);
}

.empty-history {
    text-align: center;
    padding: 40px 0;
    color: var(--text-gray);
}

/* Profile Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-label-custom {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-control-custom {
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1.5px solid #e2e8f0;
    font-size: 14.5px;
    transition: 0.2s;
    box-sizing: border-box;
}

.form-control-custom:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 4px rgba(220, 28, 28, 0.08);
}

.form-control-custom.readonly {
    background: #f8fafc;
    cursor: not-allowed;
}

.btn-save-profile {
    background: var(--primary-red);
    color: #fff;
    padding: 12px 30px;
    border-radius: var(--radius);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 992px) {

    .recharge-layout,
    .profile-grid {
        flex-direction: column;
    }

    .recharge-sidebar,
    .profile-sidebar {
        width: 100%;
        flex: none;
    }

    .recharge-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .qr-code-panel {
        width: 100%;
        order: -1;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .form-group.full-width {
        grid-column: span 1 !important;
    }


    .content-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 12px 10px;
    }

    .info-label {
        width: 100%;
        font-size: 11px;
    }

    .info-value-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .info-value {
        text-align: left;
        font-size: 13px;
    }

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

@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .container-profile {
        padding: 0 !important;
    }

    .profile-page-wrapper {
        padding: 0 !important;
    }

    .profile-grid {
        gap: 15px;
    }

    .method-item,
    .method-item-list {
        width: 100%;
    }


    .alert-premium {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .alert-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

/* Custom Global Toast */
.toast-popup-custom {
    background: #ffffff !important;
    border-radius: 8px !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    padding: 12px 20px 12px 15px !important;
}

.toast-title-custom {
    font-family: 'Inter', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin-left: 10px !important;
}

.swal2-icon.swal2-success.toast-icon-custom {
    border-color: #dcfce7 !important;
    background-color: #f0fdf4 !important;
}

.swal2-icon.swal2-success.toast-icon-custom [class^=swal2-success-line] {
    background-color: #86efac !important;
}

.swal2-icon.swal2-success.toast-icon-custom .swal2-success-ring {
    border-color: #bbf7d0 !important;
    border: 4px solid #dcfce7 !important;
}

.toast-progress-custom {
    background: var(--primary-red) !important;
}

/* Fix/* Tool: Facebook Live Checker */
.text-primary-red {
    color: var(--primary-red) !important;
}

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

.btn-primary-red {
    background: var(--primary-red);
    color: white !important;
    border: none;
    border-radius: 50px;
    padding: 14px 35px !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(220, 28, 28, 0.2);
}

.btn-primary-red:hover {
    background: #b91515;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 28, 28, 0.3);
}

.tool-card {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

.status-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    padding: 15px 10px !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 12px !important;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    min-height: 110px;
}

.status-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-red) !important;
}

.status-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
    flex-shrink: 0;
}

.status-box .h3 {
    font-size: 22px;
    margin-bottom: 2px;
}

.bg-light-blue {
    background: #eff6ff !important;
}

.bg-light-success {
    background: #f0fdf4 !important;
}

.bg-light-danger {
    background: #fef2f2 !important;
}

#uid_input {
    border-radius: 12px;
    border: 2px solid #f1f5f9;
    padding: 20px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.3s ease;
    line-height: 1.6;
}

#uid_input:focus {
    background: #fff;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 5px rgba(220, 28, 28, 0.08);
    outline: none;
}

.result-card {
    border-radius: 20px;
}

.result-card .card-header {
    padding: 18px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.copy-btn {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 15px !important;
    border-radius: 50px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #f1f5f9 !important;
    color: #334155 !important;
    transform: scale(1.05);
}

.progress {
    background: #f1f5f9;
    height: 14px !important;
    border-radius: 50px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.progress-bar {
    border-radius: 50px;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

/* Fix SweetAlert2 z-index */
.swal2-container {
    z-index: 20000 !important;
}

/* Affiliate Page Styles */
:root {
    --aff-primary: var(--primary-red);
    --aff-secondary: #2563eb;
    --aff-bg: #ffffff;
    --aff-border: #e2e8f0;
    --aff-radius: 8px;
}

.aff-wrapper {
    padding: 20px 0 40px;
}

.aff-card {
    background: white;
    border-radius: var(--aff-radius);
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--aff-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.aff-share-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aff-share-title span {
    color: var(--aff-primary);
}

.aff-share-desc {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

.aff-link-input-group {
    display: flex;
    background: #f8fafc;
    padding: 5px;
    border-radius: var(--aff-radius);
    border: 1px solid var(--aff-border);
}

.aff-link-input-group input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 8px 12px;
    font-weight: 500;
    color: #334155;
    font-size: 14px;
    outline: none;
}

.btn-aff-copy {
    background: var(--aff-primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-aff-copy:hover {
    opacity: 0.9;
}

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

.aff-stat-card {
    background: white;
    border-radius: var(--aff-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--aff-border);
}

.stat-icon-box {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bg-red-soft {
    background: #fff1f2;
    color: #e11d48;
}

.bg-blue-soft {
    background: #eff6ff;
    color: #2563eb;
}

.bg-green-soft {
    background: #f0fdf4;
    color: #16a34a;
}

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

.stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aff-steps-card {
    background: #f8fafc;
    border-radius: var(--aff-radius);
    padding: 25px;
    border: 1px solid var(--aff-border);
    margin-bottom: 20px;
}

.steps-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}

.step-item {
    display: flex;
    gap: 15px;
}

.step-num {
    width: 28px;
    height: 28px;
    background: white;
    border: 1px solid var(--aff-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--aff-primary);
    flex-shrink: 0;
    font-size: 13px;
}

.step-info h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1e293b;
}

.step-info p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.aff-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.aff-table-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-table-v2 {
    width: 100%;
    border: 1px solid var(--aff-border);
    border-radius: var(--aff-radius);
    overflow: hidden;
}

.custom-table-v2 table {
    width: 100%;
    margin: 0;
}

.custom-table-v2 th {
    background: #f8fafc;
    padding: 12px 15px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    border-bottom: 1px solid var(--aff-border);
}

.custom-table-v2 td {
    padding: 12px 15px;
    font-size: 13px;
    color: #334155;
    border-bottom: 1px solid var(--aff-border);
}

.custom-table-v2 tr:last-child td {
    border-bottom: none;
}

.badge-success-soft {
    background: #f0fdf4;
    color: #16a34a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.btn-withdraw-v2 {
    background: var(--aff-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.btn-withdraw-v2:hover {
    opacity: 0.9;
}

.aff-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-4 {
    margin-bottom: 24px;
}

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

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

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

/* Modal Styles with aff- prefix to avoid conflicts */
.aff-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.aff-modal-overlay.active {
    display: flex !important;
}

.aff-modal-content {
    background: white;
    width: 95%;
    max-width: 500px;
    border-radius: var(--aff-radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: affModalFadeIn 0.3s ease-out;
}

@keyframes affModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aff-modal-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aff-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aff-modal-close {
    cursor: pointer;
    font-size: 20px;
    color: #94a3b8;
    transition: 0.2s;
}

.aff-modal-close:hover {
    color: var(--aff-primary);
}

.aff-modal-body {
    padding: 24px;
}

.balance-highlight {
    background: #fff1f2;
    border: 1px solid #fecaca;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.balance-highlight span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 5px;
}

.balance-highlight strong {
    font-size: 24px;
    color: var(--aff-primary);
    font-weight: 800;
}

.form-group-v2 {
    margin-bottom: 18px;
}

.form-group-v2 label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.form-group-v2 label span {
    color: var(--aff-primary);
}

.form-input-v2 {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: 0.2s;
}

.form-input-v2:focus {
    border-color: var(--aff-primary);
    box-shadow: 0 0 0 3px rgba(220, 28, 28, 0.1);
}

.btn-submit-v2 {
    width: 100%;
    background: var(--aff-primary);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}

.btn-submit-v2:hover {
    filter: brightness(0.9);
}

/* Mobile Fixes for Affiliate */
@media (max-width: 768px) {
    .aff-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .steps-container {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .aff-header-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .btn-withdraw-v2 {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Affiliate Tabs */
.aff-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--aff-border);
}

.aff-tab-item {
    padding: 10px 5px;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: 0.2s;
}

.aff-tab-item:hover {
    color: var(--aff-primary);
}

.aff-tab-item.active {
    color: var(--aff-primary);
}

.aff-tab-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--aff-primary);
}

.aff-tab-content {
    display: none;
}

.aff-tab-content.active {
    display: block;
}

.badge-pending-soft {
    background: #fffbeb;
    color: #d97706;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.badge-danger-soft {
    background: #fef2f2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Post Detail Styles */
.post-detail-wrapper {
    display: flex;
    gap: 30px;
    margin: 30px 0 60px;
}

.post-main-content {
    flex: 1;
    min-width: 0;
}

.post-sidebar {
    width: 320px;
    flex-shrink: 0;
}

.post-article-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post-featured-img-wrap {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: #f1f5f9;
}

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

.post-header-info {
    padding: 30px 30px 0;
}

.post-category-tag {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.post-main-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 20px;
}

.post-meta-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.meta-item i,
.meta-item .iconify {
    font-size: 16px;
    color: #9ca3af;
}

.post-rich-content {
    padding: 0 30px 30px;
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.post-rich-content h2,
.post-rich-content h3 {
    margin: 30px 0 15px;
    color: #111827;
}

.post-rich-content p {
    margin-bottom: 20px;
}

.post-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
}

.sidebar-sticky-wrap {
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-post-card {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: 0.2s;
}

.related-post-card:last-child {
    margin-bottom: 0;
}

.rp-thumb {
    width: 70px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-content {
    min-width: 0;
}

.rp-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rp-date {
    font-size: 11px;
    color: #9ca3af;
}

.related-post-card:hover .rp-title {
    color: var(--primary-red);
}

/* Breadcrumbs */
.breadcrumb-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    color: #9ca3af;
}

.breadcrumb-wrap a {
    color: #6b7280;
    text-decoration: none;
    transition: 0.2s;
}

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

.breadcrumb-wrap span {
    color: #e5e7eb;
}

@media (max-width: 992px) {
    .post-detail-wrapper {
        flex-direction: column;
    }

    .post-sidebar {
        width: 100%;
    }

    .post-main-title {
        font-size: 22px;
    }
}

/* Consolidated Blog Styles */
.blog-list-wrapper {
    margin: 40px 0 80px;
}

.blog-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card-v2 {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.blog-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.blog-card-v2 .card-thumb {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: block;
}

.blog-card-v2 .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.blog-card-v2:hover .card-thumb img {
    transform: scale(1.1);
}

.blog-card-v2 .card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.blog-card-v2 .card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-v2 .card-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.5;
    text-decoration: none;
    transition: 0.2s;
}

.blog-card-v2:hover .card-title {
    color: var(--primary-red);
}

.blog-card-v2 .card-summary {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-v2 .card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card-v2 .card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #94a3b8;
}

.blog-card-v2 .card-more-btn {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-red);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-card-v2 .card-more-btn:hover {
    gap: 8px;
}

/* Category Tabs V2 */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.pill-item {
    padding: 8px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    transition: 0.2s;
}

.pill-item:hover {
    background: #f8fafc;
    color: var(--primary-red);
    border-color: var(--primary-red);
}

.pill-item.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.blog-header-v2 {
    text-align: center;
    margin-bottom: 30px;
}

.blog-header-v2 h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.blog-header-v2 p {
    color: #64748b;
}

/* Tool System Styles */
.tool-container {
    padding: 40px 0 80px;
}

.tool-header-v2 {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header-v2 h1 {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
}

.tool-header-v2 p {
    color: #6b7280;
    font-size: 16px;
}

.tool-card-v2 {
    background: white;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.tool-input-group {
    margin-bottom: 20px;
}

.tool-input-group label {
    display: block;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.tool-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tool-input-wrap .field-icon {
    position: absolute;
    left: 15px;
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
    z-index: 5;
}

.tool-input-wrap input,
.tool-input-wrap textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.tool-input-wrap input:focus,
.tool-input-wrap textarea:focus {
    border-color: var(--primary-red);
    background: white;
    box-shadow: 0 0 0 4px rgba(220, 28, 28, 0.05);
}

.tool-btn-submit {
    display: inline-flex;
    padding: 12px 25px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.tool-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 28, 28, 0.2);
}

.tool-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 2FA Result Box */
.twofa-result-card {
    background: #fdf2f2;
    border: 2px dashed #fecaca;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.twofa-label {
    font-size: 12px;
    font-weight: 800;
    color: #991b1b;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.twofa-code {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: 4px;
    margin-bottom: 15px;
    font-family: "JetBrains Mono", monospace;
}

/* Info Tool Box */
.tool-info-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #f3f4f6;
}

.tool-info-box h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.tool-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-info-box li {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

.tool-info-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

/* Tool Stat Cards Refinement */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card-v2 {
    padding: 20px 15px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.stat-card-v2:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-card-v2 .stat-label {
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-v2 .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.stat-card-v2.live {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

.stat-card-v2.live .stat-label {
    color: #166534;
}

.stat-card-v2.live .stat-value {
    color: #15803d;
}

.stat-card-v2.die {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}

.stat-card-v2.die .stat-label {
    color: #991b1b;
}

.stat-card-v2.die .stat-value {
    color: #b91c1c;
}

.tool-textarea-v2 {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 15px !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: 0.2s;
}

.tool-textarea-v2:focus {
    background: white;
    border-color: var(--primary-red) !important;
    box-shadow: 0 0 0 4px rgba(220, 28, 28, 0.05);
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

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

.opacity-50 {
    opacity: 0.5 !important;
}

.custom-table-v2 {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}