/* ====== GLOBAL DECOR ====== */
.gradient-bg {
    background:
        radial-gradient(40rem 20rem at 20% 10%, rgba(99, 102, 241, .15), transparent 35%),
        radial-gradient(30rem 18rem at 80% 0%, rgba(34, 197, 94, .10), transparent 40%),
        radial-gradient(25rem 20rem at 50% 100%, rgba(56, 189, 248, .12), transparent 40%);
}

/* ====== BUTTONS (tanpa @apply, biar jalan di CDN) ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid rgb(226 232 240);
    background: #fff;
    color: #0f172a;
    padding: .625rem 1rem;
    font-size: .875rem;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(2, 6, 23, .04);
    transition: all .2s ease;
}

.btn:hover {
    background: #f8fafc;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #6359af;
    color: #fff;
    border-color: #6359af;
    box-shadow: 0 6px 20px rgba(79, 70, 229, .25);
}

.btn-primary:hover {
    background: #5941a3;
}

.btn-ghost {
    background: transparent;
    border-color: rgba(148, 163, 184, .35);
}

.btn-icon svg {
    width: 1rem;
    height: 1rem;
}

/* ====== TOKENS ====== */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .5rem;
    font-size: .75rem;
    background: #f1f5f9;
    color: #334155;
    border-radius: 9999px;
}

.card {
    border: 1px solid rgb(226 232 240);
    border-radius: 16px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, .08), 0 8px 30px rgba(17, 24, 39, .06);
}

.card-modern {
    position: relative;
    overflow: hidden;
}

.card-modern:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent 40%);
    opacity: .6;
    pointer-events: none;
}

.card-hover {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(2, 6, 23, .08);
    border-color: rgb(203 213 225);
}

.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4338ca;
}

/* Feature stripe with gradient bar */
.feature {
    position: relative;
    overflow: hidden;
}

.feature:before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6366f1, #22c55e, #38bdf8);
    border-radius: 4px;
}

/* Focus */
:focus-visible {
    outline: 2px solid rgb(99 102 241);
    outline-offset: 2px;
    border-radius: .75rem;
}

.tab-active {
    border-color: rgb(59, 130, 246);
    color: rgb(37, 99, 235);
}

.CodeMirror {
    height: 70vh;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, .08);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 9999px;
    padding: .25rem .75rem;
    font-size: .825rem
}
/*
.btn {
    border-radius: .75rem;
    border: 1px solid rgb(226 232 240);
    padding: .5rem .75rem;
    font-size: .875rem;
    background: #fff
}

.btn:hover {
    background: #f8fafc
}*/