/* Explain: Styling for UI components like buttons, cards, and forms. */
.lace-panel {
    position: relative;
    overflow: hidden;
}

.lace-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.6;
    background-image:
        linear-gradient(rgb(var(--primary-rgb) / 0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgb(var(--primary-rgb) / 0.10) 1px, transparent 1px),
        radial-gradient(circle at 20% 25%, rgb(var(--accent-rgb) / 0.18), transparent 26rem);
    background-size: 46px 46px, 46px 46px, 100% 100%;
}

.btn-bridal {
    min-height: 3rem;
    border-radius: var(--radius-oval);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #f8fbff;
    border: 1px solid rgb(var(--accent-rgb) / 0.34);
    box-shadow: 0 14px 34px rgb(var(--primary-rgb) / 0.34);
    padding-inline: 1.35rem;
    transition: all 300ms ease;
    cursor: pointer;
}

.btn-bridal:hover,
.btn-bridal:focus-visible {
    background: linear-gradient(135deg, var(--primary-hover), #06b6d4);
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgb(var(--accent-rgb) / 0.45);
}

.btn-veil {
    min-height: 3rem;
    border-radius: var(--radius-oval);
    background: rgb(var(--surface-rgb) / 0.7);
    color: var(--text-color);
    border: 1px solid rgb(var(--border-rgb) / 1);
    padding-inline: 1.35rem;
    transition: all 300ms ease;
    cursor: pointer;
}

.btn-veil.is-active,
.btn-veil:hover,
.btn-veil:focus-visible {
    border-color: rgb(var(--accent-rgb) / 0.6);
    background: rgb(var(--surface-rgb) / 0.95);
    color: var(--accent-color);
    transform: translateY(-1px);
}

.oval-frame {
    border-radius: 2.25rem;
    border: 1px solid rgb(var(--border-rgb) / 0.9);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.editorial-card {
    border: 1px solid rgb(var(--border-rgb) / 0.9);
    background: linear-gradient(180deg, rgb(var(--surface-rgb) / 0.94), rgb(var(--secondary-rgb) / 0.82));
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.product-card {
    transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.product-card img {
    transition: transform 600ms ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgb(var(--accent-rgb) / 0.5);
    box-shadow: 0 0 42px rgb(var(--accent-rgb) / 0.22);
}

.product-card:hover img {
    transform: scale(1.045);
}

.tech-chip {
    display: inline-flex;
    min-height: 2.25rem;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius-oval);
    border: 1px solid rgb(var(--border-rgb) / 0.9);
    background: rgb(var(--surface-rgb) / 0.7);
    padding: 0.45rem 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
}

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

.signal-card::after {
    content: '';
    position: absolute;
    right: -4rem;
    top: -4rem;
    width: 11rem;
    height: 11rem;
    border-radius: 999px;
    background: rgb(var(--accent-rgb) / 0.2);
    filter: blur(6px);
}

.gallery-thumb {
    border: 1px solid rgb(var(--border-rgb) / 0.9);
    opacity: 0.65;
    transition: all 240ms ease;
    cursor: pointer;
}

.gallery-thumb.is-active,
.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    opacity: 1;
    border-color: var(--accent-color);
}

.option-chip {
    min-height: 2.75rem;
    border-radius: var(--radius-oval);
    border: 1px solid rgb(var(--border-rgb) / 0.9);
    background: rgb(var(--surface-rgb) / 0.7);
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: all 240ms ease;
}

.option-chip.is-selected {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--secondary-color);
}

.toast-app {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 80;
    transform: translateX(-50%) translateY(1rem);
    opacity: 0;
    pointer-events: none;
    transition: all 240ms ease;
}

.toast-app.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.mobile-sticky-cta {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
}

.float-logo {
    animation: logoFloat 3.4s ease-in-out infinite;
    filter: drop-shadow(0 10px 16px rgb(3 12 30 / 0.45));
}

.float-logo img {
    width: auto;
    height: auto;
    max-height: clamp(2.5rem, 6vw, 4rem);
    max-width: min(64vw, 560px);
}

.luminous-title {
    color: #ffe9a8;
    text-shadow:
        0 1px 2px rgb(30 18 0 / 0.92),
        0 0 8px rgb(30 18 0 / 0.6),
        0 0 16px rgb(255 200 60 / 0.95),
        0 0 34px rgb(255 174 0 / 0.65),
        0 0 56px rgb(255 140 0 / 0.5);
    animation: titleGlow 3.6s ease-in-out infinite;
}

@keyframes titleGlow {
    0%,
    100% {
        text-shadow:
            0 1px 2px rgb(30 18 0 / 0.92),
            0 0 8px rgb(30 18 0 / 0.6),
            0 0 16px rgb(255 200 60 / 0.9),
            0 0 32px rgb(255 174 0 / 0.55),
            0 0 52px rgb(255 140 0 / 0.42);
    }
    50% {
        text-shadow:
            0 1px 2px rgb(30 18 0 / 0.92),
            0 0 9px rgb(30 18 0 / 0.55),
            0 0 22px rgb(255 214 92 / 1),
            0 0 44px rgb(255 174 0 / 0.72),
            0 0 70px rgb(255 140 0 / 0.55);
    }
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-logo,
    .luminous-title {
        animation: none;
    }
}

.login-card .s123-auth-provider-btn {
    --s123-auth-btn-height: 3rem;
    --s123-auth-btn-radius: 999px;
    width: 100%;
    font-weight: 700;
}

.login-card .s123-auth-provider-btn--google {
    border-color: rgb(var(--accent-rgb) / 0.4);
    background: rgb(var(--surface-rgb) / 0.7);
    color: var(--text-color);
}

.auth-tab {
    min-height: 2.75rem;
    border-radius: var(--radius-oval);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: all 240ms ease;
    cursor: pointer;
}

.auth-tab:hover {
    color: var(--text-color);
}

.auth-tab.is-active {
    background: var(--accent-color);
    color: var(--secondary-color);
    box-shadow: 0 0 18px rgb(var(--accent-rgb) / 0.45);
}