:root {
    --primary: #6C63FF;
    --secondary: #00D4FF;
    --accent: #FF4D8D;
    --dark: #0A0A0A;
    --light: #FFFFFF;
    --panel: rgba(255, 255, 255, .08);
    --panel-border: rgba(255, 255, 255, .16);
    --text: #F6F7FB;
    --muted: #AEB4C4;
    --shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

[data-bs-theme="light"] {
    --panel: rgba(255, 255, 255, .78);
    --panel-border: rgba(10, 10, 10, .08);
    --text: #101221;
    --muted: #5D6475;
    --shadow: 0 24px 80px rgba(22, 28, 45, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 15%, rgba(108, 99, 255, .24), transparent 28rem),
        radial-gradient(circle at 82% 6%, rgba(0, 212, 255, .18), transparent 26rem),
        radial-gradient(circle at 70% 58%, rgba(255, 77, 141, .12), transparent 24rem),
        var(--dark);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

[data-bs-theme="light"] body,
body:has([data-bs-theme="light"]) { background: linear-gradient(180deg, #fff 0%, #f6f8ff 45%, #fff 100%); }

a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; }

.particle-field::before,
.particle-field::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,.45) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
    opacity: .22;
    animation: drift 22s linear infinite;
    z-index: -1;
}
.particle-field::after { background-size: 86px 86px; animation-duration: 34s; opacity: .14; }
@keyframes drift { to { transform: translate3d(48px, 48px, 0); } }

.site-header {
    backdrop-filter: blur(20px);
    background: rgba(10,10,10,.62);
    border-bottom: 1px solid var(--panel-border);
}
[data-bs-theme="light"] .site-header { background: rgba(255,255,255,.72); }
.navbar { padding: .55rem 0; }
.brand-mark { align-items: center; gap: .7rem; font-weight: 850; letter-spacing: 0; }
.logo-orb {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary) 55%, var(--accent));
    box-shadow: 0 0 30px rgba(108,99,255,.55);
    animation: pulseGlow 3s ease-in-out infinite;
}
@keyframes pulseGlow { 50% { box-shadow: 0 0 44px rgba(0,212,255,.58); transform: translateY(-1px); } }
.nav-link { color: var(--muted); font-weight: 650; font-size: .94rem; }
.nav-link:hover { color: var(--text); }
.tool-search { width: min(280px, 100%); }
.tool-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.tool-search input {
    padding-left: 2.4rem;
    min-height: 40px;
    border-radius: 999px;
    color: var(--text);
    border: 1px solid var(--panel-border);
    background: var(--panel);
}
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: .5rem;
    z-index: 20;
}
.search-results a { display: block; padding: .7rem .9rem; border-radius: 8px; color: var(--text); }
.search-results a:hover { background: rgba(108,99,255,.16); }
.theme-toggle, .icon-btn, .favorite-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: var(--panel);
    color: var(--text);
    display: inline-grid;
    place-items: center;
}
.favorite-btn.active i { color: var(--accent); }

.ad-slot {
    min-height: 78px;
    border: 1px dashed rgba(174,180,196,.38);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: rgba(255,255,255,.035);
    font-size: .8rem;
}
.header-ad { min-height: 30px; border-width: 0 0 1px; border-radius: 0; font-size: .74rem; }
.mobile-sticky-ad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: rgba(10,10,10,.74); backdrop-filter: blur(18px); }
.mobile-sticky-ad .ad-slot { min-height: 54px; border-radius: 0; }

.hero-section { padding: clamp(2.8rem, 5vw, 4.8rem) 0 1.75rem; }
.tool-hero, .page-hero { padding: clamp(3rem, 6vw, 5rem) 0 2.2rem; }
.hero-section .row { min-height: min(520px, calc(100vh - 170px)); }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .42rem .72rem;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--panel);
    color: var(--secondary);
    font-weight: 750;
    font-size: .92rem;
    animation: fadeUp .55s ease both;
}
h1 {
    max-width: 920px;
    margin: 1rem 0;
    font-size: clamp(2.35rem, 5.4vw, 4.55rem);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
}
.hero-section h1 {
    max-width: 780px;
    animation: fadeUp .65s ease .08s both;
}
.hero-copy, .tool-hero p, .section-heading p, .page-hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.14rem);
}
.hero-copy { animation: fadeUp .7s ease .15s both; }
.hero-actions, .tool-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.1rem; }
.tool-actions {
    align-items: center;
    gap: .65rem;
}
.hero-actions { animation: fadeUp .75s ease .22s both; }
.btn-premium {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 16px 40px rgba(108,99,255,.32);
    border-radius: 12px;
    padding: .72rem .95rem;
    font-weight: 800;
}
.btn-glass {
    color: var(--text);
    border: 1px solid var(--panel-border);
    background: var(--panel);
    border-radius: 12px;
    padding: .72rem .95rem;
    font-weight: 800;
}
.tool-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    width: auto;
    padding: .66rem .9rem;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    color: var(--text);
    background: var(--panel);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}
.tool-action-btn:hover {
    color: var(--text);
    border-color: rgba(0,212,255,.38);
    background: rgba(255,255,255,.1);
    transform: translateY(-1px);
}
.tool-action-btn.favorite-btn {
    width: auto;
    height: auto;
}
.tool-action-btn.favorite-btn.active i { color: var(--accent); }
.hero-stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; color: var(--muted); animation: fadeUp .8s ease .28s both; }
.hero-stats span {
    padding: .48rem .7rem;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: rgba(255,255,255,.045);
}
.hero-stats strong { color: var(--text); font-size: 1.05rem; margin-right: .25rem; }

.glass-panel {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.055));
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
}
.floating-stage { position: relative; min-height: 350px; animation: fadeInScale .75s ease .15s both; }
.hero-core {
    position: absolute;
    inset: 80px 72px 54px 72px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1.4rem;
    overflow: hidden;
}
.hero-core::before {
    content: "";
    position: absolute;
    inset: -60% -30%;
    background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.16), transparent 65%);
    animation: sheen 5.5s ease-in-out infinite;
}
.hero-core > * { position: relative; }
.hero-core i { font-size: 2.35rem; color: var(--secondary); }
.hero-core strong { display: block; font-size: 1.45rem; }
.hero-core small { color: var(--muted); }
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .68rem .85rem;
    border-radius: 8px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
    font-size: .92rem;
    animation: floaty 5s ease-in-out infinite;
}
.floating-card i { color: var(--secondary); }
.card-a { top: 26px; left: 44px; }
.card-b { top: 84px; right: 24px; animation-delay: .7s; }
.card-c { bottom: 72px; left: 16px; animation-delay: 1.2s; }
.card-d { bottom: 16px; right: 70px; animation-delay: 1.8s; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes sheen { 0%, 45% { transform: translateX(-80%) rotate(10deg); } 70%, 100% { transform: translateX(80%) rotate(10deg); } }

.section-band, .tools-section, .blog-preview, .tool-workspace, .content-page { padding: 4rem 0; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.section-heading span { color: var(--secondary); font-weight: 850; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 900; margin: .4rem 0; }
.category-tabs { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.category-tabs a {
    padding: .72rem .95rem;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text);
    font-weight: 750;
}
.category-tabs i { margin-right: .45rem; color: var(--secondary); }
.tool-category { padding: 2rem 0; scroll-margin-top: 120px; }
.category-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.category-title div { display: flex; align-items: center; gap: .8rem; }
.category-title i { color: var(--secondary); font-size: 1.7rem; }
.category-title h3 { margin: 0; font-size: 1.55rem; font-weight: 850; }
.category-title a { color: var(--secondary); font-weight: 750; }
.tool-card, .blog-card, .side-panel, .tool-panel {
    position: relative;
    height: 100%;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 36px rgba(0,0,0,.12);
}
.tool-card {
    padding: 1.25rem;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    overflow: hidden;
}
.tool-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -55% 20%;
    height: 130px;
    background: radial-gradient(circle, color-mix(in srgb, var(--tool-color, #6C63FF) 55%, transparent), transparent 70%);
}
.tool-card:hover { transform: translateY(-7px); border-color: rgba(0,212,255,.45); box-shadow: 0 24px 70px rgba(0,212,255,.12); }
.tool-card .favorite-btn { position: absolute; right: .8rem; top: .8rem; z-index: 3; }
.tool-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--tool-color), var(--secondary));
}
.tool-card h4 { margin: 1rem 0 .45rem; font-size: 1.1rem; font-weight: 850; }
.tool-card p { color: var(--muted); min-height: 72px; }
.tool-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.tool-meta i { color: #FFD166; }

.blog-card { overflow: hidden; }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: rgba(255,255,255,.06); }
.blog-card div { padding: 1.1rem; }
.blog-card span { color: var(--secondary); font-weight: 800; }
.blog-card h3 { font-size: 1.15rem; font-weight: 850; margin: .35rem 0; }
.blog-card p { color: var(--muted); }
.blog-card a { color: var(--secondary); font-weight: 800; }

.breadcrumbs { display: flex; gap: .55rem; align-items: center; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--secondary); }
.rating-widget {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: .16rem;
    padding: .55rem .75rem;
    border: 1px solid rgba(255,209,102,.2);
    border-radius: 12px;
    color: #FFD166;
    background: rgba(255,209,102,.08);
    line-height: 1;
}
.tool-panel, .side-panel { padding: 1.25rem; }
.tool-panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid var(--panel-border); padding-bottom: 1rem; margin-bottom: 1rem; }
.tool-panel-head h2 { font-size: 1.35rem; margin: 0; font-weight: 850; }
.tool-panel-head span { color: var(--muted); }
.form-label { color: var(--muted); font-weight: 700; }
.form-control, .form-select {
    color: var(--text);
    background-color: rgba(255,255,255,.07);
    border-color: var(--panel-border);
    border-radius: 8px;
}
.form-control:focus, .form-select:focus { color: var(--text); background-color: rgba(255,255,255,.1); border-color: var(--secondary); box-shadow: 0 0 0 .2rem rgba(0,212,255,.14); }
.result-box {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(0,0,0,.12);
}
.result-box h3 { margin: 0; font-size: 1.1rem; font-weight: 850; }
.result-content { color: var(--text); white-space: pre-wrap; word-break: break-word; margin-top: .8rem; }
.yt-result-grid {
    display: grid;
    gap: .85rem;
    white-space: normal;
}
.yt-result-grid > h2,
.yt-result-grid > h3,
.yt-result-grid > h4 {
    margin: .35rem 0 0;
    padding: .75rem .9rem;
    border: 1px solid rgba(0,212,255,.2);
    border-radius: 8px;
    color: var(--text);
    background: linear-gradient(135deg, rgba(108,99,255,.18), rgba(0,212,255,.08));
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 900;
}
.yt-result-grid > p,
.yt-result-grid > ul {
    margin: 0;
    padding: .95rem 1rem;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
    color: var(--muted);
    line-height: 1.7;
}
.yt-result-grid ul { padding-left: 2.2rem; }
.yt-result-grid li { margin: .35rem 0; }
.yt-result-grid code {
    padding: .1rem .35rem;
    border-radius: 6px;
    color: var(--secondary);
    background: rgba(0,212,255,.1);
}
.yt-result-card {
    display: grid;
    gap: .55rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
        radial-gradient(circle at top right, rgba(0,212,255,.12), transparent 45%);
    white-space: normal;
}
.yt-result-card.error {
    border-color: rgba(255,77,141,.35);
    background: rgba(255,77,141,.08);
}
.yt-result-card strong { color: var(--text); }
.yt-result-card span, .yt-result-card p { color: var(--muted); margin: 0; }
.yt-result-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
    gap: .8rem;
    padding: .9rem 1rem;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
        radial-gradient(circle at top left, rgba(108,99,255,.16), transparent 42%);
}
.yt-result-item span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-weight: 900;
}
.yt-result-item strong { line-height: 1.45; }
.yt-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
}
.yt-result-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    white-space: normal;
}
.yt-result-table th,
.yt-result-table td {
    padding: .8rem .9rem;
    border-bottom: 1px solid var(--panel-border);
    vertical-align: top;
}
.yt-result-table th {
    color: var(--text);
    background: rgba(108,99,255,.18);
    font-weight: 900;
}
.yt-result-table td { color: var(--muted); }
.yt-result-table tr:last-child td { border-bottom: 0; }
.image-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
    gap: 1rem;
    align-items: stretch;
    white-space: normal;
}
.image-preview-card,
.image-result-card {
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
        radial-gradient(circle at top right, rgba(0,212,255,.1), transparent 48%);
    overflow: hidden;
}
.image-preview-card {
    min-height: 260px;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.image-preview-card img {
    max-width: 100%;
    max-height: 520px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 18px 48px rgba(0,0,0,.24);
}
.image-result-card {
    display: grid;
    align-content: start;
    gap: .65rem;
    padding: 1rem;
}
.image-result-card strong {
    color: var(--text);
    font-size: 1.08rem;
}
.image-result-card span {
    color: var(--muted);
    padding: .55rem .65rem;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    background: rgba(255,255,255,.045);
}
.ai-source {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .5rem;
    padding: .42rem .65rem;
    border-radius: 999px;
    color: var(--secondary);
    background: rgba(0,212,255,.1);
    border: 1px solid rgba(0,212,255,.24);
    font-size: .84rem;
    font-weight: 800;
}
.yt-loading { display: grid; gap: .7rem; padding: .3rem 0; }
.skeleton-line {
    width: 100%;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.2), rgba(255,255,255,.08));
    background-size: 220% 100%;
    animation: shimmer 1.1s linear infinite;
}
.skeleton-line.short { width: 62%; margin-top: .7rem; }
.skeleton-line.mini { width: 38%; height: 14px; }
@keyframes shimmer { to { background-position: -220% 0; } }
.mini-list { display: grid; gap: .55rem; }
.mini-list a { display: flex; align-items: center; gap: .6rem; padding: .7rem; border-radius: 8px; background: rgba(255,255,255,.055); color: var(--text); }
.mini-list i { color: var(--secondary); }
.side-panel { margin-bottom: 1rem; }
.side-panel h3 { font-size: 1rem; font-weight: 850; margin-bottom: .8rem; }

.footer-band { padding: 4rem 0 1.5rem; border-top: 1px solid var(--panel-border); background: rgba(0,0,0,.2); }
.footer-band h3 { font-size: .92rem; text-transform: uppercase; color: var(--muted); font-weight: 850; }
.footer-band a:not(.brand-mark) { display: block; color: var(--muted); margin: .45rem 0; }
.footer-band a:hover { color: var(--text); }
.socials { display: flex; gap: .6rem; }
.socials a { width: 38px; height: 38px; display: grid !important; place-items: center; border: 1px solid var(--panel-border); border-radius: 10px; }
.footer-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-tags a { border: 1px solid var(--panel-border); border-radius: 999px; padding: .45rem .7rem; }
.footer-bottom { color: var(--muted); border-top: 1px solid var(--panel-border); margin-top: 2rem; padding-top: 1.2rem; }

@media (max-width: 991px) {
    .navbar-collapse { padding: 1rem 0; }
    .tool-search { margin: 1rem 0; }
    .floating-stage { min-height: 310px; }
    .hero-core { inset: 72px 42px 48px; }
    .image-result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .hero-section { padding-top: 2.2rem; }
    .tool-hero, .page-hero { padding-top: 2.6rem; }
    h1 { font-size: 2.35rem; }
    .hero-section .row { min-height: auto; }
    .floating-card { font-size: .86rem; padding: .65rem .75rem; }
    .floating-stage { min-height: 280px; }
    .hero-core { inset: 68px 26px 44px; }
    .card-a { left: 6px; }
    .card-b { right: 0; }
    .card-c { left: 0; bottom: 62px; }
    .card-d { right: 12px; }
    .category-title { align-items: flex-start; }
}
