* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1E90FF;
    --primary-dark: #1565C0;
    --secondary: #FFD700;
    --dark: #23272A;
    --darker: #1A1D20;
    --light: #F2F3F5;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #1A1D20 0%, #1E90FF 50%, #FFD700 100%);
    --gradient-2: linear-gradient(135deg, #0D47A1 0%, #23272A 50%, #FFA500 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Font optimization */
@font-face {
    font-family: 'Poppins';
    font-display: swap;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1A1D20 0%, #1E90FF 50%, #FFD700 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo h1 {
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 10px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 56px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Features Section */
.features {
    margin: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    color: var(--white);
    margin-bottom: 60px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease backwards;
    will-change: transform;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    will-change: auto;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    margin: 80px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease backwards;
    will-change: transform;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }
.pricing-card:nth-child(4) { animation-delay: 0.4s; }

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    will-change: auto;
}

.pricing-card.popular {
    border: 3px solid var(--secondary);
}

.pricing-card.premium {
    background: linear-gradient(135deg, #1A1D20 0%, #1E90FF 50%, #FFD700 100%);
    color: var(--white);
}

.pricing-card.premium h3,
.pricing-card.premium .price,
.pricing-card.premium .period,
.pricing-card.premium .plan-features li {
    color: var(--white);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(87, 242, 135, 0.3);
}

.pricing-card.premium .plan-badge {
    background: var(--white);
    color: var(--primary);
}

.plan-name {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark);
}

.pricing-card.premium .plan-name {
    color: var(--white);
}

.plan-price {
    margin-bottom: 10px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.pricing-card.premium .price {
    color: var(--white);
}

.period {
    font-size: 18px;
    color: #666;
}

.pricing-card.premium .period {
    color: rgba(255, 255, 255, 0.8);
}

.savings {
    display: inline-block;
    background: rgba(87, 242, 135, 0.2);
    color: #00a86b;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-card.premium .savings {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.plan-features {
    list-style: none;
    margin: 30px 0;
}

.plan-features li {
    padding: 12px 0;
    font-size: 15px;
    color: #555;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card.premium .plan-features li {
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-button {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary);
    color: var(--white);
}

.plan-button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.popular-button {
    background: var(--secondary);
    color: var(--dark);
}

.popular-button:hover {
    background: #4cd972;
    box-shadow: 0 10px 30px rgba(87, 242, 135, 0.4);
}

.premium-button {
    background: var(--white);
    color: var(--primary);
}

.premium-button:hover {
    background: var(--light);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

.free-button {
    background: #ccc;
    cursor: not-allowed;
}

.free-button:hover {
    transform: none;
    box-shadow: none;
}

/* Contact Section */
.contact-section {
    margin: 80px 0;
    padding: 60px 20px;
}

.contact-subtitle {
    text-align: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 60px;
    font-weight: 400;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease backwards;
    will-change: transform;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }
.contact-card:nth-child(5) { animation-delay: 0.5s; }
.contact-card:nth-child(6) { animation-delay: 0.6s; }

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    will-change: auto;
}

.contact-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--dark);
}

.contact-card p {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

.contact-link {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(30, 144, 255, 0.4);
}

/* Tab Navigation */
.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white;
    background-color: rgba(124, 58, 237, 0.1);
}

.nav-link.active {
    color: white;
    border-bottom: 2px solid #FFD700;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Store Section */
.store-subtitle,
.pricing-subtitle,
.contact-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    will-change: transform;
    content-visibility: auto;
    contain-intrinsic-size: 260px 400px;
}

.product-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
    will-change: auto;
}

.product-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Out of Stock Styles */
.product-card.out-of-stock {
    opacity: 0.7;
    cursor: not-allowed;
}

.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.out-of-stock-overlay span {
    background: #ff4444;
    color: white;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    letter-spacing: 1px;
    transform: rotate(-15deg);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.product-card.out-of-stock .view-details-btn {
    background: #ccc;
    cursor: not-allowed;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
    font-weight: 600;
}

.product-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E90FF;
    margin-bottom: 0.5rem;
}

.product-card .coins-info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.view-details-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #1E90FF 0%, #FFD700 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.view-details-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.3);
}

.view-details-btn:active {
    transform: scale(0.98);
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #1a1a1a;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.modal-image-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-image {
    text-align: center;
}

.modal-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-description {
    color: #666;
    line-height: 1.8;
    text-align: left;
    padding: 0 1rem;
}

.modal-details h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.modal-details p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.modal-options {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f5f7fa;
    border-radius: 12px;
}

.modal-options label {
    display: block;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.modal-options select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

/* Customer Information Section */
.customer-info-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 12px;
}

.customer-info-section h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.customer-info-section h3::before {
    content: '📦';
    margin-right: 0.5rem;
}

.customer-info-section .form-group {
    margin-bottom: 1rem;
}

.customer-info-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.customer-info-section input,
.customer-info-section textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.customer-info-section input:focus,
.customer-info-section textarea:focus {
    outline: none;
    border-color: #1E90FF;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.customer-info-section textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pricing-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.pricing-section h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.pricing-section .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1E90FF;
    margin-bottom: 1rem;
    word-break: break-word;
}

.pricing-section .coin-note {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 1rem;
}

.buy-button {
    width: 100%;
    padding: 1rem;
    background: #1E90FF;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.buy-button:hover {
    background: #1565C0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.3);
}

.buy-button.coin-button {
    background: #FFD700;
    color: #1a1a1a;
    font-size: 0.9rem;
}

.buy-button.coin-button:hover {
    background: #e6c200;
}

/* About Section */
.about-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #1E90FF 33%, #FFD700 66%);
    border-radius: 12px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.detailed-about {
    background: linear-gradient(135deg, #FF6B9D 0%, #1E90FF 50%, #FFD700 100%);
    padding: 3rem 2rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.why-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.why-card h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.why-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Features Comparison Section */
.features-comparison {
    margin: 60px 0;
    padding: 40px 0;
}

.features-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-detail-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #1E90FF;
}

.feature-detail-card:nth-child(2) {
    border-left-color: #FFD700;
}

.feature-detail-card:nth-child(3) {
    border-left-color: #FF6B9D;
}

.feature-detail-card:nth-child(4) {
    border-left-color: #00D084;
}

.feature-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-detail-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-detail-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

.feature-detail-card strong {
    color: var(--dark);
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Performance optimizations */
.feature-card,
.pricing-card,
.contact-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav {
        gap: 0.5rem;
        flex-wrap: wrap;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    .nav-link {
        font-size: 15px;
        padding: 0.5rem 0.7rem;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .pricing-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-pricing {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .modal-details h2 {
        font-size: 1.5rem;
    }
}

/* Image Gallery */
.image-gallery {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-img {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-img:hover {
    border-color: #1E90FF;
    transform: scale(1.05);
}

.gallery-img.active {
    border-color: #1E90FF;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimize image loading */
img {
    max-width: 100%;
    height: auto;
}
