html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
}

.page-hero {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

.page-hero .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px 5px 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--ink2);
    margin-bottom: 1.4rem;
}

.page-hero .hero-pill-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #A855F7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
}

.page-hero h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.page-hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary), #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero p {
    font-size: 1rem;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── STATS ── */
.sym-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.sym-stat {
    text-align: center;
}

.sym-stat-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.sym-stat-lbl {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

.sym-stat-div {
    width: 1px;
    height: 28px;
    background: var(--border);
}

/* ── SEARCH BAR ── */
.search-wrap {
    max-width: 620px;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 10px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(91, 79, 233, 0.1);
}

.search-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    color: var(--ink);
}

.search-box input::placeholder {
    color: var(--muted);
}

.search-clear {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    transition: color 0.15s, background 0.15s;
}

.search-clear:hover {
    background: rgba(255, 90, 90, 0.09);
    color: #e55;
}

.search-result-count {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 12px;
    color: var(--muted);
}

/* ── MAIN LAYOUT ── */
.sym-layout {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem 4rem;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 24px;
    align-items: start;
    box-sizing: border-box;
}

/* ── SIDEBAR NAV ── */
.cat-sidebar {
    position: sticky;
    top: 76px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.cat-sidebar::-webkit-scrollbar {
    width: 4px;
}

.cat-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.cat-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.sidebar-title {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 6px 8px 10px;
}

.cat-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink2);
    transition: background 0.12s, color 0.12s;
    margin-bottom: 2px;
}

.cat-nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.cat-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.cat-nav-count {
    font-size: 10px;
    font-weight: 700;
    background: var(--bg);
    color: var(--muted);
    padding: 1px 6px;
    border-radius: 100px;
}

.cat-nav-item.active .cat-nav-count {
    background: rgba(91, 79, 233, 0.15);
    color: var(--primary);
}

/* ── SYMBOLS CONTENT ── */

.sym-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 80px;
}

.sym-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}

.sym-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.sym-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
}

.sym-section-count {
    font-size: 11px;
    color: var(--muted);
    margin-left: auto;
}

/* Symbol Grid */
.sym-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: 6px;
}

.sym-btn {
    aspect-ratio: 1;
    background: var(--symbol);
    /* background: var(--muted); */
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: border-color 0.12s, background 0.12s, transform 0.12s;
    position: relative;
}

.sym-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: scale(1.08);
    z-index: 1;
}

.sym-btn.copied {
    border-color: #48C9B0;
    background: rgba(72, 201, 176, 0.1);
}

.sym-char {
    font-size: 20px;
    line-height: 1;
    user-select: none;
}

/* Tooltip */
.sym-btn::after {
    content: attr(data-name);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--ink);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    font-family: 'Plus Jakarta Sans', sans-serif;
    z-index: 10;
}

.sym-btn:hover::after {
    opacity: 1;
}

/* ── COPIED BAR ── */
.copied-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--white);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(15, 14, 23, 0.25);
}

.copied-bar.show {
    transform: translateX(-50%) translateY(0);
}

.copied-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #48C9B0;
}

/* No results */
.no-results {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.no-results span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ── INFO STRIP ── */
.info-strip {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.info-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-block h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-block p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
    .sym-layout {
        grid-template-columns: 1fr;
    }

    .cat-sidebar {
        position: static;
        max-height: none;
        flex-direction: row;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px;
    }

    .sidebar-title {
        display: none;
    }

    .cat-nav-item {
        padding: 5px 12px;
        border-radius: 100px;
        margin-bottom: 0;
        font-size: 12px;
    }
}

@media (max-width: 500px) {
    .sym-grid {
        grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    }

    .sym-char {
        font-size: 18px;
    }

    .sym-stat-div {
        display: none;
    }
}