.error-msg,
.success-msg {
    font-size: .875rem;
    margin-top: .5rem
}

.action-btn,
.copy-btn,
.tab-btn,
.toggle-btn {
    cursor: pointer
}

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

::-webkit-scrollbar-track {
    background: #1a1a1a
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 8px;
    border: 2px solid #1a1a1a
}

::-webkit-scrollbar-thumb:hover {
    background: #666
}

* {
    box-sizing: border-box
}

body {
    background: #000;
    font-family: 'Space Grotesk', sans-serif
}

.brand {
    font-family: Orbitron, sans-serif
}

.input-field,
.mono,
.result-box,
.stat-item .value {
    font-family: 'Share Tech Mono', monospace
}

.glass {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px)
}

.tag {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12)
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, .7);
    transition: color .2s
}

.nav-link:hover {
    color: #fff
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width .25s
}

.nav-link:hover::after {
    width: 100%
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .625rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: .2s
}

.btn-primary {
    background: #fff;
    color: #000
}

.action-btn:hover,
.btn-primary:hover {
    background: rgba(255, 255, 255, .9);
    transform: translateY(-1px)
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .05)
}

.tool-card {
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 1.5rem;
    transition: .3s
}

.action-btn,
.copy-btn,
.input-field,
.tab-btn,
.toggle-btn {
    transition: .2s
}

.tool-card:hover {
    border-color: rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .04);
    transform: translateY(-2px)
}

.input-field {
    background: rgba(0, 0, 0, .4);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .75rem;
    padding: .875rem 1rem;
    color: #fff;
    width: 100%
}

.input-field:focus {
    outline: 0;
    border-color: rgba(255, 255, 255, .4);
    background: rgba(0, 0, 0, .6)
}

.input-field::placeholder {
    color: rgba(255, 255, 255, .3)
}

.result-box {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: .75rem;
    padding: 1rem
}

.toggle-btn {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: .5rem 1rem;
    border-radius: .5rem;
    color: rgba(255, 255, 255, .6);
    font-size: .875rem
}

.toggle-btn.active {
    background: #fff;
    color: #000;
    border-color: #fff
}

.toggle-btn:hover:not(.active) {
    background: rgba(255, 255, 255, .12);
    color: #fff
}

.action-btn {
    background: #fff;
    color: #000;
    padding: .75rem 1.5rem;
    border-radius: .75rem;
    font-weight: 600;
    border: none
}

.action-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none
}

.action-btn-secondary {
    background: 0 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .25)
}

.action-btn-secondary:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .4)
}

.thumbnail-preview {
    border-radius: .75rem;
    overflow: hidden;
    background: rgba(0, 0, 0, .4);
    border: 1px solid rgba(255, 255, 255, .1)
}

.thumbnail-preview img {
    width: 100%;
    height: auto;
    display: block
}

.loading {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, .2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: .8s linear infinite spin
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.error-msg {
    color: #ff6b6b
}

.success-msg {
    color: #69db7c
}

.copy-btn {
    background: rgba(255, 255, 255, .1);
    border: none;
    padding: .5rem;
    border-radius: .5rem;
    color: rgba(255, 255, 255, .7)
}

.copy-btn:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff
}

.hero-bg {
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, .15), transparent), radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 255, 255, .05), transparent)
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent)
}

select.input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 1rem;
    padding-right: 2.5rem
}

.badge-info {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .625rem;
    background: rgba(59, 130, 246, .15);
    border: 1px solid rgba(59, 130, 246, .3);
    border-radius: 9999px;
    font-size: .75rem;
    color: #93c5fd
}

.tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem
}

.tab-btn {
    padding: .625rem 1.25rem;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .6);
    font-size: .875rem
}

.tab-btn.active {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .25);
    color: #fff
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .8)
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem
}

.stat-item {
    background: rgba(0, 0, 0, .3);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: .75rem;
    padding: .75rem
}

.stat-item .label {
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: rgba(255, 255, 255, .5)
}

.stat-item .value {
    font-size: .875rem;
    color: #fff;
    margin-top: .25rem;
    word-break: break-all
}

@media (max-width:768px) {
    .grid-stats {
        grid-template-columns: 1fr
    }
}

input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0
}

input[type=number] {
    -moz-appearance: textfield
}

#asset-downloader-modal {
    animation: .2s ease-out fadeIn
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}