:root {
    --bg: #f2f3f5;
    --surface: #ffffff;
    --soft: #f8f8fa;
    --text: #202124;
    --muted: #6f7280;
    --line: #e5e7eb;
    --dark: #24262c;
    --dark-2: #1d1f24;
    --green: #82b440;
    --green-dark: #5d8f24;
    --blue: #4da3ff;
    --radius: 18px;
    --shadow: 0 18px 38px rgba(18, 25, 38, .08);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.market-topbar {
    background: #8bc34a;
}

.main-header {
    z-index: 1040;
}

.marketplace-navbar {
    background: var(--dark);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.marketplace-navbar .navbar-brand {
    color: #fff;
    font-weight: 700;
}

.marketplace-navbar .brand-sep {
    font-size: 1.05rem;
    letter-spacing: .02em;
}

.marketplace-navbar .nav-link {
    color: rgba(255,255,255,.85);
    font-size: .94rem;
    padding: 1.25rem .85rem;
}

.marketplace-navbar .nav-link:hover,
.marketplace-navbar .nav-link:focus {
    color: #fff;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

.nav-actions {
    justify-content: flex-end;
}

.language-switcher .btn {
    min-width: 84px;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    object-fit: cover;
}

.home-hero,
.market-item-card,
.category-box,
.feature-intro-card,
.brand-banner,
.footer-cta,
.footer-main,
.promo-gallery,
.creator-highlight,
.icon-feature-card,
.feature-intro-card,
.card,
.category-box-inner {
    border-radius: var(--radius);
}

.home-hero {
    background: linear-gradient(180deg, #fdfdfd 0%, #f4f5f8 100%);
    box-shadow: var(--shadow);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-eyebrow,
.section-kicker {
    color: var(--green-dark);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hero-title,
.section-title {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.14;
    font-weight: 700;
    color: #22252d;
}

.section-title {
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

.hero-subtitle,
.section-copy {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.widest {
    max-width: 780px;
}

.search-panel {
    background: #fff;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(13, 16, 24, .04);
}

.hero-showcase {
    background: linear-gradient(135deg, #faf2e6, #f5f7fb 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    grid-template-rows: 210px 170px;
    gap: 14px;
    height: 100%;
}

.hero-shot {
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.06);
    background-size: cover;
    background-position: center;
    box-shadow: 0 14px 26px rgba(21, 28, 38, .1);
}

.hero-shot-lg {
    grid-row: 1 / span 2;
    background: linear-gradient(135deg, #ff9a3d, #7c4dff 70%);
    position: relative;
}

.hero-shot-lg::before,
.hero-shot-sm::before,
.hero-shot-sm.alt::before,
.promo-window::before,
.showcase-strip::before,
.banner-card::before,
.footer-cta-shot::before,
.category-preview::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.hero-shot-lg::before {
    background: linear-gradient(180deg, rgba(255,255,255,.15), rgba(0,0,0,.08)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="800"><rect width="100%" height="100%" fill="none"/><g fill="white" fill-opacity="0.18"><circle cx="150" cy="150" r="80"/><circle cx="620" cy="200" r="120"/><rect x="80" y="500" width="520" height="120" rx="24"/></g></svg>') center/cover no-repeat;
}

.hero-shot-sm {
    background: linear-gradient(135deg, #303f9f, #00bcd4);
}

.hero-shot-sm::before {
    background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(0,0,0,.05)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500"><g fill="white" fill-opacity="0.18"><rect x="40" y="50" width="420" height="90" rx="18"/><rect x="40" y="180" width="320" height="200" rx="18"/></g></svg>') center/cover no-repeat;
}

.hero-shot-sm.alt {
    background: linear-gradient(135deg, #17181c, #4f5b66);
}

.hero-shot-sm.alt::before {
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(0,0,0,.06)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500"><g fill="white" fill-opacity="0.16"><rect x="50" y="70" width="180" height="180" rx="18"/><rect x="260" y="70" width="180" height="280" rx="18"/></g></svg>') center/cover no-repeat;
}

.category-box {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.category-box-inner {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-box h3 {
    font-size: 1.4rem;
    margin-bottom: .55rem;
}

.category-box p {
    color: var(--muted);
    margin-bottom: .9rem;
}

.category-links {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.category-links a {
    color: #4d7d1a;
    font-size: .92rem;
    font-weight: 700;
}

.category-preview {
    height: 120px;
    border-radius: 14px;
    margin-top: auto;
    margin-bottom: .9rem;
}

.category-preview::before {
    background: linear-gradient(135deg, rgba(255,255,255,.2), rgba(0,0,0,.06)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="640" height="280"><g fill="white" fill-opacity="0.22"><rect x="20" y="30" width="180" height="220" rx="18"/><rect x="220" y="30" width="390" height="70" rx="16"/><rect x="220" y="120" width="290" height="130" rx="16"/></g></svg>') center/cover no-repeat;
}

.category-style-1 .category-preview { background: linear-gradient(135deg, #7643d4, #5e35b1); }
.category-style-2 .category-preview { background: linear-gradient(135deg, #ff5a7a, #ff9f1c); }
.category-style-3 .category-preview { background: linear-gradient(135deg, #0091ea, #00c2ff); }
.category-style-4 .category-preview { background: linear-gradient(135deg, #00a86b, #5bc36b); }
.category-style-5 .category-preview { background: linear-gradient(135deg, #3949ab, #7e57c2); }
.category-style-6 .category-preview { background: linear-gradient(135deg, #ff6d00, #ffb300); }

.category-count {
    font-size: .86rem;
    color: #6b7280;
    font-weight: 700;
}

.promo-gallery,
.brand-banner,
.footer-cta,
.footer-main,
.creator-highlight,
.feature-intro-card,
.feature-intro-card.lighter,
.showcase-strip,
.brand-banner-copy,
.brand-banner-visual {
    background: #fff;
    box-shadow: var(--shadow);
}

.promo-gallery {
    padding: 1rem;
    overflow: hidden;
}

.promo-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.promo-window {
    min-height: 190px;
    border-radius: 16px;
}

.promo-window.one {
    grid-column: span 2;
    background: linear-gradient(135deg, #1677ff, #0b4f9c);
}
.promo-window.two { background: linear-gradient(135deg, #6f35ff, #1b145f); }
.promo-window.three { background: linear-gradient(135deg, #ffb703, #fb8500); }

.promo-window::before {
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="800" height="360"><g fill="white" fill-opacity="0.18"><rect x="30" y="30" width="290" height="140" rx="18"/><rect x="350" y="30" width="420" height="60" rx="16"/><rect x="350" y="120" width="220" height="190" rx="16"/><rect x="590" y="120" width="180" height="110" rx="16"/></g></svg>') center/cover no-repeat;
}

.feature-intro-card,
.creator-highlight {
    padding: 2rem;
    height: 100%;
}

.feature-intro-card h3,
.creator-highlight h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.feature-intro-card p,
.creator-highlight p {
    color: var(--muted);
    line-height: 1.8;
}

.feature-intro-card.lighter {
    background: linear-gradient(180deg, #fefefe, #f7f8fb);
}

.market-item-card {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.market-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, .14);
}

.market-thumb-wrap {
    display: block;
    background: #f4f5f8;
}

.market-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.market-item-body {
    padding: 1rem 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: .72rem;
    height: 100%;
}

.market-item-body h3 {
    font-size: 1.05rem;
    margin: 0;
}

.market-item-body h3 a {
    color: #1f2937;
}

.market-item-body p {
    color: var(--muted);
    margin: 0;
    font-size: .94rem;
    line-height: 1.6;
}

.item-meta-row,
.item-rating-row {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
}

.item-badge {
    display: inline-flex;
    align-items: center;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: #eef7e1;
    color: #537f18;
    font-weight: 700;
    font-size: .78rem;
}

.item-price {
    color: #111827;
    font-weight: 800;
}

.item-rating-row {
    color: #f59e0b;
    font-size: .8rem;
}

.brand-banner {
    background: linear-gradient(180deg, #f4ede6, #f5efe8);
    padding: 2rem;
    box-shadow: none;
    border-radius: 24px;
}

.brand-banner-copy,
.brand-banner-visual {
    background: transparent;
    box-shadow: none;
}

.brand-banner-visual {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.banner-card {
    min-height: 155px;
    border-radius: 18px;
}

.banner-card.tone-1 { background: linear-gradient(135deg, #8e24aa, #ff7043); }
.banner-card.tone-2 { background: linear-gradient(135deg, #ff8f00, #ffb300); }
.banner-card.tone-3 { background: linear-gradient(135deg, #0ea5e9, #4f46e5); }
.banner-card.tone-4 { background: linear-gradient(135deg, #26a69a, #7cb342); }

.banner-card::before,
.footer-cta-shot::before,
.showcase-strip::before {
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.05)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><g fill="white" fill-opacity="0.18"><rect x="24" y="28" width="352" height="68" rx="16"/><rect x="24" y="120" width="180" height="220" rx="16"/><rect x="220" y="120" width="156" height="110" rx="16"/></g></svg>') center/cover no-repeat;
}

.showcase-strip {
    min-height: 260px;
    border-radius: 24px;
    background: linear-gradient(135deg, #6930c3, #4361ee 55%, #4cc9f0);
    overflow: hidden;
}

.icon-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.icon-feature-card {
    padding: 1.25rem;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: .9rem;
    background: #fff;
}

.icon-feature-card i,
.creator-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef7e2;
    color: var(--green-dark);
    font-size: 1.2rem;
    flex: 0 0 50px;
}

.filter-pills .btn {
    min-height: 38px;
}

.compact-card .market-thumb {
    height: 170px;
}

.footer-market {
    background: #13161d;
}

.footer-cta {
    background: #ece2d5;
    border-radius: 0;
    box-shadow: none;
}

.footer-cta-brand {
    color: #121212;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.footer-cta h2 {
    color: #13161d;
}

.footer-cta-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.footer-cta-shot {
    min-height: 160px;
    border-radius: 18px;
}

.soft-1 { background: linear-gradient(135deg, #ff6b6b, #ffd166); }
.soft-2 { background: linear-gradient(135deg, #4361ee, #4cc9f0); }
.soft-3 { background: linear-gradient(135deg, #8338ec, #ff006e); }
.soft-4 { background: linear-gradient(135deg, #06d6a0, #73d13d); }
.soft-5 { background: linear-gradient(135deg, #264653, #2a9d8f); }

.footer-main {
    background: #14181f;
    border-radius: 0;
    box-shadow: none;
}

.footer-title {
    color: #fff;
    margin-bottom: 1rem;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li + li {
    margin-top: .72rem;
}

.footer-links a,
.footer-contact-item {
    color: #aeb7c5;
    font-size: .94rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact-item {
    margin-bottom: 1rem;
}

.footer-contact-label {
    color: #fff;
    font-size: .84rem;
    margin-bottom: .15rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-meta {
    color: #8892a6;
}

.detail-image {
    height: 420px;
    object-fit: cover;
}

.theme-sticky-card {
    top: 90px;
}

.timeline-list {
    border-left: 2px solid #dbe3f4;
    padding-left: 1rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1rem;
}

.timeline-item:before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d6efd;
    position: absolute;
    left: -23px;
    top: 6px;
}

.object-fit-cover {
    object-fit: cover;
}

.preview-btn-group .btn {
    flex: 1 1 auto;
}

.admin-body {
    background: #eef2f7;
}

.admin-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    box-shadow: 18px 0 32px rgba(15, 23, 42, .10);
}

.admin-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    font-size: 1.1rem;
}

.admin-user {
    background: rgba(255,255,255,.02);
}

.admin-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 1.6rem;
    flex: 0 0 46px;
}

.admin-nav-title {
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .4rem .8rem;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: #cbd5e1;
    border-radius: 14px;
    padding: .82rem .95rem;
    font-weight: 600;
    transition: all .2s ease;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,.07);
    color: #fff;
    transform: translateX(2px);
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(245,158,11,.20), rgba(249,115,22,.22));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .16);
}

.admin-content {
    min-width: 0;
    background: #f3f6fb;
}

.admin-topbar {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-page-kicker {
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .15rem;
}

.admin-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
}

.admin-page-wrap {
    padding-bottom: 2rem;
}

.admin-content .card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.admin-content .table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: .88rem;
    border-bottom-width: 1px;
}

.admin-content .table > :not(caption) > * > * {
    padding: .95rem 1rem;
}

.stat-card {
    border: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, #1d4ed8, #312e81);
    color: #fff;
    box-shadow: 0 .9rem 1.4rem rgba(37, 99, 235, .18);
}

.stat-card h2 {
    margin-top: .5rem;
    font-size: 2rem;
}

.admin-mini-card {
    border: 1px solid var(--line);
    padding: 1.2rem;
    border-radius: 16px;
    background: #fff;
}

.admin-mini-card .value {
    font-size: 1.7rem;
    font-weight: 800;
    color: #111827;
}

.admin-mini-card .label {
    color: #6b7280;
    font-size: .92rem;
}

.admin-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #111827;
    font-weight: 700;
    background: #fff;
}

.admin-quick-link:hover {
    border-color: #d1d5db;
    color: #111827;
}

@media (max-width: 1199.98px) {
    .marketplace-navbar .nav-link {
        padding: .85rem .2rem;
    }
}

@media (max-width: 991.98px) {
    .detail-image {
        height: 260px;
    }

    .hero-grid,
    .promo-gallery-grid,
    .brand-banner-visual,
    .footer-cta-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .icon-feature-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .theme-sticky-card {
        top: 0;
    }

    .nav-actions {
        margin-top: 1rem;
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .hero-grid,
    .promo-gallery-grid,
    .brand-banner-visual,
    .footer-cta-gallery {
        grid-template-columns: 1fr;
    }

    .hero-shot-lg {
        grid-row: auto;
        min-height: 240px;
    }

    .market-thumb {
        height: 190px;
    }

    .hero-title,
    .section-title {
        font-size: 1.7rem;
    }

    .brand-banner,
    .feature-intro-card,
    .creator-highlight {
        padding: 1.3rem;
    }
}

.item-page-wrap {
    max-width: 1320px;
    margin: 0 auto;
}

.item-breadcrumb {
    font-size: .92rem;
}

.item-breadcrumb a {
    color: var(--green-dark);
}

.item-hero-card {
    background: linear-gradient(180deg, #ffffff, #f7f8fb);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.item-kicker {
    color: var(--muted);
    font-size: .92rem;
    font-weight: 600;
}

.item-title {
    font-size: clamp(1.9rem, 3.2vw, 2.55rem);
    line-height: 1.18;
    font-weight: 700;
    color: #1c1f26;
}

.item-subtitle {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 840px;
}

.item-top-meta {
    color: #4b5563;
}

.item-rating-stars {
    color: #ffb400;
    display: inline-flex;
    gap: 2px;
}

.item-rating-number {
    font-weight: 700;
}

.item-bullet-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
}

.item-bullet-list span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .55rem .9rem;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.item-bullet-list i {
    color: var(--green-dark);
}

.item-stat-boxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 1rem;
    min-width: 280px;
}

.item-stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
}

.item-stat-card strong {
    display: block;
    font-size: 1.2rem;
    color: #1f2937;
}

.item-stat-card span {
    display: block;
    color: var(--muted);
    font-size: .84rem;
    margin-top: .2rem;
}

.item-gallery-card,
.item-content-card,
.item-license-card,
.item-trust-card,
.item-author-card,
.item-details-card,
.item-tags-card,
.promo-image-card {
    border-radius: 24px;
}

.item-main-preview {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f6f8fb;
}

.item-main-image,
.promo-image {
    display: block;
    width: 100%;
    object-fit: cover;
}

.item-main-image {
    min-height: 420px;
    max-height: 620px;
}

.item-thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .9rem;
}

.item-thumb {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #f7f8fb;
}

.item-thumb img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.item-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22252d;
    margin-bottom: 1rem;
}

.item-copy p:last-child {
    margin-bottom: 0;
}

.item-feature-list {
    margin: 0;
    padding-left: 1.2rem;
}

.item-feature-list li {
    margin-bottom: .7rem;
    color: #3d4350;
    line-height: 1.7;
}

.item-feature-list.columns-2 {
    columns: 2;
    column-gap: 2rem;
}

.item-license-card .license-price-row {
    display: flex;
    align-items: baseline;
    gap: .6rem;
}

.license-price {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
}

.license-old-price {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.license-sales strong,
.author-meta-grid strong {
    display: block;
    font-size: 1.05rem;
}

.license-sales span,
.author-meta-grid span,
.purchase-note {
    color: var(--muted);
    font-size: .88rem;
}

.purchase-note {
    background: #f7f8fb;
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: .85rem 1rem;
    line-height: 1.55;
}

.trust-item {
    display: flex;
    gap: .85rem;
    align-items: center;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
}

.trust-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.trust-item:first-child {
    padding-top: 0;
}

.trust-item i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eef5e4;
    color: var(--green-dark);
    font-size: 1.1rem;
}

.author-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #82b440, #4d7b19);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    font-weight: 800;
}

.author-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
}

.author-meta-grid div {
    background: #f7f8fb;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .75rem;
    text-align: center;
}

.details-list {
    display: grid;
    gap: .85rem;
}

.details-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--line);
}

.details-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.details-row span {
    color: var(--muted);
    font-size: .9rem;
}

.details-row strong {
    color: #1f2937;
    text-align: right;
    font-size: .92rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.tag-cloud span {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #f7f8fb;
    color: #374151;
    padding: .45rem .8rem;
    font-size: .85rem;
}

.item-sidebar {
    top: 110px;
}

.admin-form-card {
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.05);
}

.admin-form-section {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.2rem;
    background: #fff;
}

.admin-form-section h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.admin-note {
    color: var(--muted);
    font-size: .9rem;
}

@media (max-width: 991.98px) {
    .item-main-image {
        min-height: 320px;
    }

    .item-feature-list.columns-2 {
        columns: 1;
    }

    .item-sidebar {
        top: 0;
    }
}

@media (max-width: 767.98px) {
    .item-hero-card {
        padding: 1.25rem;
    }

    .item-stat-boxes,
    .author-meta-grid,
    .item-thumb-grid {
        grid-template-columns: 1fr 1fr;
    }

    .details-row {
        flex-direction: column;
    }

    .details-row strong {
        text-align: left;
    }
}

/* v6 item page refinement */
.item-market-shell {
    max-width: 1180px;
}

.item-market-shell .item-breadcrumb {
    font-size: .82rem;
}

.item-market-shell .item-compact-head {
    background: #fff;
    border: 1px solid #d9d9dc;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(18, 25, 38, .04);
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}

.item-market-shell .item-mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    align-items: center;
    color: #666b78;
    font-size: .82rem;
}

.item-market-shell .item-chip {
    display: inline-flex;
    align-items: center;
    padding: .2rem .55rem;
    border: 1px solid #d9d9dc;
    border-radius: 999px;
    background: #f7f8fa;
    color: #394150;
    font-weight: 600;
}

.item-market-shell .item-title.item-title-compact {
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    line-height: 1.25;
    margin-bottom: .45rem;
}

.item-market-shell .item-subtitle.item-subtitle-compact {
    font-size: .96rem;
    color: #667085;
    max-width: 920px;
}

.item-market-shell .item-meta-compact {
    font-size: .9rem;
}

.item-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.item-scroll-col {
    min-width: 0;
}

.item-surface {
    background: #fff;
    border: 1px solid #d9d9dc;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(18, 25, 38, .04);
    margin-bottom: 16px;
}

.item-preview-surface,
.item-text-surface,
.item-price-surface,
.item-info-surface,
.item-author-surface,
.item-details-surface,
.item-tags-surface,
.item-affiliate-surface {
    padding: 14px;
}

.item-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.item-seller-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-seller-avatar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: linear-gradient(135deg, #82b440, #4d7b19);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 800;
}

.item-seller-name {
    font-weight: 700;
    color: #1f2937;
}

.item-seller-mini small {
    color: #6b7280;
}

.item-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.item-envato-btn {
    background: #82b440;
    border: 1px solid #82b440;
    color: #fff;
    font-weight: 700;
}

.item-envato-btn:hover,
.item-envato-btn:focus {
    background: #729d37;
    border-color: #729d37;
    color: #fff;
}

.item-ghost-btn {
    background: #fff;
    border: 1px solid #cfd4dc;
    color: #1f2937;
    font-weight: 600;
}

.item-ghost-btn:hover,
.item-ghost-btn:focus {
    background: #f7f8fa;
    border-color: #b9c0cb;
    color: #111827;
}

.item-market-shell .item-main-preview {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #d9d9dc;
    background: #f7f8fa;
}

.item-market-shell .item-main-image {
    min-height: 320px;
    max-height: 560px;
    object-fit: cover;
}

.item-market-shell .item-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.item-thumb-btn {
    border: 1px solid #d9d9dc;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    padding: 0;
    cursor: pointer;
    transition: .2s ease;
}

.item-thumb-btn img {
    display: block;
    width: 100%;
    height: 104px;
    object-fit: cover;
}

.item-thumb-btn.is-active,
.item-thumb-btn:hover {
    border-color: #82b440;
    box-shadow: 0 0 0 2px rgba(130, 180, 64, .15);
}

.item-caption-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-caption-row strong {
    font-size: 1rem;
    color: #1f2937;
}

.item-caption-row span {
    font-size: .9rem;
    color: #6b7280;
    line-height: 1.65;
}

.item-inline-promo {
    display: block;
    border-radius: 8px;
}

.item-market-shell .item-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #20242c;
    margin-bottom: .95rem;
}

.item-market-shell .item-copy p {
    font-size: .94rem;
    line-height: 1.82;
    color: #444d5c;
    margin-bottom: .75rem;
}

.item-market-shell .item-copy p:last-child {
    margin-bottom: 0;
}

.item-plain-list {
    margin: 0;
    padding-left: 1.15rem;
}

.item-plain-list li {
    font-size: .93rem;
    line-height: 1.8;
    color: #3e4654;
    margin-bottom: .35rem;
}

.item-two-col-list {
    columns: 2;
    column-gap: 30px;
}

.item-stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.item-stack-badges span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid #d9d9dc;
    border-radius: 999px;
    background: #f7f8fa;
    color: #334155;
    padding: .4rem .85rem;
    font-size: .88rem;
    font-weight: 600;
}

.item-version-list .timeline-item {
    background: #fafafa;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    padding: .85rem 1rem;
    margin-bottom: .75rem;
}

.item-version-list .timeline-item:last-child {
    margin-bottom: 0;
}

.item-price-label {
    color: #6b7280;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    margin-bottom: .2rem;
}

.item-market-shell .license-price {
    font-size: 2.15rem;
    font-weight: 800;
}

.item-market-shell .license-old-price {
    font-size: .98rem;
}

.item-market-shell .license-sales strong {
    font-size: 1.15rem;
}

.item-market-shell .license-sales span {
    font-size: .82rem;
    color: #6b7280;
}

.item-market-shell .purchase-note {
    background: #f7f8fa;
    border: 1px dashed #d9d9dc;
    border-radius: 8px;
    font-size: .86rem;
    line-height: 1.65;
}

.item-market-shell .trust-item {
    padding: .7rem 0;
}

.item-market-shell .trust-item i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.item-market-shell .author-badge {
    width: 56px;
    height: 56px;
    border-radius: 12px;
}

.item-market-shell .author-meta-grid {
    grid-template-columns: repeat(3, 1fr);
}

.item-market-shell .author-meta-grid div {
    border-radius: 10px;
}

.item-detail-table .details-row {
    gap: .75rem;
    padding-bottom: .75rem;
    margin-bottom: .05rem;
}

.item-detail-table .details-row span,
.item-detail-table .details-row strong {
    font-size: .86rem;
    line-height: 1.55;
}

.item-detail-table .details-row strong {
    max-width: 58%;
}

.item-tag-cloud span {
    background: #f7f8fa;
    border: 1px solid #d9d9dc;
    color: #475569;
    font-size: .82rem;
}

@media (min-width: 1200px) {
    .item-layout-grid > .item-scroll-col {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 1199.98px) {
    .item-layout-grid {
        grid-template-columns: 1fr;
    }

    .item-hero-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    .item-market-shell .item-main-image {
        min-height: 260px;
    }

    .item-two-col-list {
        columns: 1;
    }

    .item-market-shell .author-meta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767.98px) {
    .item-market-shell .item-compact-head,
    .item-preview-surface,
    .item-text-surface,
    .item-price-surface,
    .item-info-surface,
    .item-author-surface,
    .item-details-surface,
    .item-tags-surface,
    .item-affiliate-surface {
        padding: 12px;
    }

    .item-toolbar-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-hero-actions {
        width: 100%;
    }

    .item-hero-actions .btn {
        flex: 1 1 100%;
    }

    .item-market-shell .item-thumb-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .item-thumb-btn img {
        height: 92px;
    }

    .item-market-shell .author-meta-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .item-detail-table .details-row {
        flex-direction: column;
    }

    .item-detail-table .details-row strong {
        max-width: 100%;
        text-align: left;
    }
}

/* ===== v9 sticky envato-like header patch ===== */
.envato-wide {
    max-width: 1880px;
    margin: 0 auto;
}

.envato-sticky-shell {
    position: sticky;
    top: 0;
    z-index: 1080;
}

.envato-topbar-clone {
    background: #8dd95b;
    border-bottom: 1px solid rgba(0,0,0,.1);
}

.envato-topbar-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.envato-topbar-copy {
    grid-column: 2;
    color: #111216;
    font-size: clamp(1rem, 1.28vw, 1.15rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    text-align: center;
}

.envato-topbar-btn {
    grid-column: 3;
    justify-self: center;
    background: #15171c;
    color: #fff;
    min-width: 190px;
    min-height: 48px;
    padding: .82rem 1.7rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
}

.envato-topbar-btn:hover {
    color: #fff;
    background: #0f1014;
}

.envato-header-clone {
    z-index: 1035;
}

.envato-header-surface {
    background: linear-gradient(90deg, #262626 0%, #222326 52%, #1f1f21 100%);
    color: #fff;
    box-shadow: 0 14px 32px rgba(0,0,0,.16);
}

.envato-head-top {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 0 .7rem;
}

.envato-brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: #fff;
    min-width: 0;
}

.envato-brand:hover {
    color: #fff;
}

.envato-mark-shape {
    width: 22px;
    height: 34px;
    position: relative;
    display: inline-block;
    transform: skewX(-14deg) rotate(12deg);
}

.envato-mark-shape::before,
.envato-mark-shape::after,
.envato-mark-shape span::before,
.envato-mark-shape span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    background: #8dd95b;
    border-radius: 999px;
}

.envato-mark-shape::before {
    width: 10px;
    height: 17px;
    top: 0;
    left: 5px;
}

.envato-mark-shape::after {
    width: 9px;
    height: 13px;
    top: 11px;
    left: -2px;
}

.envato-mark-shape span::before {
    width: 9px;
    height: 12px;
    top: 14px;
    left: 7px;
}

.envato-mark-shape span::after {
    width: 7px;
    height: 10px;
    top: 23px;
    left: -2px;
}

.envato-brand-text {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    line-height: 1;
    white-space: nowrap;
}

.envato-brand-text strong {
    font-size: clamp(1.55rem, 1.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -.045em;
}

.envato-brand-text span {
    font-size: clamp(1.25rem, 1.3vw, 1.7rem);
    color: rgba(255,255,255,.95);
    font-weight: 400;
    letter-spacing: -.04em;
}

.envato-head-actions {
    align-items: center;
    gap: .6rem;
}

.envato-utility-link,
.envato-cart-btn,
.envato-sign-btn {
    min-height: 56px;
    border-radius: 4px;
    padding: 0 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    color: rgba(255,255,255,.9);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -.01em;
    background: transparent;
    transition: .18s ease;
}

.envato-utility-link i {
    font-size: 1rem;
}

.envato-utility-link:hover,
.envato-utility-link:focus,
.envato-sign-btn:hover,
.envato-sign-btn:focus,
.envato-cart-btn:hover,
.envato-cart-btn:focus {
    color: #fff;
    background: rgba(255,255,255,.07);
}

.envato-cart-btn,
.envato-sign-btn {
    background: rgba(255,255,255,.07);
}

.envato-cart-btn {
    width: 58px;
    padding: 0;
    font-size: 1.4rem;
}

.envato-sign-btn {
    padding: 0 1.25rem;
    font-weight: 600;
}

.envato-lang-switch {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.06);
    border-radius: 999px;
    padding: .18rem;
    margin-left: .1rem;
}

.envato-lang-btn {
    min-width: 44px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.82);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.envato-lang-btn:hover {
    color: #fff;
}

.envato-lang-btn.active {
    background: #8dd95b;
    color: #111;
}

.envato-head-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.envato-market-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    min-width: 0;
    flex-wrap: wrap;
}

.envato-market-tab {
    position: relative;
    color: rgba(255,255,255,.56);
    padding: 1.2rem 1.55rem 1.2rem 0;
    margin-right: 1.55rem;
    font-size: clamp(1rem, 1.12vw, 1.12rem);
    font-weight: 500;
    letter-spacing: -.025em;
    line-height: 1.15;
    white-space: nowrap;
    transition: color .18s ease;
}

.envato-market-tab:hover,
.envato-market-tab:focus {
    color: rgba(255,255,255,.9);
}

.envato-market-tab.is-active {
    color: #fff;
    font-weight: 600;
}

.envato-market-tab.is-active::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -.6rem;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 10px solid #efefef;
}

.envato-market-tab.is-promo {
    color: #fff;
    padding-right: 0;
    margin-right: 0;
    margin-left: .3rem;
    padding-left: 1.65rem;
    border-left: 1px solid rgba(255,255,255,.3);
}

.envato-market-tab.is-promo::after {
    content: "";
    position: absolute;
    left: 1.65rem;
    right: 0;
    bottom: .15rem;
    height: 4px;
    border-radius: 999px;
    background: #8dd95b;
}

.codecanyon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 68px;
    padding: 0 1.35rem;
    border-radius: 24px 24px 0 24px;
    color: #fff;
    background: rgba(255,255,255,.08);
    align-self: stretch;
    margin-top: .6rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.codecanyon-pill:hover {
    color: #fff;
    background: rgba(255,255,255,.12);
}

.codecanyon-badge {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.codecanyon-badge span {
    width: 10px;
    height: 14px;
    display: inline-block;
    border-radius: 10px 10px 10px 2px;
    background: #202224;
    transform: rotate(-34deg);
}

.codecanyon-pill span:last-child {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.envato-header-bar {
    height: 20px;
    background: #efefef;
}

.envato-mobile-toggle {
    padding: .65rem .85rem;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    border-radius: 12px;
}

.envato-mobile-toggle .navbar-toggler-icon {
    filter: invert(1);
}

.envato-mobile-collapse {
    padding-bottom: 1rem;
}

.envato-mobile-panel {
    padding: .25rem 0 0;
}

.envato-mobile-utility,
.envato-mobile-tabs {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.envato-mobile-utility {
    padding-top: .65rem;
}

.envato-mobile-link,
.envato-mobile-tab {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .7rem;
    min-height: 50px;
    padding: .8rem 1rem;
    border-radius: 14px;
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.06);
}

.envato-mobile-tab.is-active,
.envato-mobile-tab.is-promo,
.envato-mobile-sign {
    color: #fff;
    background: rgba(141,217,91,.18);
    box-shadow: inset 0 0 0 1px rgba(141,217,91,.28);
}

.envato-mobile-link:hover,
.envato-mobile-tab:hover {
    color: #fff;
}

.envato-mobile-lang {
    display: flex;
    justify-content: flex-start;
    padding: .15rem 0 .2rem;
}

.codecanyon-pill-mobile {
    margin-top: .9rem;
    min-height: 56px;
    width: 100%;
    border-radius: 18px;
}

@media (max-width: 1399.98px) {
    .envato-market-tab {
        padding-right: 1rem;
        margin-right: 1rem;
    }

    .envato-head-actions {
        gap: .35rem;
    }

    .envato-utility-link,
    .envato-sign-btn {
        padding: 0 .9rem;
        font-size: .95rem;
    }
}

@media (max-width: 991.98px) {
    .envato-sticky-shell {
        position: sticky;
    }

    .envato-topbar-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: .8rem;
        padding: .95rem 0;
    }

    .envato-topbar-copy {
        grid-column: auto;
        max-width: 760px;
    }

    .envato-topbar-btn {
        grid-column: auto;
        justify-self: center;
        min-width: 160px;
    }

    .envato-head-top {
        min-height: 68px;
        padding: .7rem 0;
    }

    .envato-brand-text strong {
        font-size: 1.45rem;
    }

    .envato-brand-text span {
        font-size: 1.2rem;
    }

    .envato-header-bar {
        height: 12px;
    }
}

@media (max-width: 575.98px) {
    .envato-topbar-copy {
        font-size: .95rem;
        line-height: 1.45;
        padding: 0 .2rem;
    }

    .envato-topbar-btn {
        width: 100%;
        max-width: 220px;
    }

    .envato-brand {
        gap: .55rem;
    }

    .envato-mark-shape {
        width: 18px;
        height: 29px;
    }

    .envato-brand-text {
        gap: .22rem;
    }

    .envato-brand-text strong {
        font-size: 1.1rem;
    }

    .envato-brand-text span {
        font-size: .98rem;
    }

    .envato-mobile-toggle {
        padding: .55rem .7rem;
    }

    .envato-mobile-link,
    .envato-mobile-tab {
        min-height: 46px;
        padding: .72rem .9rem;
    }
}


/* ===== v10 header adjustments ===== */
.envato-topbar-fixed {
    position: sticky;
    top: 0;
    z-index: 1085;
}

.envato-sticky-shell {
    position: static;
}

.envato-topbar-inner {
    min-height: 72px;
}

.envato-header-surface {
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.envato-head-top {
    min-height: 58px;
    padding: .42rem 0 .3rem;
}

.envato-brand {
    gap: .62rem;
}

.envato-mark-shape {
    width: 20px;
    height: 30px;
}

.envato-brand-text strong {
    font-size: clamp(1.42rem, 1.45vw, 1.82rem);
}

.envato-brand-text span {
    font-size: clamp(1.12rem, 1.15vw, 1.45rem);
}

.envato-head-actions {
    gap: .45rem;
}

.envato-utility-link,
.envato-cart-btn,
.envato-sign-btn {
    min-height: 48px;
    padding: 0 .95rem;
    font-size: .95rem;
}

.envato-cart-btn {
    width: 48px;
    font-size: 1.2rem;
}

.envato-sign-btn {
    padding: 0 1rem;
}

.envato-lang-switch {
    margin-left: 0;
}

.envato-lang-btn {
    min-width: 40px;
    height: 32px;
    font-size: .78rem;
}

.envato-head-bottom {
    gap: .25rem;
}

.envato-market-tab {
    padding: .9rem 1.2rem .85rem 0;
    margin-right: 1.2rem;
    font-size: clamp(1rem, 1.02vw, 1.08rem);
    font-weight: 500;
    letter-spacing: -.03em;
}

.envato-market-tab.is-active::before {
    bottom: -.35rem;
    border-left-width: 10px;
    border-right-width: 10px;
    border-bottom-width: 8px;
}

.envato-market-tab.is-promo {
    padding-left: 1.3rem;
    margin-left: .1rem;
}

.envato-market-tab.is-promo::after {
    left: 1.3rem;
    bottom: .05rem;
    height: 3px;
}

.envato-header-bar {
    height: 10px;
}

@media (max-width: 991.98px) {
    .envato-topbar-fixed {
        position: sticky;
    }

    .envato-topbar-inner {
        padding: .85rem 0;
    }

    .envato-head-top {
        min-height: 58px;
        padding: .45rem 0;
    }

    .envato-header-bar {
        height: 8px;
    }
}

@media (max-width: 575.98px) {
    .envato-topbar-inner {
        padding: .75rem 0;
    }

    .envato-topbar-copy {
        font-size: .92rem;
    }

    .envato-topbar-btn {
        min-height: 44px;
        font-size: .95rem;
    }

    .envato-head-top {
        min-height: 54px;
    }

    .envato-brand-text strong {
        font-size: 1.02rem;
    }

    .envato-brand-text span {
        font-size: .92rem;
    }
}

/* ===== v11 mobile header screenshot-style ===== */
.envato-mobile-shell {
    display: none;
}

@media (max-width: 1199.98px) {
    .envato-mobile-shell {
        display: block;
        padding: .7rem 0 .8rem;
    }

    .envato-mobile-bar {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: .75rem;
    }

    .envato-mobile-menu-btn,
    .envato-mobile-icon-btn {
        width: 58px;
        height: 58px;
        border: 0;
        border-radius: 14px;
        background: rgba(255,255,255,.08);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
        font-size: 1.9rem;
        line-height: 1;
        transition: background .18s ease, transform .18s ease;
    }

    .envato-mobile-menu-btn:hover,
    .envato-mobile-icon-btn:hover {
        color: #fff;
        background: rgba(255,255,255,.12);
        transform: translateY(-1px);
    }

    .envato-mobile-icon-btn img {
        width: 28px;
        height: 28px;
        object-fit: cover;
    }

    .envato-mobile-centerbrand {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .envato-mobile-centerbrand img {
        display: block;
        max-height: 40px;
        width: auto;
        max-width: min(54vw, 280px);
    }

    .envato-mobile-quick {
        display: flex;
        align-items: center;
        gap: .7rem;
    }

    .envato-mobile-collapse {
        padding-top: .85rem;
    }
}

@media (max-width: 575.98px) {
    .envato-topbar-inner {
        min-height: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: .2rem .65rem;
        padding: .8rem 0;
    }

    .envato-topbar-copy {
        width: auto;
        max-width: 88vw;
        font-size: 1rem;
        line-height: 1.35;
        text-align: center;
    }

    .envato-topbar-btn {
        min-width: 0;
        min-height: 0;
        padding: 0;
        background: transparent;
        color: #111216;
        box-shadow: none;
        text-decoration: underline;
        border-radius: 0;
        font-size: 1rem;
        font-weight: 500;
    }

    .envato-topbar-btn:hover {
        background: transparent;
        color: #111216;
    }

    .envato-header-surface {
        box-shadow: 0 10px 18px rgba(0,0,0,.14);
    }

    .envato-mobile-shell {
        padding: .75rem 0 .85rem;
    }

    .envato-mobile-bar {
        gap: .55rem;
    }

    .envato-mobile-menu-btn,
    .envato-mobile-icon-btn {
        width: 54px;
        height: 54px;
        border-radius: 12px;
        font-size: 1.78rem;
    }

    .envato-mobile-centerbrand img {
        max-height: 35px;
        max-width: 50vw;
    }

    .envato-mobile-quick {
        gap: .55rem;
    }

    .envato-mobile-collapse {
        padding-top: .75rem;
        padding-bottom: .85rem;
    }

    .envato-mobile-link,
    .envato-mobile-tab {
        border-radius: 12px;
        font-size: .96rem;
    }
}

/* ===== v12 compact text + drawer mobile menu ===== */
html {
    font-size: 15px;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0;
    text-rendering: auto;
}

h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.category-box h3,
.item-title,
.product-title,
.card-title,
.navbar-brand,
.envato-brand-text strong,
.envato-brand-text span,
.envato-market-tab,
.envato-utility-link,
.envato-sign-btn,
.envato-topbar-copy,
.envato-topbar-btn {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.hero-title,
.section-title {
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.2;
}

.hero-subtitle,
.section-copy,
.category-box p,
.card p,
.item-description,
.item-meta-list,
.table,
.form-control,
.form-select,
.btn,
.nav-link,
.dropdown-item {
    font-size: .95rem;
}

.market-topbar,
.envato-topbar-clone {
    background: #8dd95b;
}

.envato-topbar-inner {
    min-height: 54px;
    grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
    gap: .75rem;
}

.envato-topbar-copy {
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.2;
}

.envato-topbar-btn {
    min-width: 132px;
    min-height: 38px;
    padding: .52rem 1rem;
    font-size: .92rem;
    font-weight: 700;
    border-radius: 6px;
}

.envato-header-surface {
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
}

.envato-head-top {
    min-height: 50px;
    padding: .28rem 0 .18rem;
}

.envato-brand-text strong {
    font-size: clamp(1.28rem, 1.22vw, 1.6rem);
    font-weight: 700;
}

.envato-brand-text span {
    font-size: clamp(1.02rem, 1vw, 1.25rem);
}

.envato-utility-link,
.envato-cart-btn,
.envato-sign-btn {
    min-height: 42px;
    padding: 0 .85rem;
    font-size: .92rem;
    font-weight: 500;
}

.envato-cart-btn {
    width: 42px;
    font-size: 1.08rem;
}

.envato-sign-btn {
    padding: 0 .92rem;
}

.envato-lang-btn {
    min-width: 38px;
    height: 30px;
    font-size: .74rem;
}

.envato-head-bottom {
    gap: .1rem;
}

.envato-market-tab {
    padding: .76rem 1rem .72rem 0;
    margin-right: 1rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -.02em;
}

.envato-market-tab.is-active::before {
    bottom: -.28rem;
    border-left-width: 9px;
    border-right-width: 9px;
    border-bottom-width: 7px;
}

.envato-market-tab.is-promo {
    padding-left: 1rem;
}

.envato-market-tab.is-promo::after {
    left: 1rem;
    height: 3px;
}

.envato-header-bar {
    height: 8px;
}

.envato-mobile-drawer {
    width: min(320px, 84vw);
    background: #202125;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.08);
}

.envato-mobile-drawer .offcanvas-header,
.envato-mobile-drawer .offcanvas-body {
    padding-left: 1rem;
    padding-right: 1rem;
}

.envato-mobile-drawer-head {
    min-height: 64px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.envato-mobile-drawer-brand {
    display: inline-flex;
    align-items: center;
}

.envato-mobile-drawer-brand img {
    max-height: 30px;
    width: auto;
}

.envato-mobile-drawer-body {
    padding-top: .9rem;
    padding-bottom: 1rem;
}

.envato-mobile-drawer-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: .95rem 0;
}

.envato-mobile-collapse {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .envato-mobile-shell {
        padding: .55rem 0 .6rem;
    }

    .envato-mobile-bar {
        gap: .6rem;
    }

    .envato-mobile-menu-btn,
    .envato-mobile-icon-btn {
        width: 50px;
        height: 50px;
        border-radius: 10px;
        font-size: 1.55rem;
    }

    .envato-mobile-centerbrand img {
        max-height: 32px;
        max-width: min(48vw, 220px);
    }

    .envato-mobile-quick {
        gap: .45rem;
    }

    .envato-mobile-link,
    .envato-mobile-tab {
        min-height: 44px;
        padding: .72rem .85rem;
        border-radius: 12px;
        font-size: .94rem;
    }
}

@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }

    body {
        font-size: 13px;
    }

    .envato-topbar-inner {
        min-height: 44px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: .1rem .45rem;
        padding: .42rem 0;
    }

    .envato-topbar-copy {
        max-width: 76vw;
        font-size: .82rem;
        line-height: 1.18;
    }

    .envato-topbar-btn {
        min-width: 0;
        min-height: 0;
        padding: 0;
        background: transparent;
        color: #111216;
        box-shadow: none;
        text-decoration: underline;
        border-radius: 0;
        font-size: .82rem;
        line-height: 1.18;
    }

    .envato-topbar-btn:hover {
        background: transparent;
        color: #111216;
    }

    .envato-mobile-shell {
        padding: .48rem 0 .55rem;
    }

    .envato-mobile-menu-btn,
    .envato-mobile-icon-btn {
        width: 46px;
        height: 46px;
        border-radius: 10px;
        font-size: 1.42rem;
    }

    .envato-mobile-centerbrand img {
        max-height: 28px;
        max-width: 45vw;
    }

    .envato-mobile-drawer {
        width: min(300px, 88vw);
    }

    .envato-mobile-drawer-head {
        min-height: 56px;
    }

    .hero-title,
    .section-title {
        font-size: 1.45rem;
    }
}


/* ===== v13 mobile drawer + full width patch ===== */
.envato-page {
    max-width: 100%;
}

@media (min-width: 1200px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        max-width: 100%;
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (min-width: 1400px) {
    .container,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        padding-left: 36px;
        padding-right: 36px;
    }
}

@media (max-width: 1199.98px) {
    .envato-mobile-drawer {
        width: min(315px, 88vw);
        background: linear-gradient(180deg, #2b2c31 0%, #23242a 100%);
        color: #fff;
        border-right: 1px solid rgba(255,255,255,.08);
        box-shadow: 20px 0 35px rgba(0,0,0,.28);
    }

    .envato-mobile-drawer-head {
        display: block;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,.08);
        min-height: auto;
    }

    .envato-mobile-drawer-topline {
        height: 4px;
        background: #8dd95b;
    }

    .envato-mobile-drawer-top {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding: 0 .8rem;
        background: #d7862d;
        color: #fff;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    .envato-mobile-drawer-brand {
        display: inline-flex;
        align-items: center;
        color: #fff;
        font-size: .96rem;
        font-weight: 500;
        letter-spacing: -.01em;
    }

    .envato-mobile-drawer-brand:hover {
        color: #fff;
    }

    .envato-drawer-close {
        border: 0;
        background: transparent;
        color: rgba(255,255,255,.92);
        width: 34px;
        height: 34px;
        border-radius: 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }

    .envato-drawer-close:hover {
        background: rgba(255,255,255,.08);
    }

    .envato-mobile-search {
        margin: .8rem .75rem .6rem;
        position: relative;
    }

    .envato-mobile-search .form-control {
        height: 38px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,.08);
        background: #f3f4f6;
        color: #1b1d23;
        font-size: .9rem;
        padding: .45rem 2.5rem .45rem .75rem;
        box-shadow: none;
    }

    .envato-mobile-search button {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        border: 0;
        background: transparent;
        color: #666b75;
        font-size: 1rem;
    }

    .envato-mobile-drawer-body {
        padding: 0;
    }

    .envato-mobile-panel {
        padding: .2rem 0 1rem;
    }

    .envato-mobile-catalog {
        display: flex;
        flex-direction: column;
    }

    .envato-drawer-item {
        border-bottom: 1px solid rgba(255,255,255,.04);
    }

    .envato-drawer-row {
        min-height: 40px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 34px;
        align-items: center;
        gap: .35rem;
        padding: 0 .7rem 0 .75rem;
    }

    .envato-drawer-link {
        color: #fff;
        font-size: .95rem;
        font-weight: 400;
        line-height: 1.2;
        padding: .7rem 0;
    }

    .envato-drawer-link:hover {
        color: #fff;
    }

    .envato-drawer-toggle {
        width: 34px;
        height: 34px;
        border: 0;
        background: transparent;
        color: #f0f2f5;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: .95rem;
        transition: transform .2s ease;
    }

    .envato-drawer-toggle .bi {
        transition: transform .2s ease;
    }

    .envato-drawer-toggle:not(.collapsed) .bi {
        transform: rotate(180deg);
    }

    .envato-drawer-submenu {
        padding: 0 0 .45rem;
        background: rgba(0,0,0,.08);
    }

    .envato-drawer-sublink {
        display: block;
        color: rgba(255,255,255,.78);
        font-size: .85rem;
        padding: .45rem .75rem .45rem 1.35rem;
    }

    .envato-drawer-sublink:hover {
        color: #fff;
        background: rgba(255,255,255,.04);
    }

    .envato-mobile-drawer-divider {
        height: 1px;
        background: rgba(255,255,255,.08);
        margin: .9rem .75rem;
    }

    .envato-mobile-utility-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .6rem;
        padding: 0 .75rem;
    }

    .envato-mobile-link {
        min-height: 42px;
        padding: .7rem .75rem;
        border-radius: 10px;
        font-size: .86rem;
        background: rgba(255,255,255,.06);
        color: #fff;
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        justify-content: center;
        text-align: center;
    }

    .envato-mobile-link:hover {
        color: #fff;
        background: rgba(255,255,255,.1);
    }

    .envato-mobile-lang-block {
        padding: .9rem .75rem 0;
    }

    .envato-mobile-lang-block .envato-lang-switch {
        width: 100%;
        justify-content: center;
        background: rgba(255,255,255,.04);
        border-radius: 10px;
        padding: .32rem;
    }
}

@media (max-width: 575.98px) {
    .envato-topbar-inner {
        min-height: 38px;
        padding: .25rem .35rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .45rem;
        flex-wrap: nowrap;
    }

    .envato-topbar-copy {
        max-width: none;
        font-size: .78rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1 1 auto;
        text-align: center;
    }

    .envato-topbar-btn {
        font-size: .78rem;
        line-height: 1.15;
        flex: 0 0 auto;
    }

    .envato-mobile-shell {
        padding: .35rem 0 .4rem;
    }

    .envato-mobile-bar {
        gap: .5rem;
    }

    .envato-mobile-menu-btn,
    .envato-mobile-icon-btn {
        width: 42px;
        height: 42px;
        border-radius: 8px;
        font-size: 1.26rem;
    }

    .envato-mobile-centerbrand img {
        max-height: 26px;
    }

    .envato-mobile-drawer {
        width: min(308px, 88vw);
    }
}
