/* ======================================================================
   Aipics — Design System
   Create. Edit. Enhance. Powered by AI.
   ====================================================================== */

:root {
    --ai-blue: #2563EB;
    --ai-purple: #7C3AED;
    --ai-cyan: #06B6D4;
    --ai-navy: #0F172A;
    --ai-navy-2: #1E293B;
    --ai-bg: #F8FAFC;
    --ai-white: #FFFFFF;
    --ai-text: #0F172A;
    --ai-muted: #64748B;
    --ai-border: #E2E8F0;
    --ai-success: #10B981;
    --ai-warning: #F59E0B;
    --ai-danger: #EF4444;

    --grad-main: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    --grad-alt: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
    --grad-tri: linear-gradient(120deg, #2563EB 0%, #7C3AED 50%, #06B6D4 100%);
    --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(124, 58, 237, .08));

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
    --shadow-glow: 0 10px 30px rgba(124, 58, 237, .35);

    --nav-h: 76px;
    --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Montserrat', 'Poppins', system-ui, sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
    font-family: var(--font-body);
    color: var(--ai-text);
    background: var(--ai-bg);
    padding-top: var(--nav-h);
    font-size: 15.5px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ai-navy);
    letter-spacing: -.02em;
    line-height: 1.2;
}
a { color: var(--ai-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ai-purple); }
img { max-width: 100%; }
::selection { background: rgba(124, 58, 237, .2); }
.text-muted { color: var(--ai-muted) !important; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 16px; border-radius: 8px; }
.text-gradient {
    background: var(--grad-tri);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.fw-800 { font-weight: 800; }
.bg-soft { background: var(--grad-soft); }
.bg-navy { background: var(--ai-navy); }

/* MDB overrides: keep buttons natural-case and softer */
.btn { text-transform: none; font-weight: 600; letter-spacing: 0; border-radius: 12px; font-family: var(--font-body); font-size: .95rem; padding: .62rem 1.25rem; }
.btn-sm { padding: .45rem .95rem; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1.02rem; border-radius: 14px; }
.btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn-gradient {
    position: relative;
    color: #fff !important;
    border: 0;
    background: linear-gradient(120deg, #2563EB, #7C3AED, #06B6D4, #2563EB);
    background-size: 300% 100%;
    box-shadow: 0 8px 22px rgba(37, 99, 235, .3);
    transition: background-position .6s var(--ease), transform .2s var(--ease), box-shadow .2s;
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
}
.btn-gradient:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: var(--shadow-glow); color: #fff; }
.btn-gradient:active { transform: translateY(0); }
.btn-gradient:disabled { opacity: .65; transform: none; }

.btn-outline-gradient {
    color: var(--ai-purple);
    background: linear-gradient(#fff, #fff) padding-box, var(--grad-main) border-box;
    border: 2px solid transparent;
    box-shadow: none;
}
.btn-outline-gradient:hover { color: #fff; background: var(--grad-main) border-box; }

.btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(10px);
    box-shadow: none;
}
.btn-glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-white { background: #fff; color: var(--ai-navy); box-shadow: var(--shadow); }
.btn-white:hover { color: var(--ai-purple); transform: translateY(-2px); }
.btn-soft { background: #EEF2FF; color: var(--ai-blue); box-shadow: none; }
.btn-soft:hover { background: #E0E7FF; color: var(--ai-purple); }
.btn-soft-danger { background: #FEF2F2; color: var(--ai-danger); box-shadow: none; }
.btn-soft-danger:hover { background: #FEE2E2; color: #B91C1C; }
.btn-light { box-shadow: none; }

.icon-btn {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--ai-border);
    background: rgba(255, 255, 255, .7);
    color: var(--ai-navy);
    transition: all .2s var(--ease);
}
.icon-btn:hover { color: var(--ai-purple); border-color: rgba(124, 58, 237, .35); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Ripple */
.ripple-host { position: relative; overflow: hidden; }
.ripple-wave { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: ripple .6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Navbar ---------- */
.aipics-navbar {
    height: var(--nav-h);
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, .7);
    box-shadow: none;
    transition: box-shadow .3s, background .3s;
    padding: 0;
}
.aipics-navbar.scrolled { box-shadow: 0 8px 30px rgba(15, 23, 42, .08); background: rgba(255, 255, 255, .92); }
.aipics-navbar .navbar-nav .nav-link {
    font-weight: 500; color: #334155; padding: .5rem .85rem !important; border-radius: 10px; position: relative; font-size: .93rem;
}
.aipics-navbar .navbar-nav .nav-link:hover { color: var(--ai-purple); }
.aipics-navbar .navbar-nav .nav-link.active { color: var(--ai-blue); }
.aipics-navbar .navbar-nav .nav-link.active::after {
    content: ''; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; border-radius: 3px;
    transform: translateX(-50%); background: var(--grad-main);
}
.nav-login { color: var(--ai-navy); font-weight: 600; text-decoration: none; box-shadow: none !important; }
.nav-login:hover { color: var(--ai-purple); }
.navbar-toggler { border: 0; padding: 8px; display: flex; flex-direction: column; gap: 5px; box-shadow: none !important; }
.toggler-bar { display: block; width: 22px; height: 2px; background: var(--ai-navy); border-radius: 2px; transition: .3s; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.brand-logo { display: inline-flex; align-items: center; gap: .55rem; }
.brand-word { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; color: var(--ai-navy); letter-spacing: -.03em; }
.brand-word span { background: var(--grad-alt); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-logo-light .brand-word { color: #fff; }
.brand-logo-img { display: block; width: auto; max-width: 190px; object-fit: contain; }
.announce-bar { background: var(--grad-main); color: #fff; text-align: center; font-size: .88rem; font-weight: 500; padding: .55rem 1rem; }
.announce-bar i { margin-right: .35rem; }
.announce-bar + .hero { margin-top: 0; padding-top: 0; }

.cart-badge {
    position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
    font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; border-radius: 10px;
    color: #fff; background: var(--grad-main); box-shadow: 0 0 0 2px #fff;
}
.cart-badge.bump { animation: bump .4s var(--ease); }
@keyframes bump { 50% { transform: scale(1.35); } }

.avatar-btn { border: 0; background: none; padding: 0; display: flex; align-items: center; }
.avatar-btn::after { display: none; }
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-initials {
    display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
    background: var(--grad-main); font-family: var(--font-head);
}
.aipics-dropdown { border: 1px solid var(--ai-border); border-radius: var(--radius); padding: .5rem; min-width: 250px; }
.aipics-dropdown .dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-size: .92rem; display: flex; gap: .65rem; align-items: center; }
.aipics-dropdown .dropdown-item i { width: 18px; text-align: center; color: var(--ai-muted); }
.aipics-dropdown .dropdown-item:hover { background: var(--grad-soft); color: var(--ai-purple); }
.credit-pill {
    display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600;
    background: var(--grad-soft); color: var(--ai-purple); padding: .25rem .65rem; border-radius: 30px;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 14px; }
.section-head p { color: var(--ai-muted); font-size: 1.05rem; margin: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem; border-radius: 30px;
    background: var(--grad-soft); color: var(--ai-purple); font-weight: 600; font-size: .8rem;
    letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; border: 1px solid rgba(124, 58, 237, .15);
}
.page-hero {
    position: relative; padding: 72px 0 64px; overflow: hidden;
    background: radial-gradient(1200px 400px at 10% -10%, rgba(37, 99, 235, .14), transparent 60%),
                radial-gradient(900px 400px at 90% 0%, rgba(124, 58, 237, .14), transparent 60%),
                radial-gradient(700px 300px at 50% 120%, rgba(6, 182, 212, .12), transparent 60%);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.page-hero p.lead { color: var(--ai-muted); max-width: 680px; font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; margin-bottom: 12px; }
.breadcrumb a { color: var(--ai-muted); }

/* ---------- Glass & cards ---------- */
.glass {
    background: rgba(255, 255, 255, .65);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}
.glass-dark {
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    color: #fff;
}
.card-soft {
    background: #fff; border: 1px solid var(--ai-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card-soft:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card { border-radius: var(--radius-lg); }
.hover-lift { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.img-zoom { overflow: hidden; position: relative; }
.img-zoom img { transition: transform .6s var(--ease); }
.hover-lift:hover .img-zoom img, .img-zoom:hover img { transform: scale(1.07); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(900px 500px at 15% 10%, rgba(37, 99, 235, .55), transparent 60%),
                radial-gradient(800px 500px at 85% 20%, rgba(124, 58, 237, .55), transparent 60%),
                radial-gradient(700px 400px at 60% 110%, rgba(6, 182, 212, .45), transparent 60%),
                #0B1024;
    margin-top: calc(var(--nav-h) * -1);
    padding-top: var(--nav-h);
}
.hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero .carousel-item { padding: 72px 0 96px; }
.hero h1, .hero h2.hero-title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.9rem); font-weight: 800; line-height: 1.08; margin-bottom: 20px; }
.hero .hero-sub { font-size: 1.12rem; color: rgba(255, 255, 255, .78); max-width: 560px; margin-bottom: 30px; }
.hero .eyebrow { background: rgba(255, 255, 255, .1); color: #C4B5FD; border-color: rgba(255, 255, 255, .15); }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 30px; color: rgba(255, 255, 255, .72); font-size: .9rem; flex-wrap: wrap; }
.hero-trust .stack { display: flex; }
.hero-trust .stack span {
    width: 34px; height: 34px; border-radius: 50%; border: 2px solid #0B1024; margin-left: -10px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff;
}
.hero-trust .stack span:first-child { margin-left: 0; }
.hero-visual { position: relative; }
.hero-visual .hero-frame {
    border-radius: var(--radius-xl); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .18); position: relative;
}
.hero-visual .hero-frame img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.float-chip {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem;
    border-radius: 16px; font-size: .85rem; font-weight: 600; color: var(--ai-navy);
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
    animation: floaty 5s ease-in-out infinite;
}
.float-chip .chip-icon { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-main); }
.float-chip small { display: block; color: var(--ai-muted); font-weight: 500; font-size: .72rem; }
.float-chip.c1 { top: 22%; left: -6%; }
.float-chip.c2 { bottom: 12%; right: -5%; animation-delay: -2.5s; }
.float-chip.c3 { bottom: -5%; left: 12%; animation-delay: -1.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero .carousel-indicators { margin-bottom: 36px; }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 5px; border-radius: 5px; border: 0; background: rgba(255, 255, 255, .45); transition: all .3s; }
.hero .carousel-indicators .active { width: 46px; background: #fff; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 56px; opacity: .8; }
.hero .carousel-control-prev-icon, .hero .carousel-control-next-icon { width: 44px; height: 44px; border-radius: 50%; background-color: rgba(255, 255, 255, .12); background-size: 45%; backdrop-filter: blur(6px); }

.pipeline { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 26px; }
.pipeline span { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; padding: .35rem .8rem; border-radius: 30px; background: rgba(255, 255, 255, .1); color: #E0E7FF; }
.pipeline i.sep { color: rgba(255, 255, 255, .4); font-size: .75rem; }
.pipeline .active-step { background: var(--grad-alt); color: #fff; }

/* ---------- Before / After slider ---------- */
.ba-slider {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); user-select: none; touch-action: pan-y;
    --pos: 50%; cursor: ew-resize; background: #0F172A;
}
.ba-slider img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-slider .ba-after { position: relative; }
.ba-slider .ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-slider .ba-handle {
    position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(0, 0, 0, .35); z-index: 2;
}
.ba-slider .ba-knob {
    position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%);
    border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; gap: 4px;
    color: var(--ai-purple); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); font-size: .8rem; cursor: grab;
}
.ba-slider .ba-knob:focus-visible { outline: 3px solid var(--ai-cyan); }
.ba-label {
    position: absolute; top: 16px; z-index: 3; padding: .3rem .8rem; border-radius: 30px; font-size: .72rem; font-weight: 700;
    letter-spacing: .08em; color: #fff; background: rgba(15, 23, 42, .6); backdrop-filter: blur(6px);
}
.ba-label.before { left: 16px; }
.ba-label.after { right: 16px; background: rgba(124, 58, 237, .8); }
.checker-bg {
    background-color: #fff;
    background-image: linear-gradient(45deg, #E2E8F0 25%, transparent 25%), linear-gradient(-45deg, #E2E8F0 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #E2E8F0 75%), linear-gradient(-45deg, transparent 75%, #E2E8F0 75%);
    background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

/* ---------- Upload box ---------- */
.upload-section { margin-top: -60px; position: relative; z-index: 5; }
.upload-card { padding: 40px; border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-lg); }
.dropzone {
    position: relative; border: 2px dashed #C7D2FE; border-radius: var(--radius-lg); padding: 48px 24px; text-align: center;
    background: linear-gradient(180deg, #F8FAFF, #F5F3FF); transition: all .25s var(--ease); cursor: pointer;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--ai-purple); background: linear-gradient(180deg, #EEF2FF, #EDE9FE); transform: scale(1.005); }
.dropzone .dz-icon {
    width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: #fff; background: var(--grad-main); box-shadow: var(--shadow-glow); animation: floaty 4s ease-in-out infinite;
}
.dropzone h3 { font-size: 1.35rem; margin-bottom: 6px; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-meta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 16px; font-size: .85rem; color: var(--ai-muted); }
.dz-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.dz-preview { display: none; align-items: center; gap: 14px; text-align: left; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--ai-border); margin-top: 18px; }
.dz-preview.show { display: flex; }
.dz-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.progress-thin { height: 6px; border-radius: 6px; background: #E2E8F0; overflow: hidden; }
.progress-thin .bar { height: 100%; width: 0; background: var(--grad-tri); transition: width .3s; }

/* ---------- Tool cards ---------- */
.tool-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.tool-card .tool-img { aspect-ratio: 3 / 2; position: relative; }
.tool-card .tool-img img { width: 100%; height: 100%; object-fit: cover; }
.tool-card .tool-icon {
    position: absolute; left: 18px; bottom: -22px; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center;
    justify-content: center; color: #fff; font-size: 1.15rem; background: var(--grad-main); box-shadow: var(--shadow-glow); z-index: 2;
}
.tool-card .tool-body { padding: 34px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tool-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.tool-card p { font-size: .88rem; color: var(--ai-muted); flex: 1; }
.tool-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.credit-tag { font-size: .78rem; font-weight: 600; color: var(--ai-muted); display: inline-flex; align-items: center; gap: .3rem; }
.credit-tag i { color: var(--ai-warning); }
.badge-tier { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: .35rem .7rem; border-radius: 30px; }
.badge-free { background: rgba(16, 185, 129, .92); color: #fff; }
.badge-premium { background: linear-gradient(135deg, #F59E0B, #F97316); color: #fff; }
.tool-mini {
    display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--ai-border);
    transition: all .3s var(--ease); height: 100%; color: var(--ai-navy);
}
.tool-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ai-navy); }
.tool-mini .ti { width: 50px; height: 50px; flex-shrink: 0; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; background: var(--grad-main); }
.tool-mini:nth-child(3n+2) .ti, .col:nth-child(3n+2) .tool-mini .ti { background: var(--grad-alt); }
.tool-mini h3 { font-size: .98rem; margin: 0 0 2px; }
.tool-mini p { font-size: .8rem; color: var(--ai-muted); margin: 0; line-height: 1.45; }

/* ---------- Steps ---------- */
.step-card { padding: 34px 28px; text-align: left; height: 100%; position: relative; overflow: hidden; }
.step-num {
    font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; line-height: 1; margin-bottom: 18px;
    background: var(--grad-tri); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .9;
}
.step-card .step-icon { position: absolute; top: 26px; right: 26px; font-size: 1.5rem; color: rgba(124, 58, 237, .25); }
.step-card h3 { font-size: 1.25rem; }
.step-card p { color: var(--ai-muted); margin: 0; }

/* ---------- Category tiles ---------- */
.cat-tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, .85)); }
.cat-tile .cat-info { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.cat-tile h3 { color: #fff; font-size: 1.1rem; margin: 0 0 2px; }
.cat-tile span { font-size: .8rem; opacity: .8; }
.cat-tile:hover img { transform: scale(1.08); }
.cat-tile:hover { color: #fff; }

/* ---------- Product cards ---------- */
.product-card { height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--ai-border); }
.product-card .pc-img { aspect-ratio: 4 / 3; background: #EEF2FF; display: block; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.pc-cat { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ai-purple); }
.product-card h3 { font-size: 1.02rem; margin: 6px 0 8px; line-height: 1.35; }
.product-card h3 a { color: var(--ai-navy); }
.product-card h3 a:hover { color: var(--ai-purple); }
.price-row { display: flex; align-items: baseline; gap: .5rem; margin: 8px 0 14px; }
.price-now { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--ai-navy); }
.price-old { color: #94A3B8; text-decoration: line-through; font-size: .9rem; }
.pc-actions { display: flex; gap: 8px; margin-top: auto; }
.pc-actions .btn { flex: 1; padding: .55rem .5rem; font-size: .85rem; }
.sale-badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--ai-danger); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .65rem; border-radius: 30px; }
.fav-btn {
    position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .92); color: var(--ai-muted); display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); transition: all .2s;
}
.fav-btn:hover, .fav-btn.active { color: #E11D48; transform: scale(1.1); }
.stars { color: #F59E0B; font-size: .8rem; letter-spacing: 1px; white-space: nowrap; }
.stars-num { color: var(--ai-navy); font-weight: 600; margin-left: 2px; }
.review-count { font-size: .8rem; color: var(--ai-muted); }

/* ---------- Template cards ---------- */
.template-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--ai-border); height: 100%; display: flex; flex-direction: column; }
.template-card .tc-img { position: relative; background: #F1F5F9; aspect-ratio: 4 / 5; }
.template-card .tc-img img { width: 100%; height: 100%; object-fit: cover; }
.template-card .tc-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .3s; z-index: 1;
}
.template-card:hover .tc-overlay { opacity: 1; }
.template-card .tc-body { padding: 14px 16px 16px; }
.template-card h3 { font-size: .95rem; margin: 0 0 4px; }
.template-card .tc-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--ai-muted); }

/* ---------- Features ---------- */
.feature-card { padding: 30px 26px; height: 100%; }
.feature-icon {
    width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
    color: #fff; margin-bottom: 18px; background: var(--grad-main); box-shadow: var(--shadow-glow);
}
.feature-card:nth-child(even) .feature-icon, .col:nth-child(even) .feature-icon { background: var(--grad-alt); }
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--ai-muted); margin: 0; }

/* ---------- Stats ---------- */
.stats-band { background: var(--ai-navy); color: #fff; border-radius: var(--radius-xl); padding: 56px 40px; position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 200px at 10% 0%, rgba(37, 99, 235, .4), transparent), radial-gradient(500px 200px at 90% 100%, rgba(124, 58, 237, .4), transparent); }
.stat-item { position: relative; text-align: center; }
.stat-value { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; background: linear-gradient(135deg, #fff, #A5B4FC); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: rgba(255, 255, 255, .7); font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testimonial-card { padding: 28px; height: 100%; display: flex; flex-direction: column; }
.testimonial-card blockquote { font-size: .98rem; color: #334155; flex: 1; margin: 14px 0 20px; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; }
.testimonial-card .who strong { display: block; font-size: .95rem; }
.testimonial-card .who small { color: var(--ai-muted); }
.quote-icon { font-size: 1.6rem; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- Pricing ---------- */
.pricing-card { padding: 36px 30px; height: 100%; position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--ai-border); transition: all .3s var(--ease); }
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pricing-card.popular { background: linear-gradient(#fff, #fff) padding-box, var(--grad-tri) border-box; border: 2px solid transparent; box-shadow: var(--shadow-lg); }
.pricing-card .popular-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad-main); color: #fff; font-size: .75rem; font-weight: 700; padding: .35rem 1rem; border-radius: 30px; white-space: nowrap; }
.pricing-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.pricing-card .plan-tag { color: var(--ai-muted); font-size: .9rem; }
.plan-price { font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; color: var(--ai-navy); margin: 18px 0 4px; line-height: 1; }
.plan-price small { font-size: .95rem; font-weight: 500; color: var(--ai-muted); }
.plan-features { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.plan-features li { display: flex; gap: .65rem; align-items: flex-start; padding: .45rem 0; color: #334155; }
.plan-features li i { color: var(--ai-success); margin-top: 5px; font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--ai-border); border-radius: var(--radius) !important; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq .accordion-button { font-weight: 600; font-family: var(--font-body); padding: 1.1rem 1.3rem; color: var(--ai-navy); box-shadow: none; background: #fff; }
.faq .accordion-button:not(.collapsed) { color: var(--ai-purple); background: var(--grad-soft); }
.faq .accordion-body { color: var(--ai-muted); padding: 1rem 1.3rem 1.3rem; }

/* ---------- CTA ---------- */
.cta-band { border-radius: var(--radius-xl); padding: 64px 40px; color: #fff; text-align: center; background: var(--grad-tri); position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.cta-band::before { width: 320px; height: 320px; top: -140px; left: -80px; }
.cta-band::after { width: 240px; height: 240px; bottom: -120px; right: -40px; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.7rem); position: relative; }
.cta-band p { color: rgba(255, 255, 255, .85); position: relative; max-width: 620px; margin: 0 auto 26px; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ai-navy); color: rgba(255, 255, 255, .7); padding: 80px 0 28px; position: relative; overflow: hidden; margin-top: 40px; }
.footer-glow { position: absolute; width: 600px; height: 300px; top: -150px; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(124, 58, 237, .35), transparent 70%); pointer-events: none; }
.footer-tagline { color: #fff; font-weight: 600; margin-bottom: 6px; }
.footer-text { font-size: .9rem; max-width: 340px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: .9rem; }
.footer-links a { color: rgba(255, 255, 255, .65); }
.footer-links a:hover { color: #fff; padding-left: 3px; }
.footer-contact li { display: flex; gap: .5rem; align-items: baseline; word-break: break-word; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .07); color: #fff; transition: all .25s; }
.footer-social a:hover { background: var(--grad-main); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 56px; padding-top: 24px; font-size: .85rem; }
.footer-flow i { font-size: .7rem; margin: 0 .3rem; opacity: .6; }

/* ---------- Mobile bottom nav ---------- */
.mobile-bottom-nav {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 1030; display: flex; justify-content: space-around; align-items: center;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); border-radius: 22px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); box-shadow: 0 10px 40px rgba(15, 23, 42, .18); border: 1px solid var(--ai-border);
}
.mobile-bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600; color: var(--ai-muted); padding: 4px 0; }
.mobile-bottom-nav a i { font-size: 1.05rem; }
.mobile-bottom-nav a.active { color: var(--ai-blue); }
.mobile-bottom-nav .mbn-edit-icon { width: 44px; height: 44px; margin-top: -24px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-main); box-shadow: var(--shadow-glow); font-size: 1.1rem; }

/* ---------- Toasts ---------- */
.aipics-toasts { top: calc(var(--nav-h) + 8px); right: 0; z-index: 2000; }
.aipics-toast { border: 0; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; background: #fff; min-width: 300px; }
.aipics-toast .toast-body { display: flex; gap: 12px; align-items: center; padding: 14px 16px; font-weight: 500; font-size: .92rem; }
.aipics-toast .t-icon { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.aipics-toast.t-success .t-icon { background: var(--ai-success); }
.aipics-toast.t-error .t-icon { background: var(--ai-danger); }
.aipics-toast.t-warning .t-icon { background: var(--ai-warning); }
.aipics-toast.t-info .t-icon { background: var(--grad-main); }
.aipics-toast .t-bar { height: 3px; background: var(--grad-tri); animation: toastbar 4.5s linear forwards; transform-origin: left; }
@keyframes toastbar { to { transform: scaleX(0); } }

/* ---------- Modals ---------- */
.glass-modal { border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-backdrop.show { opacity: .55; }
.search-input-wrap { position: relative; }
.search-input-wrap i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ai-muted); }
.search-input-wrap input { padding-left: 48px; border-radius: 14px; border: 2px solid var(--ai-border); }
.search-input-wrap input:focus { border-color: var(--ai-purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.search-group-title { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ai-muted); margin: 14px 0 6px; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ai-navy); }
.search-item:hover { background: var(--grad-soft); color: var(--ai-purple); }
.search-item img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.search-item .si-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-main); }
.search-item small { display: block; color: var(--ai-muted); }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 12px; border: 1.5px solid var(--ai-border); padding: .7rem 1rem; font-size: .95rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--ai-purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--ai-danger); }
.form-label { font-weight: 500; font-size: .9rem; color: #334155; margin-bottom: .4rem; }
.form-floating > .form-control, .form-floating > .form-select { height: calc(3.6rem + 2px); }
.form-floating > label { color: var(--ai-muted); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #94A3B8; z-index: 4; }
.input-icon > .form-control { padding-left: 44px; }
.toggle-pass { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #94A3B8; z-index: 4; }
.form-check-input:checked { background-color: var(--ai-purple); border-color: var(--ai-purple); }
.form-range::-webkit-slider-thumb { background: var(--ai-purple); }
.form-range::-moz-range-thumb { background: var(--ai-purple); }
.pass-meter { height: 5px; border-radius: 5px; background: #E2E8F0; overflow: hidden; margin-top: 8px; }
.pass-meter span { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: stretch; }
.auth-side {
    flex: 1; position: relative; overflow: hidden; color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: flex-end;
    background: radial-gradient(600px 400px at 20% 20%, rgba(37, 99, 235, .6), transparent), radial-gradient(600px 400px at 80% 60%, rgba(124, 58, 237, .6), transparent), #0B1024;
}
.auth-side img.auth-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.auth-side .auth-quote { position: relative; max-width: 460px; }
.auth-side h2 { color: #fff; font-size: 2.2rem; }
.auth-form-col { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 1.9rem; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--ai-muted); font-size: .8rem; margin: 20px 0; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: var(--ai-border); }

/* ---------- Dashboard ---------- */
.dash-wrap { display: flex; gap: 28px; padding: 32px 0 60px; }
.dash-sidebar { width: 260px; flex-shrink: 0; }
.dash-sidebar .dash-nav { position: sticky; top: calc(var(--nav-h) + 20px); background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--ai-border); padding: 18px; }
.dash-user { display: flex; align-items: center; gap: 12px; padding: 6px 6px 16px; border-bottom: 1px solid var(--ai-border); margin-bottom: 12px; }
.dash-user strong { display: block; font-size: .95rem; line-height: 1.3; }
.dash-nav a, .dash-nav button.dash-link {
    display: flex; align-items: center; gap: 12px; padding: .7rem .85rem; border-radius: 12px; color: #475569; font-weight: 500; font-size: .92rem;
    width: 100%; border: 0; background: none; text-align: left;
}
.dash-nav a i, .dash-nav button.dash-link i { width: 20px; text-align: center; }
.dash-nav a:hover, .dash-nav button.dash-link:hover { background: #F1F5F9; color: var(--ai-purple); }
.dash-nav a.active { background: var(--grad-main); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }
.dash-main { flex: 1; min-width: 0; }
.dash-title { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.dash-title h1 { font-size: 1.7rem; margin: 0; }
.stat-card { padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--ai-border); display: flex; gap: 16px; align-items: center; height: 100%; }
.stat-card .sc-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; flex-shrink: 0; }
.stat-card .sc-value { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--ai-navy); }
.stat-card .sc-label { color: var(--ai-muted); font-size: .85rem; }
.g-blue { background: var(--grad-main); }
.g-cyan { background: var(--grad-alt); }
.g-green { background: linear-gradient(135deg, #10B981, #06B6D4); }
.g-orange { background: linear-gradient(135deg, #F59E0B, #F97316); }
.g-pink { background: linear-gradient(135deg, #EC4899, #7C3AED); }
.g-navy { background: linear-gradient(135deg, #1E293B, #334155); }
.panel { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--ai-border); padding: 24px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.panel-title h2 { font-size: 1.1rem; margin: 0; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--ai-muted); }
.empty-state .es-icon { width: 80px; height: 80px; border-radius: 24px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--ai-purple); background: var(--grad-soft); }
.empty-state h3 { font-size: 1.15rem; color: var(--ai-navy); }

/* Tables */
.table-modern { margin: 0; }
.table-modern thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ai-muted); font-weight: 600; border-bottom: 1px solid var(--ai-border); background: #F8FAFC; padding: .85rem 1rem; white-space: nowrap; }
.table-modern td { padding: .9rem 1rem; vertical-align: middle; border-color: #F1F5F9; font-size: .92rem; }
.table-modern tbody tr:hover { background: #FAFAFF; }
.table-thumb { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }

/* Soft badges */
.badge { font-weight: 600; border-radius: 30px; padding: .38em .8em; font-size: .72rem; }
.badge-soft-success { background: #D1FAE5; color: #047857; }
.badge-soft-warning { background: #FEF3C7; color: #B45309; }
.badge-soft-danger { background: #FEE2E2; color: #B91C1C; }
.badge-soft-info { background: #CFFAFE; color: #0E7490; }
.badge-soft-primary { background: #DBEAFE; color: #1D4ED8; }
.badge-soft-secondary { background: #F1F5F9; color: #475569; }
.badge-soft-purple { background: #EDE9FE; color: #6D28D9; }

/* ---------- Creations grid (masonry) ---------- */
.masonry { column-count: 3; column-gap: 20px; }
.masonry-item { break-inside: avoid; margin-bottom: 20px; }
.creation-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--ai-border); }
.creation-card .cc-img { position: relative; display: block; }
.creation-card .cc-img img { width: 100%; display: block; }
.creation-card .cc-body { padding: 14px 16px; }
.creation-card h3 { font-size: .98rem; margin: 0 0 4px; }
.creation-card .cc-meta { font-size: .78rem; color: var(--ai-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.creation-card .cc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.creation-card .cc-actions .btn { padding: .35rem .6rem; font-size: .78rem; }

/* ---------- Shop filters ---------- */
.filter-panel { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--ai-border); padding: 22px; position: sticky; top: calc(var(--nav-h) + 20px); }
.filter-panel h3 { font-size: .95rem; margin: 18px 0 10px; }
.filter-panel h3:first-child { margin-top: 0; }
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list a { display: flex; justify-content: space-between; padding: .45rem .65rem; border-radius: 10px; color: #475569; font-size: .9rem; }
.filter-list a:hover { background: #F1F5F9; color: var(--ai-purple); }
.filter-list a.active { background: var(--grad-soft); color: var(--ai-purple); font-weight: 600; }
.filter-list .cnt { font-size: .75rem; color: var(--ai-muted); }
.chip-filter { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 30px; border: 1px solid var(--ai-border); background: #fff; color: #475569; font-size: .85rem; font-weight: 500; white-space: nowrap; transition: all .2s; }
.chip-filter:hover { border-color: var(--ai-purple); color: var(--ai-purple); }
.chip-filter.active { background: var(--grad-main); color: #fff; border-color: transparent; }
.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.toolbar-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }

/* ---------- Product detail ---------- */
.pd-gallery { border-radius: var(--radius-xl); overflow: hidden; background: #fff; border: 1px solid var(--ai-border); }
.pd-gallery .carousel-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pd-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; width: 80px; height: 64px; background: none; opacity: .65; transition: all .2s; }
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--ai-purple); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: .4rem 0; display: flex; gap: .6rem; }
.feature-list li i { color: var(--ai-success); margin-top: 5px; }
.qty-input { display: inline-flex; align-items: center; border: 1.5px solid var(--ai-border); border-radius: 12px; overflow: hidden; background: #fff; }
.qty-input button { border: 0; background: none; width: 38px; height: 42px; color: var(--ai-navy); }
.qty-input button:hover { background: #F1F5F9; }
.qty-input input { width: 46px; border: 0; text-align: center; font-weight: 600; outline: none; -moz-appearance: textfield; }
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.5rem; color: #CBD5E1; cursor: pointer; transition: color .15s; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #F59E0B; }
.hscroll { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 280px; }

/* ---------- Cart ---------- */
.cart-line { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid #F1F5F9; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 88px; height: 72px; border-radius: 12px; object-fit: cover; }
.cart-line .cl-info { flex: 1; min-width: 0; }
.cart-line h3 { font-size: 1rem; margin: 0 0 2px; }
.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; color: #475569; }
.summary-row.total { border-top: 1px dashed var(--ai-border); margin-top: 8px; padding-top: 14px; font-weight: 700; color: var(--ai-navy); font-size: 1.15rem; }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--ai-border); border-radius: 14px; cursor: pointer; transition: all .2s; margin-bottom: 10px; }
.pay-option:hover { border-color: #C4B5FD; }
.pay-option input { accent-color: var(--ai-purple); width: 18px; height: 18px; }
.pay-option.selected { border-color: var(--ai-purple); background: var(--grad-soft); }
.pay-option .po-icon { width: 42px; height: 42px; border-radius: 12px; background: #F1F5F9; display: flex; align-items: center; justify-content: center; color: var(--ai-purple); }
.demo-note { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; border-radius: 12px; padding: 12px 14px; font-size: .85rem; }
.success-check { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: #fff; background: linear-gradient(135deg, #10B981, #06B6D4); box-shadow: 0 16px 40px rgba(16, 185, 129, .35); animation: pop .5s var(--ease); }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 80% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---------- AI processing overlay ---------- */
.ai-overlay { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; background: rgba(11, 16, 36, .72); backdrop-filter: blur(8px); padding: 20px; }
.ai-overlay.show { display: flex; animation: fadein .25s; }
@keyframes fadein { from { opacity: 0; } }
.ai-overlay-card { width: 100%; max-width: 440px; padding: 36px 32px; text-align: center; border-radius: var(--radius-xl); background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-lg); }
.ai-orb { width: 96px; height: 96px; margin: 0 auto 22px; position: relative; }
.ai-orb::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #2563EB, #7C3AED, #06B6D4, #2563EB); animation: spin 1.4s linear infinite; }
.ai-orb::after { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.ai-orb i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; font-size: 2rem; color: var(--ai-purple); animation: pulse 1.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.15); opacity: .7; } }
.ai-steps { list-style: none; padding: 0; margin: 20px 0 0; text-align: left; }
.ai-steps li { display: flex; align-items: center; gap: 10px; padding: .35rem 0; color: #94A3B8; font-size: .9rem; transition: color .3s; }
.ai-steps li i { width: 18px; text-align: center; }
.ai-steps li.done { color: var(--ai-success); }
.ai-steps li.current { color: var(--ai-purple); font-weight: 600; }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, #EEF2F7 25%, #F8FAFC 37%, #EEF2F7 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
img.lazy-fade { opacity: 0; transition: opacity .5s; }
img.lazy-fade.loaded { opacity: 1; }

/* ---------- Pagination ---------- */
.aipics-pagination { gap: 6px; }
.aipics-pagination .page-link { border-radius: 12px !important; border: 1px solid var(--ai-border); color: #475569; min-width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.aipics-pagination .page-item.active .page-link { background: var(--grad-main); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .3); }

/* ---------- Content pages ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose p, .prose li { color: #475569; }
.about-img { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.contact-info-card .ci-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--grad-main); flex-shrink: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}
