/* ============================================
   CSP LIC - Global Stylesheet
   SaaS-style liquid, transparent, white & blue theme
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-lighter: #60A5FA;
    --primary-dark: #1D4ED8;
    --primary-darker: #1E40AF;
    --primary-50: #EFF6FF;
    --primary-100: #DBEAFE;
    --primary-200: #BFDBFE;
    --accent: #06B6D4;
    --accent-light: #22D3EE;

    --white: #FFFFFF;
    --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;

    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --glass-card-bg: rgba(255, 255, 255, 0.65);
    --glass-card-border: rgba(255, 255, 255, 0.5);

    --gradient-primary: linear-gradient(135deg, #1E40AF 0%, #3B82F6 50%, #60A5FA 100%);
    --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E3A8A 40%, #2563EB 100%);
    --gradient-liquid: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-blue: 0 4px 20px rgba(37, 99, 235, 0.25);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

ul { list-style: none; }

/* ---- Container ---- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Background Effects ---- */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 40%, #F8FAFF 100%);
}

.liquid-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3), transparent 70%);
    top: -10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
    bottom: 10%;
    left: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2), transparent 70%);
    top: 40%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

/* ---- Glass Card ---- */
.glass-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* ---- Announcement Bar ---- */
.announcement-bar {
    background: var(--gradient-primary);
    padding: 8px 0;
    text-align: center;
    position: relative;
    z-index: 100;
}

.announcement-bar p {
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.announcement-bar strong {
    font-weight: 700;
}

.badge-glow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 8px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 12px 4px rgba(255, 255, 255, 0.15); }
}

/* ---- Main Header ---- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 12px rgba(37, 99, 235, 0.08);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-darker);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.logo-tagline {
    font-size: 10px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.search-bar form {
    display: flex;
    align-items: center;
    background: var(--primary-50);
    border: 1.5px solid var(--primary-100);
    border-radius: var(--radius-full);
    padding: 4px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar form:focus-within {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--gray-400);
    pointer-events: none;
}

.search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px 8px 40px;
    font-size: 14px;
    color: var(--gray-800);
    outline: none;
    font-family: var(--font-primary);
}

.search-bar input::placeholder {
    color: var(--gray-400);
}

.search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-50);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    color: var(--gray-600);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-icon-btn:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary-200);
}

.btn-ghost:hover {
    background: var(--primary-50);
    border-color: var(--primary-lighter);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    background: var(--white);
    width: 300px;
    height: 100%;
    padding: 24px;
    transform: translateX(-100%);
    transition: transform var(--transition-base);
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-search {
    margin-bottom: 24px;
}

.mobile-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    outline: none;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.mobile-link {
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    transition: background var(--transition-fast);
}

.mobile-link:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ---- Hero Slider ---- */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.slider-container {
    position: relative;
    height: 520px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-bg {
    position: absolute;
    inset: 0;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.6) 50%, rgba(37, 99, 235, 0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 60px;
    max-width: 680px;
}

.slide-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.25);
    color: var(--primary-lighter);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.slide-category {
    display: inline-block;
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    margin-left: 12px;
}

.slide-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.slide-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 24px;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.slide-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.slide-rating span {
    margin-left: 4px;
}

.slide-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slide-price .old-price {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-size: 16px;
}

.slide-price .current-price {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
}

.slide-actions {
    display: flex;
    gap: 12px;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    background: var(--white);
    width: 28px;
}

/* ---- Stats Section ---- */
.stats-section {
    padding: 40px 0;
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    text-align: left;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-darker);
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

/* ---- Products Section ---- */
.products-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
}

.section-header.center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-50);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
}

.tag-scripts {
    color: #059669;
    background: #ECFDF5;
}

.tag-ui {
    color: #7C3AED;
    background: #F5F3FF;
}

.section-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin-top: 6px;
}

.view-all-btn {
    flex-shrink: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Product Card */
.product-card {
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    aspect-ratio: 4/3;
}

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

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
}

.badge-script {
    background: #059669;
}

.badge-ui {
    background: #7C3AED;
}

.product-discount {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    background: #EF4444;
    color: var(--white);
    z-index: 2;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    display: flex;
    gap: 8px;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-base);
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 16px;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
}

.review-count {
    color: var(--gray-400);
}

.product-sales {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
}

.product-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-title a:hover {
    color: var(--primary);
}

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

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.old-price {
    color: var(--gray-400);
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 500;
}

.current-price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-darker);
}

.wishlist-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.wishlist-btn:hover,
.wishlist-btn.active {
    color: #EF4444;
    border-color: #FCA5A5;
    background: #FEF2F2;
}

/* ---- CTA Banner ---- */
.cta-banner {
    padding: 40px 0;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px;
    background: var(--gradient-hero);
    border: none;
    overflow: hidden;
    position: relative;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.3), transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 540px;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 24px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 12px;
}

.cta-visual {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.cta-illustration {
    animation: float 6s ease-in-out infinite;
}

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

/* ---- Testimonials ---- */
.testimonials-section {
    padding: 60px 0;
    background: linear-gradient(180deg, transparent, var(--primary-50) 50%, transparent);
}

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

.testimonial-card {
    padding: 32px;
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

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

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-name {
    display: block;
    font-size: 14px;
    color: var(--gray-900);
}

.author-role {
    font-size: 12px;
    color: var(--gray-400);
}

/* ---- Why Section ---- */
.why-section {
    padding: 60px 0;
}

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

.why-card {
    padding: 32px;
    text-align: center;
}

.why-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: all var(--transition-base);
}

.why-card:hover .why-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.why-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ---- Final CTA ---- */
.final-cta {
    padding: 40px 0 60px;
}

.final-cta-card {
    text-align: center;
    padding: 64px 48px;
    background: var(--gradient-hero);
    border: none;
    position: relative;
    overflow: hidden;
}

.final-cta-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    border-radius: 50%;
}

.final-cta-card h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.final-cta-card p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.final-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ---- Newsletter ---- */
.newsletter-section {
    padding: 40px 0;
}

.newsletter-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 48px;
}

.newsletter-content h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.newsletter-content p {
    color: var(--gray-500);
    font-size: 14px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.newsletter-form input {
    padding: 12px 20px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 14px;
    width: 280px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ---- Footer ---- */
.main-footer {
    background: var(--gray-900);
    padding: 64px 0 0;
    color: var(--gray-300);
}

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

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .logo-name {
    color: var(--white);
}

.footer-logo .logo-tagline {
    color: var(--gray-500);
}

.footer-desc {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

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

.footer-col a {
    font-size: 13px;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary-lighter);
}

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

.footer-bottom p {
    font-size: 13px;
    color: var(--gray-500);
}

.payment-methods {
    display: flex;
    gap: 8px;
}

.payment-icon {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-blue);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ---- Main Content ---- */
.main-content {
    min-height: calc(100vh - 68px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .search-bar {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-nav-overlay {
        display: block;
    }

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

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

    .cta-card {
        flex-direction: column;
        text-align: center;
    }

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

    .newsletter-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .slide-title {
        font-size: 32px;
    }

    .slide-content {
        padding: 60px 0 40px;
    }

    .slider-container {
        height: 420px;
    }

    .section-title {
        font-size: 24px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .cta-card {
        padding: 32px 24px;
    }

    .cta-content h2 {
        font-size: 24px;
    }

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

    .final-cta-card {
        padding: 40px 24px;
    }

    .final-cta-card h2 {
        font-size: 26px;
    }

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

    .footer-brand {
        grid-column: span 2;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .slide-title {
        font-size: 26px;
    }

    .slide-desc {
        font-size: 14px;
    }

    .slide-actions {
        flex-direction: column;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

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

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

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ---- Scroll Animations ---- */
.product-card,
.stat-card,
.why-card,
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.products-grid .product-card:nth-child(1) { animation-delay: 0.05s; }
.products-grid .product-card:nth-child(2) { animation-delay: 0.1s; }
.products-grid .product-card:nth-child(3) { animation-delay: 0.15s; }
.products-grid .product-card:nth-child(4) { animation-delay: 0.2s; }

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

/* ---- Loading Skeleton ---- */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

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

/* ---- Section UI Variants ---- */
.section-ui .products-grid.grid-ui .card-ui .product-badge {
    background: #7C3AED;
}

/* ============================================
   AUTH PAGES (Login & Register)
   ============================================ */

/* Auth Section - full page centered layout */
.auth-section {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F0F7FF 0%, #FFFFFF 30%, #EFF6FF 60%, #F8FAFF 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative orbs for auth page */
.auth-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Auth Wrapper - two column card */
.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.12), 0 4px 20px rgba(0, 0, 0, 0.06);
    min-height: 580px;
    max-width: 960px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Auth Visual Side */
.auth-visual {
    background: var(--gradient-hero);
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.3), transparent 70%);
    pointer-events: none;
}

.auth-visual::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 40%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(96, 165, 250, 0.2), transparent 70%);
    pointer-events: none;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.auth-illustration {
    margin-bottom: 28px;
}

.auth-visual-content h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.auth-visual-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 340px;
    margin: 0 auto 24px;
}

.auth-visual-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.auth-feature svg {
    color: #60A5FA;
    flex-shrink: 0;
}

/* Auth Form Side */
.auth-form-side {
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

/* Auth Logo */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.auth-logo span {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-darker);
    letter-spacing: -0.02em;
}

.auth-form-container h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Auth Alert */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.auth-alert svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert p {
    margin: 0;
}

.alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.alert-error svg {
    color: #EF4444;
}

.alert-success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

/* Form Group */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--gray-400);
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-primary);
    color: var(--gray-800);
    background: var(--white);
    transition: all var(--transition-fast);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-wrapper input::placeholder {
    color: var(--gray-400);
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    z-index: 1;
}

.toggle-password:hover {
    color: var(--gray-600);
}

/* Form Row (Remember me / Forgot) */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-600);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checkbox-label a {
    color: var(--primary);
    font-weight: 600;
}

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

/* Form Link */
.form-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: color var(--transition-fast);
}

.form-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Auth Submit */
.auth-submit {
    margin-top: 4px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    letter-spacing: 0.01em;
}

.auth-submit:active {
    transform: translateY(0) !important;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 22px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    font-size: 12px;
    color: var(--gray-400);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Social Login Buttons */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-primary);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-social:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-google:hover {
    border-color: #4285F4;
    color: #4285F4;
    background: #F8F9FF;
}

.btn-github:hover {
    border-color: #333;
    color: #333;
    background: #F9F9F9;
}

/* Auth Switch Link */
.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 700;
    transition: color var(--transition-fast);
}

.auth-switch a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Password Strength Indicator */
.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.strength-bars {
    display: flex;
    gap: 4px;
}

.strength-bar {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-200);
    transition: background var(--transition-fast);
}

.strength-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Password Requirements */
.password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.password-requirements li svg {
    flex-shrink: 0;
}

.password-requirements li.met {
    color: #059669;
}

/* Flash Message */
.flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    animation: flashSlideIn 0.3s ease;
}

.flash-icon {
    flex-shrink: 0;
    display: flex;
}

.flash-text {
    flex: 1;
}

.flash-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color var(--transition-fast);
}

.flash-close:hover {
    color: var(--white);
}

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

/* ============================================
   AUTH PAGES RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-side {
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    .auth-section {
        padding: 0;
        align-items: flex-start;
    }

    .auth-wrapper {
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
        max-width: 100%;
    }

    .auth-form-side {
        padding: 40px 24px;
    }

    .auth-form-container h1 {
        font-size: 24px;
    }

    .social-login {
        grid-template-columns: 1fr;
    }

    .password-requirements {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .auth-form-side {
        padding: 32px 16px;
    }

    .auth-form-container h1 {
        font-size: 22px;
    }

    .auth-subtitle {
        font-size: 13px;
    }
}
