body {
    background-color: #f8fafc;
    color: #1e293b;
    cursor: none;
}

a,
button,
input,
[onclick],
.cursor-pointer {
    cursor: none !important;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
}

#preview-iframe {
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 auto;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-section {
    height: 55vh;
    min-height: 450px;
}

.bg-seasalt {
    background-image: linear-gradient(to right, #25aae1, #40e495, #30dd8a, #2bb673);
    background-size: 300% 100%;
    color: white !important;
    transition: all 0.3s ease-in-out;
    cursor: none;
}

.bg-seasalt:hover {
    background-position: 100% 0;
}

.glowing:hover {
    box-shadow: 0 4px 15px 0 rgba(49, 196, 190, 0.75);
}

.category-toolbar {
    position: relative;
}

.category-search {
    width: min(100%, 420px);
}

.category-strip-wrap {
    position: relative;
    margin-top: 18px;
}

.category-strip-wrap::before,
.category-strip-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 42px;
    pointer-events: none;
}

.category-strip-wrap::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc 20%, rgba(248, 250, 252, 0));
}

.category-strip-wrap::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc 20%, rgba(248, 250, 252, 0));
}

.category-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 4px 44px 10px;
    scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    scroll-snap-align: center;
    flex: 0 0 auto;
    transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.filter-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, #25aae1, #40e495, #30dd8a, #2bb673);
    background-size: 300% 100%;
    opacity: 0;
    transition: opacity 0.3s ease, background-position 0.3s ease;
    z-index: 0;
}

.filter-btn:hover,
.filter-btn.is-active {
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px 0 rgba(49, 196, 190, 0.35);
}

.filter-btn:hover::before,
.filter-btn.is-active::before {
    opacity: 1;
    background-position: 100% 0;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.template-card {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    animation: card-enter 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes card-enter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-action-btn {
    color: #64748b;
    background: #ffffff;
}

.template-card:hover .card-action-btn {
    color: #25aae1 !important;
    background: #ffffff !important;
    border-color: rgba(37, 170, 225, 0.35) !important;
    transform: translate(2px, -2px);
    box-shadow: 0 10px 22px rgba(37, 170, 225, 0.18);
}

.custom-cursor {
    position: fixed;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(37, 170, 225, 0.78);
    border-radius: 999px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.18s ease, height 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
    mix-blend-mode: multiply;
}

.custom-cursor::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #40e495;
    transform: translate(-50%, -50%);
}

.custom-cursor.is-hovering {
    width: 34px;
    height: 34px;
    border-color: rgba(64, 228, 149, 0.9);
    background-color: rgba(37, 170, 225, 0.08);
}

.custom-cursor.is-hidden {
    opacity: 0;
}

.hover-text-seasalt {
    background-image: linear-gradient(to right, #25aae1, #40e495, #30dd8a, #2bb673);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    transition: color 0.3s ease, background-position 0.3s ease;
}

.group:hover .hover-text-seasalt {
    color: transparent;
    background-position: 100% 0;
}

.text-seasalt {
    background-image: linear-gradient(to right, #25aae1, #40e495, #30dd8a, #2bb673);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    color: transparent;
    animation: flow 3s ease-in-out infinite alternate;
}

@keyframes flow {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 420px;
    }

    .category-strip {
        padding-inline: 26px;
    }

    .category-strip-wrap::before,
    .category-strip-wrap::after {
        width: 24px;
    }
}

@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    a,
    button,
    input,
    [onclick],
    .cursor-pointer {
        cursor: pointer !important;
    }

    .custom-cursor {
        display: none;
    }
}
