/* Professional final pass: calm layout, readable controls, restrained motion. */

:root {
    --ui-radius: 14px;
    --ui-radius-sm: 10px;
    --ui-border: rgba(148, 163, 184, 0.18);
    --ui-shadow: 0 12px 30px rgba(2, 6, 23, 0.10);
    --ui-shadow-hover: 0 16px 38px rgba(2, 6, 23, 0.14);
}

body {
    letter-spacing: 0 !important;
}

#particle-canvas {
    opacity: 0.22 !important;
}

main {
    margin-top: 1.25rem !important;
}

.premium-card,
.glass,
.theme-strip,
.search-shell,
.qr-share-panel {
    border-radius: var(--ui-radius) !important;
    border: 1px solid var(--ui-border) !important;
    box-shadow: var(--ui-shadow) !important;
}

.premium-card {
    background: rgba(255, 255, 255, 0.84) !important;
}

.dark .premium-card,
.dark .search-shell,
.dark .theme-strip {
    background: rgba(15, 23, 42, 0.82) !important;
}

.premium-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--ui-shadow-hover) !important;
}

.premium-card::before,
.premium-card::after,
.section-rhythm::before,
.section-rhythm::after,
.surface-sheen::before,
button::after,
a[href]::after {
    display: none !important;
}

.transition-portal,
.premium-card,
main > section {
    animation-duration: 0.28s !important;
}

.theme-strip {
    display: flex !important;
    align-items: center;
    gap: 0.35rem !important;
    padding: 0.75rem !important;
    overflow-x: auto;
    scrollbar-width: thin;
}

.theme-strip > span {
    flex: 0 0 auto;
    margin-right: 0.25rem;
}

.theme-chip {
    flex: 0 0 auto;
    border-radius: 999px !important;
    padding: 0.42rem 0.72rem !important;
    font-size: 10px !important;
    line-height: 1;
    background: transparent !important;
    box-shadow: none !important;
}

.theme-chip.is-active {
    background: rgba(139, 92, 246, 0.12) !important;
}

.search-shell {
    position: relative !important;
    top: auto !important;
    padding: 0.85rem !important;
}

#site-search {
    border-radius: var(--ui-radius-sm) !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.mini-badge {
    border-radius: 999px !important;
    padding: 0.24rem 0.5rem !important;
    font-size: 9px !important;
    background: rgba(148, 163, 184, 0.08) !important;
}

.floating-nav {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 1rem !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0.25rem !important;
    padding: 0.35rem !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.86) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.22) !important;
}

.floating-nav-btn {
    width: 2.35rem !important;
    height: 2.35rem !important;
    border-radius: 999px !important;
    border: 0 !important;
    color: rgba(255, 255, 255, 0.84) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.floating-nav-btn:hover,
.floating-nav-btn:focus-visible {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.11) !important;
    transform: none !important;
}

.floating-nav-btn i {
    font-size: 0.92rem;
}

.search-match {
    outline: 1px solid rgba(139, 92, 246, 0.24) !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.06) !important;
}

.search-dim {
    opacity: 0.42 !important;
    filter: none !important;
}

.neon-btn:hover,
button:hover,
a[href]:hover {
    animation: none !important;
}

.rotating-neon-halo {
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.22), 0 10px 28px rgba(2, 6, 23, 0.16) !important;
}

.qr-share-panel {
    max-width: 480px !important;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 5.25rem !important;
    }

    .theme-strip {
        border-radius: 12px !important;
    }

    .floating-nav {
        width: calc(100vw - 1.5rem);
        justify-content: space-between;
        bottom: 0.75rem !important;
    }

    .floating-nav-btn {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }

    main {
        gap: 1rem !important;
    }

    .premium-card {
        border-radius: 12px !important;
        padding: 1rem !important;
    }
}

