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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0; /* No banner space needed */
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.nav-brand i {
    color: #667eea;
    font-size: 1.8rem;
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    position: relative;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Body padding adjustment */
body {
    padding-top: 100px; /* Space for header only */
}

/* Hero Section */
.hero {
    padding: 20px 0 80px; /* Much less top padding */
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
    margin-top: -20px; /* Closer to navigation */
}

/* Homepage Hero - Extra tight spacing */
.hero-homepage {
    padding: 5px 0 80px; /* Even less top padding for homepage only */
    margin-top: -28px; /* Optimal distance - not too close, not too far */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #333;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.hero-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.hero-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.feature-card i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Products Section */
.products {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Product Search */
.product-search {
    margin: 2rem 0;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 0 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.search-icon {
    color: #999;
    margin-right: 1rem;
    font-size: 1.1rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 0;
    font-size: 1rem;
    background: transparent;
    color: #333;
}

.search-input::placeholder {
    color: #999;
    font-style: italic;
}

.clear-search {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.clear-search:hover {
    background: #f8f9fa;
    color: #667eea;
}

.search-results-info {
    text-align: center;
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 20px;
    display: inline-block;
    margin: 1rem auto 0;
    width: 100%;
    text-align: center;
}

/* No Products Found */
.no-products-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-products-found h3 {
    margin: 1rem 0 0.5rem;
    color: #333;
}

.no-products-found p {
    margin: 0;
    font-size: 0.9rem;
}

.product-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.filter-btn.active,
.filter-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image i {
    font-size: 4rem;
    color: white;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-content {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.product-features i {
    color: #28a745;
    font-size: 0.8rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    flex-direction: column;
    gap: 1rem;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.view-detail-btn,
.add-to-cart-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
    justify-content: center;
}

.view-detail-btn {
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
}

.view-detail-btn:hover {
    background: #667eea;
    color: white;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #667eea;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.1);
}

.service-card.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.service-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-icon i {
    font-size: 2rem;
    color: #667eea;
}

.service-card.featured .service-icon i {
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card.featured h3 {
    color: white;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #666;
}

.service-card.featured .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

.service-features i {
    color: #28a745;
    font-size: 0.9rem;
}

.service-card.featured .service-features i {
    color: #90ee90;
}

.service-price {
    margin-bottom: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.service-card.featured .price {
    color: white;
}

.period {
    font-size: 1rem;
    color: #999;
    margin-left: 0.25rem;
}

.service-card.featured .period {
    color: rgba(255, 255, 255, 0.8);
}

.service-btn {
    width: 100%;
    justify-content: center;
}

.service-card.featured .service-btn {
    background: white;
    color: #667eea;
}

.service-card.featured .service-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    padding-right: 2rem;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #666;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.about-stats .stat-item {
    text-align: center;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
}

.about-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.about-stats .stat-label {
    font-size: 0.9rem;
    color: #666 !important;
    font-weight: 500;
    opacity: 1 !important;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 2rem;
}

.about-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    text-align: center;
    transform: rotate(-3deg);
    transition: all 0.3s ease;
    border: 2px solid #f0f2ff;
}

.about-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
}

.about-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.about-card p {
    color: #666;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-details p {
    color: #666;
    margin: 0;
}

.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 16px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-input::placeholder {
    color: #999;
}

.form-btn {
    margin-top: 1rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: #667eea;
    font-size: 1.8rem;
}

.footer-description {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    transform: translateY(-2px);
}

/* Special styling for Zalo icon */
.social-link img {
    border-radius: 0;
    transition: all 0.3s ease;
}

.social-link:hover img {
    transform: scale(1.1);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links li i {
    color: #667eea;
    width: 16px;
    font-size: 0.9rem;
}

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

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

.footer-bottom p {
    margin: 0;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 15000; /* Higher than QR and PayPal popups */
}

.cart-modal.active {
    display: flex;
}

.cart-modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    color: #333;
}

.cart-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
}

.cart-close-btn:hover {
    color: #333;
}

.cart-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    padding: 2rem 0;
}

.cart-empty i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.cart-empty p {
    color: #999;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: #667eea;
    font-weight: 500;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: #ffe6e6;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.cart-total {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.cart-total span {
    color: #667eea;
}

.cart-checkout-btn {
    width: 100%;
    justify-content: center;
}

.checkout-cart-btn {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-cart-btn:hover {
    background: #0056b3;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        top: 0; /* Normal header position */
    }
    
    body {
        padding-top: 100px; /* Space for header only on mobile */
    }

    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero */
    .hero {
        padding: 40px 0 80px; /* Less top padding on mobile */
        margin-top: -23px; /* Even closer to navigation on mobile */
    }
    
    /* Homepage Hero mobile - Extra tight */
    .hero-homepage {
        padding: 15px 0 80px; /* Even less padding on mobile for homepage */
        margin-top: -28px; /* Closer on mobile for homepage */
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }
    


    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-search {
        margin: 1.5rem 0;
    }

    .search-container {
        padding: 0 1rem;
    }

    .search-input-wrapper {
        padding: 0 1rem;
    }

    .search-input {
        padding: 0.8rem 0;
        font-size: 0.9rem;
    }

    .search-input::placeholder {
        font-size: 0.85rem;
    }

    .search-results-info {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

    .product-filter {
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card.featured {
        transform: none;
    }

    .service-card.featured:hover {
        transform: translateY(-10px);
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text {
        padding-right: 0;
        text-align: center;
    }
    
    .about-image {
        padding-left: 0;
        order: -1;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 2rem auto 0;
    }
    
    .about-card {
        transform: rotate(0deg);
        margin: 0 1rem;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Typography */
    .section-title {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Cart Modal */
    .cart-modal-content {
        width: 95%;
        margin: 1rem;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .product-card {
        margin: 0 10px;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
.form-input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .cart-modal,
    .back-to-top {
        display: none !important;
    }

    .hero {
        padding: 2rem 0;
    }

    .section {
        padding: 1rem 0;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Floating Contact Icons */
.floating-contact {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-icon i {
    font-size: 24px;
    z-index: 2;
}

/* Messenger Icon */
.messenger-icon {
    background: linear-gradient(135deg, #0084ff 0%, #0066cc 100%);
}

.messenger-icon:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
}

/* Zalo Icon */
.zalo-icon {
    background: linear-gradient(135deg, #0068ff 0%, #0052cc 100%);
}

.zalo-icon:hover {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
}

/* Pulse animation */
.contact-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

.messenger-icon::before {
    background: rgba(0, 132, 255, 0.3);
}

.zalo-icon::before {
    background: rgba(0, 104, 255, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 80px;
        right: 15px;
        flex-direction: row;
        gap: 10px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon i {
        font-size: 18px;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Custom Font Awesome icon for Messenger + Zalo */
.fa-facebook-messenger-zalo::before {
    content: "\f39f"; /* Using messenger icon as base */
    position: relative;
}

.fa-facebook-messenger-zalo::after {
    content: " & 📱"; /* Adding phone emoji for Zalo reference */
    font-family: 'Inter', sans-serif;
    font-size: 0.8em;
    margin-left: 2px;
}

/* =================================
   NEW PAGES STYLES
   ================================= */

/* Page Content Styles */
.page-content {
    padding: 4rem 0;
    background: #f8f9fa;
    margin-top: 0; /* No extra margin needed, body padding handles spacing */
}

@media (max-width: 768px) {
    .page-content {
        margin-top: 0;
    }
}

.content-header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.content-body {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.content-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-section h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.content-section h3 {
    color: #444;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.content-section ol,
.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.7;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 1rem 0;
    color: white;
    margin-top: -30px; /* Even closer to navigation */
}

@media (max-width: 768px) {
    .breadcrumb {
        margin-top: -28px; /* Much closer to navigation on mobile */
    }
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: white !important;
}

.breadcrumb-nav i {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.8rem;
}

.breadcrumb-nav span {
    color: white !important;
    font-weight: 500;
}

/* Info Boxes */
.tip-box, .warning-box, .important-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.tip-box {
    background: #e8f5e8;
    border-left: 4px solid #28a745;
    color: #155724;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.important-box {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.tip-box i, .warning-box i, .important-box i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: #666;
    margin: 0;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.payment-method {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.payment-method h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-method i {
    color: #667eea;
    font-size: 1.2rem;
}

/* FAQ Styles */
.faq-list {
    display: grid;
    gap: 1.5rem;
}

.faq-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.faq-item h3 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item i {
    color: #667eea;
}

.faq-item p {
    margin: 0;
    color: #666;
}

/* Support Channels */
.support-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.support-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.support-item:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.support-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.support-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.support-item p {
    color: #666;
    margin-bottom: 1rem;
}

.available {
    background: #d4edda;
    color: #155724;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contact Page Specific */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-section {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-methods {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.contact-method.priority {
    border-color: #28a745;
    background: #f8fff8;
}

.method-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon i {
    color: white;
    font-size: 1.2rem;
}

.method-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.method-content p {
    color: #666;
    margin-bottom: 0.5rem;
}

.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.status.online {
    background: #d4edda;
    color: #155724;
}

.status.available {
    background: #cce7ff;
    color: #004085;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #5a67d8;
}

.business-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.info-list {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    color: #667eea;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.info-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
}

.info-item p {
    color: #666;
    margin: 0;
}

/* Quick Actions */
.quick-actions {
    margin: 4rem 0;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.action-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.action-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.action-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.action-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.action-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.action-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.action-link:hover {
    transform: translateY(-2px);
}

/* Support Hours */
.support-hours {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 3rem 0;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    max-width: 900px;
}

.hours-item {
    text-align: center;
    padding: 2rem;
    border: 2px solid #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.hours-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.hours-item h3 {
    color: #333;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.hours-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    align-self: center;
}

.hours-item p {
    margin: 0;
    flex-shrink: 0;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.online {
    background: #28a745;
}

.status-dot.available {
    background: #007bff;
}

.status-dot.priority {
    background: #dc3545;
}

/* Company Info Grids */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.value-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.value-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.value-card p {
    color: #666;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stats-grid .stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.stats-grid .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-grid .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.commitment-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.commitment-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.commitment-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.commitment-item i {
    color: #28a745;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.commitment-item strong {
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.commitment-item p {
    color: #666;
    margin: 0;
}

/* Responsive Design for New Pages */
/* Tablet breakpoint */
@media (max-width: 1024px) {
    .hours-grid {
        max-width: 100%;
        gap: 1.5rem;
    }
    
    .support-hours {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 900px) {
    .hours-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .content-body {
        padding: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-steps {
        gap: 1rem;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .payment-methods,
    .support-channels,
    .action-cards,
    .hours-grid,
    .values-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .support-hours {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .contact-info-section {
        padding: 2rem 1rem;
        margin: 0;
    }
    
    .hours-grid {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .hours-item {
        padding: 1.5rem 1rem;
        margin: 0;
    }
    
    .content-section ol,
    .content-section ul {
        margin-left: 1rem;
    }
}

/* Thank You Success Popup */
#thank-you-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000; /* Higher than other popups */
    animation: fadeIn 0.3s ease-out;
}

/* Prevent body scrolling when popup is open */
body.popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.thank-you-popup {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: successPopupIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 20001;
}

.success-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1rem;
    animation: checkIconBounce 0.6s ease-out 0.2s both;
}

.thank-you-popup h2 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.thank-you-popup p {
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.countdown-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 15px;
    border: 2px solid #e5e7eb;
}

.countdown-container p {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: #059669;
    margin: 0.5rem 0;
    animation: countdownPulse 1s infinite;
}

/* Thank You Popup Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes successPopupIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes checkIconBounce {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        color: #047857;
    }
}

/* Confirm Transaction Button Styles */
.confirm-transaction {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.confirm-transaction-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.confirm-transaction-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

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

.cancel-transaction-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cancel-transaction-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

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

.confirm-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
}

/* Crypto Popup Styles */
.crypto-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 16000; /* Higher than cart modal */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.crypto-popup {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.crypto-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.crypto-popup-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.crypto-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.crypto-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.crypto-popup-content {
    padding: 24px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Crypto Loading State */
.crypto-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.crypto-loading .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.crypto-loading p {
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.crypto-info {
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.crypto-info-popup {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0284c7;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.crypto-amounts p {
    margin: 8px 0;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crypto-amounts strong {
    color: #374151;
}

.usd-breakdown {
    color: #059669 !important;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem !important;
    font-weight: 600;
}

.final-amount {
    color: #dc2626 !important;
    font-weight: 700;
    font-size: 1.1rem !important;
}

.exchange-rate {
    color: #7c3aed !important;
    font-size: 0.9rem !important;
}

.crypto-fee {
    color: #f59e0b !important;
    font-weight: 600;
}

.crypto-amount {
    text-align: center;
    margin-bottom: 16px;
}

.crypto-amount h4 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 1rem;
}

.crypto-amount .amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.crypto-amount .usd-amount {
    font-size: 0.9rem;
    color: #6b7280;
}

.crypto-rate {
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 8px;
}

.crypto-selection {
    margin-bottom: 24px;
}

.crypto-selection h4 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 1rem;
}

.crypto-options {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.crypto-selection {
    margin-bottom: 24px;
}

.crypto-selection h4 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 1rem;
    text-align: center;
}

.crypto-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.crypto-option:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.crypto-option.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.crypto-option i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.crypto-option span {
    font-weight: 600;
    font-size: 0.9rem;
}

.crypto-networks {
    margin: 16px 0;
    display: none;
}

.crypto-networks.active {
    display: block;
}

.crypto-networks h5 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 0.9rem;
}

.usdt-network-section {
    background: #fef3c7;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #f59e0b;
}

.usdt-network-section h4 {
    margin: 0 0 16px 0;
    color: #92400e;
    font-size: 1rem;
    text-align: center;
}

.network-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.network-option {
    background: white;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.network-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.network-option.selected {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.network-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.network-desc {
    font-size: 0.8rem;
    opacity: 0.8;
}

.usdt-guide {
    background: #e0f2fe;
    border: 1px solid #0284c7;
    border-left: 4px solid #0284c7;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
}

.usdt-guide .guide-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0c4a6e;
}

.usdt-guide .guide-content i {
    color: #0284c7;
    font-size: 1.2rem;
}

.usdt-guide .guide-content p {
    margin: 0;
    font-size: 0.9rem;
}

.initial-guide {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 24px 0;
    text-align: center;
}

.initial-guide .guide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #166534;
}

.initial-guide .guide-content i {
    color: #10b981;
    font-size: 2rem;
}

.initial-guide .guide-content h4 {
    margin: 0;
    color: #166534;
    font-size: 1.1rem;
}

.initial-guide .guide-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #166534;
    opacity: 0.8;
}

.crypto-address {
    margin: 20px 0;
    display: none;
}

.crypto-address.active {
    display: block;
}

.crypto-address h5 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 0.9rem;
}

.wallet-address-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
}

.wallet-address-section h4 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 1rem;
}

.wallet-address-container {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.address-input-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    flex-wrap: nowrap;
}

.crypto-address-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #374151;
    word-break: break-all;
    line-height: 1.4;
    outline: none;
}

.crypto-address-input::placeholder {
    color: #9ca3af;
    font-style: italic;
    font-family: 'Inter', sans-serif;
}

.copy-btn-crypto {
    background: #667eea;
    border: none;
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
    height: auto;
}

.copy-btn-crypto:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.copy-btn-crypto.copied {
    background: #10b981;
}

.crypto-instructions {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #92400e;
}

.crypto-instructions h5 {
    margin: 0 0 8px 0;
    color: #92400e;
}

.crypto-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.crypto-instructions li {
    margin-bottom: 4px;
}

.instruction-note-popup {
    background: #e0f2fe;
    border: 1px solid #0284c7;
    border-left: 4px solid #0284c7;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    font-size: 0.9rem;
    color: #0f172a;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.instruction-note-popup i {
    color: #0284c7;
    margin-top: 2px;
}

.payment-instructions-popup h4 {
    color: #374151;
    margin-bottom: 16px;
    font-size: 1.1rem;
    text-align: center;
}

.instruction-steps {
    background: #f0fdf4;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    border: 1px solid #bbf7d0;
}

.instruction-steps p {
    margin: 8px 0;
    color: #166534;
    font-size: 0.9rem;
}

.crypto-brands-popup {
    text-align: center;
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 8px;
}

.confirm-transaction {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.confirm-transaction-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.confirm-transaction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.confirm-transaction-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Crypto Popup Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Crypto Loading Overlay */
.crypto-update-loading {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px);
    border-radius: 8px;
}

.crypto-update-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

.crypto-update-loading p {
    color: #374151;
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Styles - MUST have higher z-index than all popups */
.notification {
    z-index: 999999 !important; /* HIGHEST z-index - above everything */
}



.notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.notification-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.notification-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

/* Button Active/Pressed States */
.crypto-option:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.network-option:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.copy-btn-crypto:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.confirm-transaction-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

/* Loading/Processing States */
.crypto-option.loading {
    opacity: 0.7;
    pointer-events: none;
}

.network-option.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive Crypto Popup */
@media (max-width: 768px) {
    .crypto-popup {
        margin: 10px;
        max-height: 95vh;
    }
    
    .crypto-popup-content {
        padding: 20px;
        max-height: calc(95vh - 80px);
    }
    
    .crypto-options {
        grid-template-columns: 1fr 1fr;
    }
    
    .network-options {
        justify-content: center;
    }
    
    .address-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .copy-address-btn {
        align-self: center;
    }
    
    /* Fix copy button responsive */
    .address-input-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }
    
    .crypto-address-input {
        font-size: 0.8rem;
        padding: 8px 0;
        text-align: center;
    }
    
    .copy-btn-crypto {
        align-self: center;
        min-width: 80px;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
}

/* Guide Page - Crypto Section Styles */
.crypto-guide {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.guide-note {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guide-note i {
    color: #d97706;
    font-size: 1.2rem;
}

.guide-note p {
    margin: 0;
    color: #92400e;
    font-weight: 500;
}

.crypto-warning {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.crypto-warning i {
    color: #dc2626;
    font-size: 1.3rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.crypto-warning h4 {
    color: #991b1b;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.crypto-warning ul {
    margin: 0;
    padding-left: 1.25rem;
}

.crypto-warning li {
    color: #7f1d1d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Crypto payment method styling in guide */
.payment-method .fa-bitcoin {
    background: linear-gradient(135deg, #f7931a 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

/* Enhanced list styling for crypto guide */
.crypto-guide ol {
    counter-reset: crypto-step;
    list-style: none;
    padding-left: 0;
}

.crypto-guide ol > li {
    counter-increment: crypto-step;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    padding: 1rem 1rem 1rem 3rem;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.crypto-guide ol > li::before {
    content: counter(crypto-step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.crypto-guide ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.crypto-guide ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Mobile responsive for crypto guide */
@media (max-width: 768px) {
    .crypto-guide {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
    
    .crypto-guide ol > li {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    }
    
    .crypto-guide ol > li::before {
        left: 0.75rem;
        top: 0.75rem;
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.7rem;
    }
    
    .guide-note {
        padding: 0.75rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .crypto-warning {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .crypto-warning i {
        align-self: center;
        margin-top: 0;
    }
}