/* ============================================================
   UzBizness Landing Page — Professional SaaS Style
   ============================================================ */

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

:root {
    /* Primary palette */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    /* Accent colors */
    --green-500: #22c55e;
    --green-400: #4ade80;
    --purple-500: #a855f7;
    --purple-400: #c084fc;
    --orange-500: #f97316;
    --teal-500: #14b8a6;
    --pink-500: #ec4899;

    /* Neutrals */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1d4ed8 100%);
    --gradient-cta: linear-gradient(135deg, var(--blue-700), var(--blue-900));
    --gradient-text: linear-gradient(135deg, var(--blue-400), var(--purple-400));

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);
    --shadow-blue: 0 10px 40px -10px rgba(37, 99, 235, 0.3);
    --shadow-card: 0 4px 24px rgba(0,0,0,0.06);

    /* Other */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-w: 1280px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    background: #ffffff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 44px -10px rgba(37, 99, 235, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--blue-600);
    border: 2px solid var(--blue-200);
}
.btn-outline:hover {
    background: var(--blue-50);
    border-color: var(--blue-400);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--blue-700);
    box-shadow: var(--shadow-xl);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-xl { padding: 20px 40px; font-size: 18px; font-weight: 700; }

/* ── Section shared ── */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    border: 1px solid var(--blue-100);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.7;
}


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255,255,255,0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--gray-900);
    flex-shrink: 0;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: #fff;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
    color: var(--blue-600);
    background: var(--blue-50);
}

.btn-cta-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: var(--shadow-blue);
}
.btn-cta-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px -8px rgba(37, 99, 235, 0.5);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    background: var(--gradient-hero);
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

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

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}
.shape-1 {
    width: 600px; height: 600px;
    background: var(--blue-400);
    top: -200px; right: -100px;
    animation: float1 20s ease-in-out infinite;
}
.shape-2 {
    width: 400px; height: 400px;
    background: var(--purple-500);
    bottom: -100px; left: -50px;
    animation: float2 25s ease-in-out infinite;
}
.shape-3 {
    width: 300px; height: 300px;
    background: var(--teal-500);
    top: 50%; left: 40%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 40px); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, -30px); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-20px, -40px); } }

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: var(--blue-200);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-400);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.title-line { display: block; }

.gradient-text {
    background: linear-gradient(135deg, var(--blue-300), var(--purple-400), var(--blue-300));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.15);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease 0.5s both;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px -10px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    box-shadow: var(--shadow-xl);
    animation: floatCard 6s ease-in-out infinite;
}

.card-revenue { top: 15%; left: -40px; animation-delay: 0s; }
.card-roi { bottom: 20%; right: -30px; animation-delay: 1s; }
.card-users { top: 55%; left: -50px; animation-delay: 2s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.fc-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.fc-green { background: #dcfce7; }
.fc-blue { background: #dbeafe; }
.fc-purple { background: #f3e8ff; }

.fc-label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}
.fc-value {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--gray-900);
}

/* Hero wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}
.hero-wave svg { width: 100%; height: auto; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}


/* ============================================================
   TRUSTED SECTION
   ============================================================ */
.trusted-section {
    padding: 40px 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
}

.trusted-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 15px;
    color: var(--gray-500);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: var(--transition);
}
.trust-item:hover {
    opacity: 1;
    color: var(--blue-600);
}


/* ============================================================
   KNOWLEDGE / ABOUT
   ============================================================ */
.knowledge-section {
    padding: 100px 0;
    background: var(--gray-50);
}

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

.knowledge-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.knowledge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.knowledge-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--blue-100);
}
.knowledge-card:hover::before {
    transform: scaleX(1);
}

.kc-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-lg);
    background: var(--blue-50);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}
.knowledge-card:hover .kc-icon { transform: scale(1.1); }
.kc-icon-green { background: #dcfce7; color: var(--green-500); }
.kc-icon-purple { background: #f3e8ff; color: var(--purple-500); }
.kc-icon-orange { background: #fff7ed; color: var(--orange-500); }
.kc-icon-teal { background: #ccfbf1; color: var(--teal-500); }
.kc-icon-pink { background: #fce7f3; color: var(--pink-500); }

.kc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.kc-text {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.kc-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-600);
    transition: var(--transition);
}
.kc-link:hover {
    color: var(--blue-800);
    letter-spacing: 0.5px;
}


/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
    padding: 100px 0;
    background: #fff;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.step-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    border: 2px solid var(--gray-100);
    transition: var(--transition);
    flex: 1;
    max-width: 340px;
    position: relative;
}
.step-card:hover {
    border-color: var(--blue-200);
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.step-card-highlight {
    border-color: var(--blue-300);
    background: linear-gradient(135deg, var(--blue-50), #fff);
    box-shadow: var(--shadow-blue);
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: var(--blue-100);
    line-height: 1;
    margin-bottom: 16px;
}

.step-icon-wrap {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--blue-50);
    color: var(--blue-600);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.step-card:hover .step-icon-wrap {
    background: var(--blue-600);
    color: #fff;
    transform: scale(1.1);
}

.step-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.step-text {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
}

.step-connector {
    display: flex;
    align-items: center;
    color: var(--blue-300);
    padding-top: 80px;
    flex-shrink: 0;
}


/* ============================================================
   FEATURES
   ============================================================ */
.features-section {
    padding: 100px 0;
    background: var(--gray-50);
}

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

.feature-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.feature-card-lg {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--blue-50), #fff);
    border-color: var(--blue-100);
}

.fc-glow {
    position: absolute;
    width: 200px; height: 200px;
    background: var(--blue-400);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    top: -50px; right: -50px;
    pointer-events: none;
}

.feature-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}
.feature-card-lg .feature-icon { margin-bottom: 0; }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }

.fi-blue { background: var(--blue-50); color: var(--blue-600); }
.fi-green { background: #dcfce7; color: var(--green-500); }
.fi-purple { background: #f3e8ff; color: var(--purple-500); }
.fi-orange { background: #fff7ed; color: var(--orange-500); }
.fi-teal { background: #ccfbf1; color: var(--teal-500); }

.feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-text {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
}

.feature-tag {
    display: inline-block;
    background: var(--blue-600);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 16px;
}


/* ============================================================
   PRICING
   ============================================================ */
.pricing-section {
    padding: 100px 0;
    background: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: flex-start;
}

.pricing-card {
    background: #fff;
    border-radius: var(--radius-2xl);
    padding: 40px 32px;
    border: 2px solid var(--gray-100);
    text-align: center;
    transition: var(--transition);
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card-popular {
    border-color: var(--blue-400);
    box-shadow: var(--shadow-blue);
    transform: scale(1.05);
    z-index: 2;
}
.pricing-card-popular:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 20px 60px -15px rgba(37, 99, 235, 0.4);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 24px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pc-header { margin-bottom: 32px; }

.pc-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.pc-badge-free { background: var(--gray-100); color: var(--gray-600); }
.pc-badge-standard { background: var(--blue-50); color: var(--blue-600); }
.pc-badge-premium { background: #f3e8ff; color: var(--purple-500); }

.pc-name {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.pc-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.pc-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.price-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: var(--gray-900);
}

.price-currency {
    font-size: 16px;
    color: var(--gray-500);
    font-weight: 500;
}

.pc-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}

.pc-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--gray-700);
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-50);
}
.pc-feature svg { flex-shrink: 0; color: var(--green-500); }
.pc-feature.disabled { color: var(--gray-400); }
.pc-feature.disabled svg { color: var(--gray-300); }

.btn-pricing {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
}


/* ============================================================
   CTA
   ============================================================ */
.cta-section {
    padding: 120px 0;
    background: var(--gradient-cta);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.cta-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
}
.cta-s1 { width: 400px; height: 400px; background: var(--blue-300); top: -100px; left: -50px; }
.cta-s2 { width: 300px; height: 300px; background: var(--purple-400); bottom: -80px; right: -40px; }

.cta-inner { position: relative; z-index: 1; }

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    color: #fff;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.2;
}

.cta-text {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-note {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 24px;
}


/* ============================================================
   BLOG
   ============================================================ */
.blog-section {
    padding: 100px 0;
    background: var(--gray-50);
}

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

.blog-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.bc-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.bc-img-1 { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.bc-img-2 { background: linear-gradient(135deg, #065f46, #10b981); }
.bc-img-3 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.bc-img-4 { background: linear-gradient(135deg, #c2410c, #f97316); }
.bc-img-5 { background: linear-gradient(135deg, #0e7490, #06b6d4); }

.bc-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 80 L80 40 L120 60 L160 30 L160 140 L120 110 L80 130 L40 100 Z' fill='white' fill-opacity='0.1'/%3E%3Crect x='20' y='120' width='30' height='50' rx='4' fill='white' fill-opacity='0.15'/%3E%3Crect x='60' y='100' width='30' height='70' rx='4' fill='white' fill-opacity='0.15'/%3E%3Crect x='100' y='85' width='30' height='85' rx='4' fill='white' fill-opacity='0.15'/%3E%3Crect x='140' y='110' width='30' height='60' rx='4' fill='white' fill-opacity='0.15'/%3E%3C/svg%3E") center/cover no-repeat;
    opacity: 0.6;
}

.bc-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    color: var(--gray-800);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    z-index: 1;
}

.bc-body { padding: 24px; }

.bc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.4;
}

.bc-excerpt {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bc-date {
    font-size: 13px;
    color: var(--gray-400);
}

.bc-read {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue-600);
    transition: var(--transition);
}
.bc-read:hover { color: var(--blue-800); }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    position: relative;
}

.footer-wave {
    color: var(--gray-900);
    line-height: 0;
    margin-bottom: -2px;
}
.footer-wave svg { width: 100%; }

.footer-inner { padding: 60px 24px 40px; }

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}
.footer-logo .logo-icon {
    width: 36px; height: 36px;
}

.footer-about {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
    max-width: 360px;
}

.footer-socials {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 42px; height: 42px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.12);
}
.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    color: #fff;
}

/* Telegram */
#social-telegram {
    background: linear-gradient(135deg, #0088cc, #00b4e6);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}
#social-telegram:hover {
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
    background: linear-gradient(135deg, #00a0e6, #00ccff);
}

/* Instagram */
#social-instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}
#social-instagram:hover {
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.5);
    background: linear-gradient(135deg, #ff9f43, #ee6b3e, #e62f4f, #d6286e, #c61e90);
}

/* YouTube */
#social-youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}
#social-youtube:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
    background: linear-gradient(135deg, #ff2222, #ee0000);
}

/* Facebook */
#social-facebook {
    background: linear-gradient(135deg, #1877f2, #0d65d9);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}
#social-facebook:hover {
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
    background: linear-gradient(135deg, #3490ff, #1877f2);
}

.footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

/* ── Vibrant Contact Links ── */
.footer-contact-links li {
    margin-bottom: 16px;
}

.contact-link {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.contact-link:hover {
    transform: translateX(4px);
    padding-left: 14px;
    background: rgba(255,255,255,0.08);
}

.contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Phone - green */
.contact-phone {
    color: #6ee7b7 !important;
}
.contact-phone .contact-icon {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.contact-phone:hover {
    color: #a7f3d0 !important;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}
.contact-phone:hover .contact-icon {
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

/* Telegram - blue */
.contact-telegram {
    color: #7dd3fc !important;
}
.contact-telegram .contact-icon {
    background: linear-gradient(135deg, #0088cc, #00b4e6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}
.contact-telegram:hover {
    color: #bae6fd !important;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.15);
}
.contact-telegram:hover .contact-icon {
    box-shadow: 0 6px 18px rgba(0, 136, 204, 0.5);
}

/* Email - orange/red */
.contact-email {
    color: #fdba74 !important;
}
.contact-email .contact-icon {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.contact-email:hover {
    color: #fed7aa !important;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}
.contact-email:hover .contact-icon {
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}
.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}
.footer-bottom-links a:hover { color: #fff; }


/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--blue-600);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--blue-700);
    transform: translateY(-3px);
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }

    .hero-visual { max-width: 600px; margin: 0 auto; }
    .floating-card { display: none; }

    .knowledge-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card-lg { grid-column: 1 / -1; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card-popular { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }

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

    .steps-grid { flex-direction: column; align-items: center; }
    .step-connector { transform: rotate(90deg); padding-top: 0; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-100);
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 12px 16px; width: 100%; }

    .btn-cta-header { display: none; }
    .mobile-toggle { display: flex; }
    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero-section { padding: 120px 0 100px; min-height: auto; }
    .hero-title { font-size: clamp(28px, 7vw, 40px); }

    .knowledge-grid,
    .features-grid,
    .pricing-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card-popular {
        transform: none;
        max-width: 100%;
    }
    .pricing-card-popular:hover {
        transform: translateY(-8px);
    }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    .cta-title { font-size: 26px; }
    .btn-xl { padding: 16px 32px; font-size: 16px; }
}


/* ============================================================
   CATALOG MARKETPLACE
   ============================================================ */
.catalog-section {
    padding: 100px 0;
    background: var(--color-bg, #f8fafc);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.catalog-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-100);
    position: relative;
}
.catalog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.catalog-card:hover .catalog-img-wrap img {
    transform: scale(1.05);
}

.catalog-img-wrap {
    height: 380px;
    overflow: hidden;
    background: var(--gray-200);
    position: relative;
    border-bottom: 1px solid var(--gray-100);
}
.catalog-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}
.catalog-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

.catalog-price-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(37, 99, 235, 0.95);
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    backdrop-filter: blur(10px);
}

.catalog-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.catalog-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-600);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    align-self: flex-start;
}

.catalog-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    color: var(--gray-900);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.catalog-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--gray-400);
}
.catalog-stats svg {
    width: 14px;
    height: 14px;
}
.catalog-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.catalog-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.catalog-btn-preview {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gray-50);
    color: var(--gray-600);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.catalog-btn-preview:hover {
    background: var(--blue-50);
    border-color: var(--blue-200);
    color: var(--blue-600);
}

.catalog-btn-buy {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-blue);
    font-family: 'Inter', sans-serif;
}
.catalog-btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(37, 99, 235, 0.5);
}

.catalog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
    grid-column: 1 / -1;
}
.catalog-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}


/* ── Product Detail Modal (Unified Purchase + Preview) ── */
.product-detail-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.product-detail-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-detail-modal {
    background: white;
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    box-shadow: var(--shadow-2xl);
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.product-detail-modal-overlay.active .product-detail-modal {
    transform: translateY(0) scale(1);
}

.product-detail-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: var(--transition);
    z-index: 10;
}
.product-detail-modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.product-detail-modal-content {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-height: 90vh;
}

.product-detail-preview {
    flex: 1;
    background: var(--gray-50);
    padding: 32px;
    overflow-y: auto;
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.product-detail-payment {
    width: 400px;
    flex-shrink: 0;
    background: white;
    padding: 32px;
    overflow-y: auto;
}
.product-detail-payment-inner {
    max-width: 100%;
}

@media (max-width: 900px) {
    .product-detail-modal-content {
        flex-direction: column;
    }
    .product-detail-payment {
        width: 100%;
        border-top: 1px solid var(--gray-200);
    }
    .product-detail-preview {
        border-right: none;
        max-height: 40vh;
    }
}

/* ── Catalog Modal (Legacy) ── */
.catalog-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.catalog-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.catalog-modal {
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.catalog-modal-overlay.active .catalog-modal {
    transform: translateY(0) scale(1);
}

.catalog-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: var(--transition);
    z-index: 10;
}
.catalog-modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.catalog-modal-header {
    padding: 32px 32px 0;
    text-align: center;
}
.catalog-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.catalog-modal-header p {
    font-size: 14px;
    color: var(--gray-500);
}
.catalog-modal-price {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--blue-600);
    margin-top: 12px;
}

.catalog-modal-body {
    padding: 24px 32px 32px;
}

/* Payment method tabs in catalog modal */
.catalog-pay-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.catalog-pay-tab {
    flex: 1;
    padding: 14px 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.catalog-pay-tab:hover {
    border-color: var(--blue-200);
    background: var(--blue-50);
}
.catalog-pay-tab.active {
    border-color: var(--blue-500);
    background: var(--blue-50);
}
.catalog-pay-tab .cpt-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
}
.catalog-pay-tab .cpt-desc {
    display: block;
    font-size: 11px;
    color: var(--gray-500);
    margin-top: 2px;
}

.catalog-pay-form {
    margin-top: 16px;
}
.catalog-pay-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.catalog-pay-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    outline: none;
}
.catalog-pay-form input[type="text"]:focus {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Card payment panel in catalog */
.catalog-card-panel {
    margin-top: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}
.catalog-card-visual {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: var(--radius-md);
    padding: 20px;
    color: white;
    margin-bottom: 16px;
}
.catalog-card-number {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.catalog-card-holder {
    font-size: 12px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.catalog-receipt-upload {
    margin-top: 12px;
}
.catalog-receipt-upload input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    font-size: 14px;
}

.catalog-pay-btn {
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-blue);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.catalog-pay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px -8px rgba(37, 99, 235, 0.5);
}
.catalog-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Catalog payment status */
.catalog-status-box {
    text-align: center;
    padding: 24px;
}
.catalog-status-box .status-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--blue-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Download success */
.catalog-download-success {
    text-align: center;
    padding: 24px;
}
.catalog-download-success .success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #dcfce7;
    color: var(--green-500);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.catalog-download-success h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.catalog-download-success p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
}
.catalog-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px -8px rgba(5, 150, 105, 0.4);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}
.catalog-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px -8px rgba(5, 150, 105, 0.5);
}


/* ── Preview Modal ── */
.preview-modal {
    max-width: 900px;
}
.preview-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.preview-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}
.preview-pages-info {
    font-size: 13px;
    color: var(--gray-500);
}

.preview-modal-body {
    padding: 24px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.preview-page-item {
    position: relative;
}
.preview-page-img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}
.preview-page-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.preview-page-separator {
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
    padding: 8px 0;
    position: relative;
}
.preview-page-separator::before,
.preview-page-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 40px);
    height: 1px;
    background: var(--gray-200);
}
.preview-page-separator::before { left: 0; }
.preview-page-separator::after { right: 0; }

.preview-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}
.preview-loading .status-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--blue-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

.preview-modal-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.preview-modal-footer p {
    font-size: 14px;
    color: var(--gray-500);
}
.preview-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-blue);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}
.preview-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(37, 99, 235, 0.5);
}

/* Responsive catalog */
@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .catalog-modal {
        max-width: 100%;
        margin: 10px;
    }
    .preview-modal {
        max-width: 100%;
    }
    .catalog-pay-tabs {
        flex-direction: column;
    }
    .preview-modal-footer {
        flex-direction: column;
        text-align: center;
    }
    .catalog-modal-header,
    .catalog-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ============================================================
   NEW CATALOG STYLES (Grid & Cards)
   ============================================================ */
.catalog-header-new {
    margin-bottom: 32px;
}
.catalog-header-new h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

.catalog-category-section {
    margin-bottom: 40px;
}
.catalog-category-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.catalog-category-title:hover {
    color: var(--blue-600);
}

.catalog-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.catalog-item-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}
.catalog-item-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
    transform: translateY(-4px);
}

.ci-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}
.ci-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--gray-600);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}
.ci-actions {
    display: flex;
    gap: 8px;
}
.ci-btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.ci-btn-icon:hover {
    background: var(--blue-50);
    color: var(--blue-600);
}

.ci-image {
    position: relative;
    height: 180px;
    background: var(--gray-100);
    overflow: hidden;
}
.ci-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.catalog-item-card:hover .ci-image img {
    transform: scale(1.05);
}

.ci-content {
    padding: 16px;
    flex: 1;
}
.ci-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ci-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}

.ci-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}
.ci-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .catalog-grid-new {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .product-detail-preview {
        padding: 16px;
        max-height: 35vh;
    }
    .product-detail-payment {
        padding: 16px;
    }
    .preview-modal-header {
        padding: 12px 16px;
    }
    .preview-modal-header h3 {
        font-size: 16px;
    }
    .preview-modal-body {
        padding: 16px;
        gap: 16px;
    }
    .catalog-modal-header {
        padding: 16px 16px 0;
    }
    .catalog-modal-body {
        padding: 16px;
    }
    .catalog-pay-tabs {
        flex-direction: column;
        gap: 8px;
    }
    .catalog-pay-tab {
        padding: 10px;
    }
    .catalog-modal-price {
        font-size: 24px;
    }
    .product-detail-modal-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
    }
}
