﻿/* ================================
   CSS Design System - Desk2Quant
   Light Theme
   ================================ */

/* --------------------------------
   CSS Custom Properties (Variables)
   -------------------------------- */
:root {
    /* Backgrounds */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-nav: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(0, 0, 0, 0.05);

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-muted: #64748b;

    /* Accents */
    --accent-primary: #f43f5e;
    --accent-secondary: #3b82f6;
    --accent-tertiary: #f59e0b;
    --accent-gradient: linear-gradient(135deg, #06275b 0%, #0a3476 58%, #08a9a2 100%);

    --d2q-navy: #06275b;
    --d2q-navy-deep: #031a3e;
    --d2q-navy-hover: #041f4a;
    --d2q-teal: #08a9a2;
    --d2q-teal-dark: #065c58;
    --d2q-teal-soft: rgba(8, 169, 162, 0.08);
    --d2q-muted: #60708a;
    --d2q-paper: #f6f9fc;
    --d2q-shadow: 0 18px 55px rgba(6, 39, 91, 0.10);

    /* Status Colors */
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Borders & Rims */
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    --border-rim: rgba(0, 0, 0, 0.15);

    /* Shadows & Glows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 50px rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Type Scale */
    --h1-size: clamp(2.4rem, 5.4vw, 4.15rem);
    --h2-size: clamp(2rem, 5vw, 3.5rem);
    --h3-size: 1.5rem;
    --body-size: 1rem;
    --small-size: 0.875rem;

    /* Spacing */
    --section-padding: 70px 0;
    --container-width: 1200px;
    --container-padding: 0 24px;

    /* Border Radius */
    --radius-pill: 9999px;
    --radius-sm: 8px;
    --radius-md: 8px;
    --radius-lg: 8px;
    --radius-xl: 8px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* --------------------------------
   Light Theme Overrides
   -------------------------------- */
.hero-headline,
.section-headline {
    color: var(--text-primary);
}

.btn-primary,
.btn-product {
    background: var(--text-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover,
.btn-product:hover {
    background: #000000;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-rim);
}

.product-detail-card {
    background: #ffffff;
    border-color: var(--border-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.product-detail-image {
    background: var(--bg-tertiary);
}

.product-description-full {
    color: var(--text-secondary);
}

.product-price-tag {
    color: var(--text-primary);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    border-color: rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

#couponInput {
    background: #ffffff;
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.1);
}

#couponInput::placeholder {
    color: var(--text-muted);
}

/* Consolidated Mobile Theme Overrides moved to bottom for priority */

section {
    padding: var(--section-padding);
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* --------------------------------
   Focus Indicators (Accessibility)
   -------------------------------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 12px 24px;
    background: var(--accent-secondary);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
}

.btn:focus-visible,
.filter-btn:focus-visible,
.scroll-top-btn:focus-visible,
.mobile-menu-btn:focus-visible,
.modal-close:focus-visible,
.promo-close-btn:focus-visible,
.promo-popup-close:focus-visible,
.success-modal-close:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

/* --------------------------------
   Typography
   -------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--text-primary);
}

.hero-headline {
    font-size: var(--h1-size);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    color: inherit;
    margin-bottom: 24px;
    min-height: 2.35em;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--accent-primary, #6c5ce7);
    font-weight: 300;
    animation: blink 0.7s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.section-headline {
    font-size: var(--h2-size);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
    color: inherit;
    /* Allow cascading theme color */
    margin-bottom: 24px;
}

.subheadline {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.gradient-text {
    color: var(--d2q-teal);
    background: none;
    -webkit-text-fill-color: currentColor;
}

/* --------------------------------
   Layout Utilities
   -------------------------------- */
/* .section-container is now defined above for consistency */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------
   Button Components
   -------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--d2q-navy);
    color: #ffffff;
    border: 1px solid var(--d2q-navy);
    box-shadow: 0 10px 25px rgba(6, 39, 91, 0.18);
}

.btn-primary:hover {
    background: var(--d2q-navy-deep);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-service {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-service:hover {
    background: var(--accent-gradient);
    border-color: transparent;
}

.btn-product {
    padding: 10px 20px;
    background: #ffffff;
    color: #000000;
    font-size: 0.875rem;
}

.btn-product:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.btn-full {
    width: 100%;
}

/* --------------------------------
   Navbar
   -------------------------------- */
/* Navbar - Professional Look */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-rim);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    /* Balanced gap */
    font-weight: 700;
    font-size: 1.4rem;
    /* Balanced text size */
    color: var(--text-primary);
    letter-spacing: 0;
    /* Tighter tracking for modern look */
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text,
.logo-icon {
    display: none !important;
}

.logo-img {
    width: 44px;
    height: 44px;
    padding: 0;
    object-fit: contain;
    background: transparent;
    border: none;
    border-radius: 10px;
    flex-shrink: 0;
}

body.d2q-reference .logo-img,
body.d2q-reference .navbar .logo-img,
body.d2q-reference .footer .logo-img {
    width: 220px;
    height: 52px;
    max-width: none;
    padding: 0;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.footer .logo-img,
.footer-brand .logo-img {
    width: 180px;
    height: 50px;
    max-width: none;
    padding: 0;
    object-fit: contain;
    object-position: left center;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 10px 24px !important;
    background: #1a1a2e !important;
    color: #ffffff !important;
    border-radius: var(--radius-lg) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
    border: none !important;
}

.nav-cta:hover {
    background: #16213e !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --------------------------------
   Hero Section
   -------------------------------- */
.hero {
    position: relative;
    padding: 124px 0 56px;
    background:
        radial-gradient(circle at 70% 20%, rgba(59, 130, 246, 0.16), transparent 34%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78svh;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
}

.orb-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 88%);
    opacity: 0.22;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 100px;
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-subcopy {
    max-width: 640px;
    margin: 0 0 28px;
    text-align: left;
}

.hero-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-proof-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.86rem;
    white-space: nowrap;
}

.hero-proof-row i {
    color: var(--accent-tertiary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-stats {
    display: flex;
    gap: 18px;
    margin-bottom: 34px;
    padding: 16px;
    width: fit-content;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 132px;
    padding: 4px 12px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--d2q-navy);
    background: none;
    -webkit-text-fill-color: currentColor;
}

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

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Social Proof Banner */
.hero-social-proof {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    width: fit-content;
}

.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img,
.avatar-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
    margin-left: -12px;
    object-fit: cover;
}

.avatar-group img:first-child {
    margin-left: 0;
}

.avatar-more {
    background: var(--d2q-teal-soft);
    color: var(--d2q-teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

.social-proof-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-proof-text .stars {
    color: #fbbf24;
    font-size: 0.85rem;
    display: flex;
    gap: 2px;
}

.social-proof-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
}

.social-proof-text strong {
    color: var(--text-primary);
}

/* Profile Card */
.hero-visual {
    display: flex;
    justify-content: center;
}

.profile-card {
    position: relative;
    width: min(100%, 380px);
    padding: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    text-align: center;
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.profile-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg, transparent, var(--accent-primary), transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0.1;
    pointer-events: none;
    /* Fix: Prevent glow from blocking clicks */
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.profile-image {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--accent-gradient);
    padding: 4px;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--accent-gradient);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-muted);
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.profile-title {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    padding: 6px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* --------------------------------
   Guided Home Flow
   -------------------------------- */
.home-flow {
    padding: 36px 0 40px;
    background: var(--d2q-paper);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.flow-card {
    position: relative;
    min-height: 170px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--d2q-line);
    border-radius: 22px;
    display: block;
    color: inherit;
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.flow-card:hover {
    transform: translateY(-4px);
    border-color: #b7deda;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.flow-step {
    padding: 0;
    color: var(--d2q-teal);
    background: transparent;
    border: 0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
}

.flow-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    color: var(--d2q-teal-dark);
    background: var(--d2q-teal-soft);
    border-color: rgba(8, 169, 162, 0.2);
}

.flow-card h2 {
    margin: 14px 0 10px;
    color: var(--d2q-navy);
    font-size: 20px;
}

.flow-card p {
    margin: 0;
    color: var(--d2q-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* --------------------------------
   Services Section
   -------------------------------- */
.services {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.services::before {
    display: none;
}

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

.service-card,
.product-card,
.testimonial-card,
.glass-card,
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.service-card:hover,
.product-card:hover,
.testimonial-card:hover,
.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card.popular {
    border-color: var(--d2q-teal);
    background: #ffffff;
}

.popular-badge {
    position: absolute;
    top: 16px;
    right: 32px;
    padding: 6px 16px;
    background: var(--d2q-teal-soft) !important;
    color: var(--d2q-teal-dark) !important;
    border: 1px solid rgba(8, 169, 162, 0.22) !important;
    border-radius: 999px !important;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--d2q-teal-soft);
    border: 1px solid rgba(8, 169, 162, 0.2);
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    color: var(--d2q-teal-dark);
    margin-bottom: 20px;
}

.service-header {
    margin-bottom: 24px;
    padding: 32px 32px 0;
}

.service-header h3 {
    margin-bottom: 4px;
}

.service-duration {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-content {
    padding: 0 32px;
    flex-grow: 1;
}

.service-features {
    margin-bottom: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.service-features i {
    color: var(--success);
    font-size: 0.8rem;
}

.service-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px 32px;
    margin-top: auto;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--d2q-navy);
    background: none;
    -webkit-text-fill-color: currentColor;
}

/* --------------------------------
   Products Section
   -------------------------------- */
.products,
.products-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

.product-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--d2q-line);
    border-radius: 22px;
    overflow: hidden;
    transition: all var(--transition-normal);
    min-height: 100%;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    border-color: #b7deda;
    transform: translateY(-4px);
    box-shadow: var(--d2q-shadow);
}

.product-card.featured {
    border-color: var(--d2q-teal);
    background: #ffffff;
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: var(--d2q-teal-soft) !important;
    color: var(--d2q-teal-dark) !important;
    border: 1px solid rgba(8, 169, 162, 0.22) !important;
    border-radius: 999px !important;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
}

.product-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--d2q-navy-deep), #0b4c84);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    background: #ffffff;
}

.product-image.reference-cover {
    position: relative;
    height: 150px;
    padding: 20px;
    display: block;
    color: #fff;
    background: linear-gradient(135deg, var(--d2q-navy-deep), #0b4c84);
    overflow: hidden;
}

.reference-cover::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -45px;
    top: -55px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.reference-signal {
    position: relative;
    z-index: 1;
    display: block;
    color: #6ee7df;
    font-family: Georgia, serif;
    font-size: 38px;
    line-height: 1.1;
}

.reference-cover-label {
    position: relative;
    z-index: 1;
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

.product-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 2rem;
    color: white;
}

.product-placeholder.python {
    background: linear-gradient(135deg, #3776ab, #ffd43b);
}

.product-placeholder.cpp {
    background: linear-gradient(135deg, #00599c, #004482);
}

.product-placeholder.xva {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

.product-placeholder.quant {
    background: linear-gradient(135deg, #059669, #34d399);
}

.product-placeholder.interview {
    background: linear-gradient(135deg, #f59e0b, #fb923c);
}

.product-placeholder.bundle {
    background: var(--d2q-teal-soft);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    background: var(--d2q-teal-soft) !important;
    color: var(--d2q-teal-dark) !important;
    border: 1px solid rgba(8, 169, 162, 0.22) !important;
    border-radius: 999px !important;
    font-size: 11px;
    font-weight: 800;
}

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.product-title {
    margin: 0 0 8px;
    color: var(--d2q-navy);
    font-size: 16px;
    line-height: 1.35;
}

.product-description {
    margin: 0;
    color: var(--d2q-muted);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-footer {
    margin-top: auto;
    padding-top: 18px;
    display: grid;
    gap: 12px;
    border: 0;
}

.product-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-price {
    color: var(--d2q-navy);
    font-size: 18px !important;
    font-weight: 800;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.product-price-action {
    min-width: 0;
    cursor: pointer;
}

.product-price-action:focus-visible {
    outline: 2px solid var(--d2q-teal);
    outline-offset: 4px;
    border-radius: 4px;
}

.product-buy-button {
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    color: #fff;
    background: var(--d2q-navy);
    border: 1px solid var(--d2q-navy);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-buy-button:hover {
    background: var(--d2q-navy-deep);
}

.product-reference-tag {
    flex: 0 0 auto;
    padding: 5px 8px;
    color: var(--d2q-teal-dark);
    background: var(--d2q-teal-soft);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 8px;
}

/* --------------------------------
   Testimonials Section
   -------------------------------- */
.testimonials {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.testimonials::before {
    display: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ratings-summary-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .ratings-summary-container {
        grid-template-columns: 1fr;
    }
}

.ratings-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.ratings-summary-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.illustration-card {
    flex-direction: row;
    gap: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.illustration-card i.highlight-icon {
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.8;
}

.illustration-card i.highlight-icon-secondary {
    font-size: 3rem;
    color: var(--accent-secondary);
    opacity: 0.6;
    margin-top: 20px;
}

.summary-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.summary-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.testimonial-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    max-height: 380px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.testimonial-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.testimonial-card::before {
    display: none;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-rating i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--d2q-teal-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--d2q-teal-dark);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--success);
}

/* --------------------------------
   Review Form Section
   -------------------------------- */
.review-section {
    padding: 60px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.review-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.review-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.review-form-wrapper>p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 20px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--border-light);
    transition: all 0.2s ease;
}

.star-rating-input label:hover,
.star-rating-input label:hover~label,
.star-rating-input input:checked~label {
    color: #fbbf24;
}

.star-rating-input label:hover,
.star-rating-input input:checked~label {
    transform: scale(1.1);
}

.review-form .btn-primary {
    width: 100%;
    padding: 16px 28px;
}

.review-success-message {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.review-success-message.show {
    display: block;
}

.review-success-message i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 16px;
}

.review-success-message h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.review-success-message p {
    color: var(--text-secondary);
}

/* --------------------------------
   Contact Section
   -------------------------------- */
.contact {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.contact-method:hover {
    border-color: var(--accent-primary);
}

.method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--d2q-teal-soft);
    border: 1px solid rgba(8, 169, 162, 0.2);
    border-radius: var(--radius-sm);
    color: var(--d2q-teal-dark);
    font-size: 1.2rem;
}

.method-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.method-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.method-details a {
    color: var(--text-primary);
    font-weight: 500;
}

.method-details a:hover {
    color: var(--accent-primary);
}

/* Contact Form */
.contact-form-wrapper {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.contact-form h3 {
    margin-bottom: 24px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236a6a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}

.form-group select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Form Row - Two columns */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row .form-group {
    margin-bottom: 20px;
}

/* Booking Price Display */
.booking-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.25);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

/* Coupon Input Styling */
#couponInput {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

#couponInput:focus {
    outline: 2px solid var(--accent-secondary);
    outline-offset: 2px;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

.booking-price span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.booking-price strong {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--d2q-navy);
    background: none;
    -webkit-text-fill-color: currentColor;
}

/* Form Note */
.form-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-note i {
    font-size: 1rem;
}

/* Date input styling */
.form-group input[type="date"] {
    cursor: pointer;
}

/* --------------------------------
   Footer
   -------------------------------- */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* --------------------------------
   Modal
   -------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: min(940px, calc(100% - 40px));
    max-width: 940px;
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--d2q-line);
    border-radius: 22px;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    max-height: min(760px, calc(100vh - 40px));
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-rows: auto minmax(0, 1fr);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--d2q-paper);
    border: 1px solid var(--d2q-line);
    border-radius: 10px;
    color: var(--d2q-navy);
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--error);
    border-color: var(--error);
    color: white;
}

.modal-header {
    grid-column: 1 / -1;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--d2q-line);
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--d2q-navy-deep);
    font-size: 1.5rem;
    padding-right: 40px;
}

.modal-body {
    grid-column: 1;
    grid-row: 2;
    max-height: none;
    margin: 0;
    padding: 28px;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--d2q-line) transparent;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--d2q-line);
    border-radius: 3px;
}

.modal-body h2,
.modal-body h3 {
    color: var(--d2q-navy-deep);
    font-size: 1.25rem;
    margin: 24px 0 12px;
}

.modal-body h2:first-child,
.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--d2q-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.modal-body ul,
.modal-body ol {
    color: var(--d2q-muted);
    margin-bottom: 16px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.modal-price {
    margin-top: 22px;
    color: var(--d2q-navy);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: 2rem;
    font-weight: 800;
}

.modal-footer {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 28px;
    background: var(--d2q-paper);
    border-top: 0;
    border-left: 1px solid var(--d2q-line);
    flex-shrink: 0;
}

.modal-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    font-size: 0.85rem;
    color: var(--d2q-muted);
    background: #ffffff;
    border: 1px solid var(--d2q-line);
    border-radius: 12px;
}

.modal-note i {
    color: var(--success);
}

/* --------------------------------
/* Admin panel quick styling */
.admin {
    padding: 60px 0;
    background: var(--bg-primary);
}

.admin-grid {
    align-items: start;
}

.admin-card h3 {
    margin-bottom: 8px;
}

.admin-table th,
.admin-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Fix for Long Product Descriptions in Modal */
#modalDescription,
.modal-description-text {
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
    color: var(--d2q-muted);
    font-size: 0.95rem;
}

/* Aggressively reset child elements to handle copy-pasted rich text */
.modal-description-text * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    background-color: transparent !important;
}

/* Force text colors to match theme, overriding inline styles */
.modal-description-text p,
.modal-description-text span,
.modal-description-text div,
.modal-description-text li,
.modal-description-text td {
    color: var(--text-secondary) !important;
}

.modal-description-text strong,
.modal-description-text b,
.modal-description-text h1,
.modal-description-text h2,
.modal-description-text h3,
.modal-description-text h4 {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.modal-description-text a {
    color: var(--accent-primary) !important;
    text-decoration: underline;
}

.modal-description-text img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 10px 0;
}

.modal-description-text p {
    margin-bottom: 0.8em;
}

.modal-description-text ul,
.modal-description-text ol {
    margin-left: 20px;
    margin-bottom: 0.8em;
}

/* --------------------------------
   Coupon Code Styles
   -------------------------------- */
.coupon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.coupon-row input {
    min-width: 0;
    box-sizing: border-box;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--d2q-line);
    background: #ffffff;
    color: var(--d2q-navy);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.coupon-row input:focus {
    border-color: var(--d2q-teal);
    outline: 2px solid var(--d2q-teal);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(8, 169, 162, 0.15);
}

.coupon-row .btn-secondary {
    min-width: 92px;
    padding: 12px 20px;
    white-space: nowrap;
    background: #ffffff;
    color: var(--d2q-navy);
    border: 1px solid var(--d2q-line);
}

.coupon-row .btn-secondary:hover {
    background: var(--d2q-paper);
}

#modalCouponFeedback,
#coupon-feedback {
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 1.2em;
}

/* --------------------------------
   Responsive Design
   -------------------------------- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 44px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subcopy {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hero-proof-row {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        width: auto;
    }

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

    .hero-visual {
        order: 0;
    }

    .profile-card {
        max-width: 350px;
    }

    .services-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive adjustment: Bulletproof Mobile Menu */
@media (max-width: 768px) {
    :root {
        --section-padding: 40px 0;
    }

    .nav-container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
        z-index: 2000;
    }

    .mobile-menu-btn {
        position: relative;
        z-index: 61;
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
    }

    .nav-links {
        display: none !important;
        position: fixed !important;
        z-index: 60;
        top: 64px !important;
        right: 0 !important;
        bottom: auto !important;
        left: 0 !important;
        height: calc(100dvh - 64px) !important;
        box-sizing: border-box;
        margin: 0;
        padding: 26px 24px 40px;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        overflow-y: auto;
        background: #ffffff !important;
        border: 0;
        box-shadow: 0 16px 28px rgba(6, 39, 91, .12);
    }

    .nav-links.mobile-active {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        text-align: left;
    }

    .nav-links a {
        display: block;
        padding: 17px 4px;
        color: #1a1a2e !important;
        font-size: 18px !important;
        font-weight: 750;
        line-height: 1.2;
        transform: none !important;
    }

    .nav-links a:hover {
        transform: none !important;
    }

    .nav-cta {
        background: #1a1a2e !important;
        border-radius: var(--radius-lg);
        margin-top: 10px;
        box-shadow: 0 10px 20px rgba(26, 26, 46, 0.3);
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-img {
        width: 50px;
        height: 50px;
    }

    body.d2q-reference .logo-img,
    body.d2q-reference .navbar .logo-img {
        width: 180px;
        height: 44px;
    }

    .footer .logo-img,
    .footer-brand .logo-img {
        width: 160px;
        height: 40px;
    }

    .hero {
        padding-top: 112px;
    }

    .hero-container {
        width: 100%;
        max-width: 100%;
        padding: 0 24px;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        max-width: 342px;
        display: flex;
        flex-direction: column;
    }

    .hero-headline {
        font-size: 2rem;
        line-height: 1.13;
        max-width: 100%;
        min-height: 3.45em;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    .hero-subcopy {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        order: 6;
        margin-bottom: 0;
    }

    .hero-proof-row span {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        order: 5;
        margin-bottom: 24px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
    }

    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .product-footer>div:last-child {
        justify-content: stretch !important;
    }

    .product-footer .btn {
        flex: 1 1 auto;
        justify-content: center;
    }

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

    .nav-links {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .nav-links a {
        color: #0f172a !important;
    }

    .mobile-menu-btn {
        color: #0f172a !important;
        border-color: rgba(0, 0, 0, 0.1);
    }

    /* Modal responsive */
    #productModal .modal-content {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 24px);
    }

    #productModal .modal-body {
        min-height: 180px;
    }

    #productModal .modal-footer {
        border-top: 1px solid var(--d2q-line);
        border-left: 0;
    }
}

@media (max-width: 480px) {
    .nav-container,
    .hero-container {
        max-width: 390px;
    }

    .hero-container {
        justify-items: start;
    }

    .hero-content {
        max-width: 320px;
        margin: 0;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .profile-card {
        padding: 24px;
    }

    #productModal .modal-content {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
    }

    #productModal .modal-header {
        padding: 20px 64px 18px 20px;
    }

    #productModal .modal-header h3 {
        font-size: 20px;
    }

    #productModal .modal-body {
        min-height: 0;
        padding: 20px;
    }

    #productModal .modal-footer {
        padding: 20px;
        border-top: 1px solid var(--d2q-line);
        border-left: 0;
    }
}

/* --------------------------------
   Scroll Reveal Animations (v3.5)
   -------------------------------- */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* --------------------------------
   Skeleton Loading Cards
   -------------------------------- */
@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 320px;
}

.skeleton-card .skeleton-image {
    height: 180px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-glass) 50%, var(--bg-tertiary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
}

.skeleton-card .skeleton-content {
    padding: 24px;
}

.skeleton-card .skeleton-line {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-glass) 50%, var(--bg-tertiary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    margin-bottom: 12px;
}

.skeleton-card .skeleton-line.short {
    width: 60%;
}

.skeleton-card .skeleton-line.medium {
    width: 80%;
}

.skeleton-card .skeleton-btn {
    height: 40px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-glass) 50%, var(--bg-tertiary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    margin-top: 16px;
}

/* Service skeleton variant */
.skeleton-service {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    min-height: 280px;
}

.skeleton-service .skeleton-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-glass) 50%, var(--bg-tertiary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    margin-bottom: 16px;
}

.skeleton-service .skeleton-line {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-glass) 50%, var(--bg-tertiary) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    margin-bottom: 10px;
}

.skeleton-service .skeleton-line.title {
    height: 20px;
    width: 70%;
    margin-bottom: 16px;
}

.skeleton-service .skeleton-line.short {
    width: 50%;
}

.skeleton-service .skeleton-line.medium {
    width: 85%;
}

/* ================================
   10/10 Design Enhancements
   ================================ */

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-gradient);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}

/* --- Hero Particle Canvas --- */
.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Page Fade-in --- */
body {
    animation: pageFadeIn 0.6s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 3D Card Tilt Hover Effect --- */
.product-card,
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

.product-card:hover,
.service-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(244, 63, 94, 0.08);
}

/* --- Button Hover Glow --- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-product {
    position: relative;
    overflow: hidden;
}

.btn-product::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn-product:hover::after {
    opacity: 1;
}

/* --- Scroll to Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.3);
}

/* --- Staggered Card Entry --- */
.services-grid .service-card:nth-child(1),
.services-grid .skeleton-service:nth-child(1),
.products-grid .product-card:nth-child(1) {
    transition-delay: 0ms;
}

.services-grid .service-card:nth-child(2),
.services-grid .skeleton-service:nth-child(2),
.products-grid .product-card:nth-child(2) {
    transition-delay: 100ms;
}

.services-grid .service-card:nth-child(3),
.services-grid .skeleton-service:nth-child(3),
.products-grid .product-card:nth-child(3) {
    transition-delay: 200ms;
}

.services-grid .service-card:nth-child(4),
.products-grid .product-card:nth-child(4) {
    transition-delay: 300ms;
}

.products-grid .product-card:nth-child(5) {
    transition-delay: 400ms;
}

.products-grid .product-card:nth-child(6) {
    transition-delay: 500ms;
}

/* --- Stat Value Gradient Glow Pulse --- */
.stat-value {
    animation: statGlow 3s ease-in-out infinite alternate;
}

@keyframes statGlow {
    from {
        filter: brightness(1);
    }

    to {
        filter: brightness(1.15);
    }
}

.product-card:hover,
.service-card:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12),
        0 0 30px rgba(99, 102, 241, 0.1);
}

.btn-primary::after {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
}

.btn-product::after {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
}

.scroll-top-btn {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.scroll-top-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.scroll-progress {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.hero-bg-effects {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(244, 63, 94, 0.03) 100%);
}


/* --- PROMOTION STYLES (LAUNCH EVENT) --- */
.promo-announcement-bar {
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, #090d16 0%, #1e1b4b 35%, #311042 70%, #090d16 100%);
    border-bottom: 1px solid rgba(234, 179, 8, 0.2);
    color: #f1f5f9;
    padding: 12px 48px 12px 24px;
    font-size: 0.9rem;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, margin-top 0.3s ease;
    box-sizing: border-box;
}
.promo-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.promo-tag {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.promo-text {
    color: #e2e8f0;
}
.promo-coupon {
    font-weight: 500;
    color: #fbbf24;
}
.promo-code-box {
    background: rgba(251, 191, 36, 0.1);
    border: 1px dashed rgba(251, 191, 36, 0.4);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    color: #fbbf24;
}
.btn-promo-cta {
    background: #eab308;
    color: #000;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(234, 179, 8, 0.2);
}
.btn-promo-cta:hover {
    background: #f59e0b;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(234, 179, 8, 0.3);
}
.promo-close-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    padding: 8px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    border-radius: 6px;
}
.promo-close-btn:hover {
    color: #fff;
}

/* Exit-Intent Popup */
.promo-popup-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.promo-popup-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.promo-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
}
.promo-popup-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    max-width: 780px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10001;
}
.promo-popup-modal.active .promo-popup-card {
    transform: scale(1) translateY(0);
}
.promo-popup-close {
    position: absolute;
    right: 20px;
    top: 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}
.promo-popup-close:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}
.promo-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
}
@media (max-width: 640px) {
    .promo-popup-grid {
        grid-template-columns: 1fr;
    }
    .promo-popup-image-side {
        display: none;
    }
}
.promo-popup-image-side {
    background: var(--bg-tertiary);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-light);
}
.promo-popup-image-side img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.promo-popup-info-side {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.popup-tag-new {
    display: inline-block;
    width: fit-content;
    background: var(--d2q-teal-soft);
    color: var(--d2q-teal-dark);
    border: 1px solid rgba(8, 169, 162, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}
.promo-popup-info-side h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--d2q-navy);
    margin-bottom: 12px;
    line-height: 1.2;
}
.popup-desc {
    font-size: 0.9rem;
    color: var(--d2q-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}
.popup-offer-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.popup-prices {
    display: flex;
    align-items: center;
    gap: 12px;
}
.popup-original-price {
    text-decoration: line-through;
    color: var(--d2q-muted);
    font-size: 0.95rem;
}
.popup-discounted-price {
    color: var(--d2q-navy);
    font-size: 1.4rem;
    font-weight: 800;
}
.popup-coupon-code {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.coupon-label {
    font-size: 0.75rem;
    color: var(--d2q-muted);
    font-weight: 600;
}
.coupon-display-wrapper {
    display: flex;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}
.coupon-code-txt {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--d2q-navy);
    letter-spacing: 0.05em;
    font-size: 1.05rem;
}
.btn-copy-coupon {
    background: var(--d2q-teal-soft);
    color: var(--d2q-teal-dark);
    border: none;
    border-left: 1px solid rgba(8, 169, 162, 0.2);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-copy-coupon:hover {
    background: rgba(8, 169, 162, 0.15);
    color: var(--d2q-navy);
}
.popup-action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.btn-popup-buy {
    flex: 1.2;
    padding: 12px 20px;
    font-weight: 700;
    border-radius: 10px;
    min-width: 160px;
}
.btn-popup-preview {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    color: var(--d2q-navy);
    border: 1px solid var(--border-light);
    font-weight: 600;
    border-radius: 10px;
    min-width: 140px;
}
.btn-popup-preview:hover {
    background: var(--bg-tertiary);
    color: var(--d2q-navy);
}
.popup-footer-note {
    font-size: 0.75rem;
    color: var(--d2q-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.popup-footer-note i {
    color: var(--d2q-teal);
}

/* Card highlight and pulse glow */
.product-card.highlighted-product {
    position: relative;
    border: 1.5px solid rgba(234, 179, 8, 0.35) !important;
    animation: goldGlowPulse 4s infinite alternate;
}
@keyframes goldGlowPulse {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 10px rgba(234, 179, 8, 0.05);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(234, 179, 8, 0.25);
    }
}


/* Purchase Success & Cross-Sell Modal Styles */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.success-modal.active {
    opacity: 1;
    pointer-events: auto;
}
.success-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}
.success-modal-card {
    position: relative;
    width: 90%;
    max-width: 680px;
    background: var(--bg-card, #121212);
    border: 1px solid var(--border-light, rgba(255,255,255,0.08));
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow-y: auto;
    max-height: 90vh;
}
.success-modal.active .success-modal-card {
    transform: translateY(0);
}
.success-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted, #888);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.success-modal-close:hover {
    color: var(--text-primary, #fff);
}
.success-modal-header {
    text-align: center;
    margin-bottom: 25px;
}
.success-icon-wrapper {
    font-size: 3.5rem;
    color: var(--success);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.3));
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes scaleIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.success-modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary, #fff);
}
.success-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted, #888);
    max-width: 500px;
    margin: 0 auto;
}
.download-action-box {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.btn-success-download {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
}
.btn-success-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6);
}
.success-modal-divider {
    height: 1px;
    background: var(--border-light, rgba(255,255,255,0.08));
    margin: 30px 0;
}
.cross-sell-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary, #fff);
}
.cross-sell-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted, #888);
    margin-bottom: 20px;
}
.cross-sell-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 580px) {
    .cross-sell-grid {
        grid-template-columns: 1fr;
    }
}
.cross-sell-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light, rgba(255,255,255,0.06));
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}
.cross-sell-card:hover {
    border-color: var(--accent-primary, #6366f1);
    background: rgba(255, 255, 255, 0.03);
}
.cross-sell-card-header {
    margin-bottom: 12px;
}
.cross-sell-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary, #fff);
}
.cross-sell-value-prop {
    font-size: 0.78rem;
    color: var(--text-muted, #999);
    line-height: 1.4;
}
.cross-sell-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255,255,255,0.06);
}
.cross-sell-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-secondary, #2563eb);
}
.btn-cross-sell-buy {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
}


/* Curly Italic Serif text style (as requested by user) */
.curly-text {
    font-family: 'Playfair Display', 'Lora', 'Georgia', serif;
    font-style: italic;
    font-weight: 500;
    text-transform: none;
    color: #f97316; /* Beautiful orange-gold accent */
    text-shadow: 0 0 30px rgba(249, 115, 22, 0.15);
}

.curly-text {
    color: #c2410c;
    text-shadow: none;
}

.hero-badge {
    color: #166534;
}

.verified-badge {
    color: #166534;
}

.form-note {
    color: #166534;
}

.service-features i {
    color: #166534;
}

.popup-original-price {
    color: #475569;
}

.popup-footer-note {
    color: #475569;
}

.btn-success-download {
    color: #ffffff;
}

.popular-badge,
.featured-badge {
    background: linear-gradient(135deg, #9f1239 0%, #1e40af 50%, #92400e 100%);
}

.hero-proof-row i {
    color: #b45309;
}

.badge-dot {
    background: #166534;
}
