@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --paper: #fffaf4;
    --paper-2: #f7f0ff;
    --ink: #1f1630;
    --ink-2: #352849;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: #ffffff;
    --panel-soft: #fff4e9;
    --line: rgba(83, 54, 117, 0.13);
    --line-strong: rgba(83, 54, 117, 0.22);
    --text: #1f1630;
    --muted: #6f637f;
    --muted-2: #9588a5;
    --primary-modern: #7c3aed;
    --primary-deep: #4c1d95;
    --secondary-modern: #f97316;
    --secondary-deep: #c2410c;
    --sun: #f59e0b;
    --danger: #e11d48;
}

* {
    letter-spacing: 0;
}

html {
    background: var(--paper);
}

body {
    font-family: 'Inter', sans-serif;
    background:
        linear-gradient(180deg, rgba(124, 58, 237, 0.085), transparent 28rem),
        linear-gradient(135deg, rgba(249, 115, 22, 0.06), transparent 32rem),
        linear-gradient(90deg, rgba(76, 29, 149, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(76, 29, 149, 0.035) 1px, transparent 1px),
        var(--paper);
    background-size: auto, auto, 42px 42px, 42px 42px, auto;
    color: var(--text);
}

.bg-dark,
.bg-gray-950,
.bg-black {
    background-color: transparent !important;
}

.bg-dark-accent,
.bg-gray-900,
.bg-gray-900\/50 {
    background-color: var(--panel) !important;
}

.bg-gray-800,
.bg-gray-800\/50,
.hover\:bg-gray-800:hover {
    background-color: rgba(255, 255, 255, 0.72) !important;
}

.bg-gray-700,
.hover\:bg-gray-700:hover {
    background-color: rgba(124, 58, 237, 0.1) !important;
}

.bg-green-900 {
    background-color: rgba(22, 163, 74, 0.12) !important;
}

.bg-blue-900 {
    background-color: rgba(124, 58, 237, 0.12) !important;
}

.border-gray-800,
.border-gray-700,
.border-gray-600 {
    border-color: var(--line) !important;
}

.text-white,
.text-gray-100,
.text-gray-200 {
    color: var(--text) !important;
}

.text-green-400,
.text-green-500,
.text-green-300 {
    color: #16a34a !important;
}

.text-red-400,
.text-red-500 {
    color: var(--danger) !important;
}

.text-yellow-400,
.text-yellow-500 {
    color: #b45309 !important;
}

.text-blue-400 {
    color: var(--primary-modern) !important;
}

.text-gray-300,
.text-gray-400 {
    color: var(--muted) !important;
}

.text-gray-500,
.text-gray-600 {
    color: var(--muted-2) !important;
}

.text-primary {
    color: var(--primary-modern) !important;
}

.text-secondary {
    color: var(--secondary-modern) !important;
}

.bg-primary {
    background-color: var(--primary-modern) !important;
    color: #ffffff !important;
}

.bg-secondary {
    background-color: var(--secondary-modern) !important;
    color: #ffffff !important;
}

.bg-gradient-to-r.text-white {
    color: #ffffff !important;
}

.bg-gradient-to-r .text-white,
.bg-gradient-to-r .text-white h1,
.bg-gradient-to-r .text-white h2,
.bg-gradient-to-r .text-white h3,
.bg-gradient-to-r .text-white p {
    color: #ffffff !important;
}

.bg-primary *,
.bg-secondary * {
    color: #ffffff !important;
}

.bg-white,
.hover\:bg-gray-200:hover {
    background-color: #ffffff !important;
}

.bg-white.text-primary,
.bg-white .text-primary,
.from-primary .bg-white,
.to-secondary .bg-white,
.bg-gradient-to-r .bg-white {
    color: var(--primary-modern) !important;
}

.from-primary {
    --tw-gradient-from: var(--primary-modern) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgba(45, 212, 191, 0) var(--tw-gradient-to-position) !important;
}

.to-primary {
    --tw-gradient-to: var(--primary-modern) var(--tw-gradient-to-position) !important;
}

.from-secondary {
    --tw-gradient-from: var(--secondary-modern) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgba(255, 107, 74, 0) var(--tw-gradient-to-position) !important;
}

.to-secondary {
    --tw-gradient-to: var(--secondary-modern) var(--tw-gradient-to-position) !important;
}

.rounded-2xl,
.rounded-xl,
.rounded-lg {
    border-radius: 24px !important;
}

.rounded-md {
    border-radius: 16px !important;
}

nav {
    background: rgba(255, 250, 244, 0.82) !important;
    border-color: var(--line) !important;
    box-shadow: 0 1px 0 rgba(83, 54, 117, 0.06), 0 18px 60px rgba(76, 29, 149, 0.08);
}

.snyf-topbar {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
    padding-right: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
}

nav a,
nav button {
    color: var(--ink-2);
}

.snyf-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(31, 22, 48, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    backdrop-filter: blur(4px);
}

.snyf-menu-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.snyf-mobile-menu {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 70;
    width: min(86vw, 340px);
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 90px rgba(76, 29, 149, 0.24), 0 12px 32px rgba(249, 115, 22, 0.1);
    transform: translateX(calc(100% + 1.5rem));
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease;
    backdrop-filter: blur(20px);
}

.snyf-mobile-menu.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.snyf-mobile-menu-link {
    display: block;
    border-radius: 18px;
    padding: 0.85rem 1rem;
    color: var(--ink-2);
    font-size: 1rem;
    font-weight: 700;
}

.snyf-mobile-menu-link:hover {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-modern) !important;
}

a,
button,
input {
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

button:not(:disabled):hover,
a.bg-primary:hover,
a.bg-secondary:hover {
    transform: translateY(-1px);
}

.bg-primary:hover,
.hover\:bg-primary\/90:hover {
    background-color: var(--primary-deep) !important;
}

.bg-secondary:hover,
.hover\:bg-secondary\/90:hover {
    background-color: var(--secondary-deep) !important;
}

.hover\:text-primary:hover,
.group:hover .group-hover\:text-primary {
    color: var(--primary-modern) !important;
}

.hover\:text-secondary:hover,
.group:hover .group-hover\:text-secondary {
    color: var(--secondary-modern) !important;
}

.hover\:text-white:hover {
    color: var(--primary-modern) !important;
}

input,
textarea,
select {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--line) !important;
    color: var(--text) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 30px rgba(76, 29, 149, 0.04);
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(124, 58, 237, 0.72) !important;
    box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.13) !important;
}

input::placeholder {
    color: #a79bb7 !important;
}

input[type="file"]::file-selector-button {
    border-radius: 999px;
    background: var(--primary-modern);
    color: #ffffff;
    border: 0;
}

code,
pre {
    background: rgba(255, 255, 255, 0.76) !important;
    border-color: var(--line) !important;
    color: var(--ink-2) !important;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-modern), #a855f7, var(--secondary-modern));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-purple-900\/10,
.shadow-purple-900\/20,
.shadow-orange-900\/20 {
    box-shadow: 0 18px 54px rgba(124, 58, 237, 0.12) !important;
}

.snyf-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(76, 29, 149, 0.12), 0 6px 24px rgba(249, 115, 22, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
}

.snyf-section {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    border-radius: 28px;
}

.snyf-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-modern);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(124, 58, 237, 0.09);
    border: 1px solid rgba(124, 58, 237, 0.12);
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
}

.snyf-product-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(76, 29, 149, 0.11);
}

.snyf-product-card:hover {
    border-color: rgba(124, 58, 237, 0.32);
    transform: translateY(-3px);
    box-shadow: 0 24px 56px rgba(76, 29, 149, 0.18), 0 8px 24px rgba(249, 115, 22, 0.08);
}

.snyf-product-card img {
    transition: transform 420ms ease, filter 420ms ease;
}

.snyf-product-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.02);
}

.snyf-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    color: var(--muted);
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.snyf-arch-step {
    position: relative;
    min-height: 220px;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 48px rgba(76, 29, 149, 0.1);
}

.snyf-arch-step::after {
    content: "";
    position: absolute;
    top: 42px;
    right: -20px;
    width: 36px;
    height: 2px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.28), rgba(249, 115, 22, 0.28));
}

.snyf-arch-step:last-child::after {
    display: none;
}

.snyf-arch-step span {
    color: var(--muted-2);
    font-size: 0.72rem;
    font-weight: 800;
}

.snyf-arch-step i {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 1.25rem 0;
    border-radius: 16px;
    color: var(--primary-modern);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.13), rgba(249, 115, 22, 0.12));
}

.snyf-arch-step h3 {
    color: var(--text);
    font-weight: 800;
}

.snyf-arch-step p {
    margin-top: 0.55rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .snyf-arch-step::after {
        top: auto;
        right: auto;
        left: 42px;
        bottom: -18px;
        width: 2px;
        height: 32px;
        background: linear-gradient(180deg, rgba(124, 58, 237, 0.28), rgba(249, 115, 22, 0.28));
    }
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.auth-card {
    width: min(100%, 460px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 30px;
    box-shadow: 0 28px 80px rgba(76, 29, 149, 0.16), 0 10px 30px rgba(249, 115, 22, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.45fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
