:root {
    --glass-bg: rgba(255, 255, 255, 0.64);
    --glass-strong: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(124, 58, 237, 0.18);
    --glass-shadow: 0 24px 70px rgba(76, 29, 149, 0.14);
    --glass-shadow-soft: 0 12px 32px rgba(76, 29, 149, 0.10);
    --glass-text: #111827;
    --glass-muted: #5b6472;
    --glass-primary: #6d28d9;
    --glass-primary-dark: #4c1d95;
    --glass-accent: #f97316;
    --glass-ring: rgba(124, 58, 237, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--glass-text);
    background:
        radial-gradient(circle at 12% 10%, rgba(196, 181, 253, 0.56), transparent 32rem),
        radial-gradient(circle at 88% 2%, rgba(20, 184, 166, 0.28), transparent 28rem),
        radial-gradient(circle at 50% 100%, rgba(249, 115, 22, 0.20), transparent 30rem),
        linear-gradient(135deg, #f8fafc 0%, #f5f3ff 48%, #fff7ed 100%) !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.38) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
}

.floating-cart-link {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.35rem;
    height: 3.35rem;
    min-width: 3.35rem;
    max-width: 3.35rem;
    min-height: 3.35rem;
    max-height: 3.35rem;
    color: var(--glass-primary-dark);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    box-shadow: var(--glass-shadow-soft);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.floating-cart-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 38px rgba(109, 40, 217, 0.18);
}

.floating-cart-icon {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    max-width: 2rem;
    min-height: 2rem;
    max-height: 2rem;
    display: block;
    flex: 0 0 2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-header,
.container,
.wrapper,
.hero,
.section,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header,
.container,
.wrapper {
    width: min(1100px, calc(100% - 2rem));
}

.site-header,
.container > .brand,
.wrapper,
.hero-card,
.service-card,
.card,
.highlight,
.receipt,
.empty-state,
.size-group-box,
.site-footer {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow-soft) !important;
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.site-header {
    margin-top: 1rem !important;
    padding: 1rem 1.1rem !important;
    border-radius: 28px !important;
}

.container {
    margin: 1rem auto 2rem !important;
    padding: 0 !important;
}

.container > .brand {
    padding: 1rem 1.1rem;
    border-radius: 28px 28px 0 0;
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.container > .top-links,
.container > .links,
.container > .menu {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: 0;
    border-radius: 0 0 28px 28px;
    padding: 0 1.1rem 1rem;
    margin-bottom: 1rem !important;
    box-shadow: var(--glass-shadow-soft);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.brand {
    color: var(--glass-primary-dark) !important;
    letter-spacing: -0.055em !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

h1,
h2,
h3 {
    color: #171717;
    letter-spacing: -0.035em;
}

p,
li,
.muted,
.hint {
    color: var(--glass-muted) !important;
}

.main-menu a,
.top-links a,
.links a,
.menu a,
.site-footer a,
.cta,
button,
.small-btn,
a.google-signin {
    border-radius: 999px !important;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.main-menu a,
.top-links a,
.links a,
.menu a {
    color: var(--glass-primary-dark) !important;
    background: rgba(255, 255, 255, 0.48) !important;
    border: 1px solid rgba(124, 58, 237, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 22px rgba(76, 29, 149, 0.08);
}

.main-menu a:hover,
.top-links a:hover,
.links a:hover,
.menu a:hover,
.site-footer a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(124, 58, 237, 0.35) !important;
}

.hero {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.8rem) !important;
    line-height: 0.96 !important;
    margin-bottom: 1rem !important;
}

.hero p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-card,
.service-card,
.card,
.wrapper,
.container,
.highlight,
.receipt,
.empty-state {
    border-radius: 28px !important;
}

.wrapper,
.container {
    background: var(--glass-strong) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--glass-shadow) !important;
    backdrop-filter: blur(26px) saturate(155%);
    -webkit-backdrop-filter: blur(26px) saturate(155%);
}

.wrapper {
    padding: clamp(1.2rem, 3vw, 2rem) !important;
}

.section {
    margin-top: 1rem !important;
}

.service-card,
.card,
.hero-card,
.highlight,
.receipt,
.empty-state,
.size-group-box {
    padding: 1rem !important;
}

.card {
    overflow: hidden;
}

.card img {
    background: rgba(255, 255, 255, 0.45) !important;
}

.cta,
button,
.small-btn,
a.google-signin {
    background: linear-gradient(135deg, var(--glass-primary), #8b5cf6) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 14px 30px rgba(109, 40, 217, 0.22) !important;
    font-weight: 800 !important;
}

.cta.alt,
button[type="submit"],
.links + h1 + p + .alert + .alert + form button {
    background: linear-gradient(135deg, var(--glass-accent), #fb923c) !important;
}

.cta:hover,
button:hover,
.small-btn:hover,
a.google-signin:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(109, 40, 217, 0.26) !important;
}

.danger-btn {
    background: linear-gradient(135deg, #dc2626, #f43f5e) !important;
}

input,
select,
textarea {
    background: rgba(255, 255, 255, 0.66) !important;
    border: 1px solid rgba(124, 58, 237, 0.18) !important;
    border-radius: 16px !important;
    color: #111827 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(124, 58, 237, 0.58) !important;
    box-shadow: 0 0 0 4px var(--glass-ring), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

label {
    color: #312e81;
}

.alert {
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 18px !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.success {
    background: rgba(220, 252, 231, 0.78) !important;
    color: #166534 !important;
}

.error {
    background: rgba(254, 226, 226, 0.78) !important;
    color: #991b1b !important;
}

.tag {
    background: rgba(124, 58, 237, 0.12) !important;
    color: var(--glass-primary-dark) !important;
    border: 1px solid rgba(124, 58, 237, 0.16);
}

.carousel-track {
    padding-bottom: 0.35rem;
}

.carousel-status {
    color: var(--glass-primary-dark) !important;
}

.site-footer {
    width: min(1100px, calc(100% - 2rem));
    margin: 2rem auto 1rem !important;
    border-radius: 28px !important;
    line-height: 1.7;
}

table {
    background: rgba(255, 255, 255, 0.36);
    border-radius: 18px;
    overflow: hidden;
}

th,
td {
    border-color: rgba(124, 58, 237, 0.16) !important;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header,
    .container,
    .wrapper,
    .hero-card,
    .service-card,
    .card,
    .highlight,
    .receipt,
    .empty-state,
    .size-group-box,
    .site-footer {
        background: rgba(255, 255, 255, 0.92) !important;
    }
}

@media (max-width: 900px) {
    .site-header,
    .container,
    .wrapper,
    .site-footer {
        width: min(100% - 1rem, 1100px);
    }

    .hero {
        padding-top: 1rem !important;
    }

    .hero h1 {
        font-size: clamp(2rem, 12vw, 3.2rem) !important;
    }
}
