/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Diamond Background - GIỐNG GOAI.EDU.VN */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(249, 200, 70, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(249, 200, 70, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(255, 235, 59, 0.06) 0%, transparent 40%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 30%, #0f0f0f 60%, #1a1a1a 100%);
    animation: diamondShift 8s ease-in-out infinite;
    z-index: -3;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(249, 200, 70, 0.03) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 215, 0, 0.02) 50%, transparent 60%),
        linear-gradient(90deg, transparent 40%, rgba(249, 200, 70, 0.02) 50%, transparent 60%);
    background-size: 200px 200px, 150px 150px, 300px 300px;
    animation: diamondPattern 12s linear infinite;
    z-index: -2;
}

/* Floating Diamond Particles */
.diamond-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.diamond-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #f9c846, #ffd700);
    transform: rotate(45deg);
    animation: float 20s linear infinite;
    opacity: 0;
}

.diamond-particle:nth-child(odd) {
    background: linear-gradient(45deg, #ffecb3, #f9c846);
    animation-duration: 25s;
}

.diamond-particle:nth-child(3n) {
    background: linear-gradient(45deg, #fff176, #ffeb3b);
    animation-duration: 15s;
}

@keyframes diamondShift {
    0%, 100% {
        background: 
            radial-gradient(circle at 20% 80%, rgba(249, 200, 70, 0.12) 0%, transparent 40%),
            radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.10) 0%, transparent 40%),
            radial-gradient(circle at 40% 40%, rgba(249, 200, 70, 0.08) 0%, transparent 40%),
            radial-gradient(circle at 60% 80%, rgba(255, 235, 59, 0.06) 0%, transparent 40%),
            linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 30%, #0f0f0f 60%, #1a1a1a 100%);
    }
    50% {
        background: 
            radial-gradient(circle at 80% 20%, rgba(249, 200, 70, 0.14) 0%, transparent 40%),
            radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.12) 0%, transparent 40%),
            radial-gradient(circle at 60% 60%, rgba(249, 200, 70, 0.10) 0%, transparent 40%),
            radial-gradient(circle at 40% 20%, rgba(255, 235, 59, 0.08) 0%, transparent 40%),
            linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 30%, #0a0a0a 60%, #1a1a1a 100%);
    }
}

@keyframes diamondPattern {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-200px) translateY(-200px);
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(405deg);
        opacity: 0;
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.logo h1 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
}

.logo .highlight {
    background: linear-gradient(135deg, #f9c846 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo p {
    font-size: 0.9rem;
    color: #cccccc;
    margin-top: 0.3rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 0 2rem;
}

.main-title {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-title .highlight {
    background: linear-gradient(135deg, #f9c846 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(249, 200, 70, 0.3));
}

.subtitle {
    font-size: 1.4rem;
    color: #f9c846;
    font-weight: 600;
    margin-bottom: 3rem;
    font-style: italic;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

.stats-top {
    padding-top: 3rem;
}

.stats-top {
    padding-top: 2rem;
}

.stat-item {
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid rgba(249, 200, 70, 0.2);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f9c846, #ffd700);
    border-radius: 16px 16px 0 0;
}

.stat-item:hover {
    border-color: rgba(249, 200, 70, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(249, 200, 70, 0.2);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #f9c846 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #cccccc;
    font-weight: 500;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0 4rem;
}

.product-card {
    background: rgba(25, 25, 25, 0.8);
    border: 1px solid rgba(249, 200, 70, 0.2);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(249, 200, 70, 0.5);
    box-shadow: 0 20px 40px rgba(249, 200, 70, 0.2);
}

.product-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(249, 200, 70, 0.08), rgba(255, 215, 0, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border-bottom: 1px solid rgba(249, 200, 70, 0.15);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    filter: brightness(1) contrast(1.05) saturate(1.1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
    image-rendering: auto;
    filter: brightness(1.05) contrast(1.08) saturate(1.15);
}

.product-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.product-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f9c846, #ffd700);
    color: #0a0a0a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    min-height: 50px;
}

.price-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 1rem;
}

.new-price {
    color: #F6C453;
    font-size: 28px;
    font-weight: 700;
}

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

.product-sales {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #aaa;
}

.sales-icon {
    color: #f9c846;
}

/* Buy Now Button */
.buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: #1a1406;
    background: linear-gradient(180deg, #FFD77A, #F6C453);
    box-shadow: 0 10px 30px rgba(246, 196, 83, 0.18), 0 0 22px rgba(246, 196, 83, 0.18);
    border: 1px solid rgba(255, 215, 122, 0.35);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.buy-now:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 14px 40px rgba(246, 196, 83, 0.28), 0 0 28px rgba(246, 196, 83, 0.30);
}

.buy-now:active {
    transform: translateY(0px) scale(0.99);
}

.buy-now span:first-child {
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: rgba(15, 15, 15, 0.9);
    border-top: 1px solid rgba(249, 200, 70, 0.2);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 60px; /* Add space for ticker */
}

.footer p {
    color: #888;
    margin-bottom: 0.5rem;
}

.footer a {
    color: #f9c846;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffd700;
}

/* Ticker Animation */
.ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(25, 25, 25, 0.95) 100%);
    border-top: 1px solid rgba(249, 200, 70, 0.3);
    backdrop-filter: blur(20px);
    overflow: hidden;
    z-index: 10;
    display: flex;
    align-items: center;
}

.ticker-wrapper {
    display: flex;
    animation: tickerScroll 45s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-right: 4rem;
    padding: 0 1rem;
    position: relative;
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #f9c846 25%,
        #ffd700 50%,
        #f9c846 75%,
        #ffffff 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.ticker-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #f9c846 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.contact-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.contact-btn svg {
    width: 28px;
    height: 28px;
}

.zalo-btn {
    background: #0068FF;
}

.zalo-btn:hover {
    background: #0052CC;
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.5);
}

.telegram-btn {
    background: #229ED9;
}

.telegram-btn:hover {
    background: #1B7FB5;
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.5);
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

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

    .main-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        letter-spacing: -0.015em;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .stats-row {
        gap: 1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .stat-item {
        padding: 1.5rem 0.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .product-image {
        height: 150px;
        font-size: 3rem;
    }

    .product-name {
        font-size: 1rem;
        min-height: 45px;
    }

    .new-price {
        font-size: 24px;
    }
    
    .old-price {
        font-size: 14px;
    }

    .floating-contact {
        right: 15px;
    }

    .contact-btn {
        width: 50px;
        height: 50px;
    }

    .contact-btn svg {
        width: 24px;
        height: 24px;
    }

    .ticker-container {
        height: 50px;
    }

    .ticker-item {
        font-size: 0.9rem;
        margin-right: 3rem;
    }

    .ticker-icon {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .main-title {
        font-size: 1.8rem;
        letter-spacing: -0.01em;
    }

    .subtitle {
        font-size: 1rem;
    }

    .stats-row {
        gap: 0.8rem;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    .stat-item {
        padding: 1.2rem 0.6rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .products-grid {
        gap: 1rem;
    }

    .product-info {
        padding: 1rem;
    }

    .product-tag {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
    }

    .floating-contact {
        right: 10px;
        gap: 10px;
    }

    .contact-btn {
        width: 44px;
        height: 44px;
    }

    .contact-btn svg {
        width: 20px;
        height: 20px;
    }

    .ticker-container {
        display: none;
    }
}
