*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0A1A2F;
    --navy-deep: #061224;
    --navy-footer: #15233c;
    --gold: #C5A059;
    --gold-soft: rgba(197, 160, 89, 0.14);
    --gold-border: rgba(197, 160, 89, 0.28);
    --white: #fff;
    --gray: #94a3b8;
    --gray-muted: #64748b;
    --border: rgba(197, 160, 89, 0.18);
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.22);
    --transition: 0.2s ease;
}

body {
    font-family: Montserrat, system-ui, sans-serif;
    background: radial-gradient(ellipse at top left, rgba(197, 160, 89, 0.04), transparent 40%), var(--navy-deep);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.1rem 0.4rem;
    font-size: 0.82em;
    color: var(--gold);
}

/* Layout */
.admin-wrap {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 296px;
    background:
        radial-gradient(circle at top, rgba(197, 160, 89, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(10, 26, 47, 0.98) 0%, #071321 100%);
    border-right: 1px solid var(--gold-border);
    padding: 1.4rem 1rem 1rem;
    flex-shrink: 0;
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.24);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-brand-card {
    margin: 0 0.5rem 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(197, 160, 89, 0.22);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: 0.04em;
    color: var(--gold);
    position: relative;
}

.sidebar-brand-sub {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--gray-muted);
    letter-spacing: 0.14em;
    margin-top: 0.25rem;
}

.sidebar-brand::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 1.75rem;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.sidebar-status {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.78rem;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(197, 160, 89, 0.14);
}

.sidebar-status-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.55);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0.4rem;
    padding: 0.78rem 0.95rem;
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all var(--transition);
    border: 1px solid transparent;
    border-radius: 16px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.16), rgba(197, 160, 89, 0.08));
    color: #f6e2b4;
    text-decoration: none;
    border-color: rgba(197, 160, 89, 0.22);
    transform: translateX(3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.nav-icon {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.12);
    color: var(--gold);
    font-size: 0.76rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar nav a.active .nav-icon,
.sidebar nav a:hover .nav-icon {
    background: rgba(197, 160, 89, 0.14);
    border-color: rgba(197, 160, 89, 0.28);
}

.sidebar nav .nav-group {
    padding: 1rem 0.95rem 0.35rem;
    margin: 0 0.4rem;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gray-muted);
    font-weight: 600;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    padding: 1rem 2.25rem;
    border-bottom: 1px solid var(--gold-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(6, 18, 36, 0.78);
    backdrop-filter: blur(14px);
    font-size: 0.9rem;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-kicker {
    color: var(--gray-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 0.2rem;
}

.topbar-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #f8f1e3;
    letter-spacing: 0.02em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(197, 160, 89, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.topbar-user-avatar {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d4b06a, var(--gold));
    color: var(--navy-deep);
    font-weight: 700;
}

.topbar-user-name {
    font-size: 0.84rem;
    color: var(--white);
    line-height: 1.2;
}

.topbar-user-role {
    font-size: 0.72rem;
    color: var(--gray-muted);
    line-height: 1.2;
}

.content {
    padding: 2.25rem;
    flex: 1;
}

/* Typography */
h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.15rem;
    margin-bottom: 0.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, #fff8ea, #c5a059);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-header {
    margin-bottom: 1.75rem;
}

.page-subtitle {
    color: var(--gray);
    font-size: 0.92rem;
    max-width: 52ch;
}

/* Cards */
.card {
    background: linear-gradient(145deg, rgba(10, 26, 47, 0.95), rgba(8, 20, 38, 0.98));
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-card);
}

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

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.65;
}

.info-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        rgba(197, 160, 89, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.28);
    border-radius: 18px;
    padding: 1.15rem 1.35rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.55;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 28px rgba(0, 0, 0, 0.16);
}

.info-card strong {
    color: var(--white);
}

.info-card-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    border: 1px solid var(--gold-border);
    border-radius: 50%;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--navy);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: 1.35rem;
    text-align: center;
}

.stat-card .num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-card .label {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th, td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

tr:hover td {
    background: rgba(197, 160, 89, 0.04);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.btn-pill {
    border-radius: 999px;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
}

.btn-primary {
    background: linear-gradient(135deg, #e0c07a 0%, #c5a059 48%, #a8863f 100%);
    color: var(--navy-deep);
    box-shadow:
        0 4px 16px rgba(197, 160, 89, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow:
        0 8px 22px rgba(197, 160, 89, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(197, 160, 89, 0.35);
    color: #f6e2b4;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.14);
    text-decoration: none;
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--gray);
}

.btn-ghost:hover {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
    text-decoration: none;
}

.btn-danger {
    background: linear-gradient(135deg, #9b2c2c, #7f1d1d);
    color: #fecaca;
    border: 1px solid #991b1b;
    box-shadow: 0 4px 14px rgba(127, 29, 29, 0.3);
}

.btn-danger:hover {
    filter: brightness(1.08);
}

.btn-sm {
    padding: 0.4rem 0.95rem;
    font-size: 0.75rem;
}

.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Alerts */
.alert {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

/* Forms */
.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea,
.filter-bar select {
    width: 100%;
    padding: 0.72rem 1rem;
    background:
        linear-gradient(145deg, rgba(18, 36, 58, 0.95), rgba(6, 18, 36, 0.92));
    border: 1px solid rgba(197, 160, 89, 0.32);
    border-radius: 14px;
    color: #f8f4eb;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 500;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.18);
    color-scheme: dark;
}

.form-group select,
.filter-bar select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.75rem;
    background-image:
        linear-gradient(145deg, rgba(18, 36, 58, 0.95), rgba(6, 18, 36, 0.92)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C5A059' d='M1.4 1.2 6 5.8l4.6-4.6 1.2 1.2L6 8.2.2 2.4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 1rem center;
    background-size: auto, 12px;
    cursor: pointer;
}

.form-group select option,
.filter-bar select option {
    background: #0a1a2f;
    color: #f8f4eb;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.filter-bar select:hover {
    border-color: rgba(197, 160, 89, 0.55);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow:
        0 0 0 3px rgba(197, 160, 89, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 28px rgba(0, 0, 0, 0.22);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
}

.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-hint {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--gray-muted);
    line-height: 1.45;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox input {
    width: auto;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

.toggle-row input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--gold);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tabs-premium .tab {
    border-radius: 999px;
}

.tab {
    padding: 0.45rem 1rem;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid var(--gold-border);
    color: var(--gray);
    transition: all var(--transition);
}

.tab.active,
.tab:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold);
    text-decoration: none;
}

/* Settings sections */
.settings-section {
    margin-bottom: 2.25rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.settings-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.settings-section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 56px;
    height: 2px;
    background: var(--gold);
    opacity: 0.7;
}

.settings-section-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.settings-section-header p {
    font-size: 0.85rem;
    color: var(--gray-muted);
    margin: 0;
}

/* Color fields */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.color-field {
    background: rgba(6, 18, 36, 0.55);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    transition: border-color var(--transition);
}

.color-field:hover {
    border-color: rgba(197, 160, 89, 0.45);
}

.color-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.65rem;
}

.color-field-inputs {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.color-field input[type="color"] {
    width: 44px;
    height: 44px;
    padding: 2px;
    border: 2px solid var(--gold-border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.color-field input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-field input[type="color"]::-webkit-color-swatch {
    border-radius: 6px;
    border: none;
}

.color-field input[type="text"] {
    flex: 1;
    padding: 0.55rem 0.75rem;
    background: rgba(6, 18, 36, 0.85);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    color: var(--white);
    font-family: ui-monospace, monospace;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.color-field-key {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.68rem;
    color: var(--gray-muted);
    font-family: ui-monospace, monospace;
    letter-spacing: 0.03em;
}

/* Repeaters */
.repeater-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.repeater-item {
    background: rgba(6, 18, 36, 0.5);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
}

.repeater-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}

.repeater-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
}

.empty-state {
    color: var(--gray-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(6, 18, 36, 0.4);
    border-radius: var(--radius);
    border: 1px dashed var(--border);
}

/* Accessibility checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.65rem;
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    background: rgba(6, 18, 36, 0.5);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.84rem;
    color: var(--white);
    transition: all var(--transition);
}

.checkbox-card:hover {
    border-color: var(--gold);
    background: var(--gold-soft);
}

.checkbox-card input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--gold);
    flex-shrink: 0;
}

/* Badges & filters */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-gold {
    background: var(--gold-soft);
    color: var(--gold);
}

.badge-green {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.badge-red {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(197, 160, 89, 0.18);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.filter-bar select {
    width: auto;
    min-width: 240px;
}

/* Premium custom dropdown */
.lux-select {
    position: relative;
    display: block;
    width: 100%;
}

.lux-select--filter,
.filter-bar .lux-select {
    width: auto;
    min-width: 260px;
}

.lux-select__native {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
}

.lux-select__trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.78rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(197, 160, 89, 0.38);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
        linear-gradient(145deg, rgba(18, 36, 58, 0.98), rgba(7, 18, 34, 0.96));
    color: #f8f4eb;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.22);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.lux-select__trigger:hover {
    border-color: rgba(197, 160, 89, 0.65);
    transform: translateY(-1px);
}

.lux-select.is-open .lux-select__trigger,
.lux-select__trigger:focus-visible {
    outline: none;
    border-color: var(--gold);
    box-shadow:
        0 0 0 3px rgba(197, 160, 89, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 14px 34px rgba(0, 0, 0, 0.28);
}

.lux-select__label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.lux-select__chevron {
    width: 1.65rem;
    height: 1.65rem;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid rgba(197, 160, 89, 0.28);
    background: rgba(197, 160, 89, 0.12);
    position: relative;
    transition: transform 0.25s ease, background 0.2s ease;
}

.lux-select__chevron::before {
    content: "";
    position: absolute;
    top: 45%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #c5a059;
    border-bottom: 2px solid #c5a059;
    transform: translate(-50%, -60%) rotate(45deg);
}

.lux-select.is-open .lux-select__chevron {
    transform: rotate(180deg);
    background: rgba(197, 160, 89, 0.22);
}

.lux-select__menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    padding: 0.45rem;
    border-radius: 18px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    background:
        linear-gradient(160deg, rgba(16, 32, 54, 0.98), rgba(6, 16, 32, 0.98));
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.lux-select.is-open .lux-select__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lux-select__option {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    color: #dbe4f0;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lux-select__option:hover,
.lux-select__option:focus-visible {
    outline: none;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.2), rgba(197, 160, 89, 0.08));
    color: #f6e2b4;
    border-color: rgba(197, 160, 89, 0.22);
}

.lux-select__option.is-selected {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.28), rgba(197, 160, 89, 0.12));
    color: #fff6df;
    border-color: rgba(197, 160, 89, 0.35);
    box-shadow: inset 0 0 0 1px rgba(197, 160, 89, 0.12);
}

.lux-select__option.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lux-select__menu::-webkit-scrollbar {
    width: 8px;
}

.lux-select__menu::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.35);
    border-radius: 999px;
}

.lux-select__menu::-webkit-scrollbar-track {
    background: transparent;
}

/* Media */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.media-item {
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
}

.media-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.media-item .meta {
    padding: 0.5rem;
    font-size: 0.7rem;
    color: var(--gray);
}

.media-picker-preview img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background: var(--navy);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.login-box h1 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.login-box p {
    text-align: center;
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .color-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        width: 240px;
    }

    .content {
        padding: 1.5rem;
    }
}

@media (max-width: 720px) {
    .admin-wrap {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gold-border);
        height: auto;
        position: static;
    }

    .topbar,
    .content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .topbar {
        align-items: flex-start;
        gap: 0.85rem;
        flex-direction: column;
    }

    .topbar-actions,
    .topbar-user {
        width: 100%;
    }

    .topbar-actions {
        justify-content: space-between;
    }
}
