:root {
    --brand-50: #eff6ff;
    --brand-100: #dbeafe;
    --brand-200: #bfdbfe;
    --brand-300: #93c5fd;
    --brand-400: #60a5fa;
    --brand-500: #3b82f6;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-800: #1e40af;
    --brand-900: #1e3a8a;
    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-500: #64748b;
    --surface-100: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Sora", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink-900);
    background:
        radial-gradient(circle at 10% -10%, rgba(96, 165, 250, 0.25) 0%, rgba(96, 165, 250, 0) 35%),
        radial-gradient(circle at 90% -5%, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0) 28%),
        linear-gradient(180deg, #f8fbff 0%, #f2f7ff 42%, #f8fafc 100%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: "Space Grotesk", "Sora", sans-serif;
}

.surface-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    border-radius: 1rem;
}

.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(191, 219, 254, 0.9);
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 23, 42, 0.65) 0%, rgba(30, 64, 175, 0.35) 35%, rgba(59, 130, 246, 0.15) 100%);
}

.hero-banner > * {
    position: relative;
    z-index: 1;
}

.promo-tile {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(191, 219, 254, 0.9);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.16);
}

.promo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.promo-tile:hover img {
    transform: scale(1.04);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--brand-800);
    background: rgba(191, 219, 254, 0.75);
    border: 1px solid rgba(147, 197, 253, 0.9);
}

.input-base {
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    padding: 0.6rem 0.75rem;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-base:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.textarea-base {
    min-height: 96px;
    resize: vertical;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 0.875rem;
    border-radius: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #dbeafe;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #eff6ff;
}

.sidebar-link.active {
    background: linear-gradient(120deg, rgba(30, 64, 175, 0.65) 0%, rgba(37, 99, 235, 0.6) 100%);
    color: #ffffff;
    border: 1px solid rgba(147, 197, 253, 0.4);
}

.admin-nav-group-title {
    display: block;
    padding: 0 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.5);
}

.gallery-thumb {
    position: relative;
    overflow: hidden;
}

.gallery-thumb img {
    transition: transform 0.25s ease;
}

.gallery-thumb:hover img {
    transform: scale(1.03);
}

.texture-chip {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.texture-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.14);
}

.size-chip {
    min-width: 52px;
    text-align: center;
}

model-viewer {
    background:
        radial-gradient(circle at 20% 10%, rgba(191, 219, 254, 0.6) 0%, rgba(191, 219, 254, 0) 40%),
        linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.drag-card {
    border: 1px solid #bfdbfe;
    border-radius: 0.95rem;
    background: #f8fbff;
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.08);
    padding: 0.9rem;
    cursor: grab;
    touch-action: manipulation;
}

.drag-card.dragging {
    opacity: 0.45;
    transform: scale(0.99);
}

.drag-handle {
    user-select: none;
    font-size: 1rem;
    color: #2563eb;
}

.wizard-pane {
    display: none;
}

.wizard-pane.active {
    display: block;
    animation: paneIn 0.26s ease;
}

@keyframes paneIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    max-width: 340px;
    border-radius: 0.9rem;
    border: 1px solid #bfdbfe;
    background: #ffffff;
    padding: 0.85rem 1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    font-size: 0.88rem;
    color: #0f172a;
    z-index: 70;
}

.toast.success {
    border-color: #93c5fd;
    background: #eff6ff;
}

.toast.error {
    border-color: #fecaca;
    background: #fef2f2;
}

.widget-tile {
    border-radius: 1rem;
    border: 1px solid #bfdbfe;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.92) 0%, rgba(239, 246, 255, 0.9) 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.scroll-thin::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.scroll-thin::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.7);
    border-radius: 9999px;
}

@media (max-width: 1023px) {
    .sidebar-link {
        min-width: 170px;
    }
}
