:root {
    --admin-bg: #131314;
    --admin-bg-lowest: #0e0e0f;
    --admin-panel: #201f20;
    --admin-panel-low: #1c1b1c;
    --admin-panel-high: #2a2a2b;
    --admin-panel-highest: #353436;
    --admin-ink: #e5e2e3;
    --admin-muted: #d0c5af;
    --admin-line: #4d4635;
    --admin-line-soft: #2f353b;
    --admin-gold: #f2ca50;
    --admin-gold-soft: rgba(242, 202, 80, 0.12);
    --admin-cyan: #00eefc;
    --admin-cyan-soft: rgba(0, 238, 252, 0.12);
    --admin-red: #ffb4ab;
    --admin-sidebar-w: 264px;
    --admin-topbar-h: 64px;
    --admin-gutter: 32px;
    --admin-margin: 32px;
}

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

body {
    background: var(--admin-bg);
    color: var(--admin-ink);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    height: auto;
    max-width: 100%;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--admin-bg-lowest);
    border-right: 1px solid var(--admin-line);
    display: flex;
    flex-direction: column;
    height: 100vh;
    left: 0;
    overflow-y: auto;
    padding: 24px 16px;
    position: fixed;
    top: 0;
    width: var(--admin-sidebar-w);
    z-index: 50;
}

.admin-sidebar-toggle,
.admin-sidebar-backdrop {
    display: none;
}

.admin-brand {
    display: block;
    margin-bottom: 28px;
    padding: 0 8px;
}

.admin-brand strong {
    color: var(--admin-gold);
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.2;
}

.admin-brand span {
    color: var(--admin-muted);
    display: block;
    font-size: 11px;
    letter-spacing: 0.15em;
    margin-top: 8px;
    text-transform: uppercase;
}

.admin-nav-group {
    margin-bottom: 18px;
}

.admin-nav-group__label {
    color: rgba(208, 197, 175, 0.55);
    font-size: 10px;
    letter-spacing: 0.18em;
    margin: 0 0 8px;
    padding: 0 12px;
    text-transform: uppercase;
}

.admin-menu {
    display: grid;
    gap: 4px;
}

.admin-menu a,
.admin-menu button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: rgba(229, 226, 227, 0.78);
    cursor: pointer;
    display: flex;
    font-size: 11px;
    gap: 12px;
    letter-spacing: 0.12em;
    padding: 11px 12px;
    text-align: left;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    width: 100%;
}

.admin-menu a:hover,
.admin-menu button:hover {
    background: var(--admin-panel-high);
    color: var(--admin-ink);
}

.admin-menu a.is-active {
    background: rgba(42, 42, 43, 0.85);
    border-right: 2px solid var(--admin-gold);
    color: var(--admin-gold);
    font-weight: 700;
}

.admin-nav-icon {
    font-size: 20px;
    opacity: 0.9;
}

.admin-sidebar-cta {
    margin-top: auto;
    padding: 8px 4px 0;
}

.admin-sidebar-cta .admin-btn {
    justify-content: center;
    width: 100%;
}

.admin-content {
    margin-left: var(--admin-sidebar-w);
    min-height: 100vh;
}

.admin-topbar {
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(19, 19, 20, 0.82);
    border-bottom: 1px solid var(--admin-line);
    display: flex;
    gap: 16px;
    height: var(--admin-topbar-h);
    justify-content: space-between;
    padding: 0 var(--admin-margin);
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-topbar__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    margin: 0;
}

.admin-topbar__actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.admin-topbar__icon-btn {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--admin-muted);
    cursor: pointer;
    display: inline-flex;
    padding: 8px;
    position: relative;
    transition: color 0.2s ease;
}

.admin-topbar__icon-btn:hover {
    color: var(--admin-gold);
}

.admin-topbar__dot {
    background: var(--admin-cyan);
    border-radius: 999px;
    height: 8px;
    position: absolute;
    right: 6px;
    top: 6px;
    width: 8px;
}

.admin-user-chip {
    align-items: center;
    border-left: 1px solid var(--admin-line);
    display: flex;
    gap: 12px;
    padding-left: 16px;
}

.admin-user-chip__meta {
    text-align: right;
}

.admin-user-chip__role {
    color: var(--admin-gold);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.admin-user-chip__name {
    color: var(--admin-ink);
    font-size: 14px;
    line-height: 1.2;
}

.admin-user-chip__avatar {
    align-items: center;
    background: var(--admin-panel-highest);
    border: 1px solid rgba(242, 202, 80, 0.25);
    border-radius: 999px;
    color: var(--admin-gold);
    display: inline-flex;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 16px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.admin-main {
    max-width: 1440px;
    min-width: 0;
    padding: var(--admin-margin);
}

.admin-page-header {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 28px;
}

.admin-page-header h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 8px;
}

.admin-page-header p {
    color: var(--admin-muted);
    margin: 0;
    max-width: 640px;
}

.admin-breadcrumb {
    align-items: center;
    color: var(--admin-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 8px;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.admin-breadcrumb .is-current {
    color: var(--admin-gold);
}

.glass-panel,
.admin-card {
    background: rgba(22, 24, 26, 0.72);
    backdrop-filter: blur(20px);
    border: 1px solid var(--admin-line-soft);
    border-radius: 4px;
    padding: 22px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-panel:hover,
.admin-card:hover {
    border-color: rgba(242, 202, 80, 0.18);
}

.admin-grid {
    display: grid;
    gap: var(--admin-gutter);
}

.admin-grid--stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-grid--two {
    grid-template-columns: 1.6fr 1fr;
}

.admin-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
    background: rgba(22, 24, 26, 0.72);
    backdrop-filter: blur(20px);
    border: 1px solid var(--admin-line-soft);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    padding: 22px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
    border-color: rgba(242, 202, 80, 0.35);
    box-shadow: 0 0 18px rgba(0, 238, 252, 0.08);
}

.stat-card__head {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.stat-card span {
    color: var(--admin-muted);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stat-card strong {
    color: var(--admin-gold);
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    margin-top: 18px;
}

.stat-card__meta {
    color: var(--admin-muted);
    font-size: 12px;
    letter-spacing: 0.05em;
    margin-top: 10px;
}

.stat-card__meta--cyan {
    color: #7df4ff;
}

.field label {
    color: var(--admin-muted);
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    background: var(--admin-panel-low);
    border: 1px solid var(--admin-line);
    border-radius: 4px;
    color: var(--admin-ink);
    padding: 11px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--admin-gold);
    box-shadow: 0 0 0 1px rgba(242, 202, 80, 0.25);
    outline: none;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field--full {
    grid-column: 1 / -1;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.field-help {
    color: var(--admin-muted);
    display: block;
    font-size: 12px;
    margin-top: 6px;
}

.admin-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-btn {
    align-items: center;
    background: var(--admin-gold);
    border: 0;
    border-radius: 4px;
    color: #3c2f00;
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 8px;
    letter-spacing: 0.12em;
    padding: 12px 18px;
    text-transform: uppercase;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.admin-btn:hover {
    filter: brightness(1.05);
}

.admin-btn:active {
    transform: scale(0.98);
}

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

.admin-btn--cyan {
    background: transparent;
    border: 1px solid rgba(0, 238, 252, 0.35);
    color: #7df4ff;
}

.admin-btn--danger {
    background: #93000a;
    color: #ffb4ab;
}

.admin-section-head {
    align-items: center;
    border-bottom: 1px solid var(--admin-line);
    display: flex;
    justify-content: space-between;
    margin: -22px -22px 18px;
    padding: 18px 22px;
}

.admin-section-head h2,
.admin-section-head h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    margin: 0;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    border-collapse: collapse;
    min-width: 720px;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--admin-line);
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
}

.admin-table tbody tr:hover {
    background: rgba(32, 31, 32, 0.65);
}

.admin-table th {
    color: var(--admin-muted);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.badge {
    background: var(--admin-panel-high);
    border: 1px solid var(--admin-line);
    border-radius: 999px;
    color: var(--admin-muted);
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 5px 10px;
    text-transform: uppercase;
}

.badge--gold {
    background: var(--admin-gold-soft);
    border-color: rgba(242, 202, 80, 0.35);
    color: var(--admin-gold);
}

.badge--cyan {
    background: var(--admin-cyan-soft);
    border-color: rgba(0, 238, 252, 0.25);
    color: #7df4ff;
}

.badge--sold {
    background: rgba(105, 0, 5, 0.35);
    border-color: rgba(255, 180, 171, 0.25);
    color: var(--admin-red);
}

.notice {
    border-radius: 4px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.notice--success {
    background: rgba(0, 238, 252, 0.08);
    border: 1px solid rgba(0, 238, 252, 0.25);
    color: #7df4ff;
}

.notice--error {
    background: rgba(105, 0, 5, 0.35);
    border: 1px solid rgba(255, 180, 171, 0.25);
    color: var(--admin-red);
}

.empty-state {
    color: var(--admin-muted);
    padding: 32px 0;
    text-align: center;
}

.login-page {
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(242, 202, 80, 0.08), transparent 35%),
        var(--admin-bg);
    display: grid;
    min-height: 100vh;
    place-items: center;
}

.login-card {
    max-width: 440px;
    width: min(100% - 32px, 440px);
}

.login-card .admin-brand strong {
    font-size: 26px;
}

.login-card h1 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 8px;
}

.login-card p {
    color: var(--admin-muted);
    margin: 0 0 24px;
}

.filter-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-bar .field {
    margin: 0;
    min-width: 180px;
}

.artwork-grid {
    display: grid;
    gap: var(--admin-gutter);
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.artwork-card {
    background: var(--admin-panel-low);
    border: 1px solid var(--admin-line);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.artwork-card:hover {
    border-color: rgba(242, 202, 80, 0.45);
    box-shadow: 0 0 20px rgba(233, 195, 73, 0.12);
}

.artwork-card__media {
    aspect-ratio: 3 / 4;
    background: var(--admin-panel-high);
    overflow: hidden;
    position: relative;
}

.artwork-card__media img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    width: 100%;
}

.artwork-card:hover .artwork-card__media img {
    filter: grayscale(0);
    transform: scale(1.04);
}

.artwork-card__media img.is-muted {
    filter: grayscale(1);
}

.artwork-card__badge {
    left: 12px;
    position: absolute;
    top: 12px;
}

.artwork-card__body {
    padding: 18px;
}

.artwork-card__series {
    color: var(--admin-muted);
    font-size: 10px;
    letter-spacing: 0.14em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.artwork-card__title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    margin: 0 0 12px;
}

.artwork-card__footer {
    align-items: center;
    border-top: 1px solid rgba(77, 70, 53, 0.35);
    display: flex;
    justify-content: space-between;
    padding-top: 14px;
}

.lead-list article {
    border-bottom: 1px solid var(--admin-line);
    padding: 14px 0;
}

.lead-list article:last-child {
    border-bottom: 0;
}

.lead-list strong {
    display: block;
    margin-bottom: 4px;
}

.lead-list span {
    color: var(--admin-muted);
    font-size: 14px;
}

.admin-footer-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-top: 40px;
}

.admin-footer-bar__item {
    align-items: center;
    color: var(--admin-muted);
    display: inline-flex;
    font-size: 11px;
    gap: 8px;
    letter-spacing: 0.05em;
}

.admin-footer-bar__pulse {
    animation: admin-pulse 1.8s ease-in-out infinite;
    background: var(--admin-cyan);
    border-radius: 999px;
    height: 8px;
    width: 8px;
}

@keyframes admin-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.image-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.image-card {
    background: var(--admin-panel-high);
    border: 1px solid var(--admin-line);
    border-radius: 4px;
    overflow: hidden;
}

.image-card img {
    aspect-ratio: 1;
    display: block;
    object-fit: cover;
    width: 100%;
}

.image-card__body {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.image-card.is-primary {
    border-color: var(--admin-gold);
    box-shadow: 0 0 0 1px rgba(242, 202, 80, 0.25);
}

.checkbox-row {
    align-items: center;
    display: flex;
    gap: 8px;
}

.glass-panel .filter-bar {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .admin-grid--stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-grid--two {
        grid-template-columns: 1fr;
    }
}

.admin-sidebar-toggle {
    align-items: center;
    display: none;
    gap: 8px;
    left: 16px;
    position: fixed;
    top: 12px;
    z-index: 60;
}

@media (max-width: 1020px) {
    .admin-sidebar {
        height: 100%;
        max-width: 280px;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        width: min(84vw, 280px);
    }

    body.is-admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .admin-sidebar-backdrop {
        background: rgba(0, 0, 0, 0.45);
        border: 0;
        cursor: pointer;
        display: block;
        inset: 0;
        opacity: 0;
        padding: 0;
        pointer-events: none;
        position: fixed;
        transition: opacity 0.2s ease;
        z-index: 20;
    }

    body.is-admin-sidebar-open .admin-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-grid--stats,
    .admin-grid--three,
    .admin-grid--two,
    .form-grid,
    .form-grid--three {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        padding-left: 72px;
    }

    .admin-user-chip__meta {
        display: none;
    }
}

/* Artwork gallery */
.artwork-gallery {
    margin-top: 24px;
}

.gallery-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-filter .admin-btn.is-active {
    border-color: var(--dm-primary, #00eefc);
    color: var(--dm-primary, #00eefc);
}

.gallery-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    margin-top: 16px;
}

@media (min-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }
}

.upload-panel {
    align-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    min-height: 120px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-panel.is-dragging {
    background: rgba(0, 238, 252, 0.06);
    border-color: var(--dm-primary, #00eefc);
}

.upload-queue {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    text-align: left;
    width: 100%;
}

.upload-item {
    color: var(--admin-muted, #a8a8ad);
    font-size: 13px;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-card:hover {
    border-color: rgba(0, 238, 252, 0.35);
    transform: translateY(-2px);
}

.gallery-card.is-primary {
    border-color: rgba(242, 202, 80, 0.5);
    box-shadow: 0 0 0 1px rgba(242, 202, 80, 0.15);
}

.gallery-card.is-hidden-card {
    opacity: 0.65;
}

.gallery-card.is-hidden-card .gallery-card__preview::after {
    background: rgba(10, 10, 11, 0.35);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.gallery-card__preview {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.gallery-card__preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gallery-card__overlay {
    align-items: center;
    background: linear-gradient(180deg, rgba(10, 10, 11, 0.1) 0%, rgba(10, 10, 11, 0.82) 100%);
    display: flex;
    gap: 6px;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 12px;
    position: absolute;
    transition: opacity 0.2s ease;
}

.gallery-card:hover .gallery-card__overlay,
.gallery-card:focus-within .gallery-card__overlay {
    opacity: 1;
}

.gallery-card__icon-btn {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    width: 36px;
}

.gallery-card__icon-btn:hover {
    background: rgba(0, 238, 252, 0.18);
    border-color: rgba(0, 238, 252, 0.45);
}

.gallery-card__icon-btn.is-active {
    background: rgba(242, 202, 80, 0.22);
    border-color: rgba(242, 202, 80, 0.55);
    color: #f2ca50;
}

.gallery-card__icon-btn--danger:hover {
    background: rgba(220, 80, 80, 0.22);
    border-color: rgba(220, 80, 80, 0.5);
}

.gallery-card__icon-btn .admin-nav-icon {
    font-size: 18px;
}

.gallery-card__order,
.gallery-card__primary,
.gallery-card__visibility {
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    position: absolute;
    text-transform: uppercase;
    z-index: 2;
}

.gallery-card__order {
    background: rgba(10, 10, 11, 0.72);
    color: #fff;
    left: 8px;
    top: 8px;
}

.gallery-card__primary {
    background: rgba(242, 202, 80, 0.92);
    color: #3c2f00;
    right: 8px;
    top: 8px;
}

.gallery-card__visibility {
    background: rgba(220, 80, 80, 0.85);
    bottom: 8px;
    color: #fff;
    left: 8px;
}

.gallery-card__meta {
    display: grid;
    gap: 6px;
    padding: 10px 12px 12px;
}

.gallery-card__name {
    color: var(--admin-text, #e8e8ea);
    display: block;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.gallery-card__badges .badge {
    font-size: 10px;
    padding: 3px 7px;
}

.gallery-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-card__actions--compact {
    gap: 6px;
}

.gallery-card__settings {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.gallery-card__settings label,
.gallery-modal__form label {
    display: grid;
    font-size: 13px;
    gap: 6px;
}

.gallery-card__switch {
    align-items: center;
    display: flex;
    gap: 8px;
}

.gallery-modal[hidden] {
    display: none !important;
}

body.is-gallery-modal-open {
    overflow: hidden;
}

.gallery-modal {
    inset: 0;
    position: fixed;
    z-index: 120;
}

.gallery-modal__backdrop {
    background: rgba(8, 8, 10, 0.78);
    border: 0;
    cursor: pointer;
    inset: 0;
    position: absolute;
}

.gallery-modal__panel {
    background: #151518;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    display: grid;
    grid-template-rows: auto 1fr auto;
    left: 50%;
    max-height: calc(100vh - 32px);
    max-width: 920px;
    overflow: hidden;
    position: relative;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 24px);
}

.gallery-modal__header,
.gallery-modal__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    padding: 16px 20px;
}

.gallery-modal__header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-modal__header h4 {
    font-family: "Playfair Display", Georgia, serif;
    margin: 0 0 4px;
}

.gallery-modal__footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: flex-end;
}

.gallery-modal__body {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(220px, 280px) 1fr;
    overflow: auto;
    padding: 20px;
}

.gallery-modal__preview {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 0;
}

.gallery-modal__preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gallery-modal__form {
    display: grid;
    gap: 18px;
}

.gallery-modal__section h5 {
    font-size: 12px;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.gallery-modal__section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
}

.gallery-modal__section:first-child {
    border-top: 0;
    padding-top: 0;
}

@media (max-width: 760px) {
    .gallery-modal__body {
        grid-template-columns: 1fr;
    }

    .gallery-modal__preview {
        max-height: 240px;
        position: static;
    }
}

.admin-social-title {
    margin: 0 0 8px;
    color: var(--admin-accent, #f2ca50);
    font-size: 18px;
    letter-spacing: 0.12em;
}

.admin-social-intro {
    margin: 0 0 22px;
}

.admin-social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 20px;
}

.admin-social-field {
    display: grid;
    gap: 8px;
}

.admin-social-field__label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.admin-social-field__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--social-color, #444);
    color: #fff;
    flex-shrink: 0;
}

.admin-social-field__icon svg {
    width: 18px;
    height: 18px;
}

.admin-social-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

@media (max-width: 980px) {
    .admin-social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .admin-social-grid {
        grid-template-columns: 1fr;
    }
}
