/* ============================================= */
/* DUY ANH STORE - PREMIUM DESIGN SYSTEM v2     */
/* ============================================= */

:root {
    --bg-body: #06070e;
    --bg-card: rgba(16, 18, 30, 0.7);
    --bg-card-hover: rgba(25, 28, 50, 0.85);
    --bg-input: rgba(30, 32, 50, 0.9);
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #3b82f6;
    --accent: #f43f5e;
    --promo: #10b981;
    --gold: #fbbf24;
    --purple: #a855f7;
    --cyan: #22d3ee;
    --text-main: #f1f5f9;
    --text-sub: #94a3b8;
    --border: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(99, 102, 241, 0.25);
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
    --gradient-brand: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    --gradient-accent: linear-gradient(135deg, #f43f5e, #ec4899);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.05));
}

/* === RESET === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    font-size: 14px;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    background-image:
        radial-gradient(ellipse at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(34, 211, 238, 0.03) 0%, transparent 60%);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== HEADER ===== */
header {
    background: rgba(6, 7, 14, 0.75);
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(1.5);
    transition: 0.3s;
}

header.scrolled {
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(99, 102, 241, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-btn-trigger {
    font-size: 17px;
    color: var(--text-sub);
    padding: 10px 12px;
    border-radius: 10px;
    transition: 0.25s;
    border: 1px solid transparent;
    background: none;
}

.menu-btn-trigger:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--border-glow);
    color: var(--primary-light);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
    transition: 0.3s;
}

.logo-img:hover {
    filter: drop-shadow(0 0 14px rgba(99, 102, 241, 0.5));
    transform: scale(1.03);
}

/* Search */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(15, 17, 30, 0.8);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 7px 16px;
    width: 200px;
    transition: 0.35s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12), var(--shadow-glow);
    width: 280px;
}

.search-icon {
    color: var(--text-sub);
    font-size: 12px;
    margin-right: 8px;
}

.search-box input {
    background: none;
    border: none;
    color: white;
    font-size: 13px;
    width: 100%;
    outline: none;
}

.search-box input::placeholder {
    color: #4b5563;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: -20px;
    right: -20px;
    background: rgba(15, 17, 30, 0.97);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    display: none;
    z-index: 50;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.search-results.active {
    display: block;
    animation: fadeIn 0.2s;
}

.search-result-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.15s;
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.search-result-item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 3px;
}

.search-result-item span {
    font-weight: 600;
    font-size: 13px;
}

/* Account */
.btn-account {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-sub);
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-account:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.btn-account.logged-in {
    background: rgba(99, 102, 241, 0.18);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: -310px;
    width: 290px;
    height: 100%;
    background: rgba(10, 12, 22, 0.97);
    backdrop-filter: blur(24px);
    z-index: 1000;
    border-right: 1px solid var(--border);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.7);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.sidebar-logo {
    height: 32px;
}

.sidebar .close-btn {
    position: static !important;
}

.menu-item {
    padding: 13px 16px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-sub);
    font-weight: 600;
    transition: 0.25s;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--gradient-brand);
    opacity: 0;
    transition: 0.25s;
    border-radius: 0 2px 2px 0;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: white;
}

.menu-item.active::before {
    opacity: 1;
}

.menu-item i {
    width: 22px;
    text-align: center;
    font-size: 14px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-footer {
    margin-top: auto;
}

.sidebar-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(99, 102, 241, 0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.sidebar-contact i {
    font-size: 18px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-label {
    display: block;
    font-size: 10px;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    backdrop-filter: blur(4px);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

#home-view {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(160deg, #080a18 0%, #0c1033 30%, #1a1550 60%, #1e1260 80%, #130d3a 100%);
    border-radius: 28px;
    padding: 80px 30px;
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.08), transparent, rgba(168, 85, 247, 0.06), transparent);
    animation: rotate 30s linear infinite;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(transparent, var(--bg-body));
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.6);
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    50% {
        transform: translateY(-120px) scale(1.5);
    }
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.06));
    color: var(--gold);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.08);
}

.hero-text h1 {
    font-size: 44px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero-subtitle {
    color: #94a3b8;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 35px;
}

.hero-subtitle strong {
    color: white;
    font-weight: 700;
}

.hero-stats {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: rgba(10, 12, 25, 0.6);
    padding: 18px 36px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 30px;
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* ===== CATEGORY PILLS ===== */
.category-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.category-pills::-webkit-scrollbar {
    height: 0;
}

.pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    background: rgba(15, 17, 30, 0.8);
    border: 1px solid var(--border);
    color: var(--text-sub);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: 0.3s;
    position: relative;
}

.pill:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: white;
    background: rgba(99, 102, 241, 0.08);
}

.pill.active {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--primary);
    color: var(--primary-light);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.12), inset 0 0 15px rgba(99, 102, 241, 0.05);
}

/* ===== SECTION ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--gradient-brand);
    border-radius: 2px;
    display: block;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.product-count {
    font-size: 13px;
    color: var(--text-sub);
    font-weight: 500;
}

/* ===== PRODUCT GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ===== PRODUCT CARD - PREMIUM ===== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 16px;
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(168, 85, 247, 0.03), transparent);
    opacity: 0;
    transition: 0.4s;
}

/* Shimmer line */
.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
    transition: 0.6s;
    transform: translateX(-100%);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 16px 50px -10px rgba(99, 102, 241, 0.2), 0 0 40px rgba(99, 102, 241, 0.06);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    transform: translateX(100%);
}

.card-img {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    flex-shrink: 0;
    background: white;
    padding: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(99, 102, 241, 0.1);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.card-header h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    color: var(--gold);
    font-weight: 700;
    background: rgba(251, 191, 36, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    width: fit-content;
    border: 1px solid rgba(251, 191, 36, 0.12);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.promo-badge {
    background: linear-gradient(135deg, var(--promo), #059669);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.25);
    letter-spacing: 0.3px;
}

.price-group {
    text-align: right;
}

.price-old {
    text-decoration: line-through;
    color: #4b5563;
    font-size: 11px;
    display: block;
    margin-bottom: 2px;
}

.price-new {
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    background: linear-gradient(135deg, #fff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.discount-tag {
    background: var(--accent);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    -webkit-text-fill-color: white;
}

/* ===== TRUST SECTION ===== */
.trust-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 50px 0;
    padding: 0;
}

.trust-item {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: 0.35s;
    position: relative;
    overflow: hidden;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: 0.35s;
}

.trust-item:hover {
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.trust-item:hover::before {
    opacity: 1;
    width: 100%;
}

.trust-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 22px;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.trust-icon i {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-item h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
}

.trust-item p {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
}

/* ===== REVIEW SECTION ===== */
.review-section {
    margin-top: 50px;
    padding: 28px;
    background: rgba(10, 12, 25, 0.5);
    border-radius: 24px;
    border: 1px solid var(--border);
}

.review-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.review-subtitle {
    color: var(--text-sub);
    margin-top: 5px;
    font-size: 13px;
}

.review-stats-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.review-stats-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.total-rating {
    font-size: 44px;
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.star-render {
    color: var(--gold);
    font-size: 15px;
    margin-bottom: 4px;
}

.review-count-text {
    font-size: 12px;
    color: var(--text-sub);
}

.btn-write-review {
    background: var(--gradient-brand);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.btn-write-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.review-form-container {
    display: none;
    margin-bottom: 25px;
    background: rgba(99, 102, 241, 0.04);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    animation: slideDown 0.3s;
}

.review-form-title {
    color: white;
    margin-bottom: 16px;
    font-size: 16px;
}

.star-rating-input {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.star-input {
    font-size: 24px;
    color: #1e293b;
    cursor: pointer;
    transition: 0.2s;
}

.star-input.active,
.star-input:hover {
    color: var(--gold);
    transform: scale(1.2);
}

.review-form-actions {
    display: flex;
    gap: 10px;
}

.btn-submit-review {
    background: var(--gradient-brand);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-cancel-review {
    background: transparent;
    color: var(--text-sub);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-cancel-review:hover {
    border-color: var(--text-sub);
    color: white;
}

.review-scroll-container {
    max-height: 650px;
    overflow-y: auto;
    padding-right: 8px;
}

.review-scroll-container::-webkit-scrollbar {
    width: 4px;
}

.review-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.review-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 2px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

/* Old review card styles removed — see SHOPEE-STYLE REVIEW CARDS section for new styles */

/* ===== PRODUCT DETAIL ===== */
#product-view {
    display: none;
    animation: slideUp 0.4s ease-out;
}

.breadcrumb {
    margin-bottom: 25px;
    color: var(--text-sub);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: 0.2s;
    font-weight: 500;
    background: none;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
}

.breadcrumb:hover {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.08);
    transform: translateX(-3px);
}

.product-layout {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 30px;
}

.product-header-box {
    background: rgba(15, 17, 30, 0.6);
    border-radius: 22px;
    padding: 28px;
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.ph-img {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

.ph-info h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.trust-badge-large {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
}

.badge-separator {
    color: rgba(255, 255, 255, 0.1);
}

.pkg-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pkg-section-title i {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pkg-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pkg-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.pkg-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
}

.pkg-card.selected {
    border: 2px solid var(--primary);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1), inset 0 0 20px rgba(99, 102, 241, 0.03);
}

.pkg-card.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient-brand);
}

.desc-box {
    margin-top: 30px;
    background: rgba(10, 12, 25, 0.5);
    padding: 25px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.desc-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.desc-title i {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desc-content {
    color: var(--text-sub);
    line-height: 1.8;
    font-size: 14px;
}

.desc-content ul {
    padding-left: 0;
}

.desc-content li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.desc-content li i {
    color: var(--promo);
    margin-top: 3px;
}

/* ===== ORDER BOX ===== */
.order-box {
    background: linear-gradient(180deg, rgba(16, 18, 30, 0.95) 0%, rgba(10, 12, 22, 0.98) 100%);
    border-radius: 22px;
    padding: 28px;
    border: 1px solid var(--border);
    position: sticky;
    top: 80px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.order-title {
    margin: 0 0 5px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-title i {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.order-subtitle {
    color: var(--text-sub);
    font-size: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    font-size: 11px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    color: white;
    transition: 0.25s;
    font-size: 14px;
    font-family: inherit;
}

.form-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1), 0 0 15px rgba(99, 102, 241, 0.08);
}

textarea.form-input {
    height: 80px;
    resize: none;
}

.coupon-group {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.coupon-group .form-input {
    margin: 0;
    flex: 1;
}

.btn-coupon {
    background: var(--bg-input);
    color: var(--text-sub);
    border: 1px solid var(--border);
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    transition: 0.25s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-coupon:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.order-summary {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-bottom: 22px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row span:first-child {
    color: var(--text-sub);
}

.summary-row.discount span:last-child {
    color: var(--promo);
}

.summary-row.total {
    font-size: 20px;
    font-weight: 800;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.summary-row.total span:last-child {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CTA Button with glow pulse */
.btn-buy-now {
    width: 100%;
    background: var(--gradient-brand);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.btn-buy-now::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-brand);
    border-radius: 16px;
    z-index: -1;
    opacity: 0;
    transition: 0.3s;
    filter: blur(12px);
}

.btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

.btn-buy-now:hover::before {
    opacity: 1;
}

.btn-buy-now:active {
    transform: translateY(0);
}

.payment-trust {
    text-align: center;
    font-size: 12px;
    color: #4b5563;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.related-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.related-title i {
    color: var(--accent);
}

/* ===== MODALS ===== */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: #4b5563;
    border: 1px solid transparent;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(244, 63, 94, 0.12);
    color: var(--accent);
    border-color: rgba(244, 63, 94, 0.2);
    transform: rotate(90deg);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(180deg, #141621 0%, #0e1018 100%);
    padding: 32px;
    border-radius: 24px;
    width: 95%;
    max-width: 480px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(99, 102, 241, 0.05);
    position: relative;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-title {
    margin: 0 0 24px;
    font-size: 20px;
    letter-spacing: 1.5px;
}

.auth-icon {
    font-size: 48px;
    margin-bottom: 16px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-switch {
    margin-top: 16px;
    font-size: 13px;
    cursor: pointer;
    color: #4b5563;
    transition: 0.2s;
}

.auth-switch:hover {
    color: var(--primary-light);
}

.auth-switch strong {
    color: var(--primary-light);
}

.pay-modal {
    max-width: 420px;
}

.pay-header {
    margin-bottom: 20px;
}

.pay-header-icon {
    font-size: 40px;
    margin-bottom: 10px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pay-header h3 {
    font-size: 16px;
    letter-spacing: 1px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qr-wrapper {
    padding: 16px;
    background: white;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.qr-image {
    width: 220px;
    height: 220px;
    border-radius: 8px;
}

.pay-details {
    background: rgba(15, 17, 30, 0.8);
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    text-align: left;
    border: 1px solid var(--border);
}

.pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.pay-row:first-child {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.pay-row span {
    color: var(--text-sub);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pay-amount {
    color: var(--accent) !important;
    font-size: 18px !important;
    -webkit-text-fill-color: var(--accent) !important;
}

.pay-memo {
    color: var(--gold) !important;
    font-size: 15px !important;
    -webkit-text-fill-color: var(--gold) !important;
}

.btn-confirm {
    background: linear-gradient(135deg, var(--promo), #059669) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25) !important;
}

/* Profile */
.profile-modal {
    max-width: 600px;
    text-align: left;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.profile-name {
    font-size: 16px;
    margin: 0 0 4px;
}

.profile-badge {
    font-size: 11px;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-title {
    font-size: 15px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-sub);
}

.history-list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

.btn-logout {
    margin-top: 20px;
    background: rgba(244, 63, 94, 0.06);
    color: var(--text-sub);
    border: 1px solid rgba(244, 63, 94, 0.15);
    padding: 12px;
    border-radius: 10px;
    width: 100%;
    font-weight: 600;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-logout:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(244, 63, 94, 0.1);
}

/* Admin */
.admin-modal {
    max-width: 850px;
    text-align: left;
}

.admin-title {
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.admin-tab {
    background: transparent;
    border: none;
    color: var(--text-sub);
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.admin-tab.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
}

.admin-scroll-view {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.admin-scroll-view::-webkit-scrollbar {
    width: 5px;
}

.admin-scroll-view::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 3px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.admin-table th {
    padding: 12px;
    color: var(--text-main);
    font-weight: 600;
    position: sticky;
    top: 0;
    background: rgba(15, 17, 30, 0.98);
    z-index: 10;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-sub);
}

/* ===== TOAST ===== */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(15, 17, 30, 0.95);
    color: white;
    padding: 14px 20px;
    border-radius: 14px;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-left: 4px solid #4b5563;
    animation: slideInRight 0.4s;
    border: 1px solid var(--border);
}

.toast.success {
    border-left-color: var(--promo);
}

.toast.error {
    border-left-color: var(--accent);
}

/* ===== ZALO WIDGET ===== */
.zalo-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 18px 8px 8px;
    border-radius: 50px;
    box-shadow: 0 6px 30px rgba(0, 104, 255, 0.35);
    z-index: 99;
    animation: float 3s infinite;
}

.zalo-pulse {
    position: absolute;
    inset: -5px;
    border-radius: 50px;
    border: 2px solid rgba(0, 104, 255, 0.3);
    animation: pulse 2s infinite;
}

.zalo-info {
    display: flex;
    flex-direction: column;
}

.zalo-title {
    font-weight: 800;
    color: #0068ff;
    font-size: 13px;
}

.zalo-sub {
    font-size: 10px;
    color: #888;
    font-weight: 600;
}

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: white;
    border: none;
    font-size: 15px;
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

/* ===== FOOTER ===== */
footer {
    background: #030408;
    border-top: 1px solid var(--border);
    padding: 0;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
}

.footer-brand p {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.7;
    margin-top: 12px;
}

.footer-logo {
    height: 34px;
    margin-bottom: 5px;
}

.footer-links h4 {
    font-size: 13px;
    margin-bottom: 18px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: #4b5563;
    font-size: 13px;
    margin-bottom: 10px;
    transition: 0.25s;
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-links a i {
    margin-right: 6px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    border: 1px solid var(--border);
    transition: 0.3s;
    font-size: 15px;
}

.social-links a:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #2a2d3a;
    font-size: 12px;
}

.admin-trigger {
    background: none;
    border: none;
    color: #1a1d2a;
    font-size: 14px;
    cursor: pointer;
    padding: 6px;
    transition: 0.2s;
}

.admin-trigger:hover {
    color: var(--text-sub);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(25px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.35);
    }
}

/* ===== SIDEBAR IMPROVEMENTS ===== */
.sidebar-promo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin: 0 14px 10px;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12), rgba(168, 85, 247, 0.08));
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid rgba(244, 63, 94, 0.15);
}

.sidebar-promo i {
    font-size: 14px;
    animation: glow 2s infinite;
}

.sidebar-promo strong {
    color: #fbbf24;
}

.sidebar-section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #4b5563;
    padding: 12px 22px 6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-section-label i {
    font-size: 10px;
}

.menu-count {
    margin-left: auto;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.08);
}

.menu-list-info {
    border-top: 1px solid var(--border);
    padding-top: 4px;
}

.sidebar-social {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.sidebar-social a {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    border: 1px solid var(--border);
    transition: 0.3s;
    font-size: 13px;
}

.sidebar-social a:hover {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* ===== SHOPEE-STYLE REVIEW CARDS ===== */
.star-distribution-wrap {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.star-distribution {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dist-label {
    font-size: 12px;
    color: var(--text-sub);
    min-width: 40px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dist-label i {
    color: var(--gold);
    font-size: 10px;
}

.dist-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    overflow: hidden;
}

.dist-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #f59e0b);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.dist-count {
    font-size: 12px;
    color: #4b5563;
    min-width: 24px;
    text-align: right;
}

/* Review Card — Shopee style */
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: 0.3s;
}

.review-card:hover {
    border-color: rgba(99, 102, 241, 0.15);
}

.rv-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.rv-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.rv-user-info {
    flex: 1;
}

.rv-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rv-verified {
    font-size: 10px;
    color: var(--promo);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.rv-time {
    font-size: 11px;
    color: #4b5563;
    margin-top: 2px;
}

.rv-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--gold);
}

.rv-stars .far {
    color: #333;
}

.rv-variant {
    display: inline-block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.rv-text {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.7;
    margin-bottom: 12px;
}

.rv-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rv-product-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.06);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.rv-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rv-img-badge {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rv-helpful-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: #6b7280;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rv-helpful-btn:hover,
.rv-helpful-btn.liked {
    color: var(--primary-light);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.06);
}

.rv-helpful-btn.liked i {
    font-weight: 900;
}

.rv-reply {
    margin-top: 14px;
    padding: 14px 16px;
    background: rgba(99, 102, 241, 0.04);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.rv-reply-header {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rv-reply-text {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.6;
}

/* ===== BLOG ARTICLE MODAL ===== */
.blog-modal {
    max-width: 700px;
}

.blog-modal-body {
    text-align: left;
}

.blog-modal-body h2 {
    font-size: 20px;
    color: white;
    margin-bottom: 16px;
    line-height: 1.4;
}

.blog-modal-body .blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.blog-modal-body .article-content {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.85;
}

.blog-modal-body .article-content h3 {
    color: var(--primary-light);
    font-size: 16px;
    margin: 22px 0 10px;
}

.blog-modal-body .article-content p {
    margin-bottom: 14px;
}

.blog-modal-body .article-content ul {
    padding-left: 20px;
    margin-bottom: 14px;
}

.blog-modal-body .article-content ul li {
    margin-bottom: 6px;
}

.blog-modal-body .article-content strong {
    color: var(--text-main);
}

/* ===== COUNTDOWN BANNER ===== */
.countdown-banner {
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0a1628 100%);
    border-radius: 22px;
    padding: 0;
    margin-bottom: 35px;
    border: 1px solid rgba(244, 63, 94, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(244, 63, 94, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.countdown-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), transparent 60%, rgba(168, 85, 247, 0.06));
    pointer-events: none;
}

.countdown-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 36px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 20px;
}

.countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), #ec4899);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
    animation: glow 2s infinite;
}

.countdown-title {
    font-size: 28px;
    font-weight: 900;
    color: white;
    margin-bottom: 8px;
}

.countdown-sub {
    color: var(--text-sub);
    font-size: 14px;
}

.countdown-sub strong {
    color: var(--accent);
    font-weight: 800;
}

.countdown-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cd-unit {
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 16px;
    min-width: 68px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.cd-num {
    display: block;
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, #f43f5e, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.cd-label {
    display: block;
    font-size: 10px;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    font-weight: 600;
}

.cd-sep {
    font-size: 24px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
}

/* ===== HOT BADGE ===== */
.hot-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f43f5e, #ef4444);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
    animation: glow 2s infinite;
}

.view-all-link {
    font-size: 13px;
    color: var(--primary-light);
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-all-link:hover {
    color: white;
    gap: 10px;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    margin-top: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    gap: 18px;
    padding: 20px;
    cursor: pointer;
    transition: 0.35s;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), transparent);
    opacity: 0;
    transition: 0.35s;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.08);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    border: 1px solid rgba(34, 211, 238, 0.15);
    position: relative;
    z-index: 1;
}

.blog-icon-wrap i {
    background: linear-gradient(135deg, var(--cyan), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-card-body {
    flex: 1;
    position: relative;
    z-index: 1;
}

.blog-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    border: 1px solid rgba(34, 211, 238, 0.12);
}

.blog-title {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-date {
    font-size: 11px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-read-more {
    margin-left: auto;
    color: var(--cyan);
    font-weight: 600;
    font-size: 11px;
    transition: 0.2s;
}

.blog-card:hover .blog-read-more {
    color: white;
    transform: translateX(4px);
}

/* ===== POLICY SECTION ===== */
.policy-section {
    margin-top: 50px;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.policy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: 0.35s;
    position: relative;
    overflow: hidden;
}

.policy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: 0.35s;
}

.policy-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: var(--shadow-glow);
}

.policy-card:hover::before {
    opacity: 1;
}

.policy-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 22px;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.policy-icon i {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.policy-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.policy-list {
    list-style: none;
    padding: 0;
}

.policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 12px;
    line-height: 1.5;
}

.policy-list li:last-child {
    margin-bottom: 0;
}

.policy-list li i {
    color: var(--promo);
    margin-top: 3px;
    font-size: 11px;
    flex-shrink: 0;
}

/* ===== RESPONSIVE (NEW SECTIONS) ===== */
@media (max-width: 768px) {
    .countdown-content {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .countdown-title {
        font-size: 22px;
    }

    .countdown-right {
        justify-content: center;
    }

    .cd-unit {
        min-width: 56px;
        padding: 10px 12px;
    }

    .cd-num {
        font-size: 22px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .policy-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .trust-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
    }

    .order-box {
        position: static;
    }

    .hero-text h1 {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .hero-banner {
        padding: 55px 20px;
        border-radius: 20px;
    }

    .hero-stats {
        gap: 20px;
        padding: 14px 24px;
    }

    .stat-number {
        font-size: 24px;
    }

    .search-box {
        width: 150px;
    }

    .search-box:focus-within {
        width: 200px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .trust-section {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .zalo-widget {
        bottom: 18px;
        right: 14px;
        padding: 6px 14px 6px 6px;
    }

    .scroll-to-top {
        bottom: 18px;
        left: 14px;
        width: 38px;
        height: 38px;
    }

    .btn-account span {
        display: none;
    }

    .review-stats-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 12px;
    }

    .hero-text h1 {
        font-size: 22px;
    }

    .hero-stats {
        gap: 14px;
        padding: 12px 18px;
    }

    .stat-divider {
        height: 30px;
    }

    .category-pills {
        gap: 6px;
    }

    .pill {
        padding: 8px 14px;
        font-size: 12px;
    }

    .product-header-box {
        flex-direction: column;
        text-align: center;
    }

    .ph-info h1 {
        font-size: 22px;
    }

    .trust-badge-large {
        justify-content: center;
    }

    .trust-section {
        grid-template-columns: 1fr;
    }
}

/* ===== FLOATING CONTACT WIDGETS ===== */
.floating-widgets {
    position: fixed;
    bottom: 24px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: floatPulse 3s ease-in-out infinite;
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.float-zalo {
    background: linear-gradient(135deg, #0068ff, #0052cc);
}

.float-messenger {
    background: linear-gradient(135deg, #00b2ff, #006aff);
    animation-delay: 0.3s;
}

.float-phone {
    background: linear-gradient(135deg, #10b981, #059669);
    animation-delay: 0.6s;
}

.float-icon-img {
    width: 22px;
    height: 22px;
    filter: brightness(10);
}

.float-btn i {
    font-size: 18px;
}

.float-label {
    font-size: 12px;
    white-space: nowrap;
}

@keyframes floatPulse {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ===== PAYMENT MODAL ENHANCED ===== */
.pay-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.pay-tab {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pay-tab:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.pay-tab.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
    border-color: rgba(99, 102, 241, 0.35);
    color: white;
}

.pay-tab i {
    font-size: 14px;
}

.pay-tab-content {
    display: none;
}

.pay-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Bank Info */
.bank-info {
    margin: 12px 0 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
}

.bank-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bank-info-row:last-child {
    border-bottom: none;
}

.bank-label {
    font-size: 12px;
    color: var(--text-sub);
    min-width: 90px;
}

.bank-value {
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex: 1;
    text-align: right;
}

.btn-copy,
.btn-copy-sm {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 12px;
    margin-left: 8px;
    flex-shrink: 0;
}

.btn-copy:hover,
.btn-copy-sm:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.4);
}

.btn-copy.copied,
.btn-copy-sm.copied {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--promo);
}

.btn-copy-sm {
    padding: 4px 8px;
    font-size: 11px;
}

/* Payment Instructions */
.pay-instructions {
    margin: 16px 0;
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
}

.pay-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-sub);
    padding: 6px 0;
}

.step-num {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Zalo Link in Payment */
.pay-zalo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 104, 255, 0.1), rgba(0, 82, 204, 0.05));
    border: 1px solid rgba(0, 104, 255, 0.2);
    border-radius: 10px;
    color: #4da6ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s;
}

.pay-zalo-link:hover {
    background: linear-gradient(135deg, rgba(0, 104, 255, 0.2), rgba(0, 82, 204, 0.1));
    border-color: rgba(0, 104, 255, 0.4);
    color: #80c0ff;
    transform: translateY(-1px);
}

.pay-zalo-link i {
    font-size: 16px;
}

/* Pay row with copy button */
.pay-row {
    display: flex;
    align-items: center;
}

/* ===== FLOATING WIDGETS RESPONSIVE ===== */
@media (max-width: 768px) {
    .floating-widgets {
        bottom: 16px;
        left: 12px;
        gap: 8px;
    }

    .float-btn {
        padding: 10px 12px;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        justify-content: center;
    }

    .float-label {
        display: none;
    }

    .float-btn i,
    .float-icon-img {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
}