:root {
    --sv-primary: #6c4cff;
    --sv-primary-dark: #5334d8;
    --sv-dark: #12131a;
    --sv-muted: #6b7280;
    --sv-soft: #f7f7fb;
    --sv-border: #e9e9ef;
}

* { box-sizing: border-box; }

body {
    font-family: "Inter", sans-serif;
    color: var(--sv-dark);
    background: #fff;
}

a { text-decoration: none; }

.site-navbar {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(20,20,30,.06);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--sv-dark);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--sv-primary), #a76cff);
    box-shadow: 0 8px 24px rgba(108,76,255,.25);
}

.brand-accent { color: var(--sv-primary); }

.nav-link {
    color: #4b5563;
    font-weight: 600;
    font-size: .94rem;
}
.nav-link:hover { color: var(--sv-primary); }

.btn-primary {
    --bs-btn-bg: var(--sv-primary);
    --bs-btn-border-color: var(--sv-primary);
    --bs-btn-hover-bg: var(--sv-primary-dark);
    --bs-btn-hover-border-color: var(--sv-primary-dark);
}

.hero-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(108,76,255,.12), transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(167,108,255,.10), transparent 28%),
        #fff;
}

.hero-badge, .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--sv-primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-search {
    max-width: 720px;
}
.hero-search .input-group {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(20,20,30,.08);
}
.hero-search .form-control,
.hero-search .input-group-text {
    border: 0;
    background: transparent;
}
.hero-search .form-control:focus { box-shadow: none; }

.hero-preview {
    min-height: 410px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(108,76,255,.15);
    filter: blur(50px);
}
.hero-card {
    width: min(100%, 340px);
    position: relative;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 28px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 30px 70px rgba(32,24,72,.15);
    transform: rotate(2deg);
}
.hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sticker-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin: 20px 0;
}
.demo-sticker {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: 20px;
    background: #f5f3ff;
}
.sticker-orbit {
    position: absolute;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(20,20,30,.12);
}
.orbit-one { top: 40px; left: 5%; transform: rotate(-10deg); }
.orbit-two { right: 4%; top: 100px; transform: rotate(9deg); }
.orbit-three { bottom: 35px; left: 10%; transform: rotate(-7deg); }

.bg-soft { background: var(--sv-soft); }

.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }

.category-card {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--sv-border);
    border-radius: 20px;
    color: var(--sv-dark);
    background: #fff;
    transition: .2s ease;
}
.category-card:hover {
    color: var(--sv-primary);
    border-color: rgba(108,76,255,.25);
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(20,20,30,.07);
}
.category-icon { font-size: 2.25rem; margin-bottom: 8px; }
.category-card small { color: var(--sv-muted); margin-top: 3px; text-align: center; }

.pack-card {
    overflow: hidden;
    border: 1px solid var(--sv-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(20,20,30,.04);
}
.pack-preview {
    min-height: 220px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    padding: 25px;
    place-items: center;
    background: linear-gradient(135deg,#f7f5ff,#fbfbff);
}
.pack-preview span {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #fff;
    font-size: 2.6rem;
    box-shadow: 0 8px 20px rgba(20,20,30,.06);
}

.maker-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 38px;
    border-radius: 28px;
    background: #f5f3ff;
    border: 1px solid #e7e1ff;
}

.site-footer {
    color: #fff;
    background: #11131a;
}
.site-footer h6 {
    font-weight: 700;
    margin-bottom: 14px;
}
.site-footer a:not(.navbar-brand) {
    display: block;
    color: rgba(255,255,255,.65);
    margin-bottom: 9px;
}
.site-footer a:not(.navbar-brand):hover { color: #fff; }

@media (max-width: 991.98px) {
    .navbar-nav { padding: 12px 0; }
    .hero-preview { min-height: 350px; }
}
@media (max-width: 767.98px) {
    .maker-cta { flex-direction: column; align-items: flex-start; padding: 28px; }
    .hero-section .display-4 { font-size: 2.5rem; }
    .sticker-orbit { display: none; }
}

/* Part 2 */
.category-card-lg { min-height: 205px; }
.category-count {
    margin-top: 12px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--sv-primary);
    background: #f2efff;
    padding: 5px 10px;
    border-radius: 999px;
}
.search-page-form { max-width: 760px; }
.search-page-form .input-group {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(20,20,30,.08);
}
.search-page-form .form-control,
.search-page-form .input-group-text {
    border: 0;
    background: transparent;
}
.search-page-form .form-control:focus { box-shadow: none; }
.empty-icon { font-size: 4rem; margin-bottom: 12px; }
.pack-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 26px;
    border: 1px solid var(--sv-border);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(20,20,30,.08);
}
.showcase-sticker {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2rem, 5vw, 3.5rem);
    border-radius: 22px;
    background: #f7f5ff;
}
.pack-meta div {
    display: flex;
    flex-direction: column;
}
.pack-meta strong { font-size: 1.15rem; }
.pack-meta span { color: var(--sv-muted); font-size: .78rem; }
.sticker-tile {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--sv-border);
    border-radius: 20px;
    background: #fafaff;
}
.sticker-tile span { font-size: clamp(2.5rem, 6vw, 4rem); }
.sticker-tile img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 575.98px) {
    .pack-showcase { grid-template-columns: repeat(3, 1fr); padding: 16px; gap: 9px; }
    .showcase-sticker { border-radius: 16px; }
}

/* Part 5: pack detail + download/integration UI */
.pack-showcase { display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:28px;border:1px solid var(--sv-border);border-radius:28px;background:linear-gradient(135deg,#f7f5ff,#fff);box-shadow:0 20px 50px rgba(20,20,30,.06); }
.showcase-sticker { aspect-ratio:1;display:flex;align-items:center;justify-content:center;border-radius:20px;background:#fff;box-shadow:0 8px 20px rgba(20,20,30,.06);overflow:hidden; }
.showcase-sticker img { width:78%;height:78%;object-fit:contain; }
.showcase-sticker span { font-size:clamp(2rem,5vw,3.2rem); }
.sticker-detail-grid .sticker-tile { aspect-ratio:1;display:flex;align-items:center;justify-content:center;border:1px solid var(--sv-border);border-radius:20px;background:linear-gradient(135deg,#faf9ff,#fff);overflow:hidden;transition:.18s ease; }
.sticker-detail-grid .sticker-tile:hover { transform:translateY(-3px);box-shadow:0 12px 28px rgba(20,20,30,.08); }
.sticker-tile img { width:84%;height:84%;object-fit:contain; }
.sticker-tile span { font-size:3.4rem; }
.pack-meta div { display:flex;flex-direction:column;line-height:1.15; }
.pack-meta strong { font-size:1.05rem; }
.pack-meta span { color:var(--sv-muted);font-size:.7rem;margin-top:3px; }
.install-note { max-width:650px;padding:12px 14px;border-radius:13px;background:#fff;border:1px solid var(--sv-border);color:#737681;font-size:.72rem;line-height:1.55; }
@media(max-width:575.98px){.pack-showcase{grid-template-columns:repeat(3,1fr);padding:16px;gap:9px;border-radius:20px}.showcase-sticker{border-radius:14px}.sticker-tile span{font-size:2.6rem}.install-note{font-size:.68rem}}
