:root {
    color-scheme: light;
    --bg-deep: #0b1021;
    --bg-soft: #0f172a;
    --card: rgba(255, 255, 255, 0.95);
    --border: rgba(255, 255, 255, 0.28);
    --accent: #6e75ff;
    --accent-2: #35d0ff;
    --text: #e6ecff;
    --muted: #6c7484;
    --success: #22c55e;
    --shadow-strong: 0 20px 60px rgba(12, 17, 37, 0.26);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.12);
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(110, 117, 255, 0.18), transparent 34%),
        radial-gradient(circle at 80% 0%, rgba(53, 208, 255, 0.12), transparent 40%),
        linear-gradient(180deg, #0b1021 0%, #0e1532 50%, #0d1225 100%);
    color: var(--text);
    min-height: 100vh;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}

.site-header {
    position: relative;
    padding-bottom: 1rem;
}

.glass-nav {
    background: linear-gradient(135deg, rgba(27, 34, 57, 0.88), rgba(24, 30, 50, 0.82));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff;
}

.navbar .dropdown-menu {
    border-radius: 18px;
    z-index: 1100;
}

.hero-shell {
    padding: 1.5rem 0 2rem;
}

.landing-hero {
    position: relative;
    color: #e6ecff;
}

.landing-hero .row {
    position: relative;
    z-index: 1;
}

.hero-rail {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 1rem;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.05), rgba(110, 117, 255, 0.16));
    box-shadow: 0 22px 48px rgba(10, 13, 30, 0.26);
}

.rail-spark {
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 120deg, rgba(110, 117, 255, 0.25), rgba(53, 208, 255, 0.2), transparent 60%);
    filter: blur(60px);
    opacity: 0.8;
}

.rail-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rail-search .input-group {
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.25);
}

.metric-line {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #e6ecff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-chip.link {
    text-decoration: none;
    background: linear-gradient(135deg, rgba(110, 117, 255, 0.16), rgba(53, 208, 255, 0.2));
    border-color: rgba(110, 117, 255, 0.3);
}

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

.hero-gradient-a {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(110, 117, 255, 0.4), transparent 50%);
    top: -120px;
    left: -80px;
}

.hero-gradient-b {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(53, 208, 255, 0.35), transparent 55%);
    bottom: -120px;
    right: -120px;
}

.glass-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(10, 13, 30, 0.38);
    backdrop-filter: blur(12px);
}

.floating-panel {
    position: relative;
    z-index: 1;
}

.hero-panel .stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-pill-row .pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #e6ecff;
}

.formatter-card {
    background: linear-gradient(145deg, rgba(110, 117, 255, 0.16), rgba(13, 18, 37, 0.8));
    border-color: rgba(110, 117, 255, 0.25);
}

.formatter-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.formatter-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.formatter-chip .icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.25rem;
}

.formatter-chip .badge {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #e6ecff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.constellation {
    position: relative;
    padding: 1rem;
    border-radius: 22px;
    background: radial-gradient(circle at 40% 30%, rgba(110, 117, 255, 0.18), transparent 55%),
                radial-gradient(circle at 70% 80%, rgba(53, 208, 255, 0.16), transparent 60%),
                rgba(14, 18, 36, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 50px rgba(7, 10, 24, 0.38);
    overflow: hidden;
}

.constellation::after {
    content: "";
    position: absolute;
    inset: -60px;
    background: conic-gradient(from 180deg, rgba(110, 117, 255, 0.14), rgba(53, 208, 255, 0.1), transparent 60%);
    filter: blur(90px);
    opacity: 0.7;
}

.constellation-core {
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.constellation-ring {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
}

.floating-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    color: #e6ecff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 14px 34px rgba(6, 10, 25, 0.3);
}

.floating-chip:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(110, 117, 255, 0.4);
}

.floating-chip.muted {
    cursor: default;
    opacity: 0.85;
}

.floating-chip i {
    font-size: 1.25rem;
}

.floating-chip small {
    color: rgba(230, 236, 255, 0.82);
}

.hero-surface {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 244, 255, 0.95));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-strong);
    position: relative;
    overflow: hidden;
    color: #0f172a;
}

.main-shell {
    flex: 1;
}

.search-bar .form-control {
    border-radius: 14px 0 0 14px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.hero-search .form-control {
    background: #fff;
}

.search-bar .btn-gradient {
    border-radius: 0 14px 14px 0;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 12px 36px rgba(110, 117, 255, 0.4);
}

.btn-gradient:hover,
.btn-gradient:focus {
    color: #fff;
    box-shadow: 0 18px 44px rgba(110, 117, 255, 0.5);
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    font-size: 0.825rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.85);
}

.pill-live {
    background: rgba(20, 184, 166, 0.15);
    color: var(--success);
    border-color: rgba(20, 184, 166, 0.35);
    font-weight: 600;
}

.pill-soft {
    background: rgba(93, 95, 239, 0.08);
    color: #3b3f8f;
}

.pill-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e6ecff;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.8rem;
}

.tool-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 18px;
    color: #0f172a;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.tool-card.modern-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 246, 255, 0.92));
    border: 1px solid rgba(110, 117, 255, 0.18);
    box-shadow: 0 16px 36px rgba(12, 17, 37, 0.12);
    position: relative;
    overflow: hidden;
}

.tool-card.modern-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(110, 117, 255, 0.08), rgba(53, 208, 255, 0.06));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.tool-card.modern-card:hover::before {
    opacity: 1;
}

.tool-card .slug-hint {
    color: #4b5563;
}

.modern-card {
    padding: 1.2rem 1.4rem;
    backdrop-filter: blur(6px);
}

.blog-stack {
    position: sticky;
    top: 96px;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(110, 117, 255, 0.14));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 44px rgba(8, 12, 30, 0.35);
}

.blog-chip {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e6ecff;
    text-decoration: none;
    margin-bottom: 0.65rem;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.blog-chip:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(110, 117, 255, 0.3);
}

.blog-chip.muted {
    pointer-events: none;
    opacity: 0.75;
}

.blog-chip .chip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    background: rgba(110, 117, 255, 0.18);
    border-radius: 999px;
    color: #e6ecff;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.slug-hint {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9rem;
}

.tool-section-grid .empty-state {
    border: 1px dashed rgba(93, 95, 239, 0.4);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
}

.tool-section .card,
.tool-section form,
.tool-section aside {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
}

.ad-slot {
    min-height: 80px;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.site-footer {
    background: #0b1021;
    color: #e4e8f0;
}

.site-footer .text-reset {
    color: #e4e8f0;
}

.content-article p {
    line-height: 1.7;
}

.content-article ul {
    padding-left: 1.2rem;
}

.editor-preview {
    min-height: 240px;
}

[data-copy-target]::after {
    content: attr(aria-live-label);
    display: none;
}

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
}

.toast-container {
    z-index: 1060;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #10b981);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}

.pulse {
    position: relative;
}

.pulse::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, 0.45);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; transform: scale(0.95); }
    70% { opacity: 0; transform: scale(1.4); }
    100% { opacity: 0; transform: scale(1.6); }
}

.nav-pill {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.tool-menu {
    min-width: 720px;
}

.tool-menu-list a {
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
}

.tool-menu-list a:hover,
.tool-menu-list a.active {
    background: rgba(110, 117, 255, 0.12);
    color: #1c2557;
}

.dashboard-hero .hero-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-soft);
}

.dashboard-hero {
    color: #e6ecff;
}

.dashboard-hero h2,
.dashboard-hero .lead,
.dashboard-hero .hero-meta {
    color: #e6ecff;
}

.landing-hero h1,
.landing-hero .lead,
.landing-hero .hero-meta {
    color: #e6ecff;
}

.landing-hero .text-secondary {
    color: rgba(230, 236, 255, 0.85) !important;
}

.content-article {
    color: #e6ecff;
}

.content-article .card,
.content-article .bg-white {
    color: #0f172a;
}

.hero-meta .dot-live {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    color: #e6ecff;
}

.stat-card .text-secondary {
    color: rgba(230, 236, 255, 0.82) !important;
}

.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 239, 255, 0.9));
    color: #0f172a;
    border: 1px solid rgba(110, 117, 255, 0.25);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 16px 36px rgba(12, 17, 37, 0.14);
}

.quick-chip:hover {
    background: rgba(110, 117, 255, 0.16);
    transform: translateY(-2px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
}

.hero-card .input-group-text {
    border-radius: 12px 0 0 12px;
}

.hero-card .form-control {
    border-radius: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: 0;
}

.hero-card .btn-gradient {
    border-radius: 0 12px 12px 0;
}

.modern-card {
    padding: 1.2rem 1.4rem;
    backdrop-filter: blur(6px);
}

.hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--muted);
}

.editor-preview img.object-fit-contain,
.object-fit-contain {
    object-fit: contain;
}

.editor-toolbar .btn {
    white-space: nowrap;
}

.selection-rect {
    position: absolute;
    border: 2px dashed rgba(110, 117, 255, 0.9);
    background: rgba(110, 117, 255, 0.15);
    pointer-events: none;
}

.dropzone {
    width: 100%;
    min-height: 180px;
    border: 2px dashed rgba(110, 117, 255, 0.35);
    border-radius: 16px;
    display: block;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dropzone:hover,
.dropzone:focus-within {
    border-color: rgba(110, 117, 255, 0.7);
    box-shadow: 0 10px 28px rgba(110, 117, 255, 0.18);
}

.dropzone-inner {
    padding: 1.5rem;
}

.drop-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(110, 117, 255, 0.1);
    color: #0f172a;
    font-size: 1.4rem;
}

.selected-file .badge {
    font-size: 0.85rem;
}

.compressor-steps {
    list-style: none;
    padding-left: 0;
}

.compressor-steps li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.compressor-steps .step-index {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(110, 117, 255, 0.16);
    color: #1c2557;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.result-block {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.blog-card {
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 1rem;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.blog-cover {
    background-color: rgba(14, 21, 50, 0.3);
    border: 1px solid rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.blog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.75rem;
}

.blog-search .form-control {
    min-width: 260px;
}

.blog-empty {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(110, 117, 255, 0.4);
}

.blog-hero-cover img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #e6ecff;
    margin-top: 1.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1rem 0;
}

.article-body a {
    color: var(--accent-2);
    text-decoration: underline;
}

.blog-comment-form .form-control {
    background: rgba(255, 255, 255, 0.96);
}

.comment-list .card {
    border-radius: 12px;
}

.pagination .page-link {
    border-radius: 10px;
}

.section-spaced {
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}

.blog-header {
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(110, 117, 255, 0.08));
}

.share-bar .btn {
    border-radius: 999px;
}

.share-bar .pill {
    background: rgba(255, 255, 255, 0.1);
    color: #e6ecff;
    border-color: rgba(255, 255, 255, 0.18);
}

.blog-article {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-grid .card .btn-outline-dark {
    border-color: rgba(15, 23, 42, 0.2);
}
