:root {
    --primary: #0f2236;
    --secondary: #00c9a7;
    --accent: #f59e0b;
    --danger: #e74c3c;
    --bg-body: #f0f4f8;
    --bg-card: #ffffff;
    --bg-nav: #0f2236;
    --text-main: #000000;
    --text-muted: #202020;
    --text-light: #f0f0f0;
    --border: #e2e8f0;
    --shadow: rgba(15,34,54,0.10);
    --shadow-lg: rgba(15,34,54,0.20);
    --svc-blue: #2980b9;
    --svc-purple: #7c3aed;
    --svc-orange: #d35400;
    --svc-green: #059669;
    --svc-teal: #0891b2;
    --radius: 12px;
    --radius-sm: 6px;
}
body.dark-mode {
    --primary: #0a1929;
    --bg-body: #0d1b2a;
    --bg-card: #162032;
    --bg-nav: #060f1a;
    --text-main: #ffffff;
    --text-muted: #e0e0e0;
    --border: #1e3a5f;
    --shadow: rgba(0,0,0,0.4);
    --shadow-lg: rgba(0,0,0,0.6);
}
body.dark-mode h1, body.dark-mode h3, body.dark-mode h4 { color: #e2e8f0; }
body.dark-mode h2 { color: var(--secondary); }
body.dark-mode .stat-label { color: var(--secondary); background: rgba(0,201,167,0.05); }
body.dark-mode input, body.dark-mode select, body.dark-mode textarea {
    background-color: #1e3a5f; color: #e2e8f0; border-color: #2a4a6f;
}
body.dark-mode .wizard-label { color: var(--secondary); }
* { box-sizing: border-box; }
body {
    font-family: 'Lato', sans-serif;
    margin: 0; padding: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex; flex-direction: column; min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}
/* ── NAVIGATION ── */
nav {
    background-color: var(--bg-nav);
    padding: 0 2rem;
    min-height: 68px;
    position: sticky; top: 0; z-index: 1000;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-left { display: flex; align-items: center; gap: 30px; }
.branding { cursor: pointer; display: flex; flex-direction: column; }
.logo { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; font-weight: 800; color: white; letter-spacing: 2px; text-transform: uppercase; }
.sub-logo { font-size: 0.65rem; color: var(--secondary); letter-spacing: 1.5px; margin-top: 1px; text-transform: uppercase; font-family: 'Lato', sans-serif; }
nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
nav a { color: #94a3b8; text-decoration: none; font-weight: 500; font-size: 0.78rem; cursor: pointer; text-transform: uppercase; padding: 8px 10px; display: flex; align-items: center; gap: 4px; transition: color 0.2s; border-radius: 4px; letter-spacing: 0.5px; }
nav a:hover, nav a.active-nav { color: var(--secondary); }
.dropdown { position: relative; display: flex; align-items: center; }
.dropdown-content {
    display: none; position: absolute; top: calc(100% + 4px); left: 0;
    background: var(--bg-card); min-width: 270px;
    box-shadow: 0 12px 40px var(--shadow-lg); z-index: 100;
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 3px solid var(--secondary); overflow: hidden;
}
.dropdown-content a {
    color: var(--text-main); padding: 14px 18px; display: block;
    border-bottom: 1px solid var(--border); font-size: 0.85rem; text-transform: none; letter-spacing: 0;
}
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a span { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.dropdown-content a:hover { background: var(--bg-body); color: var(--secondary); }
.dropdown:hover .dropdown-content { display: block; }
.nav-right { display: flex; gap: 15px; align-items: center; }
.theme-toggle { cursor: pointer; font-size: 1.1rem; color: #94a3b8; padding: 6px; transition: color 0.2s; }
.theme-toggle:hover { color: var(--secondary); }
.cart-wrapper { position: relative; cursor: pointer; }
.cart-icon { font-size: 1.2rem; color: #94a3b8; transition: color 0.2s; }
.cart-wrapper:hover .cart-icon { color: var(--secondary); }
.cart-badge { position: absolute; top: -8px; right: -8px; background: var(--accent); color: #000; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; }
.nav-toggle { display: none; background: transparent; border: none; color: #94a3b8; padding: 6px 8px; cursor: pointer; font-size: 1.6rem; line-height: 1; border-radius: 4px; }
.nav-toggle:hover { color: var(--secondary); }

/* Tablet: keep the flex-wrap layout, but tighten spacing. */
@media (max-width: 1100px) and (min-width: 901px) {
    nav { flex-direction: column; padding: 12px; gap: 10px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 4px; }
    .nav-right { justify-content: center; }
}

/* Phone / small-tablet: hamburger + vertical accordion menu.
   .nav-left / .nav-right use display:contents so their children (branding, ul,
   theme, cart, hamburger) participate directly in nav's flex layout — that lets
   the ul wrap onto its own row below the header, while the hamburger stays
   pinned at the top-right next to the theme/cart icons. */
@media (max-width: 900px) {
    nav { padding: 8px 14px; min-height: 56px; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
    .nav-left, .nav-right { display: contents; }
    .branding { flex: 1 1 auto; min-width: 0; order: 0; }
    .logo { font-size: 1.15rem; letter-spacing: 1px; }
    .sub-logo { display: none; }
    .theme-toggle { order: 1; }
    .cart-wrapper  { order: 2; }
    .nav-toggle { order: 3; display: inline-flex; align-items: center; justify-content: center; }

    /* The menu list — hidden by default, revealed as a full-width column when nav-open. */
    nav ul {
        order: 10;
        flex-basis: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    nav.nav-open ul { display: flex; }
    nav.nav-open ul > li { width: 100%; }
    nav.nav-open ul > li > a {
        padding: 12px 8px;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        justify-content: space-between;
    }

    /* Dropdowns become inline accordions on mobile. */
    .dropdown { display: block; }
    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        border-top: none;
        border-radius: 0;
        min-width: 0;
        background: rgba(0,0,0,0.25);
    }
    /* Nav background is dark on mobile — use light text for the collapsed panels. */
    .dropdown-content a {
        color: #cbd5e1;
        padding: 10px 20px 10px 32px;
        font-size: 0.82rem;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .dropdown-content a:last-child { border-bottom: none; }
    .dropdown-content a span { color: rgba(203,213,225,0.6); }
    .dropdown-content a:hover { background: rgba(0,201,167,0.08); color: var(--secondary); }
    /* Suppress the desktop hover-to-open behavior on touch/mobile. */
    .dropdown:hover .dropdown-content { display: none; }
    .dropdown.open > .dropdown-content { display: block; }

    /* Side panels (cart, cosmid info) should never exceed viewport width. */
    .side-panel { max-width: 92vw; }
}

/* ── LAYOUT ── */
.content-wrapper { flex: 1; }
.page-section { display: none; padding: 50px 20px 80px; max-width: 1200px; margin: 0 auto; animation: fadeIn 0.35s ease; }
.page-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── TYPOGRAPHY ── */
h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
h2 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--secondary); margin-top: 50px; margin-bottom: 20px; border-bottom: 2px solid var(--border); padding-bottom: 10px; font-size: 1.4rem; }
h3 { font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--primary); margin-top: 30px; font-size: 1.15rem; }
h4 { font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--primary); margin-bottom: 5px; font-size: 1rem; }
p, li { line-height: 1.75; font-size: 0.97rem; color: var(--text-main); margin-bottom: 14px; }
.page-section > h1 { text-align: center; font-size: 2rem; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1rem; margin-bottom: 40px; }

/* ── ARTICLE META CARD ── */
.article-meta {
    background: var(--bg-card); padding: 50px; border-radius: 16px;
    box-shadow: 0 4px 24px var(--shadow); margin-bottom: 36px;
    border-top: 5px solid var(--secondary);
}
@media (max-width: 1600px) { .article-meta { padding: 25px; } }
.source-box {
    background: var(--bg-body); border-left: 4px solid var(--secondary);
    padding: 20px 24px; margin-top: 40px; font-size: 0.88rem;
    font-family: 'Lato', sans-serif; color: var(--text-muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.info-badge {
    display: inline-block; background: rgba(0,201,167,0.12); color: var(--secondary);
    border: 1px solid rgba(0,201,167,0.3); padding: 3px 10px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600; margin-right: 6px; margin-bottom: 6px;
    font-family: 'Lato', sans-serif;
}

/* ── STRAIN STATS TABLE ── */
.strain-stats-table {
    width: 100%; border-collapse: collapse; font-size: 0.92rem;
    background: var(--bg-body); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); margin-bottom: 36px;
}
.strain-stats-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); }
.strain-stats-table tr:last-child td { border-bottom: none; }
.stat-label { font-weight: 700; color: var(--primary); width: 28%; background: rgba(0,0,0,0.025); border-right: 1px solid var(--border); font-family: 'Lato', sans-serif; font-size: 0.82rem; letter-spacing: 0.3px; }

/* ── CARDS ── */
.species-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 40px; }
.species-card {
    background: var(--bg-card); padding: 28px; border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow); transition: all 0.25s ease;
    border-top: 5px solid var(--secondary); cursor: pointer;
    display: flex; flex-direction: column;
}
.species-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px var(--shadow-lg); }
.species-card h2 { margin-top: 0; text-align: center; font-size: 1.25rem; border: none; padding-bottom: 0; }
.species-card ul { padding-left: 18px; flex-grow: 1; }
.species-card li { font-size: 0.9rem; margin-bottom: 7px; }

/* ── BUTTONS ── */
.btn {
    background: var(--secondary); color: #0a1929; border: none;
    padding: 11px 24px; border-radius: var(--radius-sm); cursor: pointer;
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; transition: all 0.25s; font-family: 'Lato', sans-serif;
    display: inline-block;
}
.btn:hover { background: #00b596; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,201,167,0.4); }
.btn-outline {
    background: transparent; border: 2px solid var(--secondary); color: var(--secondary);
    padding: 9px 20px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
    transition: all 0.25s; font-size: 0.85rem; font-family: 'Lato', sans-serif;
}
.btn-outline:hover { background: var(--secondary); color: #0a1929; }
.btn-sm { padding: 7px 14px; font-size: 0.78rem; }
.btn-blue { background: var(--svc-blue); color: white; }
.btn-blue:hover { background: #1f6fa0; }
.btn-purple { background: var(--svc-purple); color: white; }
.btn-purple:hover { background: #5b21b6; }
.btn-orange { background: var(--svc-orange); color: white; }
.btn-orange:hover { background: #a84300; }
.btn-green { background: var(--svc-green); color: white; }
.btn-green:hover { background: #047857; }

/* ── SIDE PANELS ── */
.side-panel {
    height: 100%; width: 0; position: fixed; z-index: 2000; top: 0; right: 0;
    background: var(--bg-card); overflow-x: hidden; transition: 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: -8px 0 30px var(--shadow-lg); padding-top: 60px;
}
.side-panel .closebtn { position: absolute; top: 12px; right: 20px; font-size: 32px; color: var(--text-muted); cursor: pointer; text-decoration: none; line-height: 1; }
.side-panel .closebtn:hover { color: var(--danger); }
.panel-content { padding: 28px; color: var(--text-main); }
.gene-list { max-height: 320px; overflow-y: auto; background: var(--bg-body); padding: 10px; border-radius: var(--radius-sm); margin-top: 12px; }
.gene-item { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 0.84rem; }
.gene-item:last-child { border-bottom: none; }
.gene-tag { font-family: 'Lato', sans-serif; font-weight: 600; color: var(--secondary); }
.cart-item { background: var(--bg-body); border: 1px solid var(--border); padding: 12px; margin-bottom: 10px; border-radius: var(--radius-sm); font-size: 0.88rem; border-left: 3px solid var(--secondary); }
.cart-item-title { font-weight: 700; font-family: 'Lato', sans-serif; margin-bottom: 4px; }

/* ── MODAL ── */
.modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); overflow-y: auto; }
.modal-content { background: var(--bg-card); margin: 4% auto; padding: 44px; border-radius: 16px; width: 90%; max-width: 660px; position: relative; box-shadow: 0 24px 60px var(--shadow-lg); color: var(--text-main); border-top: 5px solid var(--secondary); }
.radio-item { display: flex; align-items: flex-start; margin-bottom: 12px; cursor: pointer; padding: 10px 12px; border: 1px solid transparent; border-radius: var(--radius-sm); transition: background 0.15s; }
.radio-item:hover { background: var(--bg-body); border-color: var(--border); }
.radio-item input[type="radio"] { margin: 2px 14px 0 0; cursor: pointer; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--secondary); }
.radio-item label { cursor: pointer; font-weight: 500; line-height: 1.4; }
.radio-item label small { display: block; color: var(--text-muted); font-size: 0.78rem; margin-top: 3px; font-weight: 400; }

/* Order button tooltip */
.order-btn-wrap { position: relative; display: inline-block; }
.order-tooltip {
    visibility: hidden; opacity: 0;
    background: var(--primary); color: white;
    padding: 12px 16px; border-radius: var(--radius-sm);
    font-size: 0.82rem; line-height: 1.5;
    position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    white-space: nowrap; min-width: 220px; max-width: 280px; white-space: normal;
    box-shadow: 0 8px 20px var(--shadow-lg); z-index: 100;
    transition: opacity 0.2s; pointer-events: none;
    border-left: 3px solid var(--secondary);
}
.order-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--primary); }
.order-btn-wrap:hover .order-tooltip { visibility: visible; opacity: 1; }

/* ── FORMS ── */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
    padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    width: 100%; background: var(--bg-body); color: var(--text-main);
    font-family: 'Lato', sans-serif; font-size: 0.9rem;
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(0,201,167,0.12); }

/* ── WIZARD / DELETION KITS ── */
.wizard-step { margin-bottom: 20px; padding: 24px; background: var(--bg-body); border: 1.5px solid var(--border); border-radius: var(--radius); }
.wizard-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.wizard-col { flex: 1; min-width: 220px; text-align: left; }
.wizard-label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--primary); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.5px; font-family: 'Lato', sans-serif; }
.summary-box { background: #0d1b2a; color: #e2e8f0; padding: 22px; border-radius: var(--radius-sm); margin-top: 20px; border-left: 5px solid var(--secondary); font-family: 'Lato', sans-serif; font-size: 0.9rem; line-height: 1.7; text-align: left; }
body.dark-mode .summary-box { background: #060f1a; }

/* ── JBROWSE & BROWSER ── */
iframe { width: 100%; height: 620px; border: none; border-radius: var(--radius); }
.browser-controls { display: flex; gap: 12px; margin-bottom: 20px; align-items: center; background: var(--bg-card); padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); flex-wrap: wrap; box-shadow: 0 2px 8px var(--shadow); }
.browser-controls select { width: auto; min-width: 180px; }
.browser-controls input { flex-grow: 1; min-width: 200px; }
.cosmid-simulator { margin-top: 28px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.sample-tag { background: var(--secondary); color: #0a1929; padding: 7px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; cursor: pointer; margin-right: 8px; display: inline-block; margin-bottom: 10px; transition: transform 0.15s, box-shadow 0.15s; font-family: 'Lato', sans-serif; }
.sample-tag:hover { transform: scale(1.06); box-shadow: 0 4px 12px rgba(0,201,167,0.3); }

/* ── CHECKOUT ── */
.checkout-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 0.92rem; }
.checkout-table th, .checkout-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.checkout-table th { color: var(--secondary); font-family: 'Lato', sans-serif; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── SUPPORT ── */
.support-grid { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.support-item { flex: 1; min-width: 240px; padding: 36px; background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius); text-align: center; transition: border-color 0.25s, transform 0.25s; display: flex; flex-direction: column; align-items: center; }
.support-item:hover { border-color: var(--secondary); transform: translateY(-4px); }
.support-item .icon { font-size: 2.5rem; margin-bottom: 16px; }
.support-item p { flex-grow: 1; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ── HERO SECTION ── */
.hero-wrap { background: linear-gradient(135deg, #0f2236 0%, #0a3d2e 100%); border-radius: 20px; padding: 70px 60px; text-align: center; position: relative; overflow: hidden; margin-bottom: 40px; }
.hero-wrap::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300c9a7' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero-wrap h1 { color: white; font-size: 3rem; margin-bottom: 16px; position: relative; }
.hero-wrap p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 700px; margin: 0 auto 36px; position: relative; }
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; position: relative; }
.hero-badge { background: rgba(0,201,167,0.15); border: 1px solid rgba(0,201,167,0.35); color: var(--secondary); padding: 6px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; font-family: 'Lato', sans-serif; }

/* ── HOME GRID ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 24px; margin-top: 36px; justify-items:stretch; max-width:1100px; margin-left:auto; margin-right:auto; }
.feature-card { background: var(--bg-card); padding: 28px; border-radius: var(--radius); box-shadow: 0 2px 12px var(--shadow); border-bottom: 4px solid transparent; transition: all 0.25s; text-align: center; }
.feature-card:hover { border-bottom-color: var(--secondary); transform: translateY(-4px); box-shadow: 0 10px 28px var(--shadow); }
.feature-card .fc-icon { font-size: 2rem; margin-bottom: 14px; display:block; }
.feature-card h4 { font-size: 1.05rem; margin-bottom: 8px; text-align:center; }
.feature-card p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0; text-align:center; }

/* ── TAXONOMY / INFO ── */
.taxon-path { background: var(--bg-body); padding: 12px 18px; border-radius: var(--radius-sm); font-family: 'Lato', sans-serif; font-size: 0.82rem; color: var(--text-muted); border: 1px solid var(--border); margin-bottom: 28px; }
.taxon-path span { color: var(--secondary); }
.callout { background: rgba(0,201,167,0.08); border-left: 4px solid var(--secondary); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 20px 0; }
.callout-warn { background: rgba(245,158,11,0.08); border-color: var(--accent); }
.callout p { margin: 0; font-size: 0.92rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

/* ── SERVICE ORDER PAGE ── */
.svc-wizard { background: var(--bg-body); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px; margin-top: 28px; }
.svc-wizard h3 { margin-top: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field-row label, .field-label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-family: 'Lato', sans-serif; }
.gene-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; min-height: 36px; }
.gene-chip { background: rgba(0,201,167,0.12); border: 1px solid rgba(0,201,167,0.3); color: var(--secondary); padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-family: 'Lato', sans-serif; display: flex; align-items: center; gap: 6px; }
.gene-chip .rm { cursor: pointer; color: var(--danger); font-weight: 700; }

/* ── COSMID LIBRARY INFO ── */
.lib-header { background: linear-gradient(135deg, var(--primary) 0%, #0a3d2e 100%); border-radius: var(--radius); padding: 36px; color: white; margin-bottom: 28px; position: relative; overflow: hidden; }
.lib-header::after { content: ''; position: absolute; right: -30px; top: -30px; width: 180px; height: 180px; border-radius: 50%; background: rgba(0,201,167,0.08); }
.lib-header h1 { color: white; margin-bottom: 8px; }
.lib-header p { color: rgba(255,255,255,0.75); margin-bottom: 0; }
.lib-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 16px; margin: 28px 0; }
.lib-stat { background: var(--bg-card); padding: 20px; border-radius: var(--radius-sm); text-align: center; border: 1px solid var(--border); box-shadow: 0 2px 8px var(--shadow); }
.lib-stat .val { font-size: 1.6rem; font-weight: 800; color: var(--secondary); font-family: 'Montserrat', sans-serif; }
.lib-stat .lbl { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; font-family: 'Lato', sans-serif; }

/* ── TRANSPOSON ── */
.tn-order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; margin-top: 28px; }
.tn-order-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; transition: all 0.25s; }
.tn-order-card:hover { border-color: var(--secondary); transform: translateY(-3px); box-shadow: 0 8px 24px var(--shadow); }
.tn-order-card h4 { margin-top: 0; font-size: 1.05rem; }
.tn-order-card p { font-size: 0.88rem; color: var(--text-muted); flex-grow: 1; }
.price-tag { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--secondary); margin-bottom: 14px; }
.price-tag small { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }

/* ── DOWNLOAD BUTTONS ── */
.dl-btn { background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); padding: 7px 14px; border-radius: var(--radius-sm); font-size: 0.8rem; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; font-family: 'Lato', sans-serif; margin-top: 8px; }
.dl-btn:hover { border-color: var(--secondary); color: var(--secondary); background: rgba(0,201,167,0.06); }
.dl-btn-show { display: inline-flex !important; }

footer { background: var(--bg-nav); color: rgba(255,255,255,0.7); text-align: center; padding: 24px; font-size: 0.82rem; margin-top: auto; }
footer a { color: var(--secondary); text-decoration: none; }
footer p { color: rgba(255,255,255,0.6); margin: 4px 0; }

/* lib-browser responsive */
@media (max-width: 960px) {
    #lib-browser > div:last-of-type { grid-template-columns: 1fr !important; }
    #lib-browser > div:last-of-type > div:last-child { position:static; }
}
.sample-tag { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:180px; }
.sample-tag.active-cosmid { background:var(--accent) !important; color:#000 !important; transform:scale(1.05); }
