/* ===== CSS Variables for Themes ===== */
:root {
    /* Light Theme Colors - Dark Background with White Cards */
    --bg-primary: #1c1c1e;
    --bg-secondary: #2c2c2e;
    --bg-tertiary: #3a3a3c;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-inverse: #1c1c1e;
    --border-color: #48484a;
    --accent-primary: #0a84ff;
    --accent-hover: #409cff;
    --accent-secondary: #00d4ff;
    --success: #32d74b;
    --warning: #ffd60a;
    --danger: #ff453a;
    --card-shadow: rgba(0, 0, 0, 0.5);
    --overlay: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] {
    /* Dark Theme Colors - Even Darker */
    --bg-primary: #000000;
    --bg-secondary: #0d0d0d;
    --bg-tertiary: #1a1a1a;
    --text-primary: #f5f5f7;
    --text-secondary: #98989d;
    --text-inverse: #000000;
    --border-color: #2c2c2e;
    --accent-primary: #0a84ff;
    --accent-hover: #409cff;
    --accent-secondary: #00d4ff;
    --success: #32d74b;
    --warning: #ffd60a;
    --danger: #ff453a;
    --card-shadow: rgba(0, 0, 0, 0.8);
    --overlay: rgba(255, 255, 255, 0.03);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: color 0.3s ease;
    position: relative;
    overflow-x: hidden;
    margin-left: 250px;
}

/* Animated Particle Canvas Background */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(-45deg, #0a1929, #1a1a2e, #0d2137, #16213e);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== Navigation ===== */
.navbar {
    background-color: #1e1e1e;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    z-index: 100;
    transition: background-color 0.3s ease;
    overflow-y: auto;
}

.nav-content {
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    height: 100%;
}

.logo {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: -5px;
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--overlay);
    color: var(--accent-primary);
}

.cart-link {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-primary);
    color: var(--text-inverse);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Theme Toggle Button */
.theme-toggle {
    padding: 0.75rem;
    border-radius: 8px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
}

.theme-toggle:hover {
    background-color: var(--accent-primary);
    color: var(--text-inverse);
    transform: rotate(180deg);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
}

.hidden {
    display: none;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #0a1929, #0d2137, #1a1a2e);
    color: white;
    padding: 6rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 132, 255, 0.3);
    background-color: var(--accent-hover);
}

/* ===== Filters Section ===== */
.filters-section {
    padding: 2rem 0;
    background-color: #2B2B2B;
    border-bottom: 1px solid #404040;
}

[data-theme="dark"] .filters-section {
    background-color: var(--bg-secondary);
    border-bottom-color: var(--border-color);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    background-color: #3a3a3c;
    color: #f5f5f7;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

[data-theme="dark"] .filter-btn {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.filter-btn:hover {
    background-color: var(--accent-primary);
    color: #ffffff;
}

.filter-btn.active {
    background-color: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-hover);
}

/* ===== Products Section ===== */
.products {
    padding: 4rem 0;
}

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

.product-card {
    background-color: #2B2B2B;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #404040;
    position: relative;
}

[data-theme="dark"] .product-card {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--card-shadow);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-image {
    height: 200px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

[data-theme="dark"] .product-image {
    background-color: #000000;
}

.placeholder-image {
    color: #999999;
    font-weight: 600;
    font-size: 1.2rem;
}

[data-theme="dark"] .placeholder-image {
    color: var(--text-secondary);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #f5f5f7;
}

[data-theme="dark"] .product-info h3 {
    color: var(--text-primary);
}

.product-specs {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

[data-theme="dark"] .product-desc {
    color: var(--text-secondary);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.add-to-cart {
    background-color: var(--accent-primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.add-to-cart:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

.contact-note {
    text-align: center;
    color: #b0b0b0;
    font-size: 0.85rem;
    margin-top: 1rem;
    font-style: italic;
}

[data-theme="dark"] .contact-note {
    color: var(--text-secondary);
}

/* ===== Features Section ===== */
.features {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    background-color: #2B2B2B;
    border-radius: 12px;
    transition: transform 0.3s ease;
    border: 1px solid #404040;
}

[data-theme="dark"] .feature-card {
    background-color: var(--bg-primary);
    border-color: var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #f5f5f7;
}

[data-theme="dark"] .feature-card h3 {
    color: var(--text-primary);
}

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

[data-theme="dark"] .feature-card p {
    color: var(--text-secondary);
}

/* ===== Page Hero ===== */
.page-hero {
    background: linear-gradient(135deg, #0a1929, #0d2137, #1a1a2e);
    color: white;
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== About Page Styles ===== */
.about-content {
    padding: 4rem 0;
}

.about-section {
    margin-bottom: 3rem;
}

.about-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.reason {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

.reason h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.reason p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.values-list strong {
    color: var(--accent-primary);
}

/* ===== Facility Gallery ===== */
.facility-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 5px 20px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--card-shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem 1.5rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Remove black frame from fifth gallery item */
.gallery-item:nth-child(5) img {
    object-fit: cover;
    object-position: center;
    transform: scale(1.65);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .facility-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }
}

/* ===== Contact Page Styles ===== */
.contact-content {
    padding: 4rem 0;
}

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

.contact-form-wrapper h3,
.contact-info-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.submit-btn {
    background-color: var(--accent-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
}

.contact-icon {
    font-size: 2rem;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.chat-btn {
    margin-top: 0.5rem;
    background-color: var(--accent-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.chat-btn:hover {
    background-color: var(--accent-hover);
}

/* FAQ Section */
.faq-section {
    margin: 4rem 0;
}

.faq-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    text-align: center;
}

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

.faq-item {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

.faq-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Support Hours */
.support-hours {
    margin: 3rem 0;
}

.support-hours h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    text-align: center;
}

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

.hours-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
}

.hours-item strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.hours-item p {
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-secondary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ===== Desktop Full-Width Background Sections ===== */
@media (min-width: 769px) {
    /* Make top blue area, bottom grey area stretch edge-to-edge on desktop */
    .hero,
    .page-hero,
    .filters-section,
    .features,
    .news-content,
    .about-content,
    .footer {
        margin-left: -250px !important;
        padding-left: 250px !important;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    body {
        margin-left: 0;
    }

    .navbar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        overflow: visible;
    }

    /* FIX scroll trap: Change grid to block on mobile */
    .products-grid {
        display: block !important;
    }

    .product-card {
        display: block !important;
        margin-bottom: 2rem !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .feature-card {
        opacity: 1 !important;
        transform: none !important;
    }

    .nav-content {
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        text-align: center;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .theme-toggle {
        margin-top: 1rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

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

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

    .filters {
        justify-content: flex-start;
    }

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

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .page-hero h2 {
        font-size: 1.8rem;
    }

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

/* ===== Animations ===== */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.5s ease-out;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* ===== Authentication Pages ===== */
.auth-section {
    padding: 4rem 0;
    min-height: calc(100vh - 400px);
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    background-color: var(--bg-secondary);
    padding: 3rem;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px var(--card-shadow);
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-form .form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.checkbox-label span a {
    color: var(--accent-primary);
    text-decoration: none;
}

.checkbox-label span a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--accent-primary);
    font-size: 0.9rem;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.auth-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    position: relative;
    background-color: var(--bg-secondary);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== Checkout Page ===== */
.checkout-section {
    padding: 3rem 0;
}

.checkout-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.checkout-form-container {
    max-width: 700px;
    width: 100%;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.step.active {
    color: var(--accent-primary);
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step.active .step-number {
    background-color: var(--accent-primary);
    color: white;
}

.checkout-section-card {
    background-color: #2B2B2B;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #404040;
}

[data-theme="dark"] .checkout-section-card {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.checkout-section-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #f5f5f7;
}

[data-theme="dark"] .checkout-section-card h3 {
    color: var(--text-primary);
}

.checkout-info-text {
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

[data-theme="dark"] .checkout-info-text {
    color: var(--text-secondary);
}

.contact-info-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #1a1a1a;
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

[data-theme="dark"] .contact-info-box {
    background-color: var(--bg-tertiary);
}

.contact-info-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #f5f5f7;
}

[data-theme="dark"] .contact-info-box h4 {
    color: var(--text-primary);
}

.contact-info-box p {
    color: #b0b0b0;
    margin-bottom: 1rem;
}

[data-theme="dark"] .contact-info-box p {
    color: var(--text-secondary);
}

.email-link {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.checkout-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .full-width {
    grid-column: 1 / -1;
}

.checkout-form .form-group {
    display: flex;
    flex-direction: column;
}

.checkout-form .form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #f5f5f7;
}

[data-theme="dark"] .checkout-form .form-group label {
    color: var(--text-primary);
}

.checkout-form .form-group input,
.checkout-form .form-group select,
.checkout-form .form-group textarea {
    padding: 0.8rem;
    border: 2px solid #404040;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: #f5f5f7;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

[data-theme="dark"] .checkout-form .form-group input,
[data-theme="dark"] .checkout-form .form-group select,
[data-theme="dark"] .checkout-form .form-group textarea {
    border-color: var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.checkout-form .form-group input:focus,
.checkout-form .form-group select:focus,
.checkout-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.checkout-form .form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: var(--accent-primary);
}

.payment-option input[type="radio"] {
    margin-right: 1rem;
    cursor: pointer;
}

.payment-option input[type="radio"]:checked + .payment-label {
    color: var(--accent-primary);
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-icon {
    font-size: 1.5rem;
}

.payment-fields {
    margin-top: 1.5rem;
}

.crypto-info,
.bank-info {
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.crypto-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1rem 0;
}

.crypto-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.crypto-note {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.checkout-button {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.checkout-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 132, 255, 0.3);
}

/* Order Summary */
.order-summary {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.order-summary h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.cart-items-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.cart-item-specs {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cart-item-price {
    font-weight: 700;
    color: var(--accent-primary);
}

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

.remove-item {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.remove-item:hover {
    color: var(--text-primary);
}

.order-totals {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.total-final {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.promo-code {
    display: flex;
    gap: 0.5rem;
}

.promo-code input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.promo-code button {
    padding: 0.8rem 1.5rem;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.promo-code button:hover {
    background-color: var(--accent-primary);
    color: white;
}

.empty-cart-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-cart-message h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.empty-cart-message a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

.empty-cart-message a:hover {
    background-color: var(--accent-hover);
}

/* ===== Live Chat Modal ===== */
.chat-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.chat-modal-content {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.chat-modal-header {
    background-color: var(--accent-primary);
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.chat-close:hover {
    transform: scale(1.2);
}

.chat-modal-body {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    margin-bottom: 0.5rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message p {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    max-width: 80%;
    margin: 0;
    line-height: 1.5;
}

.bot-message p {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.user-message {
    justify-content: flex-end;
}

.user-message p {
    background-color: var(--accent-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    border-radius: 0 0 12px 12px;
}

.chat-input {
    flex: 1;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.chat-send-btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.chat-send-btn:hover {
    background-color: var(--accent-hover);
}

/* Responsive Checkout */
@media (max-width: 968px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .checkout-steps {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .chat-modal-content {
        width: 95%;
        max-height: 80vh;
    }

    .chat-modal-body {
        height: 400px;
    }
}

/* ===== News Page Styles ===== */
.news-content {
    padding: 4rem 0;
    min-height: 60vh;
}

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

.news-filter-btn {
    background-color: #2B2B2B;
    color: #ffffff;
    border: 2px solid #404040;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.news-filter-btn:hover {
    background-color: #0a84ff;
    border-color: #0a84ff;
    transform: translateY(-2px);
}

.news-filter-btn.active {
    background-color: #0a84ff;
    border-color: #0a84ff;
}

[data-theme="dark"] .news-filter-btn {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.news-loading,
.news-error {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: #999;
}

.news-error {
    color: #ff4444;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background-color: #2B2B2B;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #404040;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10, 132, 255, 0.2);
}

[data-theme="dark"] .news-card {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-body {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.news-source {
    color: #0a84ff;
    font-weight: 600;
}

.news-date {
    color: #999;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .news-title {
    color: var(--text-primary);
}

.news-excerpt {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .news-excerpt {
    color: var(--text-secondary);
}

.news-read-more {
    color: #0a84ff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-block;
}

.news-read-more:hover {
    color: #0066cc;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-filters {
        gap: 0.5rem;
    }
    
    .news-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ===== Calculator Page Styles ===== */
.calculator-content {
    padding: 4rem 0;
    min-height: 70vh;
}

.calculator-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.calculator-inputs,
.calculator-results {
    background-color: #2B2B2B;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #404040;
}

[data-theme="dark"] .calculator-inputs,
[data-theme="dark"] .calculator-results {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.calculator-inputs h3,
.calculator-results h3 {
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

[data-theme="dark"] .calculator-inputs h3,
[data-theme="dark"] .calculator-results h3 {
    color: var(--text-primary);
}

.calc-form-group {
    margin-bottom: 1.5rem;
}

.calc-form-group label {
    display: block;
    color: #cccccc;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.calc-form-group input {
    width: 100%;
    padding: 0.75rem;
    background-color: #1a1a1a;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1rem;
}

.calc-form-group input:focus {
    outline: none;
    border-color: #0a84ff;
}

.calc-live-data {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.calc-live-data p {
    color: #cccccc;
    margin: 0.75rem 0;
    font-size: 1.1rem;
}

.calc-live-data strong {
    color: #ffffff;
}

.calc-live-data span {
    color: #0a84ff;
    font-weight: 600;
}

.calc-button {
    width: 100%;
    padding: 1rem;
    background-color: #0a84ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calc-button:hover {
    background-color: #0066cc;
}

.results-table {
    overflow-x: auto;
    margin-bottom: 2rem;
}

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

.results-table th,
.results-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #404040;
}

.results-table th {
    background-color: #1a1a1a;
    color: #ffffff;
    font-weight: 600;
}

.results-table td {
    color: #cccccc;
}

.results-table tr:hover {
    background-color: rgba(10, 132, 255, 0.1);
}

.calc-summary {
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.calc-summary p {
    color: #cccccc;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.calc-summary strong {
    color: #ffffff;
    margin-right: 0.5rem;
}

.calc-summary span {
    color: #0a84ff;
    font-weight: 600;
}

.chart-container {
    margin-top: 2rem;
}

.chart-container h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

.chart-container canvas {
    max-height: 300px;
}

@media (max-width: 1024px) {
    .calculator-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .calculator-inputs,
    .calculator-results {
        padding: 1.5rem;
    }

    .results-table {
        font-size: 0.85rem;
    }

    .results-table th,
    .results-table td {
        padding: 0.5rem;
    }
}

/* ===== Difficulty Chart Page Styles ===== */
.difficulty-content {
    padding: 4rem 0;
    min-height: calc(100vh - 500px);
}

.difficulty-chart-wrapper {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px var(--card-shadow);
    border: 1px solid var(--border-color);
}

.difficulty-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.difficulty-chart-header h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 0;
}

.difficulty-chart-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.difficulty-period-btn {
    padding: 0.6rem 1.2rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.difficulty-period-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.difficulty-period-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.difficulty-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.difficulty-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.difficulty-stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.difficulty-stat-item .stat-value {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 700;
}

.chart-container-difficulty {
    position: relative;
    height: 450px;
    margin-bottom: 2rem;
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: none; /* Hidden initially until data loads */
}

.chart-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.chart-loading p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.difficulty-info {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.difficulty-info h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.difficulty-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.difficulty-info p:last-child {
    margin-bottom: 0;
}

/* Responsive Styles for Difficulty Chart */
@media (max-width: 768px) {
    .difficulty-chart-wrapper {
        padding: 1.5rem;
    }

    .difficulty-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .difficulty-chart-header h3 {
        font-size: 1.5rem;
    }

    .difficulty-chart-controls {
        width: 100%;
        justify-content: space-between;
    }

    .difficulty-period-btn {
        flex: 1;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        text-align: center;
    }

    .difficulty-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .chart-container-difficulty,
    .chart-loading {
        height: 300px;
    }

    .difficulty-info {
        padding: 1.5rem;
    }

    .difficulty-info h4 {
        font-size: 1.1rem;
    }
}

/* ===== Mobile Layout Fix - Header & Footer Full Width ===== */
@media (max-width: 767px) {
    /* Prevent horizontal scrolling at root level */
    html {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
        position: relative !important;
    }

    body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        min-height: 100vh !important;
    }

    /* Ensure background canvas covers full viewport */
    #particleCanvas {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: -2 !important;
    }

    /* Make header extend full width - using position fixed properly */
    header {
        position: fixed !important;
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    /* Compact logo and company name for mobile */
    header .flex.items-center.gap-2 > div[style*="background-image"] {
        height: 24px !important;
        width: 24px !important;
    }

    header .flex.items-center.gap-2 > span {
        font-size: 1.1rem !important;
    }

    /* Smaller hamburger button on mobile */
    header button#sidebarToggle {
        width: 36px !important;
        height: 36px !important;
    }

    header button#sidebarToggle svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Sidebar overlay full viewport */
    .sidebar-overlay,
    #sidebarOverlay {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        left: 0 !important;
        top: 0 !important;
    }

    /* Main content wrapper with max-width and centering */
    main,
    .main-content {
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Make all main sections full width but contained */
    section,
    .hero,
    .features,
    .products,
    .filters-section,
    .calculator-content,
    .contact-content,
    .news-content,
    .about-content,
    .difficulty-content {
        width: 100% !important;
        max-width: 100vw !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    /* Make footer extend full width */
    .footer {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 4rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Ensure containers are properly centered with max-width */
    .container {
        width: 100% !important;
        max-width: calc(100vw - 30px) !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Fix any grid or flex layouts that might overflow */
    .products-grid,
    .features-grid,
    .contact-grid,
    .news-grid,
    .calculator-inputs,
    .calculator-results {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Contact page specific mobile styling */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        margin-bottom: 2rem !important;
        padding: 0 !important;
    }

    .contact-content {
        padding: 2rem 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
    }

    .contact-form-wrapper h3,
    .contact-info-wrapper h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }

    .contact-form {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
    }

    .contact-form .form-group {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 0 !important;
    }

    .contact-form .form-group label {
        display: block !important;
        margin-bottom: 0.5rem !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.75rem !important;
        font-size: 1rem !important;
        border-radius: 6px !important;
        border: 2px solid var(--border-color) !important;
        background-color: var(--bg-primary) !important;
        color: var(--text-primary) !important;
    }

    .contact-form textarea {
        min-height: 120px !important;
        resize: vertical !important;
    }

    .submit-btn,
    .chat-btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        text-align: center !important;
        margin-top: 0.5rem !important;
    }

    .contact-method {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        gap: 1rem !important;
        padding: 1.25rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 8px !important;
    }

    .contact-icon {
        font-size: 1.75rem !important;
        flex-shrink: 0 !important;
    }

    .contact-details {
        width: 100% !important;
        max-width: 100% !important;
    }

    .contact-details h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .contact-details p {
        font-size: 0.9rem !important;
        margin: 0.25rem 0 !important;
        word-wrap: break-word !important;
    }

    /* About Us page - Facility Gallery mobile styling */
    .facility-gallery {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 2rem !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .gallery-item {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16/9 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 5px 20px var(--card-shadow) !important;
        box-sizing: border-box !important;
    }

    .gallery-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* Override the special 5th image zoom on mobile */
    .gallery-item:nth-child(5) img {
        transform: scale(1) !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .gallery-item:hover img {
        transform: scale(1) !important;
    }

    .gallery-overlay {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent) !important;
        padding: 1.5rem 1rem 0.75rem !important;
        transform: translateY(0) !important;
        display: block !important;
    }

    .gallery-overlay p {
        color: white !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .about-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
    }

    .about-section h3 {
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }

    .about-section p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }

    /* About Us - Investment Terms section */
    .why-choose {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .reason {
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.25rem !important;
        box-sizing: border-box !important;
        margin-bottom: 0 !important;
    }

    .reason h4 {
        font-size: 1.2rem !important;
        margin-bottom: 0.75rem !important;
    }

    .reason p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin: 0.5rem 0 !important;
    }

    /* Checkout page - Fix email overflow */
    .contact-info-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 1.25rem !important;
        overflow: hidden !important;
    }

    .email-link {
        display: inline-block !important;
        word-wrap: break-word !important;
        word-break: break-all !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
        font-size: 0.95rem !important;
    }

    /* Live Chat Modal - Fix input and button on mobile */
    .chat-modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 0 auto !important;
    }

    .chat-input-container {
        display: flex !important;
        gap: 0.5rem !important;
        padding: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .chat-input {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 0.75rem !important;
        font-size: 0.95rem !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .chat-send-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .chat-messages {
        padding: 1rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .chat-message {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    .chat-message p {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 100% !important;
    }

    /* Make calculator results table more compact and responsive */
    .results-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        font-size: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .results-table table {
        width: 100% !important;
        min-width: 100% !important;
        font-size: 0.75rem !important;
    }

    .results-table th,
    .results-table td {
        padding: 0.4rem 0.3rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }

    .results-table th {
        font-size: 0.7rem !important;
    }

    /* Make calculator summary more compact */
    .calc-summary {
        padding: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .calc-summary p {
        font-size: 0.9rem !important;
        margin: 0.5rem 0 !important;
    }

    /* Ensure all images and media are responsive - but NOT product or gallery images */
    img:not(.product-image img):not(.gallery-item img),
    video:not(.product-image video),
    canvas:not(#particleCanvas) {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Keep product images with their proper styling */
    .product-image {
        height: 200px !important;
        background-color: #000000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        padding: 10px !important;
    }

    /* Fix any potential overflow from charts */
    .chart-container,
    .chart-container-difficulty {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* Company Symbol Base Styles */
.company-symbol {
    height: 48px;
    width: 48px;
}

/* Company Symbol - Mobile larger size */
@media (max-width: 768px) {
    .company-symbol {
        height: 56px !important;
        width: 56px !important;
    }
}
