/* ==============================================
   AIStacks.in — Pure Black + Glassmorphism
   ============================================== */

:root {
    /* Core palette */
    --black: #000000;
    --bg-1: #0A0A0A;
    --bg-2: #111111;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);

    /* Accent */
    --mint: #A7F3D0;
    --mint-dim: rgba(167, 243, 208, 0.1);
    --blue: #3B82F6;
    --blue-dim: rgba(59, 130, 246, 0.15);
    --blue-glow: 0 0 20px rgba(59, 130, 246, 0.35);

    /* Text */
    --t0: #F8FAFC;
    --t1: #94A3B8;
    --t2: #475569;

    /* Misc */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-pill: 9999px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --tf: 0.18s var(--ease);
    --tb: 0.28s var(--ease);
    --fh: 'Outfit', sans-serif;
    --fb: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fb);
    background: var(--black);
    color: var(--t0);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding: 0 15px;
    /* Added for mobile edge protection */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--fb);
    border: none;
}

img {
    display: block;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.25rem;
    /* ~20px */
}

main .container,
.container.main-grid {
    display: block;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        /* Forced edge padding on mobile */
    }
}

.eyebrow {
    font-size: 0.6875rem;
    /* 11px */
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 0.5rem;
}

.sec-title {
    font-family: var(--fh);
    font-size: 2rem;
    /* 32px */
    font-weight: 800;
    color: var(--t0);
}

.w-full {
    width: 100%;
}

/* ---------- Buttons ---------- */
.btn-blue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--r-pill);
    box-shadow: var(--blue-glow);
    transition: all var(--tb);
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.btn-ghost-nav {
    background: transparent;
    color: var(--t1);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.55rem 1.1rem;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--tf);
}

.btn-ghost-nav:hover {
    color: var(--t0);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline-dim {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    background: transparent;
    color: var(--t1);
    font-size: 0.825rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all var(--tf);
}

.btn-outline-dim:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-clear-sm {
    background: transparent;
    color: var(--t2);
    font-size: 0.75rem;
    transition: color var(--tf);
}

.btn-clear-sm:hover {
    color: #F87171;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background var(--tb), border-color var(--tb);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.logo-icon {
    color: var(--mint);
    font-size: 1.1rem;
}

.logo-wordmark {
    font-family: var(--fh);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--t0);
}

.logo-wordmark em {
    font-style: normal;
    color: var(--mint);
}

.logo-wordmark sub {
    font-size: 0.75rem;
    color: var(--t2);
    vertical-align: baseline;
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--t1);
    transition: color var(--tf);
}

.nav-links a:hover {
    color: var(--mint);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
}

.stack-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--mint-dim);
    border: 1px solid rgba(167, 243, 208, 0.2);
    color: var(--mint);
    padding: 0.42rem 0.9rem;
    border-radius: var(--r-pill);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--tf);
}

.stack-pill:hover {
    background: rgba(167, 243, 208, 0.18);
}

.hamburger {
    display: none;
    background: transparent;
    color: var(--t0);
    font-size: 1.35rem;
    margin-left: auto;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 5rem;
    overflow: hidden;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(59, 130, 246, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 80% 80%, rgba(167, 243, 208, 0.05) 0%, transparent 60%),
        var(--black);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 80%);
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    width: 45vw;
    height: 45vw;
    top: -15%;
    left: -10%;
    background: rgba(59, 130, 246, 0.07);
    animation: blobFloat 22s infinite alternate ease-in-out;
}

.blob-2 {
    width: 35vw;
    height: 35vw;
    bottom: -5%;
    right: -5%;
    background: rgba(167, 243, 208, 0.05);
    animation: blobFloat 18s infinite alternate-reverse ease-in-out;
}

@keyframes blobFloat {
    from {
        transform: translate(0, 0)
    }

    to {
        transform: translate(30px, -40px)
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(167, 243, 208, 0.07);
    border: 1px solid rgba(167, 243, 208, 0.2);
    color: var(--mint);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.38rem 1rem;
    border-radius: var(--r-pill);
    margin-bottom: 2rem;
    animation: fadeUp 0.7s var(--ease) backwards;
}

.hero-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    position: relative;
}

.hero-pill-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--mint);
    animation: ripple 2s infinite;
}

.hero-inner h1 {
    font-family: var(--fh);
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--t0);
    margin-bottom: 1.25rem;
    animation: fadeUp 0.7s var(--ease) 0.1s backwards;
}

.h1-gradient {
    background: linear-gradient(135deg, var(--mint) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--t1);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.7s var(--ease) 0.2s backwards;
}

/* Workflow search */
.workflow-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-pill);
    padding: 0.45rem 0.45rem 0.45rem 1.5rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
    transition: border-color var(--tf), box-shadow var(--tf);
    animation: fadeUp 0.7s var(--ease) 0.3s backwards;
}

.workflow-search:focus-within {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ws-icon {
    color: var(--t2);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.workflow-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--t0);
    font-size: 0.93rem;
    font-family: var(--fb);
    padding: 0.5rem 0;
}

.workflow-search input::placeholder {
    color: var(--t2);
}

.ws-btn {
    border-radius: var(--r-pill);
    font-size: 0.85rem;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    animation: fadeUp 0.7s var(--ease) 0.4s backwards;
}

.chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--t1);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.28rem 0.8rem;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all var(--tf);
}

.chip:hover {
    border-color: var(--mint);
    color: var(--mint);
    background: var(--mint-dim);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px)
    }

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

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1
    }

    100% {
        transform: scale(2.2);
        opacity: 0
    }
}

/* =========================================
   VIBE SELECTOR
   ========================================= */
.vibes {
    padding: 3.5rem 0;
    background: var(--bg-1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vibes .container {
    text-align: center;
}

.vibes .sec-title {
    margin-bottom: 2rem;
}

.vibe-row {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.vibe-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--r-lg);
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    color: var(--t1);
    font-size: 0.8125rem;
    /* 13px */
    font-weight: 600;
    min-width: 6.875rem;
    /* 110px */
    transition: all var(--tb);
}

.vibe-btn i {
    font-size: 1.2rem;
}

.vibe-btn:hover {
    border-color: rgba(167, 243, 208, 0.3);
    color: var(--mint);
    background: var(--mint-dim);
    transform: translateY(-2px);
}

.vibe-btn.active {
    border-color: var(--mint);
    color: var(--mint);
    background: var(--mint-dim);
    box-shadow: 0 0 20px rgba(167, 243, 208, 0.12);
}

/* Expanded category drawer */
.vibe-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.vibe-expanded.open {
    max-height: 600px;
    opacity: 1;
}

.vibe-expanded-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    padding: 1.75rem 0 0.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.07);
    margin-top: 1.25rem;
}

/* =========================================
   MAIN LAYOUT
   ========================================= */
.main-layout {
    padding: 3rem 0 6rem;
    background: var(--bg-1);
}

.main-grid {
    display: flex;
    gap: 2rem;
    align-items: start;
}

.main-content,
.tools-col {
    flex: 1;
    min-width: 0;
    /* Prevents flex blowout */
}

/* Tools column header */
.tools-hdr {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tools-hdr-title {
    font-family: var(--fh);
    font-size: 1.15rem;
    font-weight: 800;
}

.tools-hdr-count {
    font-size: 0.78rem;
    color: var(--t2);
    margin-top: 0.2rem;
}

.sort-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--t1);
    padding: 0.5rem 0.875rem;
    /* ~8px 14px */
    border-radius: var(--r-md);
    font-size: 0.8125rem;
    /* 13px */
    font-family: var(--fb);
    outline: none;
    cursor: pointer;
    transition: border-color var(--tf);
}

.sort-select:hover {
    border-color: var(--blue);
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* =========================================
   TOOL CARD  (Glassmorphism)
   ========================================= */
.tool-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg);
    width: 100%;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: all var(--tb);
    animation: fadeUp 0.5s var(--ease) backwards;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background var(--tb);
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(167, 243, 208, 0.1);
}

.tool-card:hover::before {
    background: linear-gradient(90deg, var(--mint), var(--blue));
}

/* Card logo */
.card-logo-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-logo {
    width: 46px;
    height: 46px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--r-md);
}

.card-logo .logo-fallback {
    font-size: 1.35rem;
    color: var(--t1);
}

/* Match score (mint) */
.match-score {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--mint);
    background: rgba(167, 243, 208, 0.08);
    border: 1px solid rgba(167, 243, 208, 0.2);
    padding: 0.28rem 0.65rem;
    border-radius: var(--r-pill);
}

.match-score i {
    font-size: 0.7rem;
}

.card-name {
    font-family: var(--fh);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.card-vibe {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--mint);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.card-desc {
    font-size: 0.81rem;
    color: var(--t1);
    line-height: 1.6;
    margin: 0.75rem 0;
    flex-grow: 1;
}

/* Quick specs grid */
.quick-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-sm);
    padding: 0.38rem 0.6rem;
}

.spec-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--t2);
    display: block;
}

.spec-val {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--t0);
}

/* Pricing badge */
.pbadge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: var(--r-pill);
}

.pbadge.free {
    background: rgba(167, 243, 208, 0.1);
    color: var(--mint);
}

.pbadge.freemium {
    background: rgba(251, 191, 36, 0.1);
    color: #FBbf24;
}

.pbadge.paid {
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue);
}

/* Card footer */
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 0.5rem;
}

.btn-visit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: var(--r-pill);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
    transition: all var(--tf);
    cursor: pointer;
}

.btn-visit:hover {
    transform: translateY(-1px);
    box-shadow: var(--blue-glow);
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--mint-dim);
    border: 1px solid rgba(167, 243, 208, 0.25);
    color: var(--mint);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: all var(--tf);
}

.btn-add:hover {
    background: rgba(167, 243, 208, 0.2);
}

.btn-add.added {
    background: var(--mint);
    color: #000;
    border-color: var(--mint);
}

.load-wrap {
    text-align: center;
    padding-top: 0.5rem;
}

/* =========================================
   BOTTOM BAR & CARDS
   ========================================= */
.bottom-bar {
    padding: 2rem 0;
    background: var(--bg-1);
}

.bottom-bar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-xl);
    padding: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.sc-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.sc-hdr h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mint);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stack-empty-state {
    text-align: center;
    padding: 1.5rem 0.5rem;
    color: var(--t2);
    font-size: 0.8rem;
}

.stack-empty-state i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.35;
}

.stack-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.s-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--r-sm);
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    color: var(--t1);
}

.s-item button {
    background: transparent;
    border: none;
    color: var(--t2);
    font-size: 0.75rem;
    cursor: pointer;
    transition: color var(--tf);
}

.s-item button:hover {
    color: #F87171;
}

.stack-export {
    margin-top: 1rem;
}

/* =========================================
   LEADERBOARD (RIGHT SIDEBAR)
   ========================================= */
.leaderboard-card {
    border-color: rgba(251, 191, 36, 0.15);
    /* Subtle gold hint */
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.03);
}

.lb-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.lb-hdr h4 {
    font-family: var(--fh);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--t0);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lb-badge {
    background: rgba(251, 191, 36, 0.1);
    color: #FBBF24;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: var(--r-pill);
}

.lb-filters,
.lb-categories {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.2rem;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.lb-filters::-webkit-scrollbar,
.lb-categories::-webkit-scrollbar {
    display: none;
}

.lb-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--t1);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--r-pill);
    white-space: nowrap;
    transition: all var(--tf);
}

.lb-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--t0);
}

.lb-pill.active {
    background: rgba(167, 243, 208, 0.1);
    border-color: rgba(167, 243, 208, 0.3);
    color: var(--mint);
}

.lb-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lb-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.6rem;
    border-radius: var(--r-md);
    transition: transform var(--tf), border-color var(--tf);
}

.lb-item:hover {
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.lb-rank {
    font-family: var(--fh);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--t2);
    width: 20px;
    text-align: center;
}

.lb-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
}

.lb-info {
    flex: 1;
    overflow: hidden;
}

.lb-name {
    font-size: 0.875rem;
    /* 14px */
    font-weight: 700;
    color: var(--t0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lb-score {
    font-size: 0.75rem;
    /* 12px */
    color: var(--t1);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lb-score i {
    color: var(--mint);
    font-size: 0.6rem;
}

.lb-item.rank-1 {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    border-color: rgba(251, 191, 36, 0.2);
}

.lb-item.rank-1 .lb-rank {
    color: #FBBF24;
    font-size: 1rem;
}

.lb-item.rank-1 .lb-name {
    font-size: 0.95rem;
}

/* Pro Finder */
.pro-finder-card {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.06);
}

.pf-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.pf-badge {
    background: var(--blue);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-pill);
}

.pf-price {
    font-family: var(--fh);
    font-size: 2rem;
    font-weight: 900;
    color: var(--blue);
    line-height: 1;
}

.pf-price small {
    font-size: 0.85rem;
    color: var(--t2);
    font-weight: 500;
}

.pf-title {
    font-family: var(--fh);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.pf-desc {
    font-size: 0.8rem;
    color: var(--t1);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.pf-features {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.4rem;
    flex-grow: 1;
}

.pf-features li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    color: var(--t1);
}

.pf-features li i {
    color: var(--blue);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.pf-cta {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.pf-note {
    text-align: center;
    font-size: 0.68rem;
    color: var(--t2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* =========================================
   BOTTOM FEATURES
   ========================================= */
.bottom-features {
    padding: 6rem 1.5rem;
    background: var(--bg-1);
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: start;
    max-width: 1300px;
    margin: 0 auto;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 3rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    max-width: 260px;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--t2);
    margin-top: 0.75rem;
    line-height: 1.7;
}

.footer-cols {
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
}

.footer-cols div h5 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--t1);
    margin-bottom: 0.9rem;
}

.footer-cols div a {
    display: block;
    font-size: 0.8rem;
    color: var(--t2);
    margin-bottom: 0.55rem;
    transition: color var(--tf);
}

.footer-cols div a:hover {
    color: var(--mint);
}

.footer-btm {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem 0;
    font-size: 0.76rem;
    color: var(--t2);
}

.social {
    display: flex;
    gap: 1rem;
}

.social a {
    color: var(--t2);
    font-size: 1rem;
    transition: color var(--tf);
}

.social a:hover {
    color: var(--mint);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media(max-width:1024px) {

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

    .tools-col,
    .main-content {
        flex: 1;
    }
}

@media(max-width:768px) {

    .bottom-bar-grid {
        grid-template-columns: 1fr;
    }

    .main-content,
    .tools-col {
        width: 100% !important;
        max-width: 100% !important;
    }

    .sidebar-card,
    .tool-card {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-links,
    .nav-right {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.25rem;
        /* Reduced for mobile */
    }

    .workflow-search {
        flex-direction: column;
        border-radius: var(--r-lg);
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .workflow-search input {
        width: 100%;
        padding: 0.25rem 0;
    }

    .ws-btn {
        width: 100%;
        border-radius: var(--r-md);
    }

    .vibe-btn {
        min-width: 90px;
        padding: 0.85rem 1rem;
    }

    .footer-cols {
        gap: 2rem;
    }

    .footer-btm {
        flex-direction: column;
        gap: 0.75rem;
    }

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

/* =========================================
   AUTH MODAL (10s DELAY POPUP)
   ========================================= */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
    padding: 1.5rem;
}

.auth-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-glass {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--bg-1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-xl);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(167, 243, 208, 0.05);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--t1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tf);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--t0);
    transform: rotate(90deg);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(167, 243, 208, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    border: 1px solid rgba(167, 243, 208, 0.2);
    color: var(--mint);
    font-size: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 30px rgba(167, 243, 208, 0.2);
}

.modal-content h3 {
    font-family: var(--fh);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--t0);
    margin-bottom: 0.75rem;
}

.modal-content p {
    color: var(--t1);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.modal-foot {
    font-size: 0.75rem !important;
    color: var(--t2) !important;
    margin-bottom: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* =========================================
   AUTH PAGE (login.html)
   ========================================= */
.auth-page {
    background: radial-gradient(ellipse 60% 60% at 50% -20%, rgba(59, 130, 246, 0.1) 0%, transparent 70%),
        var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    position: relative;
    z-index: 10;
}

.auth-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.auth-blob.blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.15);
    top: 10%;
    left: 20%;
}

.auth-blob.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(167, 243, 208, 0.1);
    bottom: 20%;
    right: 25%;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint);
    font-size: 1.5rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.auth-header h2 {
    font-family: var(--fh);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--t0);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--t1);
    font-size: 0.95rem;
}

.auth-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--r-pill);
    padding: 0.25rem;
    margin-bottom: 2rem;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    color: var(--t1);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 0;
    border-radius: var(--r-pill);
    transition: all var(--tf);
}

.toggle-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--t0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--t2);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color var(--tf);
}

.input-wrapper input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-md);
    color: var(--t0);
    font-family: var(--fb);
    font-size: 0.95rem;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    transition: all var(--tf);
}

.input-wrapper input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-wrapper input:focus+i,
.input-wrapper input:focus~i {
    color: var(--blue);
}

.btn-eye {
    position: absolute;
    right: 1rem;
    background: transparent;
    color: var(--t2);
    font-size: 1.1rem;
    padding: 0.2rem;
    transition: color var(--tf);
}

.btn-eye:hover {
    color: var(--t0);
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    font-size: 0.85rem;
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 26px;
    cursor: pointer;
    user-select: none;
    color: var(--t1);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all var(--tf);
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--mint);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--mint);
    border-color: var(--mint);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid var(--black);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.forgot-link {
    color: var(--blue);
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-submit {
    padding: 0.8rem;
    font-size: 0.95rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    position: relative;
    background: #141414;
    /* Matches card inner approx */
    padding: 0 1rem;
    color: var(--t2);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-md);
    color: var(--t0);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--tf);
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-social.google img {
    width: 18px;
    height: 18px;
}

.btn-social.facebook i {
    color: #1877F2;
    font-size: 1.1rem;
}

.auth-footer {
    text-align: center;
    color: var(--t2);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--t0);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    text-underline-offset: 4px;
    transition: all var(--tf);
}

.auth-footer a:hover {
    color: var(--mint);
    text-decoration-color: var(--mint);
}

.auth-footer-bottom {
    flex-shrink: 0;
    padding: 1.5rem 0;
    border-top: none;
    text-align: center;
}