/* ==========================================================================
   BIIO MICROSITE SHOWCASE — ULTRA PREMIUM STYLE SYSTEM v2
   Vanilla CSS | High Performance | Fluid Responsive
   ========================================================================== */

:root {
    --bg-base: #030303;
    --bg-deep: #000000;
    --brand-primary: #00d4ff;
    --brand-secondary: #0072ff;
    --brand-glow-rgb: 0, 212, 255;
    --surface-glass: rgba(14, 14, 16, 0.55);
    --surface-border: rgba(255, 255, 255, 0.06);
    --surface-border-hover: rgba(255, 255, 255, 0.14);
    --text-title: #ffffff;
    --text-body: #a1a1aa;
    --text-muted: #52525b;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-slow: 0.8s var(--ease-out-expo);
    --t-medium: 0.45s var(--ease-out-expo);
    --t-fast: 0.2s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-deep);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-body);
    background: var(--bg-base);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loaded .showcase-wrapper {
    opacity: 1;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-primary); }

/* ==========================================================================
   PRELOADER
   ========================================================================== */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.preloader-logo {
    width: 56px;
    height: 56px;
    animation: preloader-pulse 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(var(--brand-glow-rgb), 0.4));
}

.preloader-logo svg {
    width: 100%;
    height: 100%;
}

@keyframes preloader-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

.preloader-bar {
    width: 160px;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 10px;
    animation: preloader-fill 1.6s var(--ease-out-expo) forwards;
}

@keyframes preloader-fill {
    to { width: 100%; }
}

.preloader-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: preloader-text-fade 1.2s ease infinite alternate;
}

@keyframes preloader-text-fade {
    from { opacity: 0.3; }
    to { opacity: 0.7; }
}

/* ==========================================================================
   BACKGROUND LAYERS
   ========================================================================== */

.particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--brand-glow-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    will-change: transform;
}

.cursor-glow.active {
    opacity: 1;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.025;
    background-image:
        linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 80%);
}

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient-light {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    transition: transform 0.3s ease-out;
}

.light-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.18;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 55vw;
    height: 55vw;
    max-width: 750px;
    max-height: 750px;
    background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
    top: -25%;
    left: -12%;
    animation: orb-float-1 32s ease-in-out infinite;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    max-width: 650px;
    max-height: 650px;
    background: radial-gradient(circle, var(--brand-secondary) 0%, transparent 70%);
    bottom: -18%;
    right: -12%;
    animation: orb-float-2 27s ease-in-out infinite;
}

.orb-3 {
    width: 38vw;
    height: 38vw;
    max-width: 480px;
    max-height: 480px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
    top: 35%;
    left: 50%;
    opacity: 0.10;
    animation: orb-float-3 30s ease-in-out infinite;
}

@keyframes orb-float-1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(6%, -5%) scale(1.04); }
    66% { transform: translate(-3%, 6%) scale(0.96); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes orb-float-2 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-5%, 7%) scale(1.06); }
    66% { transform: translate(4%, -3%) scale(0.94); }
    100% { transform: translate(0, 0) scale(1); }
}
@keyframes orb-float-3 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, -8%) scale(1.08); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ==========================================================================
   MAIN WRAPPER
   ========================================================================== */

.showcase-wrapper {
    position: relative;
    z-index: 10;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4%;
    opacity: 0;
    transition: opacity 0.6s ease 0.1s;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.showcase-header {
    padding-top: 80px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.header-content {
    max-width: 820px;
    margin-bottom: 60px;
}

.biio-brand {
    display: inline-block;
    margin-bottom: 30px;
    text-decoration: none;
    transition: transform var(--t-medium);
}
.biio-brand:hover { transform: scale(1.03); }

.biio-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(var(--brand-glow-rgb), 0.15));
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50px;
    margin-bottom: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-primary);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--brand-primary); }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.badge-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--text-title);
    text-transform: uppercase;
}

.main-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 900;
    line-height: 1.08;
    color: var(--text-title);
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #a855f7 50%, var(--brand-secondary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-subtitle {
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    color: var(--text-body);
    font-weight: 400;
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.75;
    opacity: 0.85;
}

.stats-row {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 12px 28px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 60px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--brand-primary);
    min-width: 28px;
    text-align: right;
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* ==========================================================================
   SEARCH & FILTERS HUB
   ========================================================================== */

.search-filter-hub {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    z-index: 100;
}

.search-box-wrapper {
    position: relative;
    width: 100%;
    background: rgba(8, 8, 10, 0.5);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all var(--t-medium);
}
.search-box-wrapper:hover {
    border-color: rgba(255,255,255,0.1);
}
.search-box-wrapper:focus-within {
    border-color: var(--brand-primary);
    box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(var(--brand-glow-rgb), 0.15);
    background: rgba(0,0,0,0.65);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--t-fast);
}
.search-box-wrapper:focus-within .search-icon {
    color: var(--brand-primary);
}

#templateSearch {
    width: 100%;
    padding: 18px 110px 18px 55px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-title);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}
#templateSearch::placeholder { color: var(--text-muted); }

.search-kbd {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 4px 8px;
    border-radius: 6px;
    pointer-events: none;
    letter-spacing: 0.5px;
    transition: opacity var(--t-fast);
}
.search-box-wrapper:focus-within .search-kbd {
    opacity: 0;
}

.clear-search-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-body);
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-fast);
}
.clear-search-btn.active { opacity: 1; visibility: visible; }
.clear-search-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

.search-glow {
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-primary), var(--brand-secondary), transparent);
    opacity: 0;
    transition: opacity var(--t-medium);
}
.search-box-wrapper:focus-within .search-glow { opacity: 1; }

.category-filters-container {
    width: 100%;
    position: relative;
    padding-top: 50px;
    padding-bottom: 10px;
}

.category-filters-scroll {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 5px 0 15px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: 50px;
    padding: 10px 20px;
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--t-medium);
    font-family: 'Inter', sans-serif;
}
.filter-tab:hover {
    border-color: rgba(255,255,255,0.13);
    color: var(--text-title);
    background: rgba(255,255,255,0.03);
}
.filter-tab.active {
    background: var(--text-title);
    border-color: var(--text-title);
    color: var(--bg-deep);
    box-shadow: 0 8px 24px rgba(255,255,255,0.1);
}

.tab-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-primary);
    display: inline-block;
    transition: background var(--t-fast);
}
.filter-tab.active .tab-dot { background: var(--bg-deep); }

.counter {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.6;
    background: rgba(255,255,255,0.08);
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 2px;
}
.filter-tab.active .counter { background: rgba(0,0,0,0.1); }

/* ==========================================================================
   GALLERY GRID
   ========================================================================== */

.showcase-grid-wrapper {
    padding-top: 20px;
    padding-bottom: 120px;
    min-height: 400px;
    position: relative;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 28px;
}

/* ==========================================================================
   CARD SYSTEM
   ========================================================================== */

.template-card {
    --accent: var(--brand-primary);
    position: relative;
    border-radius: 24px;
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.04);
    transform-style: preserve-3d;
    perspective: 1000px;
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo),
        box-shadow 0.4s ease,
        border-color 0.3s ease;
}

.template-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.template-card.hiding {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255,255,255,0.03) 40%,
        rgba(255,255,255,0.06) 50%,
        rgba(255,255,255,0.03) 60%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 4;
    transition: left 0.8s var(--ease-out-expo);
}

.template-card:hover .card-shine {
    left: 120%;
}

.card-glow-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.05), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-border-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
    border: 1px solid transparent;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.template-card:hover .card-glow-layer,
.template-card:hover .card-border-glow {
    opacity: 1;
}

.template-card:hover {
    border-color: var(--surface-border-hover);
    box-shadow:
        0 30px 70px rgba(0,0,0,0.5),
        0 0 40px rgba(var(--brand-glow-rgb), 0.04),
        inset 0 1px 0 rgba(255,255,255,0.07);
}

.card-inner {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 5;
    position: relative;
}

/* --- CARD HEADER --- */

.card-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
    width: 100%;
}

.card-category-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    color: var(--accent);
    transition: all var(--t-medium);
}

.template-card:hover .card-category-badge {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
}

/* --- CARD LOGO SHOWCASE --- */

.card-logo-showcase {
    width: 100%;
    height: 140px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 24px;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.2) 100%);
    border: 1px solid rgba(255,255,255,0.04);
    position: relative;
    transition: border-color 0.3s ease;
}

.template-card:hover .card-logo-showcase {
    border-color: rgba(255,255,255,0.08);
}

.card-logo-img {
    max-width: 70%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
    transition: transform 0.5s var(--ease-out-expo);
}

.template-card:hover .card-logo-img {
    transform: scale(1.08);
}

.card-logo-fallback {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.4) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    font-weight: 800;
    transition: transform 0.5s var(--ease-out-expo);
}

.template-card:hover .card-logo-fallback {
    transform: scale(1.08);
}

.fallback-glow {
    position: absolute;
    inset: 0;
    filter: blur(14px);
    opacity: 0.15;
    border-radius: inherit;
}

.fallback-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 12px rgba(0,0,0,0.7);
}

/* --- CARD BODY --- */

.card-body { margin-bottom: 20px; }

.template-title {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}
.template-card:hover .template-title {
    color: var(--accent);
}

.template-desc {
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.9;
}

/* --- TAGS --- */

.card-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 24px;
}

.tag-item {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 3px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}
.template-card:hover .tag-item {
    color: var(--text-body);
    border-color: rgba(255,255,255,0.08);
}

/* --- CARD FOOTER / CTA BUTTON --- */

.card-footer { width: 100%; }

.btn-view-template {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    color: var(--text-title);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.35s var(--ease-out-expo);
    overflow: hidden;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.btn-view-template::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--text-title);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out-expo);
    z-index: 0;
}

.template-card:hover .btn-view-template::before {
    transform: scaleX(1);
}

.btn-text {
    position: relative;
    z-index: 1;
    transition: color 0.35s var(--ease-out-expo);
}

.template-card:hover .btn-text {
    color: var(--bg-deep);
}

.btn-arrow-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    transition: all 0.35s var(--ease-out-expo);
}

.template-card:hover .btn-arrow-wrapper {
    background: var(--bg-deep);
}

.btn-arrow {
    width: 13px;
    height: 13px;
    color: var(--text-title);
    transition: transform 0.35s var(--ease-out-expo);
}

.template-card:hover .btn-arrow {
    transform: translateX(3px);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */

.empty-state-card {
    text-align: center;
    padding: 80px 40px;
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 480px;
    margin: 60px auto 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    animation: empty-in 0.5s var(--ease-out-expo);
}

@keyframes empty-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.empty-icon {
    color: var(--brand-primary);
    width: 52px;
    height: 52px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(var(--brand-glow-rgb), 0.2));
}
.empty-icon svg { width: 100%; height: 100%; }

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

.empty-subtitle {
    font-size: 13.5px;
    color: var(--text-body);
    margin-bottom: 28px;
    line-height: 1.6;
}

.btn-reset-filters {
    background: var(--text-title);
    color: var(--bg-deep);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255,255,255,0.05);
    transition: all var(--t-fast);
    font-family: 'Inter', sans-serif;
}
.btn-reset-filters:hover {
    transform: translateY(-2px);
    background: var(--brand-primary);
    box-shadow: 0 12px 30px rgba(var(--brand-glow-rgb), 0.25);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.showcase-footer {
    border-top: 1px solid var(--surface-border);
    padding: 40px 0;
    margin-top: 40px;
}

.footer-search {
    max-width: 500px;
    margin: 0 auto 36px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 13px;
    color: var(--text-muted);
}
.copyright a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--t-fast);
}
.copyright a:hover { color: var(--brand-primary); }

.footer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-tag {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-divider {
    color: rgba(255,255,255,0.1);
    font-size: 10px;
}

/* ==========================================================================
   MEDIA QUERIES
   ========================================================================== */

@media (max-width: 960px) {
    .showcase-header { padding-top: 60px; }
    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 22px;
    }
    .card-inner { padding: 28px; }
    .stats-row { gap: 18px; padding: 10px 22px; }
    .stat-number { font-size: 20px; }
}

@media (max-width: 580px) {
    .showcase-wrapper { padding: 0 5%; }
    .showcase-header { padding-top: 40px; padding-bottom: 30px; }
    .header-content { margin-bottom: 36px; }
    .biio-logo { height: 38px; }
    .main-subtitle { font-size: 14px; margin-bottom: 28px; }
    .stats-row {
        gap: 14px;
        padding: 10px 18px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .stat-number { font-size: 18px; }
    .stat-label { font-size: 10px; }
    .search-filter-hub { gap: 20px; }
    #templateSearch { padding: 15px 80px 15px 48px; font-size: 14px; }
    .search-icon { left: 16px; width: 18px; height: 18px; }
    .search-kbd { display: none; }
    .clear-search-btn { right: 16px; }
    .category-filters-scroll { padding-bottom: 10px; }
    .filter-tab { padding: 8px 16px; font-size: 12px; }
    .templates-grid { grid-template-columns: 1fr; gap: 18px; }
    .template-card {
        border-radius: 20px;
        perspective: none;
    }
    .card-inner { padding: 22px; }
    .template-title { font-size: 19px; }
    .btn-view-template { padding: 12px 18px; }
    .card-logo-showcase { height: 120px; }
    .grid-overlay { display: none; }
    .cursor-glow { display: none; }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
}

@media (max-width: 380px) {
    .showcase-wrapper { padding: 0 4%; }
    .main-title { letter-spacing: -1px; }
    .stats-row .stat-divider:last-of-type { display: none; }
}
