@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-fast {
    animation: spin 0.8s linear infinite;
}

.svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke-width: 0;
    stroke: currentColor;
    fill: currentColor;
    vertical-align: -0.125em;
}

/* Fix browser autofill background glitch by using a massive transparent transition */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #111827 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.dark input:-webkit-autofill,
.dark input:-webkit-autofill:hover,
.dark input:-webkit-autofill:focus,
.dark input:-webkit-autofill:active {
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

::selection {
    background-color: rgba(255, 69, 0, 0.2);
    color: inherit;
}

/* Ensure glass-panel still works if not in header */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-panel {
    background: rgba(31, 41, 55, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.font-bold {
    font-weight: 500 !important;
}

/* ── Modern list styling for rich content sections ── */
.rich-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rich-content li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.625rem;
    padding: 0.125rem 0;
    line-height: 1.55;
}

.rich-content li::before {
    content: '';
    display: block;
    width: 6px;
    min-width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: var(--brand);
    margin-top: 0.45rem;
    flex-shrink: 0;
    opacity: 0.85;
}

/* Blog post prose content */
.prose-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.prose-content li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem;
    padding: 0.1rem 0;
    line-height: 1.65;
}

.prose-content li::before {
    content: '';
    display: block;
    width: 6px;
    min-width: 6px;
    height: 6px;
    border-radius: 9999px;
    background-color: var(--brand);
    margin-top: 0.55rem;
    flex-shrink: 0;
    opacity: 0.8;
}

