.luxe-js body.luxe-app-cloak {
    opacity: 0;
}

body {
    transition: opacity 120ms ease;
}

.luxe-hidden {
    display: none !important;
}

.luxe-clickable {
    cursor: pointer;
}

.luxe-navbar-logo {
    display: block;
    width: auto;
    height: 3rem;
    max-width: 11rem;
    object-fit: contain;
}

.luxe-navbar-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.luxe-profile-topbar {
    background: rgba(252, 249, 242, 0.88) !important;
    border-bottom: 0.5px solid rgba(124, 94, 55, 0.18);
    box-shadow: 0 18px 42px -28px rgba(28, 28, 24, 0.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.08);
    backdrop-filter: blur(22px) saturate(1.08);
}

.luxe-sidebar-brand {
    color: #735c00;
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

footer,
footer p,
footer a {
    color: #4d4635 !important;
    opacity: 1 !important;
}

:root {
    --luxe-button-brown: #735c00;
    --luxe-button-brown-hover: #684f2e;
    --luxe-index-brown: rgb(124, 94, 55);
    --luxe-card-gold-border: rgba(212, 175, 55, 0.32);
}

.luxe-index-page .luxe-index-brown {
    background: var(--luxe-index-brown) !important;
    background-color: var(--luxe-index-brown) !important;
    background-image: none !important;
    border-color: var(--luxe-index-brown) !important;
    color: #ffffff !important;
}

.luxe-index-page .luxe-index-brown:hover:not(:disabled) {
    background: rgb(104, 79, 46) !important;
    background-color: rgb(104, 79, 46) !important;
    border-color: rgb(104, 79, 46) !important;
}

.luxe-index-page .luxe-index-brown-text {
    color: var(--luxe-index-brown) !important;
}

article[class*="rounded"],
div[class*="rounded-xl"][class*="bg-surface"],
section[class*="rounded-xl"][class*="bg-surface"],
form[class*="rounded-xl"][class*="bg-surface"],
aside[class*="rounded-xl"][class*="bg-surface"],
div[class*="rounded-xl"][class*="bg-white"],
div[class*="rounded-xl"][class*="bg-primary"],
div[class*="rounded-xl"][class*="bg-secondary"],
div[class*="rounded-xl"][class*="bg-tertiary"],
div[class*="rounded-xl"][class*="glass-panel"] {
    border: 0.5px solid var(--luxe-card-gold-border) !important;
}

.signature-gradient,
.luxe-button-primary {
    background: var(--luxe-button-brown) !important;
    background-color: var(--luxe-button-brown) !important;
    background-image: none !important;
    border-color: var(--luxe-button-brown) !important;
    color: #ffffff !important;
}

.signature-gradient:hover:not(:disabled),
.luxe-button-primary:hover:not(:disabled) {
    background: var(--luxe-button-brown-hover) !important;
    background-color: var(--luxe-button-brown-hover) !important;
    background-image: none !important;
    border-color: var(--luxe-button-brown-hover) !important;
    color: #ffffff !important;
}

.signature-gradient *,
.luxe-button-primary * {
    color: inherit !important;
}

.luxe-toast-region {
    position: fixed;
    top: 7rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    width: min(24rem, calc(100vw - 2rem));
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.luxe-toast {
    background: rgba(49, 49, 44, 0.96);
    color: #f3f0ea;
    border-radius: 0.75rem;
    box-shadow: 0 24px 48px -12px rgba(28, 28, 24, 0.18);
    padding: 1rem 1.25rem;
    font-family: "Manrope", sans-serif;
    font-size: 0.82rem;
    line-height: 1.45;
    animation: luxe-toast-in 180ms ease-out;
}

.luxe-toast[data-kind="error"] {
    background: rgba(147, 0, 10, 0.96);
}

.luxe-toast[data-kind="success"] {
    background: rgba(85, 67, 0, 0.96);
}

@keyframes luxe-toast-in {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.luxe-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: rgba(28, 28, 24, 0.42);
    padding: 2rem 1rem;
    backdrop-filter: blur(10px);
}

.luxe-modal {
    width: min(36rem, 100%);
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    border-radius: 0.75rem;
    background: #fcf9f2;
    box-shadow: 0 24px 48px -12px rgba(28, 28, 24, 0.22);
    padding: 2rem;
}

.luxe-modal-wide {
    width: min(56rem, 100%);
}

.luxe-modal h2,
.luxe-modal h3 {
    font-family: "Noto Serif", serif;
}

.luxe-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.luxe-field label {
    color: #4d4635;
    font-family: "Manrope", sans-serif;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.luxe-field input,
.luxe-field select,
.luxe-field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d0c5af;
    background: transparent;
    color: #1c1c18;
    font-family: "Manrope", sans-serif;
    padding: 0.65rem 0;
    outline: none;
}

.luxe-field input:focus,
.luxe-field select:focus,
.luxe-field textarea:focus {
    border-bottom-color: #735c00;
    box-shadow: none;
}

.luxe-options-editor {
    gap: 0.8rem;
}

.luxe-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.luxe-option-row {
    display: grid;
    grid-template-columns: minmax(7rem, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    border: 0.5px solid rgba(212, 175, 55, 0.42);
    border-radius: 0.75rem;
    background: rgba(255, 253, 248, 0.78);
    box-shadow: 0 14px 30px -24px rgba(28, 28, 24, 0.28);
    padding: 0.75rem;
}

.luxe-option-correct {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.45rem;
    border: 0.5px solid rgba(212, 175, 55, 0.38);
    border-radius: 999px;
    background: rgba(244, 224, 190, 0.28);
    color: #735c00 !important;
    cursor: pointer;
    font-size: 0.6rem !important;
    font-weight: 800;
    letter-spacing: 0.14em !important;
    line-height: 1;
    padding: 0.62rem 0.78rem;
    white-space: nowrap;
}

.luxe-field .luxe-option-radio,
.luxe-field input[type="radio"].luxe-option-radio {
    accent-color: #735c00;
    appearance: auto;
    flex: 0 0 auto;
    width: 0.95rem !important;
    min-width: 0.95rem;
    height: 0.95rem !important;
    margin: 0;
    border: 1px solid rgba(115, 92, 0, 0.55) !important;
    border-radius: 999px !important;
    background: #fcf9f2 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.luxe-field .luxe-option-input,
.luxe-field input.luxe-option-input {
    width: 100%;
    border: 0 !important;
    border-bottom: 1px solid #d0c5af !important;
    border-radius: 0.45rem 0.45rem 0 0;
    background: rgba(255, 255, 255, 0.52) !important;
    color: #1c1c18;
    font-size: 0.86rem;
    padding: 0.65rem 0.75rem !important;
}

.luxe-field .luxe-option-input:focus,
.luxe-field input.luxe-option-input:focus {
    border-bottom-color: #735c00 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 22px -18px rgba(115, 92, 0, 0.38);
}

.luxe-option-remove,
.luxe-option-add {
    border: 0;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 160ms ease, color 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.luxe-option-remove {
    background: #f0eee7;
    color: #735c00;
    padding: 0.75rem 1rem;
}

.luxe-option-remove:hover:not(:disabled) {
    background: rgba(244, 224, 190, 0.62);
}

.luxe-option-remove:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.luxe-option-add {
    align-self: flex-start;
    border: 0.5px dashed rgba(115, 92, 0, 0.35);
    background: rgba(244, 224, 190, 0.24);
    color: #735c00;
    margin-top: 0.25rem;
    padding: 0.85rem 1.2rem;
}

.luxe-option-add:hover {
    background: rgba(244, 224, 190, 0.45);
    border-color: rgba(115, 92, 0, 0.52);
}

.luxe-button-primary {
    border: 0;
    border-radius: 0.35rem;
    background: linear-gradient(135deg, #735c00 0%, #d4af37 100%);
    color: #fff;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0.85rem 1.4rem;
    text-transform: uppercase;
}

.luxe-button-secondary {
    border: 0;
    border-radius: 0.35rem;
    background: #f0eee7;
    color: #735c00;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0.85rem 1.4rem;
    text-transform: uppercase;
}

.luxe-button-danger {
    border: 0;
    border-radius: 0.35rem;
    background: #ffdad6;
    color: #93000a;
    cursor: pointer;
    font-family: "Manrope", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.75rem 1.1rem;
    text-transform: uppercase;
}

.luxe-button-primary:disabled,
.luxe-button-secondary:disabled,
.luxe-button-danger:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.luxe-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2rem;
}

.luxe-admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
    font-family: "Manrope", sans-serif;
}

.luxe-admin-table th {
    color: #6b5c42;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    padding: 0 1rem;
    text-align: left;
    text-transform: uppercase;
}

.luxe-admin-table td {
    background: #fff;
    color: #1c1c18;
    font-size: 0.78rem;
    padding: 1rem;
}

.luxe-admin-table td:first-child {
    border-radius: 0.75rem 0 0 0.75rem;
}

.luxe-admin-table td:last-child {
    border-radius: 0 0.75rem 0.75rem 0;
}

.luxe-status {
    display: inline-flex;
    border-radius: 999px;
    background: #f0eee7;
    color: #6b5c42;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.35rem 0.65rem;
    text-transform: uppercase;
}

.luxe-status[data-active="true"] {
    background: rgba(212, 175, 55, 0.18);
    color: #735c00;
}

.luxe-builder-block {
    position: relative;
}

.luxe-builder-block[draggable="true"] {
    cursor: grab;
}

.luxe-builder-block.is-dragging {
    opacity: 0.45;
}

.luxe-drop-active {
    border-color: rgba(115, 92, 0, 0.55) !important;
    background: rgba(244, 224, 190, 0.35) !important;
}

.luxe-builder-block-toolbar {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 4;
    display: flex;
    gap: 0.35rem;
    opacity: 0;
    transition: opacity 160ms ease;
}

.luxe-builder-block:hover .luxe-builder-block-toolbar {
    opacity: 1;
}

.luxe-builder-block-toolbar button {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #6b5c42;
    cursor: pointer;
}

.luxe-empty-state {
    border-radius: 0.75rem;
    background: #f6f3ec;
    color: #6b5c42;
    padding: 3rem;
    text-align: center;
}

.luxe-profile-avatar-preview {
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .luxe-toast-region {
        top: 1rem;
        right: 1rem;
    }

    .luxe-modal {
        padding: 1.5rem;
    }

    .luxe-admin-table {
        display: block;
        overflow-x: auto;
    }

    .luxe-option-row {
        grid-template-columns: 1fr;
    }

    .luxe-option-remove {
        width: 100%;
    }
}
