:root {
    color-scheme: dark;
    --surface: rgba(12, 18, 32, 0.78);
    --surface-strong: rgba(8, 13, 24, 0.92);
    --line: rgba(226, 232, 240, 0.11);
    --line-strong: rgba(226, 232, 240, 0.18);
    --text-soft: #94a3b8;
    --gold: #d6b25e;
}

html {
    background: #070b14;
}

body {
    font-family: 'Outfit', sans-serif;
    background:
        linear-gradient(180deg, rgba(14, 21, 38, 0.92), rgba(5, 8, 15, 1) 34%, rgba(8, 12, 22, 1)),
        radial-gradient(circle at 18% 8%, rgba(214, 178, 94, 0.08), transparent 30%),
        radial-gradient(circle at 84% 16%, rgba(20, 184, 166, 0.07), transparent 26%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,0.58) 36%, transparent 84%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(214,178,94,0.16), transparent 18%, transparent 82%, rgba(20,184,166,0.12));
    opacity: 0.22;
}

body > .fixed.inset-0.pointer-events-none.z-0 {
    display: none;
}

.page-shell {
    width: min(430px, calc(100vw - 1.5rem)) !important;
    max-width: 430px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100%, calc(100vw - 1.25rem));
    }
}

body .glass-panel {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018) 42%),
        var(--surface);
    border: 1px solid var(--line);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 20px 60px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
}

body .glass-panel:hover {
    border-color: var(--line-strong);
}

.dashboard-grid,
#marketingForm {
    display: block !important;
}

.dashboard-grid > *,
#marketingForm > * {
    margin-top: 1rem;
}

.dashboard-grid > :first-child,
#marketingForm > :first-child {
    margin-top: 0;
}

.premium-topline {
    position: relative;
    overflow: hidden;
}

.premium-topline::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(214,178,94,0.7), rgba(20,184,166,0.45), transparent);
}

.shine-card {
    position: relative;
    overflow: hidden;
}

.shine-card::after {
    content: "";
    position: absolute;
    inset: -80% auto auto -30%;
    width: 46%;
    height: 220%;
    transform: rotate(24deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.11), transparent);
    opacity: 0;
    transition: transform 700ms ease, opacity 300ms ease;
}

.shine-card:hover::after {
    opacity: 1;
    transform: translateX(260%) rotate(24deg);
}

input,
textarea,
select {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

input:focus,
textarea:focus,
select:focus {
    box-shadow:
        0 0 0 3px rgba(214, 178, 94, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

.premium-fab {
    box-shadow:
        0 16px 42px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.12),
        inset 0 1px 0 rgba(255,255,255,0.22);
}

.premium-nav {
    background:
        linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.035)),
        rgba(6, 10, 19, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.14);
    box-shadow:
        0 22px 60px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.premium-nav a {
    position: relative;
}

.premium-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    bottom: -4px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 14px rgba(214,178,94,0.8);
}

@media (max-width: 430px) {
    header {
        padding-top: 2.25rem !important;
        padding-left: 0.875rem !important;
        padding-right: 0.875rem !important;
    }

    body > div.px-5,
    main.px-5 {
        padding-left: 0.875rem !important;
        padding-right: 0.875rem !important;
    }

    .page-shell > .flex.items-center.justify-between {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .page-shell > .flex.items-center.justify-between > .flex:first-child {
        min-width: 0;
    }

    .page-shell > .flex.items-center.justify-between > .flex:last-child {
        margin-left: auto;
    }

    .page-shell h1 {
        font-size: 1.35rem !important;
        line-height: 1.1 !important;
    }

    input[type="month"] {
        max-width: 132px;
        padding-left: 0.625rem !important;
        padding-right: 0.625rem !important;
        font-size: 0.78rem !important;
    }

    .glass-panel {
        border-radius: 1.35rem !important;
    }

    .premium-nav {
        bottom: 1rem !important;
        width: calc(100vw - 1rem) !important;
        padding: 0.6rem 0.75rem !important;
    }

    .premium-nav a {
        width: 3rem !important;
        height: 3rem !important;
    }

    .premium-fab {
        right: 1rem !important;
        bottom: 5.6rem !important;
        width: 3.75rem !important;
        height: 3.75rem !important;
    }
}
