:root {
    --bg: #07070c;
    --surface: #0f0f14;
    --surface2: #16161d;
    --ac: #00e5ff;
    --ac-glow: rgba(0,229,255,.25);
    --orange: #ff9f0a;
    --red: #ff453a;
    --green: #30d158;
    --text: #e8e8e8;
    --dim: #777;
    --border: rgba(255,255,255,.07);
    --radius: 10px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, 'Inter', 'Segoe UI', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ═══ Header ═══ */
.irc-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(7,7,12,.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.brand-wrap { display: flex; align-items: center; gap: 14px; }
.logo-tech {
    font-weight: 900; letter-spacing: 3px; font-size: 1.3rem;
    background: linear-gradient(90deg, #fff, var(--ac));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.btn-back {
    background: none; border: 1px solid var(--border); color: var(--ac);
    padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: .8rem;
    text-decoration: none; transition: .3s;
}
.btn-back:hover { background: var(--ac); color: #000; }
.header-status { font-size: .65rem; color: var(--ac); letter-spacing: 2px; opacity: .6; }

/* ═══ Search Bar ═══ */
.search-section {
    padding: 28px 24px 8px;
    max-width: 700px; margin: 0 auto;
}
.search-wrap {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px; padding: 10px 20px;
    transition: border-color .3s;
}
.search-wrap:focus-within { border-color: var(--ac); box-shadow: 0 0 20px var(--ac-glow); }
.search-wrap i { color: var(--dim); font-size: .9rem; }
.search-wrap input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 1rem;
}
.search-wrap input::placeholder { color: var(--dim); }
.search-count { text-align: center; color: var(--dim); font-size: .75rem; padding: 8px 0; }

/* ═══ Filter Pills ═══ */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding: 8px 24px 16px; justify-content: center;
}
.filter-pill {
    padding: 6px 16px; border-radius: 50px; font-size: .78rem;
    border: 1px solid var(--border); background: transparent;
    color: var(--dim); cursor: pointer; transition: .3s; white-space: nowrap;
}
.filter-pill:hover { border-color: var(--ac); color: var(--text); }
.filter-pill.active { background: var(--ac); color: #000; border-color: var(--ac); font-weight: 600; }

/* ═══ Navigation Breadcrumb ═══ */
.nav-hud {
    padding: 10px 24px;
    font-size: .78rem; color: var(--dim);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.nav-hud span { cursor: pointer; transition: .2s; }
.nav-hud span:hover { color: var(--text); }
.nav-hud span.active { color: var(--ac); font-weight: 600; }

/* ═══ Content Grid ═══ */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px; padding: 0 24px 40px;
}

/* ═══ Category Card ═══ */
.cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    cursor: pointer; transition: all .35s cubic-bezier(.4,0,.2,1);
    position: relative; overflow: hidden;
}
.cat-card::after {
    content: '→'; position: absolute; right: 24px; top: 50%;
    transform: translateY(-50%) translateX(10px); opacity: 0;
    font-size: 1.2rem; color: var(--ac); transition: .3s;
}
.cat-card:hover { border-color: var(--ac); transform: translateY(-2px); }
.cat-card:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.cat-card .icon { font-size: 2.2rem; margin-bottom: 14px; }
.cat-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.cat-card p { font-size: .78rem; color: var(--dim); line-height: 1.5; }
.cat-card .count { font-size: .7rem; color: var(--ac); margin-top: 10px; letter-spacing: 1px; }

/* ═══ Product Card ═══ */
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    cursor: pointer; transition: all .3s;
    display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--ac); transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,229,255,.06); }
.product-card .pc-brand {
    font-size: .65rem; color: var(--orange); letter-spacing: 2px;
    text-transform: uppercase; margin-bottom: 8px;
}
.product-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.product-card .pc-sub { font-size: .8rem; color: var(--dim); margin-bottom: 12px; }
.product-card .pc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.product-card .pc-tag {
    font-size: .65rem; padding: 3px 8px; border-radius: 4px;
    background: rgba(255,255,255,.04); color: var(--dim);
}
.product-card .pc-issues {
    font-size: .75rem; color: var(--red); opacity: .8;
    border-top: 1px solid var(--border); padding-top: 10px; margin-top: auto;
}
.product-card .pc-difficulty {
    display: inline-block; font-size: .65rem; padding: 2px 8px;
    border-radius: 4px; margin-top: 10px;
}
.diff-easy { background: rgba(48,209,88,.15); color: var(--green); }
.diff-moderate { background: rgba(255,159,10,.15); color: var(--orange); }
.diff-advanced { background: rgba(0,229,255,.15); color: var(--ac); }
.diff-expert { background: rgba(255,69,58,.15); color: var(--red); }

/* ═══ Brand Card ═══ */
.brand-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px; cursor: pointer; transition: .3s;
}
.brand-card:hover { border-color: var(--ac); transform: translateY(-2px); }
.brand-card h3 { font-size: 1rem; margin-bottom: 4px; }
.brand-card .bc-parent { font-size: .7rem; color: var(--dim); margin-bottom: 10px; }
.brand-card .bc-links { display: flex; gap: 8px; flex-wrap: wrap; }
.bc-link {
    font-size: .7rem; padding: 4px 10px; border-radius: 4px;
    background: rgba(255,255,255,.04); color: var(--ac);
    text-decoration: none; transition: .2s; border: 1px solid transparent;
}
.bc-link:hover { border-color: var(--ac); background: rgba(0,229,255,.1); }

/* ═══ Product Detail ═══ */
.detail-container { max-width: 900px; margin: 0 auto; padding: 30px 24px 80px; }

.detail-header { margin-bottom: 30px; }
.detail-header .dh-brand { font-size: .75rem; color: var(--orange); letter-spacing: 2px; margin-bottom: 6px; }
.detail-header h1 { font-size: 2rem; margin-bottom: 4px; }
.detail-header .dh-sub { font-size: 1rem; color: var(--dim); margin-bottom: 18px; }

/* Official Links */
.official-links {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px;
}
.ol-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 8px;
    font-size: .82rem; text-decoration: none; transition: .3s;
    border: 1px solid var(--border); color: var(--text);
}
.ol-btn i { color: var(--ac); }
.ol-btn:hover { border-color: var(--ac); background: rgba(0,229,255,.06); }
.ol-btn.primary { background: var(--ac); color: #000; border-color: var(--ac); }
.ol-btn.primary i { color: #000; }
.ol-btn.primary:hover { opacity: .85; }

/* Common Issues */
.issues-bar {
    background: rgba(255,69,58,.05);
    border: 1px solid rgba(255,69,58,.15);
    border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px;
}
.issues-bar h4 { color: var(--red); font-size: .8rem; margin-bottom: 8px; }
.issues-bar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.issues-bar li {
    font-size: .78rem; padding: 4px 12px; border-radius: 4px;
    background: rgba(255,69,58,.08); color: #ff9b9b;
}

/* Guide Stats */
.guide-meta {
    display: flex; gap: 24px; margin-bottom: 30px;
    padding: 16px 20px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.gm-stat { border-left: 2px solid var(--ac); padding-left: 14px; }
.gm-stat label { display: block; font-size: .6rem; color: var(--ac); opacity: .6; letter-spacing: 1px; text-transform: uppercase; }
.gm-stat span { font-size: .9rem; }

/* Tools & Safety */
.prep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 30px; }
.prep-box {
    padding: 18px; border-radius: var(--radius);
    border: 1px solid var(--border);
}
.prep-box h4 { font-size: .8rem; color: var(--ac); margin-bottom: 10px; }
.prep-box h4 i { margin-right: 6px; }
.prep-box ul { list-style: none; }
.prep-box li { font-size: .85rem; color: var(--dim); padding: 3px 0; }
.prep-box li::before { content: '→ '; color: var(--ac); font-size: .7rem; }
.prep-box.safety { border-color: rgba(255,69,58,.2); }
.prep-box.safety h4 { color: var(--red); }
.prep-box.safety li::before { content: '⚠ '; color: var(--red); }

/* Steps */
.guide-steps { border-top: 1px solid var(--border); padding-top: 24px; }
.step-block {
    display: flex; gap: 20px; margin-bottom: 28px;
    opacity: 0; transform: translateY(15px); animation: fadeUp .5s forwards;
}
.step-num {
    flex-shrink: 0; width: 36px; height: 36px;
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; color: var(--ac);
}
.step-text { font-size: .95rem; line-height: 1.7; flex: 1; }
.step-warning {
    background: rgba(255,69,58,.05); border: 1px solid var(--red);
    border-left-width: 4px; padding: 12px 16px; margin-top: 10px;
    font-size: .85rem; color: #ff9b9b; border-radius: 4px;
}
.step-warning i { color: var(--red); margin-right: 6px; }

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

/* ═══ Empty State ═══ */
.empty-state {
    text-align: center; padding: 80px 20px;
    color: var(--dim); font-size: .9rem;
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; display: block; opacity: .3; }

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
    .content-grid { grid-template-columns: 1fr; padding: 0 16px 30px; }
    .search-section { padding: 20px 16px 4px; }
    .filter-bar { padding: 8px 16px; }
    .irc-header { padding: 12px 16px; }
    .logo-tech { font-size: 1rem; }
    .header-status { display: none; }
    .prep-grid { grid-template-columns: 1fr; }
    .detail-header h1 { font-size: 1.5rem; }
    .guide-meta { flex-wrap: wrap; gap: 16px; }
    .official-links { flex-direction: column; }
    .ol-btn { justify-content: center; }
}
@media (max-width: 480px) {
    .brand-wrap .btn-back { display: none; }
}
