/* ============================================================

   TheTutorialSpot - Premium 3D Website CSS

   Modern, Interactive, Glassmorphism + 3D Transforms

   ============================================================ */



:root {

    --primary: #2563eb;

    --primary-dark: #1e40af;

    --secondary: #22c55e;

    --tertiary: #f59e0b;

    --dark: #1e293b;

    --light: #f1f5f9;

    --surface: #ffffff;

    --text-muted: #64748b;

    --border: #e6eef9;

    --radius: 12px;

    --radius-lg: 16px;

    --shadow-sm: 0 2px 8px rgba(2, 6, 23, 0.04);

    --shadow-md: 0 8px 30px rgba(2, 6, 23, 0.08);

    --shadow-lg: 0 16px 48px rgba(2, 6, 23, 0.12);

    --shadow-3d: 0 20px 60px rgba(2, 6, 23, 0.15);

}



/* ==================== CORE RESET & TYPOGRAPHY ==================== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

}



body {

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    background: linear-gradient(135deg, var(--light) 0%, #eef2ff 100%);

    color: var(--dark);

    line-height: 1.5;

    overflow-x: hidden !important;

}



.container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

}

/* Responsive container padding for all screen sizes */

@media (max-width: 1200px) {

    .container {

        max-width: 95%;

        padding: 0 16px;

    }

}

@media (max-width: 992px) {

    .container {

        max-width: 100%;

        padding: 0 20px;

    }

}

@media (max-width: 768px) {

    .container {

        padding: 0 16px;

    }

}

@media (max-width: 480px) {

    .container {

        padding: 0 12px;

    }

}



/* ==================== NAVIGATION ==================== */

.nav {

    position: sticky;

    top: 0;

    background: rgba(255, 255, 255, 0.8);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(230, 238, 249, 0.5);

    box-shadow: 0 2px 16px rgba(2, 6, 23, 0.05);

    z-index: 1200;

}



.nav-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 12px 20px;

}



.logo {

    font-size: 20px;

    font-weight: 800;

    color: var(--primary);

    text-decoration: none;

    background: linear-gradient(135deg, var(--primary), var(--secondary));

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

    font-family: 'Poppins', sans-serif;

    transition: transform 0.3s ease;

}



.logo:hover {

    transform: scale(1.05);

}



.main-nav ul {

    list-style: none;

    display: flex;

    gap: 24px;

    align-items: center;

}



.main-nav a {

    color: var(--dark);

    text-decoration: none;

    font-weight: 500;

    font-size: 14px;

    position: relative;

    transition: color 0.3s ease;

}



.main-nav a::after {

    content: '';

    position: absolute;

    bottom: -4px;

    left: 0;

    width: 0;

    height: 2px;

    background: linear-gradient(90deg, var(--primary), var(--secondary));

    transition: width 0.3s ease;

}



.main-nav a:hover {

    color: var(--primary);

}



.main-nav a:hover::after {

    width: 100%;

}



.hamburger {

    display: none;

    background: transparent;

    border: 0;

    font-size: 24px;

    cursor: pointer;

    color: var(--dark);

    transition: transform 0.3s ease;

    -webkit-tap-highlight-color: transparent;

    min-width: 44px;

    min-height: 44px;

}



.hamburger:hover {

    transform: scale(1.1);

}



/* ==================== HERO SECTION (3D & PARALLAX) ==================== */

.hero {

    position: relative;

    padding: 80px 0 120px 0;

    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(239, 246, 255, 0.4) 100%);

    overflow: hidden;

    perspective: 1000px;

}



.hero-bg-3d {

    position: absolute;

    inset: 0;

    pointer-events: none;

}



.floating-card {

    position: absolute;

    border-radius: var(--radius-lg);

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5));

    backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.6);

    box-shadow: var(--shadow-lg);

    animation: float 6s ease-in-out infinite;

}

.floating-card::after {

    content: '';

    position: absolute;

    inset: 16%;

    background-image: url("assets/main logo/Untitled design (36).png");

    background-repeat: no-repeat;

    background-position: center;

    background-size: contain;

    opacity: 0.2;

    filter: drop-shadow(0 10px 22px rgba(37, 99, 235, 0.28));

    animation: ttsLogoBlink 1.8s ease-in-out infinite;

}



.floating-card.card-1 {

    width: 200px;

    height: 200px;

    top: 10%;

    right: 5%;

    animation-delay: 0s;

}



.floating-card.card-2 {

    width: 150px;

    height: 150px;

    top: 50%;

    right: 2%;

    animation-delay: 1s;

}



.floating-card.card-3 {

    width: 180px;

    height: 180px;

    bottom: 10%;

    left: 8%;

    animation-delay: 2s;

}



.floating-card.card-4 {

    width: 160px;

    height: 160px;

    top: 30%;

    left: 3%;

    animation-delay: 3s;

}

.floating-card.card-1::after { animation-delay: 0s; }

.floating-card.card-2::after { animation-delay: 0.45s; }

.floating-card.card-3::after { animation-delay: 0.9s; }

.floating-card.card-4::after { animation-delay: 1.3s; }



.glow-orb {

    position: absolute;

    border-radius: 50%;

    filter: blur(80px);

    opacity: 0.4;

    animation: pulse 8s ease-in-out infinite;

}



.glow-orb.orb-1 {

    width: 400px;

    height: 400px;

    top: 0;

    right: -200px;

    background: linear-gradient(135deg, var(--primary), var(--secondary));

    animation-delay: 0s;

}



.glow-orb.orb-2 {

    width: 300px;

    height: 300px;

    bottom: -150px;

    left: -150px;

    background: linear-gradient(135deg, var(--tertiary), var(--primary));

    animation-delay: 4s;

}



@keyframes float {

    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }

    50% { transform: translateY(-30px) rotateX(10deg) rotateY(10deg); }

}



@keyframes pulse {

    0%, 100% { transform: scale(1); opacity: 0.4; }

    50% { transform: scale(1.1); opacity: 0.6; }

}



.hero-grid {

    display: grid;

    grid-template-columns: 1fr 450px;

    gap: 40px;

    align-items: center;

    position: relative;

    z-index: 1;

}



.hero-text h1.hero-title {

    font-size: 56px;

    font-weight: 800;

    line-height: 1.1;

    margin-bottom: 16px;

    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

    font-family: 'Poppins', sans-serif;

}



.tagline {

    font-size: 20px;

    color: var(--primary);

    margin-bottom: 12px;

    font-weight: 600;

    font-family: 'Poppins', sans-serif;

}



.hero-subtitle {

    font-size: 16px;

    color: var(--text-muted);

    margin-bottom: 28px;

    line-height: 1.6;

}



.hero-actions {

    display: flex;

    gap: 16px;

    flex-wrap: wrap;

}



/* ==================== BUTTONS ==================== */

.btn {

    position: relative;

    padding: 12px 24px;

    border-radius: var(--radius);

    text-decoration: none;

    font-weight: 600;

    font-size: 14px;

    border: none;

    cursor: pointer;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    display: inline-flex;

    align-items: center;

    gap: 8px;

    overflow: hidden;

}



.btn::before {

    content: '';

    position: absolute;

    top: 0;

    left: -100%;

    width: 100%;

    height: 100%;

    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);

    transition: left 0.5s ease;

}



.btn:hover::before {

    left: 100%;

}



.btn-primary {

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    color: white;

    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);

}



.btn-primary:hover {

    transform: translateY(-2px);

    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);

}



.btn-secondary {

    background: transparent;

    color: var(--primary);

    border: 2px solid var(--primary);

}



.btn-secondary:hover {

    background: var(--primary);

    color: white;

    transform: translateY(-2px);

}



.btn-light {

    background: rgba(255, 255, 255, 0.9);

    color: var(--dark);

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.7);

}



.btn-light:hover {

    background: white;

    transform: translateY(-2px);

    box-shadow: var(--shadow-lg);

}



.btn-primary-lg {

    padding: 16px 32px;

    font-size: 16px;

}



.btn-secondary-lg {

    padding: 16px 32px;

    font-size: 16px;

}



.btn-icon {

    font-size: 16px;

    transition: transform 0.3s ease;

}



.btn:hover .btn-icon {

    transform: translateX(4px);

}



/* ==================== HERO MEDIA (3D EFFECT) ==================== */

.hero-media {

    perspective: 1000px;

}



.image-wrapper-3d {

    position: relative;

    transform-style: preserve-3d;

    transition: transform 0.1s ease-out;

}



.image-wrapper-3d img {

    width: 100%;

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-3d);

    border: 1px solid rgba(255, 255, 255, 0.6);

    display: block;

}



/* ==================== SLIDESHOW SECTION ==================== */

.slideshow-section {

    padding: 60px 0;

    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(34, 197, 94, 0.05));

    position: relative;

}



.slideshow-container {

    position: relative;

    max-width: 1000px;

    margin: 30px auto;

    background: var(--surface);

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow-3d);

    border: 1px solid var(--border);

}



.slide {

    display: none;

    position: relative;

    height: 500px;

    animation: slideIn 0.8s ease-out;

}



.slide.fade {

    animation: fadeSlide 0.8s ease-out;

}



.slide .buy-btn {

    position: absolute;

    bottom: 30px;

    left: 50%;

    transform: translateX(-50%);

    z-index: 20;

    pointer-events: auto;

    width: auto;

    padding: 10px 24px;

    margin: 0;

}



@keyframes slideIn {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



@keyframes fadeSlide {

    from { opacity: 0; }

    to { opacity: 1; }

}



.slide img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}



.slide-content {

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));

    color: white;

    padding: 50px 40px;

    text-align: center;

    pointer-events: none;

}



.slide-content h3 {

    font-size: 28px;

    margin-bottom: 12px;

    font-weight: 700;

}



.slide-content p {

    font-size: 16px;

    margin-bottom: 20px;

    opacity: 0.9;

}



.prev, .next {

    cursor: pointer;

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: auto;

    padding: 16px 18px;

    color: white;

    font-weight: bold;

    font-size: 24px;

    background-color: rgba(0, 0, 0, 0.4);

    border: none;

    border-radius: 50%;

    transition: all 0.3s ease;

    z-index: 10;

}



.next {

    right: 20px;

}



.prev {

    left: 20px;

}



.prev:hover, .next:hover {

    background-color: rgba(0, 0, 0, 0.7);

    transform: translateY(-50%) scale(1.1);

}



.slides-dots {

    text-align: center;

    padding: 20px 0;

    background: var(--surface);

}



.dot {

    cursor: pointer;

    height: 12px;

    width: 12px;

    margin: 0 8px;

    background-color: #bbb;

    border-radius: 50%;

    display: inline-block;

    transition: all 0.3s ease;

}



.dot.active {

    background: linear-gradient(135deg, var(--primary), var(--secondary));

    transform: scale(1.3);

    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);

}



/* ==================== SECTIONS ==================== */

.section {

    padding: 60px 0;

}



.section-title {

    font-size: 28px;

    font-weight: 800;

    margin-bottom: 32px;

    background: linear-gradient(135deg, var(--dark), var(--primary));

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

    font-family: 'Poppins', sans-serif;

}



/* ==================== CAROUSEL ==================== */

.carousel {

    position: relative;

    display: flex;

    align-items: center;

}



.carousel-track {

    display: flex;

    gap: 20px;

    overflow-x: auto;

    padding: 10px 0;

    scroll-behavior: smooth;

    scrollbar-width: thin;

    scrollbar-color: var(--primary) transparent;

}



.carousel-track::-webkit-scrollbar {

    height: 6px;

}



.carousel-track::-webkit-scrollbar-track {

    background: transparent;

}



.carousel-track::-webkit-scrollbar-thumb {

    background: linear-gradient(90deg, var(--primary), var(--secondary));

    border-radius: 3px;

}



.arrow {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    color: white;

    border: none;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    cursor: pointer;

    font-size: 20px;

    transition: all 0.3s ease;

    z-index: 10;

}



.arrow:hover {

    transform: translateY(-50%) scale(1.1);

    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);

}



.arrow.left {

    left: -20px;

}



.arrow.right {

    right: -20px;

}



/* ==================== CARD 3D (CAROUSEL & GRID) ==================== */

.card-3d {

    background: var(--surface);

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow-md);

    border: 1px solid var(--border);

    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;

    transform-style: preserve-3d;

    min-width: 0;

    width: 100%;

    max-width: 100%;

}



.card-3d:hover {

    /* Subtle lift on hover instead of strong 3D rotation */

    transform: translateY(-6px) translateZ(0) scale(1.01);

    box-shadow: 0 12px 30px rgba(2,6,23,0.08);

    border-color: rgba(37,99,235,0.12);

}



.card-3d.small {

    min-width: 260px;

}

/* ==================== FIX: TRENDING CAROUSEL ARROWS ==================== */
#carousel .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    z-index: 20;
}

#carousel .arrow.left {
    left: 10px;
}

#carousel .arrow.right {
    right: 10px;
}

#carousel .arrow:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
    #carousel .arrow {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    #carousel .arrow.left {
        left: 6px;
    }

    #carousel .arrow.right {
        right: 6px;
    }
}

/* Keep Featured Templates cards visually aligned with Trending & Latest card sizing */
#featuredGrid .card-3d.small {
    width: 100%;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}



.card-image-wrapper {

    position: relative;

    overflow: hidden;

    height: 200px;

}



.card-image-wrapper img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    display: block;

}



.card-3d:hover .card-image-wrapper img {

    transform: scale(1.08);

}



.card-overlay {

    position: absolute;

    inset: 0;

    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(34, 197, 94, 0.1));

    opacity: 0;

    transition: opacity 0.3s ease;

    pointer-events: none;

}



.card-3d:hover .card-overlay {

    opacity: 1;

}



.card-body {

    padding: 16px;

}



.card-body h3 {

    font-size: 16px;

    margin-bottom: 6px;

    color: var(--dark);

}



.category {

    display: inline-block;

    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(34, 197, 94, 0.1));

    color: var(--primary);

    padding: 6px 10px;

    border-radius: 999px;

    font-size: 11px;

    margin-bottom: 8px;

    font-weight: 600;

}



.tags {

    margin-bottom: 8px;

}



.tag {

    display: inline-block;

    background: linear-gradient(135deg, #eef2ff, #f0fdf4);

    color: var(--primary);

    padding: 4px 10px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 600;

    margin-right: 4px;

}



.tag.offer {

    background: linear-gradient(135deg, #fff7ed, #fef3c7);

    color: #b45309;

}



.tag.new {

    background: linear-gradient(135deg, #ecfdf5, #cffafe);

    color: #0ea5e9;

}



.muted {

    color: var(--text-muted);

    font-size: 13px;

    margin-bottom: 10px;

}



.card-foot {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: 12px;

}



.price {

    color: var(--dark);

    font-weight: 700;

    font-size: 14px;

}



.btn-sm {

    background: linear-gradient(135deg, var(--secondary), #16a34a);

    color: white;

    padding: 8px 12px;

    border-radius: 6px;

    text-decoration: none;

    font-size: 12px;

    font-weight: 600;

    transition: all 0.3s ease;

    border: none;

    cursor: pointer;

}



.btn-sm:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);

}



/* ==================== CATEGORIES GRID (3D & GLASSMORPHISM) ==================== */

.categories-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

    gap: 24px;

}



.category-card-3d {

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));

    backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.8);

    padding: 28px 20px;

    border-radius: var(--radius-lg);

    text-align: center;

    box-shadow: var(--shadow-md);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;

    overflow: hidden;

}



.category-card-3d::before {

    content: '';

    position: absolute;

    inset: 0;

    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(34, 197, 94, 0.1));

    opacity: 0;

    transition: opacity 0.3s ease;

    z-index: -1;

}



.category-card-3d:hover {

    /* Keep hover subtle: small lift, no 3D rotation */

    transform: translateY(-6px) scale(1.01);

    box-shadow: 0 12px 28px rgba(2,6,23,0.06);

    border-color: rgba(37,99,235,0.10);

}



.category-card-3d:hover::before {

    opacity: 1;

}



.category-icon {

    font-size: 40px;

    margin-bottom: 12px;

    display: block;

}



.category-card-3d h3 {

    font-size: 18px;

    margin-bottom: 8px;

    color: var(--dark);

}



.category-card-3d p {

    color: var(--text-muted);

    font-size: 13px;

    margin-bottom: 16px;

}



.category-link {

    color: var(--primary);

    text-decoration: none;

    font-weight: 600;

    font-size: 13px;

    transition: all 0.3s ease;

    display: inline-block;

}



.category-link:hover {

    transform: translateX(4px);

}



/* ==================== GRID LAYOUT ==================== */

.grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 24px;

}

/* Featured templates grid: keep a balanced layout regardless of global .grid overrides */
#featuredGrid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 18px !important;
    padding: 0 !important;
}

#featuredGrid .card-3d.small {
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

@media (min-width: 1400px) {
    #featuredGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}



/* ==================== WHY CHOOSE SECTION ==================== */

.why {

    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(34, 197, 94, 0.05));

    border-radius: var(--radius-lg);

    padding: 60px 20px;

}



.why-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

}



.why-card-3d {

    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7));

    backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.8);

    padding: 24px;

    border-radius: var(--radius-lg);

    text-align: center;

    box-shadow: var(--shadow-md);

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;

}



.why-card-3d:hover {

    /* Slight lift, gentle scale */

    transform: translateY(-6px) scale(1.01);

    box-shadow: 0 10px 24px rgba(2,6,23,0.06);

}



.why-icon {

    font-size: 36px;

    margin-bottom: 12px;

    display: block;

    animation: bounce 2s ease-in-out infinite;

}



.why-card-3d h3 {

    font-size: 16px;

    margin-bottom: 8px;

    color: var(--dark);

}



.why-card-3d p {

    color: var(--text-muted);

    font-size: 13px;

}



@keyframes bounce {

    0%, 100% { transform: translateY(0); }

    50% { transform: translateY(-8px); }

}



/* ==================== CTA SECTION ==================== */

.cta-section {

    padding: 80px 0;

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));

    text-align: center;

    position: relative;

    overflow: hidden;

}



.cta-section::before {

    content: '';

    position: absolute;

    inset: 0;

    background:

        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),

        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);

    pointer-events: none;

}



.cta-section h2 {

    color: white;

    font-size: 40px;

    margin-bottom: 12px;

    position: relative;

    z-index: 1;

}



.cta-section p {

    color: rgba(255, 255, 255, 0.9);

    font-size: 16px;

    margin-bottom: 32px;

    position: relative;

    z-index: 1;

}



.cta-buttons {

    display: flex;

    gap: 16px;

    justify-content: center;

    position: relative;

    z-index: 1;

    flex-wrap: wrap;

}



/* ==================== FOOTER ==================== */

.footer {

    background: linear-gradient(135deg, var(--dark), #0f172a);

    color: white;

    padding: 40px 0 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

}



.footer-content {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 32px;

    margin-bottom: 32px;

}



.footer-section h4 {

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 12px;

    color: rgba(255, 255, 255, 0.95);

}



.footer-section p,

.footer-section ul {

    font-size: 13px;

    color: rgba(255, 255, 255, 0.7);

    list-style: none;

}



.footer-section a {

    color: rgba(255, 255, 255, 0.7);

    text-decoration: none;

    transition: color 0.3s ease;

}



.footer-section a:hover {

    color: var(--primary);

}



.footer-section ul li {

    margin-bottom: 8px;

}



.footer-bottom {

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    padding-top: 20px;

    text-align: center;

    color: rgba(255, 255, 255, 0.6);

    font-size: 12px;

}



/* ==================== RESPONSIVE DESIGN ==================== */

/* ==================== MOBILE-FIRST RESPONSIVE DESIGN ==================== */

/* Extra Small Devices: 320px and up */

@media (max-width: 320px) {

    .nav-inner {

        padding: 8px 12px;

        gap: 8px;

    }

    

    .logo {

        font-size: 16px;

    }

    

    .hero {

        padding: 30px 0 50px 0;

    }

    

    .hero-text h1.hero-title {

        font-size: 18px;

        line-height: 1.2;

    }

    

    .tagline {

        font-size: 12px;

    }

    

    .btn {

        padding: 10px 12px;

        font-size: 11px;

    }

    

    .section-title {

        font-size: 14px;

    }

    

    .section {

        padding: 20px 0;

    }

}

/* Small Devices: 360px - 480px */

@media (max-width: 480px) {

    .nav {

        position: sticky;

        top: 0;

        z-index: 1200;

    }

    

    .nav-inner {

        padding: 10px 12px;

        gap: 10px;

    }

    

    .logo {

        font-size: 17px;

        flex: 1;

    }

    

    .hamburger {

        display: block;

        min-width: 44px;

        min-height: 44px;

        font-size: 20px;

    }

    

    /* Navigation */

    .main-nav {

        display: none;

        position: fixed;

        inset: 0;

        background: rgba(255, 255, 255, 0.98);

        backdrop-filter: blur(10px);

        z-index: 1400;

        padding-top: 70px;

        overflow: hidden;

        overflow-x: hidden !important;

        -webkit-overflow-scrolling: touch;

        max-height: calc(100vh - 70px);

        max-width: 100%;

        width: 100%;

        box-sizing: border-box;

    }

    

    .main-nav.active {

        display: flex;

        overflow: visible;

        overflow-y: visible;

        height:100vh

    }

    

    .main-nav ul {

        display: flex;

        flex-direction: column;

        gap: 4px;

        padding: 12px 16px;

        max-width: 100%;

        width: 100%;

        box-sizing: border-box;

    }

    

    .main-nav a {

        display: block;

        padding: 12px 12px;

        border-radius: 6px;

        font-size: 15px;

        background: transparent;

    }

    

    /* Hero Section */

    .hero {

        padding: 30px 0 50px 0;

    }

    

    .hero-grid {

        grid-template-columns: 1fr;

        gap: 20px;

        align-items: center;

    }

    

    .hero-media {

        order: -1;

        max-height: 280px;

    }

    

    .hero-text h1.hero-title {

        font-size: 20px;

        line-height: 1.2;

        margin-bottom: 8px;

    }

    

    .tagline {

        font-size: 13px;

        margin-bottom: 14px;

    }

    

    .hero-actions {

        display: flex;

        flex-direction: column;

        gap: 8px;

        margin-top: 14px;

    }

    

    .btn {

        width: 100%;

        padding: 11px 14px;

        font-size: 13px;

        min-height: 42px;

        display: inline-flex;

        align-items: center;

        justify-content: center;

    }

    

    /* Typography */

    .section-title {

        font-size: 16px;

        margin-bottom: 12px;

        line-height: 1.3;

    }

    

    .section {

        padding: 20px 0;

    }

    

    /* Grids */

    .grid {

        grid-template-columns: 1fr;

        gap: 12px;

    }

    

    .categories-grid {

        grid-template-columns: 1fr;

        gap: 12px;

    }

    

    /* Slides & Carousel */

    .slide {

        height: 240px;

    }

    

    .slide-content {

        padding: 16px 12px;

    }

    

    .slide-content h3 {

        font-size: 14px;

        margin-bottom: 6px;

    }

    

    .slide-content p {

        font-size: 11px;

    }

    

    .prev, .next {

        padding: 8px 10px;

        font-size: 14px;

        min-width: 36px;

        min-height: 36px;

    }

    

    .arrow.left, .arrow.right {

        width: 32px;

        height: 32px;

        font-size: 14px;

    }

    

    /* Cards & Layout */

    .card {

        border-radius: 10px;

    }

    

    .card-body {

        padding: 12px;

    }

    

    /* Carousel */

    .carousel-track {

        gap: 8px;

    }

    

    .card.small {

        min-width: 120px;

    }

    

    /* Forms */

    input, textarea, select {

        width: 100%;

        padding: 10px;

        font-size: 14px;

        border-radius: 6px;

        margin-bottom: 10px;

    }

    

    /* Footer */

    .footer-content {

        grid-template-columns: 1fr;

        gap: 16px;

    }

    

    .footer-section {

        text-align: center;

    }

    

    /* Images */

    .hero-media img, .card img {

        width: 100%;

        height: auto;

    }

    

    /* Floating elements */

    .floating-card, .glow-orb {

        display: none !important;

    }

    

    /* Image grid */

    .image-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 8px;

    }

    

    .filter-btn {

        padding: 6px 12px;

        font-size: 11px;

    }

    

    .category-filter-buttons {

        gap: 6px;

    }

}

/* Tablets: 600px - 768px */

@media (min-width: 481px) and (max-width: 768px) {

    .hamburger {

        display: block;

        min-width: 44px;

        min-height: 44px;

    }

    

    .nav-inner {

        padding: 12px 18px;

        gap: 16px;

    }

    

    .logo {

        font-size: 18px;

    }

    

    /* Navigation */

    .main-nav {

        display: none;

        position: fixed;

        inset: 0;

        background: rgba(255, 255, 255, 0.98);

        backdrop-filter: blur(10px);

        z-index: 1400;

        padding-top: 75px;

        overflow: hidden;

        overflow-x: hidden !important;

        -webkit-overflow-scrolling: touch;

        max-height: calc(100vh - 75px);

        max-width: 100%;

        width: 100%;

        box-sizing: border-box;

    }

    

    .main-nav.active {

        display: flex;

        overflow: visible;

        overflow-y: visible;

    }

    

    .main-nav ul {

        flex-direction: column;

        gap: 6px;

        padding: 14px 18px;

        max-width: 100%;

        width: 100%;

        box-sizing: border-box;

    }

    

    .main-nav a {

        display: block;

        padding: 12px 14px;

        border-radius: 8px;

        font-size: 15px;

    }

    

    /* Hero */

    .hero {

        padding: 40px 0 60px 0;

    }

    

    .hero-grid {

        grid-template-columns: 1fr;

        gap: 24px;

    }

    

    .hero-media {

        order: -1;

        max-height: 300px;

    }

    

    .hero-text h1.hero-title {

        font-size: 24px;

    }

    

    .tagline {

        font-size: 14px;

    }

    

    .hero-actions {

        display: flex;

        flex-direction: column;

        gap: 10px;

    }

    

    .btn {

        width: 100%;

        padding: 12px 16px;

        font-size: 13px;

        min-height: 44px;

    }

    

    /* Typography */

    .section-title {

        font-size: 18px;

    }

    

    .section {

        padding: 24px 0;

    }

    

    /* Grids */

    .grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 14px;

    }

    

    .categories-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 14px;

    }

    

    /* Slides */

    .slide {

        height: 300px;

    }

    

    .slide-content {

        padding: 24px 18px;

    }

    

    .slide-content h3 {

        font-size: 16px;

    }

    

    .slide-content p {

        font-size: 12px;

    }

    

    .prev, .next {

        padding: 10px 12px;

        font-size: 16px;

    }

    

    /* Carousel */

    .carousel-track {

        gap: 12px;

    }

    

    .card.small {

        min-width: 160px;

    }

    

    /* Image grid */

    .image-grid {

        grid-template-columns: repeat(3, 1fr);

        gap: 12px;

    }

    

    .filter-btn {

        padding: 8px 14px;

        font-size: 12px;

    }

    

    /* Footer */

    .footer-content {

        grid-template-columns: repeat(2, 1fr);

        gap: 20px;

    }

    

    /* Floating */

    .floating-card, .glow-orb {

        display: none;

    }

}

/* Medium Tablets: 768px - 992px */

@media (min-width: 769px) and (max-width: 992px) {

    .hamburger {

        display: none;

    }

    

    .main-nav {

        display: block;

    }

    

    .nav-inner {

        padding: 12px 20px;

        gap: 20px;

    }

    

    /* Hero */

    .hero {

        padding: 50px 0 80px 0;

    }

    

    .hero-grid {

        grid-template-columns: 1fr 300px;

        gap: 30px;

        align-items: center;

    }

    

    .hero-text h1.hero-title {

        font-size: 32px;

    }

    

    .tagline {

        font-size: 15px;

    }

    

    .hero-actions {

        display: flex;

        flex-direction: row;

        gap: 12px;

        flex-wrap: wrap;

    }

    

    .btn {

        padding: 11px 18px;

        font-size: 13px;

        min-height: 44px;

    }

    

    /* Typography */

    .section-title {

        font-size: 22px;

    }

    

    .section {

        padding: 32px 0;

    }

    

    /* Grids */

    .grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 18px;

    }

    

    .categories-grid {

        grid-template-columns: repeat(3, 1fr);

        gap: 18px;

    }

    

    .why-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 16px;

    }

    

    /* Image grid */

    .image-grid {

        grid-template-columns: repeat(3, 1fr);

        gap: 14px;

    }

}

/* Large Tablets & Small Desktops: 992px - 1024px */

@media (min-width: 993px) and (max-width: 1024px) {

    .hero-grid {

        grid-template-columns: 1fr 340px;

        gap: 32px;

        align-items: center;

    }

    

    .hero-text h1.hero-title {

        font-size: 36px;

    }

    

    .tagline {

        font-size: 16px;

    }

    

    .hero-actions {

        display: flex;

        flex-direction: row;

        gap: 14px;

    }

    

    .btn {

        padding: 12px 20px;

        font-size: 13px;

    }

    

    .section-title {

        font-size: 24px;

    }

    

    .grid {

        grid-template-columns: repeat(3, 1fr);

        gap: 20px;

    }

    

    .categories-grid {

        grid-template-columns: repeat(3, 1fr);

        gap: 20px;

    }

    

    .why-grid {

        grid-template-columns: repeat(3, 1fr);

    }

}

/* Desktop: 1025px - 1200px */

@media (min-width: 1025px) and (max-width: 1200px) {

    .container {

        max-width: 95%;

    }

    

    .hero-grid {

        grid-template-columns: 1fr 380px;

        gap: 36px;

    }

    

    .hero-text h1.hero-title {

        font-size: 38px;

    }

    

    .hero-actions {

        display: flex;

        flex-direction: row;

        gap: 14px;

    }

    

    .btn {

        padding: 12px 22px;

        font-size: 14px;

    }

    

    .section-title {

        font-size: 26px;

    }

    

    .grid {

        grid-template-columns: repeat(3, 1fr);

        gap: 22px;

    }

    

    .categories-grid {

        grid-template-columns: repeat(4, 1fr);

        gap: 20px;

    }

}

/* Large Desktop: 1201px and up */

@media (min-width: 1201px) {

    .container {

        max-width: 1200px;

        margin: 0 auto;

    }

    

    .hero-grid {

        grid-template-columns: 1fr 420px;

        gap: 40px;

        align-items: center;

    }

    

    .hero-text h1.hero-title {

        font-size: 42px;

    }

    

    .tagline {

        font-size: 18px;

    }

    

    .hero-actions {

        display: flex;

        flex-direction: row;

        gap: 16px;

    }

    

    .btn {

        padding: 12px 24px;

        font-size: 14px;

    }

    

    .section-title {

        font-size: 28px;

    }

    

    .grid {

        grid-template-columns: repeat(4, 1fr);

        gap: 24px;

    }

    

    .categories-grid {

        grid-template-columns: repeat(4, 1fr);

        gap: 24px;

    }

}



/* ==================== UTILITY CLASSES ==================== */

.text-center {

    text-align: center;

}



.mt-20 {

    margin-top: 20px;

}



.mb-20 {

    margin-bottom: 20px;

}



/* ==================== SCROLL ANIMATIONS ==================== */

[data-parallax] {

    transition: transform 0.05s ease-out;

}



.fade-in {

    animation: fadeIn 0.6s ease-out;

}



/* Footer social links */

.social-links {

    display: flex;

    flex-direction: column;

    gap: 8px;

    justify-content: center;

    align-items: center;

    text-align: center;

}



.social-links a {

    color: rgba(255,255,255,0.95);

    text-decoration: none;

    font-weight: 400;

    display: inline-block;

    padding: 4px 6px;

}



.social-links a:hover {

    color: white;

    opacity: 0.95;

}



@keyframes fadeIn {

    from {

        opacity: 0;

        transform: translateY(20px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



/* ==================== SMOOTH SCROLLING SUPPORT ==================== */

@supports (scroll-behavior: smooth) {

    html {

        scroll-behavior: smooth;

    }

}



/* ==================== PRODUCT IMAGE GALLERY ==================== */

/* Multi-image gallery component for products */

.product-image-gallery {

    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 12px;

}



.gallery-main {

    width: 100%;

    aspect-ratio: 4/3;

    max-height: 260px;

    overflow: hidden;

    border-radius: 8px;

    background: #f5f5f5;

}



.gallery-main img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: opacity 0.3s ease;

}

@keyframes ttsLogoBlink {

    0%, 100% { opacity: 0.18; }

    50% { opacity: 0.9; }

}

.gallery-thumbnails {

    display: flex;

    gap: 8px;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

    padding: 4px 0;

    scrollbar-width: thin;

    scrollbar-color: rgba(37,99,235,0.2) transparent;

}



.gallery-thumbnails::-webkit-scrollbar {

    height: 4px;

}



.gallery-thumbnails::-webkit-scrollbar-thumb {

    background: rgba(37,99,235,0.3);

    border-radius: 2px;

}



.thumbnail-btn {

    flex-shrink: 0;

    width: 60px;

    height: 60px;

    border: 2px solid transparent;

    border-radius: 6px;

    padding: 0;

    background: white;

    cursor: pointer;

    overflow: hidden;

    transition: all 0.2s ease;

    -webkit-tap-highlight-color: rgba(37,99,235,0.1);

}



.thumbnail-btn img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}



.thumbnail-btn:hover {

    border-color: rgba(37,99,235,0.3);

    box-shadow: 0 2px 8px rgba(37,99,235,0.1);

}



.thumbnail-btn.active {

    border-color: var(--primary);

    box-shadow: 0 4px 12px rgba(37,99,235,0.2);

}



/* Mobile: make thumbnails taller and stack if needed */

@media (max-width: 480px) {

    .gallery-main { max-height: 200px; aspect-ratio: 4/3; }

    .thumbnail-btn { width: 50px; height: 50px; }

    .gallery-thumbnails { gap: 6px; }

}



/* ==================== RESPONSIVE IMAGE HELPERS ==================== */

/* Ensure any image placed directly in content never breaks layout */

main img, .container img {

    max-width: 100%;

    height: auto;

    display: block;

}



/* Card and hero image wrappers: keep card images small, hero remains larger */

.card-image-wrapper {

    width: 100%;

    aspect-ratio: 4/3;

    max-height: 260px; /* keep cards compact so uploaded images can't grow the card */

    overflow: hidden;

}



.image-wrapper-3d {

    width: 100%;

    aspect-ratio: 16/9;

    max-height: 420px; /* hero media stays larger */

    overflow: hidden;

}



.card-image-wrapper img,

.image-wrapper-3d img,

.hero-media img,

.responsive-card-img,

.fit-img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}



/* Helper class to quickly constrain any uploaded image */

.constrain-img {

    max-width: 100%;

    max-height: 260px;

    width: auto;

    height: auto;

    aspect-ratio: 16 / 9;

    object-fit: cover;

    display: block;

}



/* Optional helper class for smaller thumbnails */

.thumb-img {

    width: 100%;

    height: 140px;

    object-fit: cover;

    border-radius: 8px;

    display: block;

}



/* Safety: if user inserts very tall images, cap height on small screens */

@media (max-width: 768px) {

    .card-image-wrapper { max-height: 220px; aspect-ratio: 4/3; }

    .image-wrapper-3d { max-height: 320px; aspect-ratio: 16/9; }

}



@media (max-width: 480px) {

    .card-image-wrapper { max-height: 180px; aspect-ratio: 4/3; }

    .image-wrapper-3d { max-height: 220px; aspect-ratio: 16/9; }

}





/* Navbar */

.navbar {

    position: fixed; top: 0; width: 100%; padding: 15px 5%;

    background: white; display: flex; justify-content: space-between;

    box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 1000;

}

.logo { font-size: 22px; font-weight: 800; color: var(--primary); }

.nav-links { display: flex; list-style: none; }

.nav-links a { text-decoration: none; color: var(--dark); margin-left: 20px; font-weight: 600; }



/* Hero */

.hero { height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px; background: white; }

.hero h1 { font-size: 45px; margin-bottom: 15px; }

.hero h1 span { color: var(--primary); }

.badge { background: #cbd5e1; padding: 5px 12px; border-radius: 20px; font-size: 12px; margin: 0 5px; }

.btn-main { background: var(--primary); color: white; border: none; padding: 15px 35px; border-radius: 10px; cursor: pointer; font-size: 18px; margin-top: 20px; }



/* Search Bar */

.search-section { text-align: center; margin: 30px 0; }

#searchInput { width: 80%; max-width: 500px; padding: 12px 20px; border-radius: 25px; border: 2px solid #ddd; outline: none; }



/* Horizontal Scroll */

.h-scroll { display: flex; overflow-x: auto; gap: 20px; padding: 20px 5%; scrollbar-width: none; }

.item-card { min-width: 280px; background: white; padding: 15px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.item-card img { width: 100%; border-radius: 8px; }



/* Grids */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 20px 5%; }

.card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.card img { width: 100%; }

.card-body { padding: 20px; text-align: center; }

.card-price { font-size: 22px; font-weight: 800; color: var(--primary); margin: 10px 0; }



.buy-btn, .buy-now { width: 100%; background: var(--secondary); color: white; border: none; padding: 10px; border-radius: 8px; font-weight: bold; cursor: pointer; }



/* Payment & Footer */

.payment-area { background: var(--dark); color: white; padding: 50px 5%; text-align: center; }

.pay-flex { display: flex; justify-content: center; gap: 20px; margin-top: 20px; flex-wrap: wrap; }

.pay-card { background: #334155; padding: 15px 25px; border-radius: 10px; }

footer { text-align: center; padding: 30px; color: #64748b; }



/* Responsive */

@media (max-width: 768px) { .nav-links { display: none; } .hero h1 { font-size: 30px; } }



/* Global layout utilities */

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }



/* New site-wide styles */

body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; background: var(--light); color: var(--dark); }

.nav { position: sticky; top: 0; background: white; box-shadow: 0 4px 18px rgba(16,24,40,0.06); z-index: 1200; }

.nav-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 20px; }

.logo { font-weight:700; color:var(--primary); text-decoration:none; font-size:20px; }

.main-nav ul { list-style:none; display:flex; gap:18px; align-items:center; }

.main-nav a { color:var(--dark); text-decoration:none; font-weight:600; }

.hamburger { display:none; background:transparent; border:0; font-size:20px; }



.hero { padding:60px 0; background: linear-gradient(180deg, rgba(37,99,235,0.06), rgba(239,246,255,0.6)); }

.hero-grid { display:grid; grid-template-columns: 1fr 420px; gap:30px; align-items:center; }

.hero-text h1 { font-size:42px; margin-bottom:8px; }

.tagline { color:#334155; margin-bottom:18px; }

.btn { background:var(--primary); color:white; padding:12px 20px; border-radius:10px; text-decoration:none; display:inline-block; }

.btn.secondary { background:transparent; color:var(--primary); border:2px solid rgba(37,99,235,0.12); margin-left:10px; }

.hero-media img { width:100%; border-radius:12px; box-shadow:0 10px 30px rgba(2,6,23,0.08); }



.section { padding:40px 0; }

.section-title { font-size:22px; margin-bottom:16px; }



/* Carousel */

.carousel { position:relative; display:flex; align-items:center; }

.carousel-track { display:flex; gap:18px; overflow:hidden; padding:10px 0; }

.card.small { min-width:260px; background:white; border-radius:12px; overflow:hidden; box-shadow:0 8px 30px rgba(2,6,23,0.06); }

.card.small img { width:100%; display:block; }

.card-body { padding:12px 14px; }

.tags { margin-bottom:6px; }

.tag { background:#eef2ff; color:var(--primary); padding:4px 8px; border-radius:999px; font-size:12px; }

.tag.offer { background:#fff7ed; color:#b45309; }

.tag.new { background:#ecfeff; color:#0ea5e9; }

.card-foot { display:flex; align-items:center; justify-content:space-between; margin-top:10px; }

.btn-sm { background:var(--secondary); color:white; padding:8px 10px; border-radius:8px; text-decoration:none; }

.price { color:var(--dark); font-weight:700; }

.arrow { background:transparent; border:0; font-size:28px; cursor:pointer; padding:6px 10px; }



/* Categories slider */

.categories-slider { display:flex; gap:12px; overflow:auto; padding:8px 0; }

.cat { background:white; padding:12px 18px; border-radius:999px; box-shadow:0 6px 20px rgba(2,6,23,0.04); text-decoration:none; color:var(--dark); }



/* Grid */

.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:18px; }

.card { background:white; border-radius:12px; overflow:hidden; box-shadow:0 8px 30px rgba(2,6,23,0.06); }

.card img { width:100%; display:block; }



/* Slideshow Styles */

.slideshow-section { padding: 40px 0; background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(34,197,94,0.05)); }

.slideshow-container { position: relative; max-width: 1000px; margin: auto; background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 40px rgba(2,6,23,0.1); }

.slide { display: none; position: relative; height: 500px; }

.slide img { width: 100%; height: 100%; object-fit: cover; }

.slide.fade { animation: fade 0.8s ease-in-out; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.slide-content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.7)); color: white; padding: 40px 30px; text-align: center; }

.slide-content h3 { font-size: 28px; margin-bottom: 10px; }

.slide-content p { font-size: 16px; margin-bottom: 20px; opacity: 0.9; }



/* Navigation buttons */

.prev, .next { cursor: pointer; position: absolute; top: 50%; width: auto; margin-top: -22px; padding: 16px 18px; color: white; font-weight: bold; font-size: 24px; background-color: rgba(0,0,0,0.4); border: none; border-radius: 50%; transition: 0.3s ease; z-index: 10; }

.next { right: 20px; }

.prev { left: 20px; }

.prev:hover, .next:hover { background-color: rgba(0,0,0,0.7); }



/* Dots indicator */

.slides-dots { text-align: center; padding: 20px 0; background: white; }

.dot { cursor: pointer; height: 12px; width: 12px; margin: 0 8px; background-color: #bbb; border-radius: 50%; display: inline-block; transition: 0.3s ease; }

.dot.active { background-color: var(--primary); }



/* Responsive slideshow */

@media (max-width: 768px) {

  .slide { height: 350px; }

  .slide-content { padding: 30px 20px; }

  .slide-content h3 { font-size: 20px; }

  .slide-content p { font-size: 14px; }

  .prev, .next { padding: 12px 14px; font-size: 18px; }

}

.card .category { display:inline-block; background:#eef2ff; color:var(--primary); padding:6px 10px; border-radius:999px; font-size:12px; margin-bottom:8px; }

.card-body { padding:16px; }

.card-foot { margin-top:12px; display:flex; justify-content:space-between; align-items:center; }



/* Why grid */

.why-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap:16px; }

.why-card { background:white; padding:18px; border-radius:12px; box-shadow:0 6px 20px rgba(2,6,23,0.04); }



.footer { border-top:1px solid #e6eef9; padding:28px 0; margin-top:40px; }



/* Responsive */

@media (max-width: 900px) {

    .hero-grid { grid-template-columns: 1fr; }

    .hamburger { display:block; }

    .main-nav { display:none; }

}



@media (max-width: 480px) {

    .hero-text h1 { font-size:28px; }

}



/* Touch & accessibility helpers */

button, .btn, .btn-sm, .hamburger, .prev, .next, .arrow {

    -webkit-tap-highlight-color: rgba(0,0,0,0.06);

}



/* Make interactive elements easier to hit on small screens */

.prev, .next, .arrow { min-width: 48px; min-height: 48px; }



/* Smooth scrolling on touch devices */

.carousel-track, .h-scroll { -webkit-overflow-scrolling: touch; }



/* Focus outlines for keyboard users */

a:focus-visible, button:focus-visible, .btn:focus-visible {

    outline: 3px solid rgba(37,99,235,0.18);

    outline-offset: 3px;

    border-radius: 8px;

}



/* Prevent background scroll when nav is open */

/* ==================== SECTION TITLE RESPONSIVE ==================== */

.section-title {

    font-size: 28px;

    margin-bottom: 16px;

    line-height: 1.3;

    color: var(--dark);

}

@media (min-width: 1025px) {

    .section-title {

        font-size: 32px;

        margin-bottom: 18px;

    }

}

@media (max-width: 768px) {

    .section-title {

        font-size: 22px;

        margin-bottom: 14px;

    }

}

@media (max-width: 480px) {

    .section-title {

        font-size: 18px;

        margin-bottom: 12px;

    }

}

/* ==================== FOOTER RESPONSIVE ==================== */

.footer {

    border-top: 1px solid #e6eef9;

    padding: 40px 0;

    margin-top: 40px;

}

.footer-content {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 32px;

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

}

.footer-section {

    text-align: left;

}

.footer-section h4 {

    font-size: 16px;

    font-weight: 700;

    margin-bottom: 12px;

    color: white;

}

.footer-section p {

    font-size: 14px;

    color: var(--text-muted);

    margin-bottom: 12px;

}

.footer-section ul {

    list-style: none;

    padding: 0;

}

.footer-section ul li {

    margin-bottom: 8px;

}

.footer-section a {

    color: rgba(255, 255, 255, 0.7);

    text-decoration: none;

    transition: color 0.3s ease;

}

.footer-section a:hover {

    color: var(--primary);

}

@media (max-width: 768px) {

    .footer {

        padding: 32px 0;

        margin-top: 32px;

    }

    

    .footer-content {

        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

        gap: 24px;

        padding: 0 16px;

    }

    

    .footer-section {

        text-align: center;

    }

    

    .footer-section h4 {

        font-size: 15px;

        margin-bottom: 10px;

    }

}

@media (max-width: 480px) {

    .footer {

        padding: 24px 0;

        margin-top: 24px;

    }

    

    .footer-content {

        grid-template-columns: 1fr;

        gap: 20px;

        padding: 0 12px;

    }

    

    .footer-section h4 {

        font-size: 14px;

    }

    

    .footer-section p {

        font-size: 12px;

    }

}

main {

    min-height: calc(100vh - 200px);

    padding: 0;

}

/* ISSUE 2 FIX: Prevent templates grid from overflowing horizontally */

.grid[style*="grid-template-columns: 1fr 1fr"] {

    max-width: 100%;

    width: 100%;

    box-sizing: border-box;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

}

.grid[style*="grid-template-columns: 1fr 1fr"] > * {

    min-width: 0;

    overflow: hidden;

}

main.container {

    padding: 0 20px;

}

/* Contact and Payment page main sections */

main > .section.container {

    padding: 40px 20px;

    max-width: 1200px;

    margin: 0 auto;

}

/* ISSUE 2 FIX: Desktop grid layout - ensure 2-column grid doesn't overflow */

@media (min-width: 1025px) {

    main > .section.container {

        padding: 48px 20px;

    }

    

    .grid[style*="grid-template-columns: 1fr 1fr"] {

        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        width: 100%;

        max-width: 100%;

    }

    

    .grid[style*="grid-template-columns: 1fr 1fr"] > * {

        min-width: 0;

        max-width: 100%;

    }

}

@media (max-width: 768px) {

    main {

        min-height: calc(100vh - 150px);

    }

    

    main.container {

        padding: 0 16px;

    }

    

    main > .section.container {

        padding: 28px 16px;

    }

}

@media (max-width: 480px) {

    main {

        min-height: calc(100vh - 120px);

    }

    

    main.container {

        padding: 0 12px;

    }

    

    main > .section.container {

        padding: 20px 12px;

    }

}

/* Desktop: 2 columns */

@media (min-width: 1025px) {

    .grid[style*="grid-template-columns: 1fr 1fr"] {

        grid-template-columns: 1fr 1fr !important;

        gap: 32px;

    }

}

/* Tablets & Large Tablets */

@media (min-width: 769px) and (max-width: 1024px) {

    .grid[style*="grid-template-columns: 1fr 1fr"] {

        grid-template-columns: 1fr 1fr !important;

        gap: 24px;

    }

}

/* Tablets: Stack to 1 column */

@media (min-width: 600px) and (max-width: 768px) {

    .grid[style*="grid-template-columns: 1fr 1fr"] {

        grid-template-columns: 1fr !important;

        gap: 20px;

    }

}

/* Mobile: Always 1 column */

@media (max-width: 600px) {

    .grid[style*="grid-template-columns: 1fr 1fr"] {

        grid-template-columns: 1fr !important;

        gap: 16px;

    }

    

    .card-body {

        padding: 20px !important;

    }

    

    .card-3d {

        border-radius: 12px;

    }

}

/* Contact Form Responsive */

@media (max-width: 768px) {

    .contact-form, .contact-info {

        width: 100%;

    }

    

    .contact-info-item {

        padding: 18px;

        margin-bottom: 14px;

    }

    

    form {

        width: 100%;

    }

    

    form > div {

        margin-bottom: 16px;

    }

}

@media (max-width: 480px) {

    .card-3d {

        overflow: hidden;

        border-radius: 10px;

    }

    

    .card-body {

        padding: 16px !important;

    }

    

    h2[style*="font-size: 20px"],

    h2[style*="font-size: 18px"] {

        font-size: 16px !important;

        margin-bottom: 18px !important;

    }

}

.no-scroll {

    overflow: hidden !important;

    height: 100vh;

}

/* Additional body lock for better mobile support */

.no-scroll body {

    overflow: hidden !important;

}



/* ==================== 3D SLIDESHOW EFFECTS ==================== */

.slideshow-container {

    perspective: 1000px;

}



.slide-3d {

    transform-style: preserve-3d;

    transition: transform 0.6s ease-out;

}



.slide-3d.fade {

    animation: slideIn3D 0.8s ease-out;

}



@keyframes slideIn3D {

    from {

        opacity: 0;

        transform: translateZ(-100px) rotateY(45deg);

    }

    to {

        opacity: 1;

        transform: translateZ(0) rotateY(0deg);

    }

}



.slide-3d img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    backface-visibility: hidden;

}



/* ==================== CAROUSEL RESPONSIVE DESIGN ==================== */

/* Mobile First Approach */

@media (max-width: 480px) {

    .carousel-track {

        gap: 8px;

        padding: 8px 0;

    }

    

    .card-3d.small {

        min-width: 140px;

    }

    #featuredGrid .card-3d.small {
        max-width: 140px;
    }

    

    .slideshow-container {

        max-width: 100%;

        margin: 12px 0;

        border-radius: 8px;

    }

    

    .slide {

        height: 240px;

    }

    

    .slide-content {

        padding: 14px 10px;

    }

    

    .slide-content h3 {

        font-size: 13px;

        margin-bottom: 6px;

    }

    

    .slide-content p {

        font-size: 11px;

    }

    

    .prev, .next {

        padding: 8px 10px !important;

        font-size: 14px !important;

        min-width: 36px;

        min-height: 36px;

    }

}

@media (min-width: 481px) and (max-width: 768px) {

    .carousel-track {

        gap: 12px;

    }

    

    .card-3d.small {

        min-width: 180px;

    }

    #featuredGrid .card-3d.small {
        max-width: 180px;
    }

    

    .slideshow-container {

        max-width: 100%;

        margin: 16px 0;

    }

    

    .slide {

        height: 300px;

    }

    

    .slide-content {

        padding: 20px 14px;

    }

    

    .slide-content h3 {

        font-size: 16px;

    }

    

    .slide-content p {

        font-size: 12px;

    }

}

@media (min-width: 769px) and (max-width: 1024px) {

    .carousel-track {

        gap: 14px;

    }

    

    .card-3d.small {

        min-width: 220px;

    }

    #featuredGrid .card-3d.small {
        max-width: 220px;
    }

    

    .slide {

        height: 380px;

    }

    

    .slide-content {

        padding: 30px 20px;

    }

}

@media (min-width: 1025px) {

    .carousel-track {

        gap: 18px;

    }

    

    .card-3d.small {

        min-width: 260px;

    }

    #featuredGrid .card-3d.small {
        max-width: 260px;
    }

    

    .slide {

        height: 500px;

    }

    

    .slide-content {

        padding: 40px 30px;

    }

}



/* ==================== LANDSCAPE MOBILE OPTIMIZATION ==================== */

@media (max-width: 768px) and (orientation: landscape) {

    .nav-inner {

        padding: 8px 16px;

    }

    

    .hero {

        padding: 15px 0 20px 0;

    }

    

    .hero-media {

        max-height: 150px;

    }

    

    .hero-text h1.hero-title {

        font-size: 18px;

        margin-bottom: 4px;

    }

    

    .tagline {

        font-size: 12px;

        margin-bottom: 10px;

    }

    

    .hero-actions {

        gap: 6px;

    }

    

    .section {

        padding: 12px 0;

    }

    

    .section-title {

        font-size: 16px;

    }

    

    .slide {

        height: 180px;

    }

}

/* ==================== HIGH DPI DISPLAY OPTIMIZATION ==================== */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

    button, .btn, input, textarea, select {

        -webkit-font-smoothing: antialiased;

        -moz-osx-font-smoothing: grayscale;

    }

}

/* ==================== WIDE SCREEN OPTIMIZATION ==================== */

@media (min-width: 1400px) {

    .container {

        max-width: 1320px;

    }

    

    .hero-grid {

        gap: 50px;

    }

    

    .grid {

        grid-template-columns: repeat(5, 1fr);

    }

}

/* ==================== PRINT MEDIA ==================== */

@media print {

    .nav, .hamburger, .main-nav, footer {

        display: none;

    }

    

    body {

        background: white;

        color: black;

    }

    

    .container {

        max-width: 100%;

        padding: 0;

    }

}

/* ==================== PREFERS REDUCED MOTION ==================== */

@media (prefers-reduced-motion: reduce) {

    * {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }

    

    html {

        scroll-behavior: auto;

    }

}

/* ==================== DARK MODE SUPPORT (Optional) ==================== */

@media (prefers-color-scheme: dark) {

    body {
        color-scheme: dark;
        background: linear-gradient(135deg, #0b1220 0%, #111a2d 100%);
        color: #f1f5f9;
    }

    .nav {
        background: rgba(15, 23, 42, 0.95);
        border-bottom-color: rgba(71, 85, 105, 0.45);
    }

    .hamburger,
    .main-nav a {
        color: #e2e8f0;
    }

    .main-nav {
        background: rgba(15, 23, 42, 0.98);
        border-left: 1px solid rgba(71, 85, 105, 0.35);
    }

    .main-nav a {
        color: #f8fafc;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible {
        background: rgba(148, 163, 184, 0.14);
        color: #bfdbfe;
    }

    .section,
    main > .section.container,
    .card,
    .card-3d,
    .happy-clients-section,
    .review-form-wrapper,
    .review-info-box,
    .review-privacy-note,
    .reviews-toggle-btn,
    .checkout-modal-content,
    .lightbox-content {
        background-color: #0f1b31;
        border-color: #334155;
    }

    .happy-clients-section {
        background:
            radial-gradient(80% 100% at 0% 0%, rgba(56, 189, 248, 0.16), transparent 60%),
            radial-gradient(80% 100% at 100% 0%, rgba(59, 130, 246, 0.18), transparent 62%),
            linear-gradient(180deg, #0f1b31 0%, #10213b 100%);
    }

    .happy-clients-card {
        background:
            linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.92)),
            repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.08) 0 1px, transparent 1px 9px);
        border-color: rgba(148, 163, 184, 0.3);
    }

    .review-info-box {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(99, 102, 241, 0.12) 100%);
    }

    .review-privacy-note {
        background: rgba(37, 99, 235, 0.12);
    }

    h1, h2, h3, h4, h5, h6,
    p, li, label,
    .section-title,
    .muted,
    .tagline,
    .review-text,
    .review-service,
    .reviews-subtitle,
    .rating-text,
    .footer-section p,
    .footer-section li,
    .footer-section a,
    .video-page-subtitle {
        color: #e2e8f0;
    }

    .footer-section a:hover {
        color: #93c5fd;
    }

    input, textarea, select {
        background: #1e293b;
        color: #f1f5f9;
        border-color: #334155;
    }

    .card, .slide-content {
        background-color: #1e293b;
        color: #f1f5f9;
    }

    .category-card-3d h3,
    .category-card-3d p,
    .card-3d .card-body h3,
    .card-3d .card-body .muted,
    .trending-section #carouselTrack .card-body h3,
    .trending-section #carouselTrack .card-body .muted {
        color: #e2e8f0;
    }

    .categories-vivid .section-title {
        background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 45%, #67e8f9 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    /* Override inline light-theme text colors used in multiple pages */
    main [style*="color: #1e293b"],
    main [style*="color:#1e293b"],
    main [style*="color: #334155"],
    main [style*="color:#334155"],
    main [style*="color: #475569"],
    main [style*="color:#475569"],
    main [style*="color: #64748b"],
    main [style*="color:#64748b"] {
        color: #e2e8f0 !important;
    }

}

.lightbox-modal {

    display: none;

    position: fixed;

    z-index: 2000;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0, 0, 0, 0.8);

    animation: fadeInLightbox 0.3s ease-out;

}



.lightbox-modal.active {

    display: flex;

    align-items: center;

    justify-content: center;

}



.lightbox-content {

    position: relative;

    max-width: 90vw;

    max-height: 90vh;

    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);

    animation: scaleInLightbox 0.3s ease-out;

}



.lightbox-content img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;

    max-height: 85vh;

}

/* ==================== CHAOS MODE ==================== */

.chaos-toggle-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 5000;
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
    background: linear-gradient(120deg, #ff6a00, #ff00c8, #00c2ff);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
    cursor: pointer;
}

.chaos-mode {
    --primary: #00c2ff;
    --secondary: #ff00c8;
    --accent: #ff6a00;
}

.chaos-mode::before {
    content: "";
    position: fixed;
    inset: -20% -20%;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 0, 200, 0.25), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(0, 194, 255, 0.22), transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(255, 106, 0, 0.25), transparent 38%),
        linear-gradient(135deg, #0f172a, #111827, #1f2937);
    animation: chaosPulse 12s ease-in-out infinite alternate;
}

.chaos-mode .section-title,
.chaos-mode h1,
.chaos-mode h2,
.chaos-mode h3 {
    background: linear-gradient(120deg, #00c2ff, #ff00c8, #ff6a00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Readability rules: apply contrast by surface type */
.chaos-mode {
    color: #eaf2ff;
}

.chaos-mode .card-3d,
.chaos-mode .image-card,
.chaos-mode .product-card,
.chaos-mode .review-card,
.chaos-mode .why-card-3d,
.chaos-mode .category-card-3d,
.chaos-mode .footer {
    color: #eaf2ff !important;
}

.chaos-mode .card-3d p,
.chaos-mode .card-3d li,
.chaos-mode .card-3d span,
.chaos-mode .card-3d .muted,
.chaos-mode .card-3d label,
.chaos-mode .card-3d h4,
.chaos-mode .image-card p,
.chaos-mode .image-card span,
.chaos-mode .product-card p,
.chaos-mode .product-card span,
.chaos-mode .review-card p,
.chaos-mode .review-card span,
.chaos-mode .category-card-3d p,
.chaos-mode .category-card-3d span,
.chaos-mode .footer p,
.chaos-mode .footer li,
.chaos-mode .footer a {
    color: #eaf2ff !important;
}

/* Prevent gradient/transparent headings on dark cards */
.chaos-mode .card-3d h1,
.chaos-mode .card-3d h2,
.chaos-mode .card-3d h3,
.chaos-mode .card-3d h4,
.chaos-mode .image-card h1,
.chaos-mode .image-card h2,
.chaos-mode .image-card h3,
.chaos-mode .image-card h4 {
    background: none !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    text-shadow: 0 2px 10px rgba(2, 6, 23, 0.32);
}

/* Explicitly readable on white/light components */
.chaos-mode .review-static-card,
.chaos-mode .review-form-wrapper,
.chaos-mode .review-info-box,
.chaos-mode .reviews-toggle-btn,
.chaos-mode .happy-clients-card,
.chaos-mode .checkout-modal-content,
.chaos-mode .checkout-details,
.chaos-mode .checkout-summary,
.chaos-mode .modal-content,
.chaos-mode .card {
    color: #0f172a !important;
}

.chaos-mode .review-static-card *,
.chaos-mode .review-form-wrapper *,
.chaos-mode .review-info-box *,
.chaos-mode .reviews-toggle-btn *,
.chaos-mode .happy-clients-card *,
.chaos-mode .checkout-modal-content *,
.chaos-mode .checkout-details *,
.chaos-mode .checkout-summary *,
.chaos-mode .modal-content *,
.chaos-mode .card * {
    color: #0f172a !important;
}

.chaos-mode .reviews-toggle-btn {
    background: #f8fbff !important;
    border-color: rgba(15, 23, 42, 0.18) !important;
}

.chaos-mode input,
.chaos-mode textarea,
.chaos-mode select {
    color: #0f172a !important;
    background: #f8fbff !important;
    border-color: rgba(15, 23, 42, 0.22) !important;
}

.chaos-mode input::placeholder,
.chaos-mode textarea::placeholder {
    color: #6b7c93 !important;
}

.chaos-mode .review-info-box,
.chaos-mode .review-privacy-note {
    background: rgba(248, 251, 255, 0.96) !important;
    border-color: rgba(15, 23, 42, 0.16) !important;
}

.chaos-mode .review-info-box h3,
.chaos-mode .review-privacy-note,
.chaos-mode .review-privacy-note i {
    background: none !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

/* Inline white/light info rows/cards should always use dark text */
.chaos-mode [style*="background: #f8fbff"],
.chaos-mode [style*="background:#f8fbff"],
.chaos-mode [style*="background: #eff6ff"],
.chaos-mode [style*="background:#eff6ff"],
.chaos-mode [style*="background: #ffffff"],
.chaos-mode [style*="background:#ffffff"],
.chaos-mode [style*="background: white"],
.chaos-mode [style*="background:white"] {
    color: #0f172a !important;
}

.chaos-mode [style*="background: #f8fbff"] *,
.chaos-mode [style*="background:#f8fbff"] *,
.chaos-mode [style*="background: #eff6ff"] *,
.chaos-mode [style*="background:#eff6ff"] *,
.chaos-mode [style*="background: #ffffff"] *,
.chaos-mode [style*="background:#ffffff"] *,
.chaos-mode [style*="background: white"] *,
.chaos-mode [style*="background:white"] * {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

/* Contact/payment form labels in dark cards */
.chaos-mode #contactForm label,
.chaos-mode #contactForm h2,
.chaos-mode .checkout-modal-content label {
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
}

/* ==================== CHAOS MODE LOCK (END OF FILE) ==================== */
.chaos-mode .why-card-3d {
    background: #f8fbff !important;
    border-color: #dbe5f3 !important;
}

.chaos-mode .why-card-3d h3,
.chaos-mode .why-card-3d p {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.chaos-mode .payment-methods-modern .payment-option-easypaisa {
    background: linear-gradient(135deg, #2ba7db 0%, #6dcf83 100%) !important;
}

.chaos-mode .payment-methods-modern .payment-option-binance {
    background: linear-gradient(135deg, #9859d3 0%, #c8aa5e 100%) !important;
}

.chaos-mode .payment-methods-modern .payment-option-usdt {
    background: linear-gradient(135deg, #5d7cff 0%, #67c7df 100%) !important;
}

.chaos-mode .payment-methods-modern .payment-option-paypal {
    background: linear-gradient(135deg, #0f77d4 0%, #a8dbf4 100%) !important;
}

.chaos-mode .payment-methods-modern .payment-option .payment-option-content,
.chaos-mode .payment-methods-modern .payment-option .payment-option-content * {
    background: transparent !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.chaos-mode .payment-methods-modern .payment-option .copyable-value {
    background: rgba(15, 23, 42, 0.2) !important;
}

/* ==================== CHAOS PAYMENT HOTFIX ==================== */
.chaos-mode .payment-methods-modern .payment-option .payment-option-content h3 {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(2, 6, 23, 0.28) !important;
    opacity: 1 !important;
}

.chaos-mode .payment-methods-modern .payment-option .payment-option-content p,
.chaos-mode .payment-methods-modern .payment-option .copyable-value,
.chaos-mode .payment-methods-modern .payment-option .copy-hint,
.chaos-mode .payment-methods-modern .payment-option .copy-hint * {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    opacity: 1 !important;
}

.chaos-mode .payment-methods-modern .payment-option .account-holder-line {
    background: rgba(255, 255, 255, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.chaos-mode .payment-methods-modern .payment-option .account-holder-label {
    color: #e0f2fe !important;
    -webkit-text-fill-color: #e0f2fe !important;
    font-weight: 800 !important;
}

/* Payment note icon visibility in chaos mode */
.chaos-mode .payment-note-icon {
    color: #1d4ed8 !important;
    -webkit-text-fill-color: #1d4ed8 !important;
    background: #dbeafe !important;
    border: 1px solid #93c5fd !important;
    opacity: 1 !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

/* Chaos mode: colorful payment option icons */
.chaos-mode .payment-methods-modern .payment-option .payment-option-icon {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.22) !important;
}

.chaos-mode .payment-methods-modern .payment-option-easypaisa .payment-option-icon {
    background: linear-gradient(135deg, #0ea5e9, #22c55e) !important;
}

.chaos-mode .payment-methods-modern .payment-option-binance .payment-option-icon {
    background: linear-gradient(135deg, #a855f7, #f59e0b) !important;
}

.chaos-mode .payment-methods-modern .payment-option-usdt .payment-option-icon {
    background: linear-gradient(135deg, #6366f1, #06b6d4) !important;
}

.chaos-mode .payment-methods-modern .payment-option-paypal .payment-option-icon {
    background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
}

/* ==================== DARK MODE PAYMENT LOCK (NON-CHAOS) ==================== */
@media (prefers-color-scheme: dark) {
    body:not(.chaos-mode) .payment-methods-modern .payment-option {
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
    }

    body:not(.chaos-mode) .payment-methods-modern .payment-option-easypaisa {
        background: linear-gradient(135deg, #2ba7db 0%, #6dcf83 100%) !important;
    }

    body:not(.chaos-mode) .payment-methods-modern .payment-option-binance {
        background: linear-gradient(135deg, #9859d3 0%, #c8aa5e 100%) !important;
    }

    body:not(.chaos-mode) .payment-methods-modern .payment-option-usdt {
        background: linear-gradient(135deg, #5d7cff 0%, #67c7df 100%) !important;
    }

    body:not(.chaos-mode) .payment-methods-modern .payment-option-paypal {
        background: linear-gradient(135deg, #0f77d4 0%, #a8dbf4 100%) !important;
    }

    body:not(.chaos-mode) .payment-methods-modern .payment-option .payment-option-icon {
        background: rgba(255, 255, 255, 0.9) !important;
        color: #0f172a !important;
    }

    body:not(.chaos-mode) .payment-methods-modern .payment-option .payment-option-content h3,
    body:not(.chaos-mode) .payment-methods-modern .payment-option .payment-option-content p,
    body:not(.chaos-mode) .payment-methods-modern .payment-option .copyable-value,
    body:not(.chaos-mode) .payment-methods-modern .payment-option .copyable-value *,
    body:not(.chaos-mode) .payment-methods-modern .payment-option .account-holder-line,
    body:not(.chaos-mode) .payment-methods-modern .payment-option .account-holder-label {
        color: #f8fafc !important;
        -webkit-text-fill-color: #f8fafc !important;
        text-shadow: none !important;
        opacity: 1 !important;
        background: transparent !important;
    }

    body:not(.chaos-mode) .payment-methods-modern .payment-option .copyable-value {
        background: rgba(15, 23, 42, 0.2) !important;
        border: 0 !important;
    }

    body:not(.chaos-mode) .payment-methods-modern .payment-option .account-holder-line {
        background: rgba(255, 255, 255, 0.24) !important;
        border: 0 !important;
    }
}

/* ==================== CHAOS MODE ACCESSIBILITY FINAL PASS ==================== */
.chaos-mode .card-3d,
.chaos-mode .category-card-3d,
.chaos-mode .image-card,
.chaos-mode .product-card,
.chaos-mode .review-static-card,
.chaos-mode .review-form-wrapper,
.chaos-mode .review-info-box {
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9)) !important;
    border: 1px solid rgba(148, 163, 184, 0.34) !important;
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.4) !important;
    color: #f8fbff !important;
}

.chaos-mode .card-3d *,
.chaos-mode .category-card-3d *,
.chaos-mode .image-card *,
.chaos-mode .product-card *,
.chaos-mode .review-static-card *,
.chaos-mode .review-form-wrapper *,
.chaos-mode .review-info-box * {
    color: #f8fbff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #f8fbff !important;
}

.chaos-mode .card-3d .muted,
.chaos-mode .category-card-3d p,
.chaos-mode .review-text,
.chaos-mode .review-service {
    color: #d8e6ff !important;
}

.chaos-mode .card-3d .card-body,
.chaos-mode .category-card-3d .card-body,
.chaos-mode .image-card .card-body,
.chaos-mode .product-card .card-body {
    opacity: 1 !important;
    filter: none !important;
}

.chaos-mode .card-3d .tag,
.chaos-mode .card-3d .category,
.chaos-mode .category-card-3d .category {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Keep form fields readable (dark text on light input background) */
.chaos-mode .review-form-wrapper input,
.chaos-mode .review-form-wrapper textarea,
.chaos-mode #contactForm input,
.chaos-mode #contactForm textarea,
.chaos-mode .checkout-modal-content input,
.chaos-mode .checkout-modal-content textarea {
    background: #f8fbff !important;
    border: 1px solid rgba(15, 23, 42, 0.22) !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

.chaos-mode .review-form-wrapper input::placeholder,
.chaos-mode .review-form-wrapper textarea::placeholder,
.chaos-mode #contactForm input::placeholder,
.chaos-mode #contactForm textarea::placeholder {
    color: #64748b !important;
}

/* Payment steps readability in chaos mode */
.chaos-mode .payment-steps-grid .payment-step-row,
.chaos-mode .payment-steps-grid .payment-step-note {
    background: #f8fbff !important;
    border-color: #dbeafe !important;
}

.chaos-mode .payment-steps-grid .payment-step-row p,
.chaos-mode .payment-steps-grid .payment-step-row strong,
.chaos-mode .payment-steps-grid .payment-step-note p,
.chaos-mode .payment-steps-grid .payment-step-note strong {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    opacity: 1 !important;
}

.chaos-mode .payment-steps-grid .payment-step-note .payment-note-icon {
    color: #1d4ed8 !important;
    background: #dbeafe !important;
}

/* Chaos mode: fix low-contrast sections (payment, happy clients, why cards) */
.chaos-mode .payment-methods-modern .payment-option {
    border-color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

.chaos-mode .payment-methods-modern .payment-option .account-holder-line {
    background: #e8f1ff !important;
    color: #0f172a !important;
    border: 1px solid #c7dbff !important;
    font-weight: 700 !important;
}

.chaos-mode .payment-methods-modern .payment-option .account-holder-label {
    color: #1d4ed8 !important;
    -webkit-text-fill-color: #1d4ed8 !important;
}

.chaos-mode .happy-clients-card {
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.9)) !important;
    border: 1px solid rgba(148, 163, 184, 0.34) !important;
}

.chaos-mode .happy-clients-card .happy-counter,
.chaos-mode .happy-clients-card .happy-counter-text {
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    opacity: 1 !important;
    text-shadow: 0 2px 10px rgba(2, 6, 23, 0.35);
}

.chaos-mode .why-card-3d {
    background: #f8fbff !important;
    color: #0f172a !important;
    border-color: #dbe5f3 !important;
}

.chaos-mode .why-card-3d h3,
.chaos-mode .why-card-3d p {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: none !important;
    opacity: 1 !important;
    font-weight: 700;
}

.chaos-mode .why-card-3d * {
    opacity: 1 !important;
}

/* Transparent PNG logos were inheriting blue card background in chaos mode */
.chaos-mode .card-3d .responsive-card-img,
.chaos-mode .card-3d .constrain-img,
.chaos-mode .card-3d .gallery-main {
    background: transparent !important;
}

.chaos-mode .card-3d .card-overlay {
    background: transparent !important;
}

/* Remove blue tint effect specifically on categories/templates grids in chaos mode */
.chaos-mode #productsGrid .card-3d,
.chaos-mode .image-grid .image-card,
.chaos-mode #featuredGrid .card-3d,
.chaos-mode .trending-section #carouselTrack .card-3d {
    background: rgba(15, 23, 42, 0.82) !important;
}

.chaos-mode #productsGrid .card-3d .responsive-card-img,
.chaos-mode #productsGrid .card-3d .constrain-img,
.chaos-mode .image-grid .image-card img,
.chaos-mode #featuredGrid .card-3d .clickable-img,
.chaos-mode .trending-section #carouselTrack .card-3d img {
    background: transparent !important;
    filter: none !important;
}

/* ==================== CHAOS MODE FINAL READABILITY OVERRIDES ==================== */
.chaos-mode .card-3d .tags .tag,
.chaos-mode #productsGrid .tag,
.chaos-mode #featuredGrid .tag,
.chaos-mode .trending-section #carouselTrack .tag,
.chaos-mode .card .category,
.chaos-mode .card-3d .category {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.chaos-mode .review-stars {
    background: linear-gradient(90deg, #facc15, #fb7185, #22d3ee, #a78bfa, #34d399) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #facc15 !important;
    text-shadow: none !important;
}

.chaos-mode .star:hover,
.chaos-mode .star.active {
    background: linear-gradient(90deg, #facc15, #fb7185, #22d3ee, #a78bfa, #34d399) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #facc15 !important;
}

/* Restore payment cards in chaos mode to light-mode visual style */
.chaos-mode .payment-methods-modern .payment-option {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

.chaos-mode .payment-methods-modern .payment-option-easypaisa {
    background: linear-gradient(135deg, #2ba7db 0%, #6dcf83 100%) !important;
}

.chaos-mode .payment-methods-modern .payment-option-binance {
    background: linear-gradient(135deg, #9859d3 0%, #c8aa5e 100%) !important;
}

.chaos-mode .payment-methods-modern .payment-option-usdt {
    background: linear-gradient(135deg, #5d7cff 0%, #67c7df 100%) !important;
}

.chaos-mode .payment-methods-modern .payment-option-paypal {
    background: linear-gradient(135deg, #0f77d4 0%, #a8dbf4 100%) !important;
}

.chaos-mode .payment-methods-modern .payment-option .payment-option-icon {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0f172a !important;
}

.chaos-mode .payment-methods-modern .payment-option .payment-option-content h3,
.chaos-mode .payment-methods-modern .payment-option .payment-option-content p,
.chaos-mode .payment-methods-modern .payment-option .copyable-value,
.chaos-mode .payment-methods-modern .payment-option .copyable-value *,
.chaos-mode .payment-methods-modern .payment-option .account-holder-line,
.chaos-mode .payment-methods-modern .payment-option .account-holder-label {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.chaos-mode .payment-methods-modern .payment-option .copyable-value {
    background: rgba(15, 23, 42, 0.2) !important;
    border: 0 !important;
}

.chaos-mode .payment-methods-modern .payment-option .account-holder-line {
    background: rgba(255, 255, 255, 0.24) !important;
    border: 0 !important;
}

/* Keep payment card internals clean in chaos mode (no forced white overlays) */
.chaos-mode .payment-methods-modern .payment-option .payment-option-content,
.chaos-mode .payment-methods-modern .payment-option .payment-option-content * {
    background: transparent !important;
}

/* Hero readability: ensure subtitle lines remain visible */
.chaos-mode .hero .tagline,
.chaos-mode .hero .hero-subtitle {
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    text-shadow: 0 2px 12px rgba(2, 6, 23, 0.45);
}

/* Contact page quick response callout */
.chaos-mode .quick-response-card {
    color: #eaf2ff !important;
    border-color: rgba(148, 163, 184, 0.35) !important;
}

.chaos-mode .quick-response-card h2,
.chaos-mode .quick-response-card h3,
.chaos-mode .quick-response-card p,
.chaos-mode .quick-response-card span {
    color: #eaf2ff !important;
    background: none !important;
    -webkit-text-fill-color: #eaf2ff !important;
}

.chaos-mode .card-3d,
.chaos-mode .image-card,
.chaos-mode .product-card,
.chaos-mode .review-card,
.chaos-mode .why-card-3d,
.chaos-mode .category-card-3d {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.62));
    box-shadow: 0 18px 32px rgba(2, 6, 23, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.chaos-mode .why-card-3d h3,
.chaos-mode .why-card-3d p,
.chaos-mode .why-card-3d .why-icon {
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    text-shadow: 0 2px 10px rgba(2, 6, 23, 0.35);
}

.chaos-mode .card-3d:hover,
.chaos-mode .image-card:hover,
.chaos-mode .category-card-3d:hover {
    transform: translateY(-6px) rotate(-0.6deg) scale(1.01);
}

.chaos-mode .btn,
.chaos-mode .btn-sm,
.chaos-mode .btn-primary,
.chaos-mode .btn-light {
    border: none;
    color: #fff;
    background: linear-gradient(120deg, #00c2ff, #ff00c8, #ff6a00);
    background-size: 200% 200%;
    animation: chaosButtonShift 3.5s ease infinite;
}

.chaos-mode .price {
    color: #22d3ee !important;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
}

.chaos-mode img.clickable-img,
.chaos-mode .responsive-card-img {
    filter: saturate(1.2) contrast(1.08);
}

@keyframes chaosPulse {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(2deg) scale(1.04); }
}

@keyframes chaosButtonShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 12px;
    z-index: 2001;
}



.lightbox-close {

    position: absolute;

    top: 16px;

    right: 16px;

    background: rgba(255, 255, 255, 0.95);

    border: none;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    font-size: 24px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #1e293b;

    transition: all 0.2s ease;

    z-index: 2001;

}



.lightbox-close:hover {

    background: white;

    transform: scale(1.1);

}



@keyframes fadeInLightbox {

    from {

        opacity: 0;

    }

    to {

        opacity: 1;

    }

}



@keyframes scaleInLightbox {

    from {

        opacity: 0;

        transform: scale(0.9);

    }

    to {

        opacity: 1;

        transform: scale(1);

    }

}



/* ==================== CHECKOUT MODAL ==================== */

.checkout-modal {

    display: none;

    position: fixed;

    z-index: 3000;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0, 0, 0, 0.7);

    animation: fadeInLightbox 0.3s ease-out;

    padding: 16px;

}



.checkout-modal.active {

    display: flex;

    align-items: center;

    justify-content: center;

}



.checkout-modal-content {

    position: relative;

    max-width: 600px;

    width: 100%;

    background: white;

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);

    animation: scaleInLightbox 0.3s ease-out;

    display: flex;

    flex-direction: column;

}



.checkout-modal-header {

    padding: 24px;

    border-bottom: 1px solid #e2e8f0;

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    color: white;

}



.checkout-modal-header h2 {

    margin: 0;

    font-size: 24px;

    font-weight: 700;

    font-family: 'Poppins', sans-serif;

}



.checkout-modal-body {

    padding: 24px;

    flex: 1;

    overflow-y: auto;

    display: flex;

    gap: 24px;

}



.checkout-image-preview {

    flex-shrink: 0;

    width: 180px;

    height: 180px;

    border-radius: 12px;

    overflow: hidden;

    background: #f1f5f9;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

}



.checkout-image-preview img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.checkout-details {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 16px;

}



.checkout-detail-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 12px;

    background: #f8fafc;

    border-radius: 8px;

}



.detail-label {

    font-weight: 600;

    color: #475569;

    font-size: 14px;

}



.detail-value {

    font-weight: 700;

    color: #1e293b;

    font-size: 15px;

}



.detail-value.price {

    color: #667eea;

    font-size: 18px;

}



.checkout-summary {

    border-top: 2px solid #e2e8f0;

    padding-top: 16px;

    margin-top: 16px;

}



.summary-line {

    display: flex;

    justify-content: space-between;

    font-size: 14px;

    color: #64748b;

    margin-bottom: 8px;

}



.summary-line.total {

    font-size: 16px;

    font-weight: 700;

    color: #1e293b;

    border-top: 1px solid #cbd5e1;

    padding-top: 12px;

    margin-top: 12px;

}



.summary-line.total span:last-child {

    color: #667eea;

    font-size: 18px;

}



.checkout-modal-footer {

    padding: 20px 24px;

    border-top: 1px solid #e2e8f0;

    background: #f8fafc;

    display: flex;

    gap: 12px;

    justify-content: flex-end;

}



.checkout-modal-close {

    position: absolute;

    top: 16px;

    right: 16px;

    background: rgba(255, 255, 255, 0.95);

    border: none;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    font-size: 24px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #1e293b;

    transition: all 0.2s ease;

    z-index: 3001;

}



.checkout-modal-close:hover {

    background: white;

    transform: scale(1.1);

}



.checkout-cancel-btn {

    background: #cbd5e1;

    color: #1e293b;

    border: none;

}



.checkout-cancel-btn:hover {

    background: #94a3b8;

}



.checkout-proceed-btn {

    min-width: 180px;

}



/* Responsive checkout modal */

@media (max-width: 600px) {

    .checkout-modal {

        padding: 12px;

    }

    

    .checkout-modal-content {

        max-width: 100%;

        border-radius: 12px;

    }

    

    .checkout-modal-header {

        padding: 18px;

    }

    

    .checkout-modal-header h2 {

        font-size: 18px;

    }

    

    .checkout-modal-body {

        flex-direction: column;

        gap: 12px;

        padding: 16px;

    }

    

    .checkout-image-preview {

        width: 100%;

        height: 200px;

        border-radius: 8px;

    }

    

    .checkout-detail-row {

        padding: 10px;

        font-size: 13px;

    }

    

    .checkout-modal-footer {

        flex-direction: column;

        padding: 14px 16px;

    }

    

    .checkout-cancel-btn,

    .checkout-proceed-btn {

        width: 100%;

        font-size: 13px;

        padding: 12px;

        min-height: 44px;

    }

}

/* Form Responsiveness */

@media (max-width: 768px) {

    input, textarea, select {

        font-size: 16px;

        padding: 11px;

        border-radius: 7px;

        margin-bottom: 11px;

    }

    

    input:focus, textarea:focus, select:focus {

        outline: none;

        border-color: var(--primary);

        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);

    }

    

    label {

        font-size: 13px;

        display: block;

        margin-bottom: 6px;

        font-weight: 500;

    }

}

@media (max-width: 480px) {

    input, textarea, select {

        font-size: 16px;

        padding: 10px;

        border-radius: 6px;

        margin-bottom: 10px;

        width: 100%;

    }

    

    label {

        font-size: 12px;

        margin-bottom: 5px;

    }

    

    .contact-form-actions,

    .form-actions {

        display: flex;

        flex-direction: column;

        gap: 8px;

    }

    

    .contact-form-actions .btn,

    .form-actions .btn {

        width: 100%;

        min-height: 42px;

    }

}

/* ==================== LANDSCAPE MOBILE RESPONSIVE ==================== */

@media (max-width: 768px) and (orientation: landscape) {

    .hero {

        padding: 20px 0 30px 0;

    }

    

    .hero-media {

        max-height: 200px;

    }

    

    .hero-text h1.hero-title {

        font-size: 24px;

    }

    

    .section {

        padding: 18px 0;

    }

    

    .slide {

        height: 250px;

    }

}

/* ==================== ENHANCED ACCESSIBILITY & TOUCH TARGETS ==================== */

/* Ensure all interactive elements have minimum 44x44px touch targets on mobile */

@media (max-width: 768px) {

    a, button, .btn, input[type="button"], input[type="submit"] {

        min-width: 44px;

        min-height: 44px;

        padding: 10px 12px;

    }

    

    .prev, .next, .arrow, .hamburger {

        min-width: 44px;

        min-height: 44px;

    }

    

    .social-icon {

        min-width: 44px;

        min-height: 44px;

    }

    

    /* Improve spacing between clickable elements */

    .main-nav a {

        margin-bottom: 4px;

    }

    

    .category-filter-buttons {

        gap: 8px;

        margin-bottom: 20px;

    }

}

/* ==================== FLUID TYPOGRAPHY ==================== */

/* Responsive font sizes that scale from 16px to 48px based on viewport */

@media (max-width: 480px) {

    body {

        font-size: 13px;

    }

    

    h1, .hero-title {

        font-size: clamp(18px, 5vw, 24px);

        line-height: 1.2;

    }

    

    h2, .section-title {

        font-size: clamp(16px, 4vw, 22px);

        line-height: 1.3;

    }

    

    h3 {

        font-size: clamp(14px, 3.5vw, 18px);

    }

    

    p {

        font-size: clamp(12px, 2.5vw, 14px);

    }

}

@media (min-width: 481px) and (max-width: 768px) {

    body {

        font-size: 14px;

    }

    

    h1, .hero-title {

        font-size: clamp(24px, 6vw, 32px);

    }

    

    h2, .section-title {

        font-size: clamp(18px, 5vw, 24px);

    }

}

@media (min-width: 769px) and (max-width: 1024px) {

    h1, .hero-title {

        font-size: clamp(28px, 7vw, 36px);

    }

    

    h2, .section-title {

        font-size: clamp(20px, 5.5vw, 26px);

    }

}

/* ==================== ENHANCED MODAL RESPONSIVENESS ==================== */

@media (max-width: 480px) {

    .checkout-modal-content {

        max-width: 95vw;

        max-height: 95vh;

        overflow-y: auto;

    }

    

    .lightbox-content {

        max-width: 95vw;

        max-height: 95vh;

    }

    

    .lightbox-close {

        width: 36px;

        height: 36px;

        font-size: 20px;

        top: 8px;

        right: 8px;

    }

    

    .checkout-modal-close {

        width: 36px;

        height: 36px;

        font-size: 18px;

        top: 8px;

        right: 8px;

    }

}

/* ==================== VIDEO RESPONSIVE IMPROVEMENTS ==================== */

@media (max-width: 768px) {

    .video-grid {

        grid-template-columns: 1fr;

        gap: 24px;

    }

    

    .video-title {

        font-size: 14px;

        padding: 12px;

    }

    

    .video-page-title {

        font-size: 32px;

    }

    

    .video-page-subtitle {

        font-size: 14px;

    }

}

@media (max-width: 480px) {

    .video-grid {

        grid-template-columns: 1fr;

        gap: 16px;

    }

    

    .video-page-header {

        padding: 24px 0;

    }

    

    .video-page-title {

        font-size: 20px;

    }

    

    .video-page-subtitle {

        font-size: 12px;

    }

    

    .video-title {

        font-size: 12px;

        padding: 10px;

    }

}

/* ==================== CONTACT PAGE RESPONSIVE ==================== */

@media (max-width: 768px) {

    .contact-page-grid {

        grid-template-columns: 1fr;

        gap: 24px;

    }

    

    .contact-form, .contact-info {

        width: 100%;

    }

    

    .contact-info-item {

        padding: 16px;

        margin-bottom: 12px;

    }

}

@media (max-width: 480px) {

    .contact-page-grid {

        grid-template-columns: 1fr;

        gap: 16px;

    }

    

    .contact-info-item {

        padding: 12px;

        font-size: 12px;

    }

}

/* ==================== PAYMENT PAGE RESPONSIVE ==================== */

@media (max-width: 768px) {

    .payment-methods-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }

    

    .payment-card {

        padding: 20px;

    }

}

@media (max-width: 480px) {

    .payment-methods-grid {

        grid-template-columns: 1fr;

        gap: 14px;

    }

    

    .payment-card {

        padding: 14px;

    }

    

    .payment-card h3 {

        font-size: 14px;

    }

    

    .payment-card p {

        font-size: 12px;

    }

}



/* ==================== CATEGORY FILTERING ==================== */


.category-filter-buttons {

    display: flex;

    gap: 12px;

    margin-bottom: 32px;

    flex-wrap: wrap;

    align-items: center;

}

.categories-back-row {

    margin-top: -16px;

    margin-bottom: 20px;

}

.categories-back-btn {

    border-color: #c7d7f7;

    color: #1e40af;

    background: #f8fbff;

}

.categories-back-btn:hover {

    border-color: var(--primary);

    background: #eff6ff;

}



.filter-btn {

    padding: 10px 20px;

    border: 2px solid #e6eef9;

    background: transparent;

    border-radius: 8px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 500;

    color: #64748b;

    transition: all 0.3s ease;

}



.filter-btn:hover {

    border-color: var(--primary);

    color: var(--primary);

}



.filter-btn.active {

    background: var(--primary);

    color: white;

    border-color: var(--primary);

}



/* ==================== IMAGE GRID FOR CATEGORIES ==================== */

.image-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));

    gap: 20px;

    margin-top: 32px;

}



.image-card {

    position: relative;

    border-radius: 12px;

    overflow: hidden;

    cursor: pointer;

    background: var(--surface);

    border: 1px solid #e6eef9;

    transition: all 0.3s ease;

    aspect-ratio: 1;

    opacity: 1;

}



.image-card:hover {

    transform: translateY(-4px);

    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);

    border-color: var(--primary);

}



.image-card img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.3s ease;

}



.image-card:hover img {

    transform: scale(1.05);

}



.image-card-overlay {

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(37, 99, 235, 0.6);

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    transition: opacity 0.3s ease;

    color: white;

    font-size: 24px;

    pointer-events: none;

}



.image-card:hover .image-card-overlay {

    opacity: 1;

}



/* Make images clickable */

.clickable-img {

    cursor: pointer;

}



.clickable-img:hover {

    opacity: 0.9;

}


.card-buy-btn {

    position: absolute;

    bottom: 12px;

    right: 12px;

    padding: 8px 16px;

    font-size: 14px;

    font-weight: 600;

    opacity: 0;

    transform: translateY(8px);

    transition: all 0.3s ease;

    border-radius: 8px;

    border: none;

    cursor: pointer;

    pointer-events: none;

}


.image-card:hover .card-buy-btn {

    opacity: 1;

    transform: translateY(0);

    pointer-events: auto;

}


.card-buy-btn:hover {

    transform: scale(1.05);

}/* Responsive image grid - Mobile First */

@media (max-width: 480px) {

    .image-grid {

        grid-template-columns: repeat(2, 1fr);

        gap: 10px;

    }

    

    .image-card {

        border-radius: 8px;

    }

    

    .lightbox-content {

        max-width: 95vw;

        max-height: 95vh;

    }

    

    .lightbox-close {

        width: 34px;

        height: 34px;

        font-size: 18px;

    }

    

    .filter-btn {

        padding: 6px 12px;

        font-size: 11px;

    }

}

@media (max-width: 768px) {

    .image-grid {

        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));

        gap: 10px;

    }

    

    .category-filter-buttons {

        gap: 8px;

        flex-wrap: wrap;

    }

    

    .filter-btn {

        padding: 7px 13px;

        font-size: 12px;

    }

}

@media (min-width: 769px) and (max-width: 1024px) {

    .image-grid {

        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

        gap: 16px;

    }

}

@media (min-width: 1025px) {

    .image-grid {

        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));

        gap: 20px;

    }

}



/* ============================================
   VIDEO PAGE STYLES
   ============================================ */



.video-page-header {

    text-align: center;

    padding: 48px 0;

}



.video-page-title {

    font-family: 'Poppins', sans-serif;

    font-size: 48px;

    font-weight: 800;

    color: #1e293b;

    margin: 0 0 12px 0;

    letter-spacing: -0.5px;

}



.video-page-subtitle {

    font-size: 18px;

    color: #64748b;

    margin: 0;

    font-weight: 400;

}



.video-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));

    gap: 32px;

    margin-top: 24px;

}



.video-card {

    display: flex;

    flex-direction: column;

    background: #f8fafc;

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

    transition: box-shadow 0.3s ease, transform 0.3s ease;

}



.video-card:hover {

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);

    transform: translateY(-4px);

}



.video-container {

    position: relative;

    width: 100%;

    padding-bottom: 56.25%;

    height: 0;

    overflow: hidden;

    background: #000;

}



.video-container iframe {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    border: none;

}



.video-title {

    font-family: 'Inter', sans-serif;

    font-size: 16px;

    font-weight: 600;

    color: #1e293b;

    padding: 16px;

    margin: 0;

    line-height: 1.5;

}



.video-card-placeholder {

    display: flex;

    align-items: center;

    justify-content: center;

    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);

    border-radius: 16px;

    min-height: 300px;

    border: 2px dashed #cbd5e1;

}



.placeholder-content {

    text-align: center;

}



.video-image-container {

    display: flex;

    justify-content: center;

    align-items: center;

    background: #f8fafc;

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

    transition: box-shadow 0.3s ease, transform 0.3s ease;

}



.video-image-container:hover {

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);

    transform: translateY(-4px);

}



.tutorial-image {

    width: 100%;

    max-width: 100%;

    height: auto;

    object-fit: contain;

    display: block;

    padding: 16px;

}



/* Responsive Video Page - Mobile First */

@media screen and (max-width: 768px) {

    .video-page-header {

        padding: 32px 0;

    }

    

    .video-page-title {

        font-size: 28px;

        line-height: 1.3;

    }

    

    .video-page-subtitle {

        font-size: 14px;

    }

    

    .video-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }

    

    .video-card {

        border-radius: 12px;

    }

    

    .video-title {

        font-size: 13px;

        padding: 12px;

    }

}

@media screen and (max-width: 480px) {

    .video-page-header {

        padding: 20px 0;

    }

    

    .video-page-title {

        font-size: 20px;

    }

    

    .video-page-subtitle {

        font-size: 12px;

    }

    

    .video-grid {

        gap: 16px;

    }

    

    .video-card {

        border-radius: 10px;

    }

    

    .video-container {

        padding-bottom: 56.25%;

    }

    

    .video-title {

        font-size: 11px;

        padding: 10px;

    }

}

@media (min-width: 769px) and (max-width: 1024px) {

    .video-grid {

        grid-template-columns: repeat(2, 1fr);

    }

    

    .video-page-title {

        font-size: 34px;

    }

}

@media (min-width: 1025px) {

    .video-grid {

        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));

    }

    

    .video-page-title {

        font-size: 40px;

    }

}



/* ============================================
   SOCIAL MEDIA ICONS WITH GLOW EFFECTS
   ============================================ */



@keyframes socialGlow {

    0% {

        box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);

    }

    50% {

        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);

    }

    100% {

        box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);

    }

}



.social-links {

    display: flex;

    gap: 16px;

    justify-content: center;

    flex-wrap: wrap;

    margin-top: 12px;

}



.social-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 36px;

    height: 36px;

    border-radius: 50%;

    font-size: 16px;

    color: white;

    text-decoration: none;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    animation: socialGlow 3s ease-in-out infinite;

}



/* YouTube - Red */

.social-icon.youtube {

    background-color: #FF0000;

    box-shadow: 0 0 12px rgba(255, 0, 0, 0.35);

}



.social-icon.youtube:hover {

    background-color: #cc0000;

    transform: scale(1.1);

    box-shadow: 0 0 24px rgba(255, 0, 0, 0.7), 0 0 40px rgba(255, 0, 0, 0.4);

}



/* TikTok - Black with Cyan/Pink Glow */

.social-icon.tiktok {

    background-color: #000000;

    box-shadow: 0 0 12px rgba(0, 255, 200, 0.25), 0 0 8px rgba(255, 0, 127, 0.15);

}



.social-icon.tiktok:hover {

    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);

    transform: scale(1.1);

    box-shadow: 0 0 24px rgba(0, 255, 200, 0.5), 0 0 16px rgba(255, 0, 127, 0.4);

}



/* Facebook - Blue */

.social-icon.facebook {

    background-color: #1877F2;

    box-shadow: 0 0 12px rgba(24, 119, 242, 0.35);

}



.social-icon.facebook:hover {

    background-color: #0a66c2;

    transform: scale(1.1);

    box-shadow: 0 0 24px rgba(24, 119, 242, 0.7), 0 0 40px rgba(24, 119, 242, 0.4);

}



/* Instagram - Gradient Pink, Purple, Orange */

.social-icon.instagram {

    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

    box-shadow: 0 0 12px rgba(224, 96, 51, 0.35);

}



.social-icon.instagram:hover {

    background: linear-gradient(135deg, #f59e42 0%, #f0754f 25%, #e63956 50%, #d93676 75%, #cb219b 100%);

    transform: scale(1.1);

    box-shadow: 0 0 24px rgba(224, 96, 51, 0.7), 0 0 40px rgba(188, 24, 136, 0.5);

}



/* Responsive Social Icons - Mobile First */

@media screen and (max-width: 768px) {

    .social-icon {

        width: 32px;

        height: 32px;

        font-size: 14px;

    }

    

    .social-links {

        gap: 10px;

        flex-wrap: wrap;

        margin-top: 10px;

    }

}

@media screen and (max-width: 480px) {

    .social-icon {

        width: 30px;

        height: 30px;

        font-size: 12px;

        min-width: 30px;

        min-height: 30px;

    }

    

    .social-links {

        gap: 8px;

        margin-top: 8px;

    }

}

/* ==================== REVIEWS SECTION ==================== */

/* Happy Clients Counter */
.happy-clients-section {
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    padding-top: 22px;
    padding-bottom: 22px;
    border-radius: 22px;
    background:
        radial-gradient(80% 100% at 0% 0%, rgba(56, 189, 248, 0.14), transparent 58%),
        radial-gradient(80% 100% at 100% 0%, rgba(59, 130, 246, 0.14), transparent 60%),
        linear-gradient(180deg, #f3f8ff 0%, #eef3ff 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.happy-clients-section::before,
.happy-clients-section::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.happy-clients-section::before {
    width: 220px;
    height: 220px;
    top: -110px;
    left: -80px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(37, 99, 235, 0) 68%);
}

.happy-clients-section::after {
    width: 260px;
    height: 260px;
    right: -110px;
    bottom: -150px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.18) 0%, rgba(34, 197, 94, 0) 72%);
}

.happy-clients-card {
    position: relative;
    z-index: 1;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 255, 0.98)),
        repeating-linear-gradient(45deg, rgba(148, 163, 184, 0.06) 0 1px, transparent 1px 9px);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 18px 38px rgba(30, 64, 175, 0.12);
    border-radius: var(--radius-lg);
    text-align: center;
    padding: 34px 20px;
}

.happy-counter {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    line-height: 1;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}

.happy-counter-text {
    margin-top: 14px;
    font-size: 16px;
    color: var(--text-muted);
}

/* Collapsible Customer Reviews */
.customer-reviews-section {
    margin-top: 8px;
}

.customer-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.customer-reviews-header .section-title {
    margin-bottom: 0;
}

.reviews-toggle-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--dark);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.reviews-toggle-btn:hover {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
}

.reviews-toggle-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.reviews-toggle-btn.expanded .reviews-toggle-arrow {
    transform: rotate(180deg);
}

.reviews-collapse-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease;
    opacity: 0;
}

.reviews-collapse-panel.expanded {
    opacity: 1;
}

.reviews-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-top: 2px solid rgba(37, 99, 235, 0.1);
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}

.reviews-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.6;
}

.reviews-static-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.review-static-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px;
}

.review-static-card h3,
.review-static-card h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.review-stars {
    color: #f59e0b;
    margin: 0 0 8px;
    letter-spacing: 1px;
    font-size: 15px;
}

.review-service {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
}

.review-text {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

/* Review Form */
.review-form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.review-form-wrapper h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Group */
.review-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-form .form-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.review-form input[type="text"],
.review-form textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: var(--dark);
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: rgba(37, 99, 235, 0.02);
}

.review-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Star Rating */
.star-rating {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stars-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.star {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.star:hover {
    color: var(--tertiary);
    transform: scale(1.2);
}

.star.active {
    color: var(--tertiary);
}

.rating-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Submit Button */
.review-submit-btn {
    padding: 12px 24px;
    font-size: 14px;
    margin-top: 8px;
}

/* Success & Error Messages */
.review-success-message,
.review-error-message {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

.review-success-message {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
    border: 1px solid #86efac;
}

.review-error-message {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid #fca5a5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Info Box */
.review-info-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.review-info-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.review-info-box ul {
    list-style: none;
    margin-bottom: 24px;
}

.review-info-box li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--dark);
    font-size: 14px;
}

.review-info-box i {
    color: var(--secondary);
    font-size: 16px;
    min-width: 20px;
}

.review-privacy-note {
    background: rgba(37, 99, 235, 0.1);
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.review-privacy-note i {
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .customer-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .reviews-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .reviews-static-grid {
        grid-template-columns: 1fr;
    }

    .reviews-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .review-form-wrapper,
    .review-info-box {
        padding: 24px;
    }

    .star {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .reviews-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 40px 0;
    }

    .review-form-wrapper,
    .review-info-box {
        padding: 20px;
    }

    .review-form-wrapper h3,
    .review-info-box h3 {
        font-size: 18px;
        margin-bottom: 18px;
    }

    .stars-container {
        gap: 8px;
    }

    .star {
        font-size: 20px;
    }

    .section-title {
        font-size: 20px;
    }

}

@media (min-width: 769px) {

    .social-icon {

        width: 36px;

        height: 36px;

        font-size: 16px;

    }

    

    .social-links {

        gap: 16px;

        justify-content: center;

    }

    

    /* ISSUE 1 FIX: Center Follow Us icons under heading on desktop */

    .footer-section:has(.social-links) {

        display: flex;

        flex-direction: column;

        align-items: center;

        text-align: center;

    }

}

/* ==================== HOME HERO SHOWCASE SLIDESHOW ==================== */
.hero-showcase {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    min-height: 320px;
}

.hero-showcase-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-showcase-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

.hero-showcase-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-showcase-slide img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.hero-showcase::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.38));
    pointer-events: none;
}

.hero-showcase-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-showcase-arrow:hover {
    background: rgba(15, 23, 42, 0.72);
    transform: translateY(-50%) scale(1.05);
}

.hero-showcase-prev { left: 14px; }
.hero-showcase-next { right: 14px; }

.hero-showcase-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-showcase-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

.hero-showcase-dot.is-active {
    width: 26px;
    background: #ffffff;
}

@media (max-width: 768px) {
    .hero {
        padding: 18px 0 30px;
    }

    .hero-grid {
        gap: 14px;
    }

    .hero-media {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        order: -1;
    }

    .hero-showcase {
        min-height: 190px;
        max-height: 220px;
        aspect-ratio: 16 / 10;
        border-radius: 14px;
        box-shadow: 0 10px 28px rgba(2, 6, 23, 0.16);
    }

    .hero-showcase-slide img {
        min-height: 0;
        height: 100%;
    }

    .hero-showcase-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .hero-showcase-prev { left: 10px; }
    .hero-showcase-next { right: 10px; }
}

@media (max-width: 480px) {
    .hero-media {
        max-width: 330px;
    }

    .hero-showcase {
        min-height: 170px;
        max-height: 200px;
    }
}

/* ==================== FOOTER CONTENT ENHANCEMENTS ==================== */
.footer .footer-tagline {
    margin-bottom: 8px;
}

.footer .footer-note {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.footer .footer-highlights {
    margin: 0;
    padding-left: 18px;
    color: #b9c4d7;
    font-size: 13px;
    line-height: 1.7;
}

.footer .footer-follow-note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #b9c4d7;
}

@media (orientation: landscape) and (max-height: 700px) {
    .footer .footer-content {
        gap: 20px;
    }

    .footer .social-links {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 10px;
    }

    .footer .footer-follow-note {
        max-width: 260px;
    }
}

/* ==================== PAYMENT METHODS MODERN ==================== */
.payment-methods-modern {
    display: grid;
    gap: 14px;
}

.payment-methods-title {
    margin: 0 0 8px;
    text-align: center;
    font-size: clamp(16px, 2vw, 22px);
    color: #15325d;
    font-weight: 800;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.payment-option-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.payment-option-content h3 {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.2;
    color: #f8fafc;
}

.payment-option-content {
    flex: 1;
    min-width: 0;
}

.payment-option-content p {
    margin: 0;
    color: rgba(248, 250, 252, 0.95);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.account-holder-line {
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.35;
}

.account-holder-label {
    color: #ecfeff;
    font-weight: 800;
    margin-right: 6px;
}

.payment-option-easypaisa {
    background: linear-gradient(135deg, #2ba7db 0%, #6dcf83 100%);
}

.payment-option-binance {
    background: linear-gradient(135deg, #9859d3 0%, #c8aa5e 100%);
}

.payment-option-usdt {
    background: linear-gradient(135deg, #5d7cff 0%, #67c7df 100%);
}

.payment-option-paypal {
    background: linear-gradient(135deg, #0f77d4 0%, #a8dbf4 100%);
}

.copyable-value {
    margin-top: 6px;
    border: 0;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.2);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    cursor: pointer;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.copyable-value:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 42, 0.3);
}

.copyable-value.copied {
    background: rgba(22, 163, 74, 0.35);
}

.copy-hint {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .payment-option {
        gap: 10px;
        padding: 12px;
    }

    .payment-option-content h3 {
        font-size: 16px;
    }

    .payment-option-content p,
    .copyable-value {
        font-size: 13px;
    }

    .payment-option-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .payment-methods-title {
        font-size: 14px;
    }

    .payment-option {
        border-radius: 12px;
        padding: 10px;
        gap: 8px;
    }

    .payment-option-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 18px;
    }

    .payment-option-content h3 {
        font-size: 15px;
    }

    .payment-option-content p,
    .copyable-value {
        font-size: 12px;
    }

    .copy-hint {
        font-size: 11px;
    }
}

/* ==================== SLIDESHOW TEXT/BUTTON VISIBILITY FIX ==================== */
.slideshow-container .slide {
    position: relative;
}

.slideshow-container .slide-content {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    width: auto;
    padding: 12px 150px 12px 14px !important;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.3);
    z-index: 15;
    text-align: left;
}

.slideshow-container .slide-content h3,
.slideshow-container .slide-content p {
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    margin-left: 0;
    margin-right: 0;
    max-width: 520px;
}

.slideshow-container .slide-content h3 {
    margin-bottom: 4px;
    line-height: 1.25;
    font-size: clamp(16px, 2vw, 22px);
}

.slideshow-container .slide-content p {
    margin-bottom: 0;
    opacity: 0.92;
    font-size: clamp(12px, 1.2vw, 15px);
}

.slideshow-container .slide .buy-btn {
    position: absolute;
    right: 20px;
    left: auto;
    bottom: 22px !important;
    transform: none;
    z-index: 25;
    width: auto !important;
    min-width: 118px;
    padding: 9px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
    .slideshow-container .slide-content {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 10px 10px 56px !important;
        text-align: center;
    }

    .slideshow-container .slide-content h3,
    .slideshow-container .slide-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .slideshow-container .slide-content h3 {
        font-size: 15px;
    }

    .slideshow-container .slide-content p {
        font-size: 12px;
    }

    .slideshow-container .slide .buy-btn {
        left: 50%;
        right: auto;
        bottom: 14px !important;
        transform: translateX(-50%);
        min-width: 108px;
        padding: 8px 16px;
    }
}

/* ==================== TRENDING SECTION REFRESH ==================== */
.trending-section {
    position: relative;
    margin-top: 14px;
    margin-bottom: 28px;
    padding: 26px 16px 20px;
    border-radius: 24px;
    background:
        radial-gradient(120% 90% at 12% -20%, rgba(56, 189, 248, 0.14), transparent 52%),
        radial-gradient(120% 90% at 100% 0%, rgba(37, 99, 235, 0.12), transparent 56%),
        linear-gradient(165deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 16px 36px rgba(30, 64, 175, 0.09);
}

.trending-section .section-title {
    margin-bottom: 14px;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trending-section #carousel {
    position: relative;
    padding: 4px 44px 10px;
}

.trending-section #carouselTrack {
    gap: 14px;
    padding: 8px 2px 6px;
}

.trending-section #carouselTrack .card-3d.small {
    min-width: 250px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.trending-section #carouselTrack .card-3d.small img {
    height: 150px;
    object-fit: cover;
}

.trending-section #carouselTrack .card-body {
    padding: 14px 14px 16px;
}

.trending-section #carouselTrack .card-body h3 {
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 6px;
    color: #0f172a;
}

.trending-section #carouselTrack .card-body .muted {
    color: #475569;
}

.trending-section #carouselTrack .tag {
    border-radius: 999px;
    background: #e0e7ff;
    color: #1e3a8a;
}

.trending-section #carouselTrack .tag.offer {
    background: #fff7ed;
    color: #b45309;
}

.trending-section #carouselTrack .tag.new {
    background: #dcfce7;
    color: #166534;
}

.trending-section #carouselTrack .price {
    color: #0f172a;
}

.trending-section #carouselTrack .buy-btn {
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.26);
}

.trending-section #carousel .arrow {
    top: 42%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(255, 255, 255, 0.95);
    color: #1d4ed8;
    font-size: 24px;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.18);
}

.trending-section #carousel .arrow.left {
    left: -2px;
}

.trending-section #carousel .arrow.right {
    right: -2px;
}

@media (max-width: 768px) {
    .trending-section {
        border-radius: 20px;
        padding: 20px 12px 16px;
        margin-bottom: 22px;
    }

    .trending-section #carousel {
        padding: 0 30px 8px;
    }

    .trending-section #carouselTrack {
        gap: 12px;
    }

    .trending-section #carouselTrack .card-3d.small {
        min-width: 232px;
    }

    .trending-section #carouselTrack .card-3d.small img {
        height: 136px;
    }

    .trending-section #carouselTrack .card-body h3 {
        font-size: 18px;
    }

    .trending-section #carousel .arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 20px;
    }
}

/* ==================== CATEGORIES VIVID THEME ==================== */
.categories-vivid {
    position: relative;
    overflow: hidden;
    margin-top: 16px;
    padding: 28px 20px 24px;
    border-radius: 24px;
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(37, 99, 235, 0.22), transparent 62%),
        radial-gradient(75% 90% at 100% 0%, rgba(16, 185, 129, 0.2), transparent 64%),
        radial-gradient(65% 95% at 60% 100%, rgba(236, 72, 153, 0.12), transparent 68%),
        linear-gradient(145deg, #f7faff 0%, #edf4ff 48%, #f8fbff 100%);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 20px 44px rgba(30, 64, 175, 0.12);
}

.categories-vivid::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at 40% 20%, rgba(0, 0, 0, 0.9), transparent 76%);
}

.categories-vivid .section-title {
    position: relative;
    z-index: 1;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 45%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-vivid .categories-grid {
    position: relative;
    z-index: 1;
    gap: 18px;
}

.categories-vivid .category-card-3d {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.85)),
        linear-gradient(140deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.06));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.categories-vivid .category-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #dcfce7);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.categories-vivid .category-link {
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    color: #fff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .categories-vivid {
        margin-top: 12px;
        padding: 20px 12px 16px;
        border-radius: 20px;
    }

    .categories-vivid .categories-grid {
        gap: 12px;
    }

    .categories-vivid .category-card-3d {
        border-radius: 16px;
    }
}

@media (prefers-color-scheme: dark) {
    .categories-vivid {
        background:
            radial-gradient(80% 120% at 0% 0%, rgba(56, 189, 248, 0.2), transparent 62%),
            radial-gradient(75% 90% at 100% 0%, rgba(34, 197, 94, 0.16), transparent 64%),
            radial-gradient(65% 95% at 60% 100%, rgba(168, 85, 247, 0.14), transparent 68%),
            linear-gradient(145deg, #0f1c34 0%, #10223d 48%, #0d1b31 100%);
        border-color: rgba(100, 116, 139, 0.35);
    }

    .categories-vivid .category-card-3d {
        background:
            linear-gradient(165deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.72)),
            linear-gradient(140deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.1));
        border-color: rgba(100, 116, 139, 0.4);
    }

    .categories-vivid .category-icon {
        background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(16, 185, 129, 0.25));
    }
}


/* ==================== GLOBAL PROFESSIONAL DARK MODE OVERRIDE ==================== */
@media (prefers-color-scheme: dark) {
    :root {
        --dm-bg-1: #050b17;
        --dm-bg-2: #0b1630;
        --dm-surface-1: #0f1c36;
        --dm-surface-2: #12213f;
        --dm-border: rgba(148, 163, 184, 0.30);
        --dm-text: #ffffff;
        --dm-text-soft: rgba(255, 255, 255, 0.86);
    }

    html, body {
        background: radial-gradient(120% 110% at 20% 0%, #122a58 0%, var(--dm-bg-2) 38%, var(--dm-bg-1) 100%) !important;
        color: var(--dm-text) !important;
    }

    body,
    body p,
    body li,
    body label,
    body span,
    body h1,
    body h2,
    body h3,
    body h4,
    body h5,
    body h6,
    body strong,
    body small,
    body td,
    body th,
    .muted,
    .tagline,
    .review-text,
    .review-service,
    .reviews-subtitle,
    .rating-text,
    .footer *,
    .main-nav *,
    .card-body *,
    .category-card-3d * {
        color: var(--dm-text) !important;
    }

    .section-title,
    .hero-title,
    .logo,
    .categories-vivid .section-title {
        background: none !important;
        -webkit-text-fill-color: var(--dm-text) !important;
        color: var(--dm-text) !important;
        text-shadow: 0 1px 10px rgba(56, 189, 248, 0.15);
    }

    .nav,
    .main-nav,
    .section,
    main > .section.container,
    .card,
    .card-3d,
    .happy-clients-section,
    .happy-clients-card,
    .customer-reviews-section,
    .review-static-card,
    .review-form-wrapper,
    .review-info-box,
    .review-privacy-note,
    .reviews-toggle-btn,
    .checkout-modal-content,
    .checkout-modal-header,
    .checkout-modal-body,
    .checkout-modal-footer,
    .lightbox-content,
    .categories-vivid,
    .categories-vivid .category-card-3d,
    .trending-section,
    .trending-section #carouselTrack .card-3d.small,
    .footer {
        background-color: var(--dm-surface-1) !important;
        background-image: linear-gradient(165deg, rgba(15, 28, 54, 0.98), rgba(18, 33, 63, 0.95)) !important;
        border-color: var(--dm-border) !important;
    }

    .main-nav {
        backdrop-filter: blur(12px);
    }

    .main-nav a:hover,
    .main-nav a:focus-visible,
    .reviews-toggle-btn:hover,
    .btn:hover {
        background-color: rgba(148, 163, 184, 0.18) !important;
    }

    input,
    textarea,
    select {
        background: #111f3b !important;
        color: var(--dm-text) !important;
        border-color: var(--dm-border) !important;
    }

    input::placeholder,
    textarea::placeholder {
        color: rgba(255, 255, 255, 0.75) !important;
    }

    /* Force inline light colors to white in dark mode */
    [style*="color:"] {
        color: var(--dm-text) !important;
    }
}

/* ==================== DARK MODE TWEAKS (CHECKOUT + FOOTER RESTORE) ==================== */
@media (prefers-color-scheme: dark) {
    .checkout-detail-row,
    .buy-now-offer-note {
        background: #ffffff !important;
        border: 1px solid #dbe5f3 !important;
    }

    .checkout-detail-row .detail-label,
    .checkout-detail-row .detail-value,
    .checkout-detail-row .detail-value.price,
    .buy-now-offer-note,
    .buy-now-offer-note * {
        color: #0f172a !important;
    }

    .checkout-summary .summary-line,
    .checkout-summary .summary-line span,
    .checkout-summary .summary-line.total,
    .checkout-summary .summary-line.total span,
    .checkout-summary .summary-line.total span:last-child {
        color: #ffffff !important;
    }

    .footer {
        background: linear-gradient(135deg, #1e2f4d 0%, #17263f 100%) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .footer .footer-section h4 {
        color: #ffffff !important;
    }

    .footer .footer-section p,
    .footer .footer-tagline,
    .footer .footer-note,
    .footer .footer-follow-note,
    .footer .footer-highlights,
    .footer .footer-highlights li,
    .footer .footer-section ul li {
        color: #b9c4d7 !important;
    }

    .footer .footer-section a {
        color: rgba(255, 255, 255, 0.75) !important;
    }

    .footer .footer-section a:hover {
        color: #60a5fa !important;
    }
}

/* ==================== DARK MODE TWEAKS (YOUTUBE + WHITE PANELS) ==================== */
@media (prefers-color-scheme: dark) {
    .video-card,
    .video-card-placeholder {
        background: #ffffff !important;
        border: 1px solid #dbe5f3 !important;
        box-shadow: 0 8px 22px rgba(2, 6, 23, 0.18) !important;
    }

    .video-card .video-title,
    .video-card h3,
    .video-card p,
    .video-card span,
    .video-card a,
    .video-card strong,
    .video-card em {
        color: #0f172a !important;
    }
}

/* ==================== DARK MODE TWEAKS (WHY CARDS ENHANCED) ==================== */
@media (prefers-color-scheme: dark) {
    .why-card-3d {
        background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%) !important;
        border: 1px solid #d9e2ef !important;
        box-shadow: 0 14px 32px rgba(2, 6, 23, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        overflow: hidden;
    }

    .why-card-3d::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #2563eb, #22c55e, #06b6d4);
    }

    .why-card-3d::after {
        content: "";
        position: absolute;
        width: 120px;
        height: 120px;
        right: -34px;
        top: -34px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0));
        pointer-events: none;
    }

    .why-card-3d h3,
    .why-card-3d p {
        color: #0f172a !important;
        position: relative;
        z-index: 1;
    }

    .why-card-3d .why-icon {
        position: relative;
        z-index: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 64px;
        margin: 0 auto 12px;
        border-radius: 16px;
        background: linear-gradient(135deg, #e8f0ff, #ecfdf5);
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
    }
}

/* ==================== WHY CARDS ENHANCEMENT (LIGHT MODE TOO) ==================== */
.why-card-3d {
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.8);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.why-card-3d::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #22c55e, #06b6d4);
}

.why-card-3d::after {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -30px;
    top: -30px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0));
    pointer-events: none;
}

.why-card-3d .why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f0ff, #ecfdf5);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.14);
}

.why-card-3d h3,
.why-card-3d p,
.why-card-3d .why-icon {
    position: relative;
    z-index: 1;
}

/* ==================== DARK MODE TWEAKS (HAPPY COUNTER + PAYMENT READABILITY) ==================== */
@media (prefers-color-scheme: dark) {
    .happy-counter {
        color: #ffffff !important;
    }

    /* Payment page: keep text dark on light/white panels */
    .payment-methods-modern,
    .payment-methods-modern *,
    .payment-option,
    .payment-option *,
    .copyable-value,
    .copyable-value * {
        color: #0f172a !important;
    }

    main.container .section [style*="background: #f8fbff"],
    main.container .section [style*="background:#f8fbff"],
    main.container .section [style*="background: #eff6ff"],
    main.container .section [style*="background:#eff6ff"],
    main.container .section [style*="background: white"],
    main.container .section [style*="background:white"],
    main.container .section [style*="background: #fff"],
    main.container .section [style*="background:#fff"],
    main.container .section [style*="background: #ffffff"],
    main.container .section [style*="background:#ffffff"] {
        color: #0f172a !important;
    }

    main.container .section [style*="background: #f8fbff"] p,
    main.container .section [style*="background:#f8fbff"] p,
    main.container .section [style*="background: #eff6ff"] p,
    main.container .section [style*="background:#eff6ff"] p,
    main.container .section [style*="background: white"] p,
    main.container .section [style*="background:white"] p,
    main.container .section [style*="background: #fff"] p,
    main.container .section [style*="background:#fff"] p,
    main.container .section [style*="background: #ffffff"] p,
    main.container .section [style*="background:#ffffff"] p,
    main.container .section [style*="background: #f8fbff"] strong,
    main.container .section [style*="background:#f8fbff"] strong,
    main.container .section [style*="background: #eff6ff"] strong,
    main.container .section [style*="background:#eff6ff"] strong,
    main.container .section [style*="background: white"] strong,
    main.container .section [style*="background:white"] strong,
    main.container .section [style*="background: #fff"] strong,
    main.container .section [style*="background:#fff"] strong,
    main.container .section [style*="background: #ffffff"] strong,
    main.container .section [style*="background:#ffffff"] strong {
        color: #0f172a !important;
    }
}

/* ==================== WHATSAPP BUTTONS + PAYMENT TITLE FIX ==================== */
a.btn[onclick*="openWhatsApp"],
a.btn[href*="wa.me"],
#waBtnPayment {
    background: linear-gradient(135deg, #25d366, #16a34a) !important;
    border: 1px solid rgba(22, 163, 74, 0.55) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28) !important;
}

a.btn[onclick*="openWhatsApp"]:hover,
a.btn[href*="wa.me"]:hover,
#waBtnPayment:hover {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    transform: translateY(-1px);
}

a.btn[onclick*="openWhatsApp"]::before,
a.btn[href*="wa.me"]::before,
#waBtnPayment::before {
    content: "\f232";
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
    margin-right: 8px;
}

@media (prefers-color-scheme: dark) {
    .payment-methods-modern .payment-methods-title {
        color: #ffffff !important;
    }
}

/* ==================== STAR COLOR FIX ==================== */
.review-stars {
    color: #facc15 !important;
}

.star:hover,
.star.active {
    color: #facc15 !important;
}

/* ==================== PAYMENT NOTE ICON VISIBILITY FIX ==================== */
@media (prefers-color-scheme: dark) {
    .payment-note-icon {
        color: #1d4ed8 !important;
        background: #dbeafe !important;
        border: 1px solid #93c5fd;
        font-weight: 800;
    }
}

/* ==================== DARK MODE TWEAKS (TEMPLATES/TRENDING TAG VISIBILITY) ==================== */
@media (prefers-color-scheme: dark) {
    .card-3d .tags .tag,
    .trending-section #carouselTrack .tag,
    #productsGrid .tag,
    #featuredGrid .tag,
    .card .category,
    .card-3d .category {
        color: #0f172a !important;
        background: #e2e8f0 !important;
        border: 1px solid #cbd5e1;
    }

    .card-3d .tags .tag.offer,
    .trending-section #carouselTrack .tag.offer,
    #productsGrid .tag.offer,
    #featuredGrid .tag.offer {
        color: #92400e !important;
        background: #ffedd5 !important;
        border-color: #fdba74;
    }

    .card-3d .tags .tag.new,
    .trending-section #carouselTrack .tag.new,
    #productsGrid .tag.new,
    #featuredGrid .tag.new {
        color: #0c4a6e !important;
        background: #cffafe !important;
        border-color: #67e8f9;
    }
}

/* ==================== PROFESSIONAL DARK MODE (FINAL POLISH) ==================== */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg-main: #070f1f;
        --dark-bg-elev: #0e1a33;
        --dark-bg-elev-2: #12213f;
        --dark-border: rgba(148, 163, 184, 0.28);
        --dark-text: #f8fafc;
        --dark-text-soft: #d5deea;
        --dark-text-muted: #9fb0c8;
        --dark-accent: #60a5fa;
    }

    html, body {
        background:
            radial-gradient(120% 100% at 10% -10%, rgba(59, 130, 246, 0.20), transparent 40%),
            radial-gradient(120% 100% at 100% 0%, rgba(16, 185, 129, 0.12), transparent 45%),
            linear-gradient(180deg, #0a1325 0%, var(--dark-bg-main) 100%) !important;
        color: var(--dark-text) !important;
    }

    .nav {
        background: rgba(10, 19, 37, 0.9) !important;
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--dark-border) !important;
        box-shadow: 0 8px 26px rgba(2, 6, 23, 0.35);
    }

    .main-nav {
        background: rgba(10, 19, 37, 0.98) !important;
        border-color: var(--dark-border) !important;
    }

    .section,
    main > .section.container,
    .card,
    .card-3d,
    .review-static-card,
    .review-form-wrapper,
    .review-info-box,
    .happy-clients-card,
    .reviews-toggle-btn,
    .checkout-modal-content,
    .checkout-modal-header,
    .checkout-modal-body,
    .checkout-modal-footer,
    .lightbox-content,
    .trending-section,
    .categories-vivid,
    .footer {
        background: linear-gradient(165deg, rgba(14, 26, 51, 0.96), rgba(18, 33, 63, 0.94)) !important;
        border-color: var(--dark-border) !important;
        box-shadow: 0 14px 32px rgba(2, 6, 23, 0.3);
    }

    h1, h2, h3, h4, h5, h6,
    .section-title,
    .logo,
    .card-body h3,
    .review-form-wrapper h3,
    .payment-methods-title {
        color: var(--dark-text) !important;
    }

    p,
    li,
    label,
    .muted,
    .tagline,
    .review-text,
    .review-service,
    .reviews-subtitle,
    .happy-counter-text,
    .footer p,
    .footer li {
        color: var(--dark-text-soft) !important;
    }

    .main-nav a,
    .footer a {
        color: #e7eef8 !important;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible,
    .footer a:hover {
        color: var(--dark-accent) !important;
    }

    input,
    textarea,
    select {
        background: #0f1d38 !important;
        color: var(--dark-text) !important;
        border: 1px solid var(--dark-border) !important;
    }

    input::placeholder,
    textarea::placeholder {
        color: var(--dark-text-muted) !important;
    }

    .btn-primary,
    .btn-sm,
    .buy-btn,
    .checkout-proceed-btn {
        box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    }

    .tag,
    .category {
        border: 1px solid rgba(148, 163, 184, 0.32);
    }

    .review-stars,
    .star.active,
    .star:hover {
        color: #facc15 !important;
    }

    /* Keep intentional white cards/panels readable */
    .checkout-detail-row,
    .buy-now-offer-note,
    .video-card,
    .video-card-placeholder,
    .why-card-3d,
    .payment-option,
    .copyable-value {
        background: #ffffff !important;
        color: #0f172a !important;
        border-color: #dbe5f3 !important;
    }

    .checkout-detail-row *,
    .buy-now-offer-note *,
    .video-card *,
    .why-card-3d h3,
    .why-card-3d p,
    .payment-option *,
    .copyable-value * {
        color: #0f172a !important;
    }

    .footer {
        background: linear-gradient(135deg, #1e2f4d 0%, #17263f 100%) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .footer .footer-section p,
    .footer .footer-tagline,
    .footer .footer-note,
    .footer .footer-follow-note,
    .footer .footer-highlights,
    .footer .footer-highlights li,
    .footer .footer-section ul li {
        color: #b9c4d7 !important;
    }
}

/* ==================== CHAOS MODE LOCK (TRUE END) ==================== */
.chaos-mode .why-card-3d {
    background: #f8fbff !important;
    border-color: #dbe5f3 !important;
}

.chaos-mode .why-card-3d h3,
.chaos-mode .why-card-3d p {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.chaos-mode .payment-methods-modern .payment-option-easypaisa {
    background: linear-gradient(135deg, #2ba7db 0%, #6dcf83 100%) !important;
}

.chaos-mode .payment-methods-modern .payment-option-binance {
    background: linear-gradient(135deg, #9859d3 0%, #c8aa5e 100%) !important;
}

.chaos-mode .payment-methods-modern .payment-option-usdt {
    background: linear-gradient(135deg, #5d7cff 0%, #67c7df 100%) !important;
}

.chaos-mode .payment-methods-modern .payment-option-paypal {
    background: linear-gradient(135deg, #0f77d4 0%, #a8dbf4 100%) !important;
}

.chaos-mode .payment-methods-modern .payment-option .payment-option-content,
.chaos-mode .payment-methods-modern .payment-option .payment-option-content * {
    background: transparent !important;
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.chaos-mode .payment-methods-modern .payment-option .copyable-value {
    background: rgba(15, 23, 42, 0.2) !important;
}

/* ==================== CHAOS MODE CATEGORY/PRODUCT IMAGE TINT FIX ==================== */
.chaos-mode #productsGrid .card-3d,
.chaos-mode #featuredGrid .card-3d,
.chaos-mode .trending-section #carouselTrack .card-3d,
.chaos-mode .image-grid .image-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.68)) !important;
}

.chaos-mode #productsGrid .card-3d .card-image-wrapper,
.chaos-mode #featuredGrid .card-3d .card-image-wrapper,
.chaos-mode .trending-section #carouselTrack .card-3d .card-image-wrapper,
.chaos-mode .image-grid .image-card {
    background: transparent !important;
}

.chaos-mode #productsGrid .card-3d .responsive-card-img,
.chaos-mode #productsGrid .card-3d .constrain-img,
.chaos-mode #productsGrid .card-3d .gallery-main,
.chaos-mode #productsGrid .card-3d img,
.chaos-mode #featuredGrid .card-3d .responsive-card-img,
.chaos-mode #featuredGrid .card-3d .constrain-img,
.chaos-mode #featuredGrid .card-3d .gallery-main,
.chaos-mode #featuredGrid .card-3d img,
.chaos-mode .trending-section #carouselTrack .card-3d img,
.chaos-mode .image-grid .image-card img {
    background: transparent !important;
    filter: none !important;
}

.chaos-mode #productsGrid .card-overlay,
.chaos-mode #featuredGrid .card-overlay,
.chaos-mode .trending-section #carouselTrack .card-overlay,
.chaos-mode .image-grid .image-card-overlay {
    background: transparent !important;
}

/* Logo image support */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    display: block;
    height: 46px;
    width: auto;
    max-width: min(240px, 48vw);
    object-fit: contain;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .logo-image {
        height: 36px;
        max-width: 58vw;
    }
}

/* Navbar logo size fix */
.nav .logo .logo-image {
    height: 46px !important;
    width: auto !important;
    max-width: 220px !important;
    max-height: 46px !important;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .nav .logo .logo-image {
        height: 34px !important;
        max-height: 34px !important;
        max-width: 170px !important;
    }
}

/* Navbar logo beautify */
.nav .logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(241,245,255,0.88));
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12), inset 0 1px 0 rgba(255,255,255,0.85);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav .logo:hover {
    transform: translateY(-1px) scale(1.01);
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255,255,255,0.92);
}

.nav .logo .logo-image {
    height: 44px !important;
    width: auto !important;
    max-width: 210px !important;
    max-height: 44px !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.14));
}

@media (max-width: 480px) {
    .nav .logo {
        padding: 5px 8px;
        border-radius: 12px;
    }

    .nav .logo .logo-image {
        height: 32px !important;
        max-height: 32px !important;
        max-width: 160px !important;
    }
}

@media (prefers-color-scheme: dark) {
    .nav .logo {
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.62), rgba(30, 41, 59, 0.62));
        border-color: rgba(148, 163, 184, 0.28);
        box-shadow: 0 8px 22px rgba(2, 6, 23, 0.38), inset 0 1px 0 rgba(148, 163, 184, 0.2);
    }
}

/* Mobile navbar logo polish */
@media (max-width: 480px) {
    .nav-inner {
        gap: 12px;
        align-items: center;
    }

    .nav .logo {
        flex: 0 1 auto !important;
        width: auto !important;
        min-height: 44px;
        padding: 6px 10px;
        border-radius: 12px;
        overflow: hidden;
    }

    .nav .logo .logo-image {
        height: 38px !important;
        max-height: 38px !important;
        max-width: 120px !important;
        width: auto !important;
        transform: scale(1.28);
        transform-origin: center;
    }

    .hamburger {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile hero top spacing under navbar */
@media (max-width: 768px) {
    .hero {
        padding-top: 28px !important;
    }

    .hero-media {
        margin-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 32px !important;
    }

    .hero-media {
        margin-top: 12px !important;
    }
}
