/* Admonica — reconstruido a partir de chats, historial de Cursor y paleta documentada */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

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

html, body {
    min-height: 100%;
    font-family: 'Poppins', "Segoe UI", system-ui, sans-serif;
}

body {
    background: #0b0b0f;
    color: #e5e7eb;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.nav {
    width: 320px;
    flex-shrink: 0;
    background: #12121a;
    border-right: 1px solid #232332;
    box-shadow: 0 0 24px rgba(88, 28, 135, 0.25);
    padding: 0;
    position: relative;
    overflow-y: auto;
    z-index: 2;
}

.nav::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6d28d9, #a855f7, #d946ef);
}

.nav__brand {
    display: flex;
    justify-content: center;
    padding: 18px 18px 6px;
}

.nav__brand-img {
    width: 160px;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.22));
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 18px 12px;
}

.theme-toggle__icon {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid #111827;
}

.theme-toggle__icon--light {
    background: #ffffff;
}

.theme-toggle__icon--dark {
    background: #111827;
    border-color: #111827;
}

.theme-toggle__switch {
    position: relative;
    width: 46px;
    height: 24px;
    display: inline-block;
}

.theme-toggle__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-toggle__slider {
    position: absolute;
    inset: 0;
    background: rgba(168, 85, 247, 0.25);
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.theme-toggle__slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle__switch input:checked + .theme-toggle__slider {
    background: rgba(17, 24, 39, 0.65);
}

.theme-toggle__switch input:checked + .theme-toggle__slider::before {
    transform: translateX(22px);
    background: #0f172a;
}

.list {
    list-style: none;
    width: 100%;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    padding: 16px 0 40px;
    border-radius: 0 16px 16px 0;
}

.list__item {
    list-style: none;
    width: 100%;
    text-align: left;
    overflow: hidden;
    margin: 0;
}

.list__item--click {
    cursor: pointer;
}

.list__button {
    display: flex;
    align-items: center;
    gap: 1em;
    width: 86%;
    margin: 0 auto;
    padding: 8px 14px;
    border-radius: 12px;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.list__button:hover,
.list__button.arrow {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(88, 28, 135, 0.12));
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.3), 0 0 18px rgba(168, 85, 247, 0.35);
    transform: translateX(2px);
}

.list__button:active {
    transform: translateX(2px) scale(0.98);
}

.list__img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    filter: brightness(0) invert(1) saturate(1.6);
}

.list__img--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #e5e7eb;
    filter: none;
}

.list__img--icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}

.list__arrow {
    width: 16px;
    margin-left: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1) saturate(1.6);
}

.list__button.arrow .list__arrow {
    transform: rotate(90deg);
}

.nav__link {
    color: #e5e7eb;
    display: block;
    padding: 15px 0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    flex: 1;
}

.nav__link--button {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 15px 0;
    color: inherit;
    text-align: left;
    width: 100%;
}

.list__show {
    width: 80%;
    margin-left: auto;
    border-left: 1px solid rgba(168, 85, 247, 0.45);
    list-style: none;
    transition: height 0.4s ease;
    height: 0;
    overflow: hidden;
    padding: 0;
}

.list__inside {
    padding-left: 12px;
}

.nav__link--inside {
    display: block;
    border-radius: 6px;
    padding: 15px 10px 15px 18px;
    text-align: left;
    text-transform: none;
    letter-spacing: 0.03em;
    color: #e5e7eb;
    text-decoration: none;
    font-size: inherit;
}

.nav__link--inside:hover {
    background: rgba(168, 85, 247, 0.14);
    color: #f4f1ff;
}

.list__inside--sub {
    padding-left: 28px;
    position: relative;
}

.list__inside--sub::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 4px;
    bottom: 4px;
    border-left: 1px solid rgba(168, 85, 247, 0.45);
}

.list__inside--sub .nav__link--inside {
    font-size: 0.92em;
    opacity: 0.95;
}

.nav__link--external::after {
    content: "↗";
    margin-left: 6px;
    font-size: 0.78em;
    opacity: 0.75;
}

.list__item--legacy {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(168, 85, 247, 0.28);
}

.page {
    flex: 1;
    padding: 32px 40px 48px;
    background: #0b0b0f;
}

body.theme-light-lilac .page,
body.theme-light-lilac .hero:not(.hero--photo) {
    background: #eef1f8;
    color: #1f2937;
}

body.theme-light-lilac .page__title,
body.theme-light-lilac .hero__title {
    color: #1f2937;
}

body.theme-dark .page,
body.theme-dark .hero:not(.hero--photo) {
    background:
        radial-gradient(circle at top right, rgba(88, 28, 135, 0.25), transparent 40%),
        #0b0b0f;
}

.page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.page__header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.page__title,
.hero__title {
    font-size: 2rem;
    font-weight: 700;
}

.page__action,
.panel__action,
.tab-button--download,
.table__link,
.doc-item__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, #a855f7, #c084fc);
    font-size: 0.86rem;
    font-weight: 600;
}

.page__action:hover,
.panel__action:hover,
.tab-button--download:hover {
    filter: brightness(1.05);
}

.page__action.is-disabled,
.page__action[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    filter: none;
}

.hero {
    flex: 1;
    padding: 40px 48px;
}

.hero--photo {
    padding: 0;
    min-height: 100vh;
    background-color: #05040a;
    background-image: url("ica.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero--photo .hero__overlay {
    min-height: 100%;
    padding: 40px 48px 48px;
    background: linear-gradient(180deg, rgba(8, 6, 16, 0.18) 0%, rgba(8, 6, 16, 0.35) 100%);
}

body.theme-light-lilac .hero--photo,
body.theme-dark .hero--photo {
    background-color: #05040a;
    background-image: url("ica.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero--photo .hero__title,
.hero--photo .hero__lead {
    color: #f8fafc;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero--photo .hero__lead {
    opacity: 0.95;
}

.hero--photo .home-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
}

body.theme-dark .hero--photo .home-card {
    background: rgba(20, 20, 32, 0.88);
}

.hero__lead {
    max-width: 640px;
    margin: 10px 0 28px;
    opacity: 0.85;
    line-height: 1.5;
}

.hub__lead {
    max-width: 720px;
    margin: 0 0 28px;
    opacity: 0.78;
    line-height: 1.5;
}

.hub__section {
    margin: 36px 0 16px;
    font-size: 1.15rem;
    color: #5b21b6;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.home-grid--platforms {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.home-card {
    --delay: 0s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 148px;
    padding: 22px 18px;
    text-decoration: none;
    color: inherit;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #c084fc, #7c3aed, #a855f7) border-box;
    border: 1px solid transparent;
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(88, 28, 135, 0.12);
    transform: translateY(0) scale(1);
    animation: cardIn 0.55s ease both;
    transition: transform 0.28s cubic-bezier(.22, 1, .36, 1), box-shadow 0.28s ease;
}

.home-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(168, 85, 247, 0.16) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
}

.home-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 22px 40px rgba(109, 40, 217, 0.28);
}

.home-card:hover::before {
    transform: translateX(120%);
}

.home-card:active {
    transform: translateY(-3px) scale(1.01);
}

.home-card h2 {
    position: relative;
    z-index: 1;
    font-size: 1.12rem;
    margin: 0 0 8px;
    color: #5b21b6;
}

.home-card p {
    position: relative;
    z-index: 1;
    font-size: 0.86rem;
    line-height: 1.4;
    margin: 0;
    max-width: 28ch;
    opacity: 0.72;
}

.home-card-wrap {
    position: relative;
}

.home-card-wrap .home-card {
    width: 100%;
    height: 100%;
}

.home-card__edit {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(18, 18, 27, 0.88);
    color: #f3e8ff;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

body.is-admin .home-card__edit {
    display: inline-flex;
}

.home-card--add {
    display: none;
    width: 100%;
    cursor: pointer;
    background:
        linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)) padding-box,
        linear-gradient(135deg, rgba(192, 132, 252, 0.55), rgba(124, 58, 237, 0.45)) border-box;
    border-style: dashed;
    box-shadow: none;
    color: inherit;
    font: inherit;
}

body.is-admin .home-card--add {
    display: flex;
}

.home-card--add:hover {
    box-shadow: 0 16px 28px rgba(109, 40, 217, 0.16);
}

.home-card__plus {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
    border-radius: 999px;
    border: 1.5px dashed rgba(124, 58, 237, 0.55);
    color: #7c3aed;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1;
}

.home-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-card__badge--internal {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}

.admin-toggle-row {
    display: grid;
    gap: 6px;
    margin: 4px 0 8px;
}

.admin-site-panel__hint {
    margin: 0 0 6px;
    font-size: 0.8rem;
    opacity: 0.8;
}

body.theme-dark .home-card--add {
    background:
        linear-gradient(rgba(24, 24, 35, 0.55), rgba(24, 24, 35, 0.55)) padding-box,
        linear-gradient(135deg, rgba(192, 132, 252, 0.45), rgba(124, 58, 237, 0.35)) border-box;
}

.home-card--accent {
    min-height: 168px;
    background:
        linear-gradient(#faf5ff, #ffffff) padding-box,
        linear-gradient(135deg, #a855f7, #6d28d9) border-box;
}

.home-grid .home-card:nth-child(1) { animation-delay: 0.04s; }
.home-grid .home-card:nth-child(2) { animation-delay: 0.08s; }
.home-grid .home-card:nth-child(3) { animation-delay: 0.12s; }
.home-grid .home-card:nth-child(4) { animation-delay: 0.16s; }
.home-grid .home-card:nth-child(5) { animation-delay: 0.20s; }
.home-grid .home-card:nth-child(6) { animation-delay: 0.24s; }
.home-grid .home-card:nth-child(7) { animation-delay: 0.28s; }
.home-grid .home-card:nth-child(8) { animation-delay: 0.32s; }

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.theme-dark .home-card,
body:not(.theme-light-lilac) .home-card {
    background:
        linear-gradient(#171726, #171726) padding-box,
        linear-gradient(135deg, #a855f7, #4c1d95) border-box;
    color: #e5e7eb;
}

body.theme-dark .home-card h2,
body:not(.theme-light-lilac) .home-card h2 {
    color: #e9d5ff;
}

body.theme-dark .hub__section {
    color: #d8b4fe;
}

.card, .panel, .filters, .admin-panel, .admin-modal__content {
    background: #141420;
    border: 1px solid rgba(192, 132, 252, 0.22);
    border-radius: 16px;
}

body.theme-light-lilac .card,
body.theme-light-lilac .panel,
body.theme-light-lilac .filters,
body.theme-light-lilac .admin-panel,
body.theme-light-lilac .table,
body.theme-light-lilac .doc-item {
    background: #ffffff;
    color: #1f2937;
}

.filters {
    margin-bottom: 16px;
    padding: 10px;
}

.filters__search {
    width: 100%;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: transparent;
    color: inherit;
}

.tabs, .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(168, 85, 247, 0.12);
    color: inherit;
    font: inherit;
}

.tab-button.is-active {
    background: linear-gradient(90deg, #a855f7, #c084fc);
    color: #fff;
}

.category {
    width: 100%;
    margin-bottom: 8px;
}

.filter-group {
    width: 100%;
    margin-bottom: 8px;
    background: rgba(168, 85, 247, 0.08);
    border-radius: 12px;
    padding: 6px 10px;
}
.filter-group summary {
    cursor: pointer;
    font-weight: 600;
    padding: 6px 0;
}
.filter-group__content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0 10px;
}
.category__name {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
    margin: 8px 0 6px;
}

.panel {
    display: none;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 12px 30px rgba(67, 56, 202, 0.12);
}

.panel.is-active,
.page.is-searching .panel.has-matches {
    display: block;
}

.page.is-searching .panel { display: none; }
.page.is-searching .panel.has-matches { display: block; }

.panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    background: linear-gradient(90deg, rgba(192,132,252,0.22), rgba(168,85,247,0.18));
    border-radius: 12px;
    padding: 10px 12px;
}

.panel__title { font-size: 1.1rem; }

.doc-list { display: flex; flex-direction: column; gap: 8px; }

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(192, 132, 252, 0.18);
}

.doc-item__label { font-size: 0.95rem; }

.table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
}

.table th, .table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.table th {
    background: linear-gradient(90deg, rgba(192,132,252,0.22), rgba(168,85,247,0.18));
}

.is-admin .is-editable {
    outline: 1px dashed rgba(168, 85, 247, 0.5);
    padding: 2px 4px;
}

.admin-manager { margin-bottom: 14px; }
.admin-panel { padding: 14px; }
.admin-panel__item--stack { display: grid; gap: 8px; }
.admin-input, .admin-controls input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: transparent;
    color: inherit;
    font: inherit;
}
.admin-btn {
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    background: linear-gradient(90deg, #a855f7, #c084fc);
    color: #fff;
    font: inherit;
}
.admin-btn--sm {
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 7px;
    font-weight: 500;
}
.admin-btn--ghost { background: transparent; border: 1px solid rgba(168,85,247,0.4); color: inherit; }
.admin-btn--danger { background: #7f1d1d; }
.admin-btn--upload { background: #5b21b6; }
.admin-upload { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-file { font-size: 0.8rem; opacity: 0.8; }
.admin-upload-status {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}
.admin-upload-status.is-success {
    color: #15803d;
}
.admin-upload-status.is-error {
    color: #b91c1c;
}
.admin-panel__actions { margin-top: 10px; }

.admin-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
}
.admin-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.admin-modal__content {
    position: relative;
    width: min(420px, 100%);
    max-width: 420px;
    max-height: min(88vh, 720px);
    margin: 0;
    padding: 18px 18px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1;
    box-sizing: border-box;
}
.admin-modal__content h3 { margin: 0 0 6px; }
.admin-modal__content .admin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 4px;
    cursor: pointer;
    user-select: none;
}
.admin-modal__content .admin-toggle input {
    width: auto;
    margin: 0;
}
.admin-modal:not(.support-modal):not(.support-form-modal) .admin-modal__content {
    color: #e5e7eb;
}
.admin-modal:not(.support-modal):not(.support-form-modal) .admin-modal__content input {
    background: #1e1e2e;
    border: 1px solid rgba(192, 132, 252, 0.35);
    color: #e5e7eb;
    border-radius: 8px;
}
.admin-modal__content input { width: 100%; margin: 6px 0 8px; padding: 8px 10px; box-sizing: border-box; }
.admin-modal__content textarea.admin-input {
    width: 100%;
    margin: 6px 0 8px;
    padding: 8px 10px;
    min-height: 56px;
    max-height: 120px;
    resize: vertical;
    box-sizing: border-box;
}
.admin-modal__content .support-label {
    display: block;
    margin-top: 4px;
    font-size: 0.86rem;
    font-weight: 600;
}
.admin-modal__actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
    position: sticky;
    bottom: 0;
    padding-top: 8px;
    background: linear-gradient(to bottom, rgba(20, 20, 32, 0), #141420 28%);
}

body.theme-dark .admin-modal:not(.support-modal) .admin-modal__actions {
    background: linear-gradient(to bottom, rgba(23, 23, 31, 0), #17171f 28%);
}

.support-modal .admin-modal__actions {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 28%);
}
.admin-modal__actions--split {
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.admin-modal__actions-right {
    display: flex;
    gap: 8px;
    margin-left: auto;
}
.admin-modal__actions--stack {
    flex-direction: column;
    align-items: stretch;
}
.admin-modal__actions--stack .admin-btn {
    width: 100%;
    justify-content: center;
}
.admin-modal__error { color: #fca5a5; min-height: 1.2em; margin-top: 8px; }

.admin-notifications--floating {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 40;
    display: none;
}
body.is-admin .admin-notifications--floating { display: block; }
.admin-notifications__trigger {
    border: 0;
    border-radius: 999px;
    padding: 10px 12px;
    cursor: pointer;
    background: #12121a;
    color: #fff;
}
.admin-notifications__panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: 48px;
    width: 280px;
    background: #141420;
    border-radius: 12px;
    padding: 10px;
    color: #e5e7eb;
}
.admin-notifications__panel.is-open { display: block; }
.admin-notifications__item {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
}
.admin-notifications__item span { display: block; font-size: 0.75rem; opacity: 0.7; }

@media (max-width: 860px) {
    .layout { flex-direction: column; }
    .nav { width: 100%; border-right: none; border-bottom: 1px solid #232332; }
    .list { min-height: auto; padding: 24px 0 18px; }
    .list__button { width: 92%; }
    .page, .hero { padding: 20px; }
    .support-actions--split { grid-template-columns: 1fr; }
}

/* Ayuda / soporte */
.card {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(67, 56, 202, 0.12);
}

.card__header {
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(192, 132, 252, 0.22), rgba(168, 85, 247, 0.18));
    border-bottom: 1px solid rgba(192, 132, 252, 0.25);
    font-weight: 500;
    letter-spacing: 0.04em;
}

body.theme-light-lilac .card__header {
    color: #1f2937;
}

body.theme-dark .card__header {
    background: rgba(88, 28, 135, 0.35);
    border-bottom-color: rgba(168, 85, 247, 0.2);
    color: #e9d5ff;
}

.support-card--highlight {
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 16px 30px rgba(88, 28, 135, 0.25);
}

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

.support-cta-card {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    min-height: 168px;
    padding: 22px 22px 20px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: #1f2937;
    background:
        linear-gradient(#ffffff, #faf5ff) padding-box,
        linear-gradient(135deg, #c084fc, #7c3aed) border-box;
    border: 1px solid transparent;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(88, 28, 135, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.support-cta-card--secondary {
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, #a78bfa, #8b5cf6) border-box;
}

.support-cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 25%, rgba(168, 85, 247, 0.12) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform 0.65s ease;
    pointer-events: none;
}

.support-cta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(109, 40, 217, 0.22);
}

.support-cta-card:hover::before {
    transform: translateX(120%);
}

.support-cta-card:active {
    transform: translateY(-1px);
}

.support-cta-card:focus-visible {
    outline: 2px solid #7c3aed;
    outline-offset: 3px;
}

.support-cta-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #6d28d9;
    background: rgba(168, 85, 247, 0.12);
}

.support-cta-card__icon svg {
    width: 22px;
    height: 22px;
}

.support-cta-card__title {
    position: relative;
    z-index: 1;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    color: #5b21b6;
}

.support-cta-card__text {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #4b5563;
    max-width: 34ch;
}

.support-cta-card__action {
    position: relative;
    z-index: 1;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #111827;
    background: linear-gradient(90deg, #a855f7, #c084fc);
    box-shadow: 0 8px 18px rgba(168, 85, 247, 0.28);
}

.support-cta-card--secondary .support-cta-card__action {
    background: #ffffff;
    color: #5b21b6;
    border: 1px solid rgba(124, 58, 237, 0.35);
    box-shadow: 0 6px 14px rgba(88, 28, 135, 0.1);
}

body.theme-dark .support-cta-card {
    color: #e5e7eb;
    background:
        linear-gradient(#17171f, #1b1526) padding-box,
        linear-gradient(135deg, #a855f7, #6d28d9) border-box;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

body.theme-dark .support-cta-card__title {
    color: #e9d5ff;
}

body.theme-dark .support-cta-card__text {
    color: rgba(229, 231, 235, 0.75);
}

body.theme-dark .support-cta-card__icon {
    color: #c4b5fd;
    background: rgba(168, 85, 247, 0.22);
}

body.theme-dark .support-cta-card--secondary .support-cta-card__action {
    background: rgba(24, 24, 32, 0.9);
    color: #e9d5ff;
    border-color: rgba(168, 85, 247, 0.45);
}

@media (max-width: 720px) {
    .support-cta-grid {
        grid-template-columns: 1fr;
    }
}

.support-body {
    padding: 16px 20px 20px;
    display: grid;
    gap: 12px;
}

.support-actions {
    display: grid;
    gap: 10px;
}

.support-actions--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: #ffffff;
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 16px rgba(80, 72, 120, 0.12);
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}

.support-button--primary {
    background: linear-gradient(90deg, #a855f7, #c084fc);
    color: #111827;
    border-color: transparent;
}

.support-contact h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.support-contact a {
    color: #6d28d9;
    text-decoration: none;
    font-weight: 600;
}

.support-form {
    display: grid;
    gap: 10px;
}

.support-form input,
.support-form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
}

.support-field-label {
    display: block;
    margin: 2px 0 -2px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
}

.support-select {
    position: relative;
}

.support-select::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #7c3aed;
    border-bottom: 2px solid #7c3aed;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.support-form select,
.support-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    min-height: 46px;
    padding: 10px 42px 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.35);
    background: linear-gradient(#ffffff, #faf5ff);
    color: #4c1d95;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(88, 28, 135, 0.08);
}

.support-form select:hover,
.support-select select:hover {
    border-color: rgba(124, 58, 237, 0.55);
}

.support-form select:focus,
.support-select select:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.support-file-list {
    display: grid;
    gap: 10px;
    margin: 12px 0 6px;
}

.support-file-button {
    justify-content: center;
    text-align: center;
}

.support-file-empty {
    color: #6b7280;
}

.support-modal .admin-modal__content {
    background: #ffffff;
    color: #1f2937;
}

body.theme-dark .support-modal .admin-modal__content {
    background: #17171f;
    color: #e5e7eb;
}

body.theme-dark .support-modal .admin-modal__actions {
    background: linear-gradient(to bottom, rgba(23, 23, 31, 0), #17171f 28%);
}

.support-modal .admin-modal__message {
    color: #4b5563;
}

.support-modal .admin-btn--ghost {
    background: #7c3aed;
    color: #ffffff;
    border-color: transparent;
}

.support-ticket-code-label {
    margin: 4px 0 8px;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.support-ticket-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 6px;
    padding: 10px 14px;
    width: fit-content;
    max-width: 100%;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.28);
}

.support-ticket-code__value {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #5b21b6;
}

.support-ticket-code__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.14);
    color: #6d28d9;
    cursor: pointer;
}

.support-ticket-code__copy:hover {
    background: rgba(124, 58, 237, 0.24);
}

.support-ticket-copy-feedback {
    margin: 0 0 8px;
    text-align: center;
    font-size: 0.8rem;
    color: #059669;
}

.support-ticket-track {
    margin: 8px 0 12px;
    text-align: center;
}

.support-ticket-track__link {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: underline;
}

.support-ticket-track__link:hover {
    color: #5b21b6;
}

.support-lookup-error {
    margin: 0 0 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.28);
    color: #b91c1c;
    font-size: 0.88rem;
    line-height: 1.45;
}

.support-spam-notice {
    margin: 14px 0 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(217, 119, 6, 0.35);
    color: #92400e;
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
}

body.theme-dark .support-spam-notice {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.12);
}

.support-form-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.support-form-modal__content {
    width: min(560px, 100%);
    max-width: 560px;
    max-height: min(88vh, 820px);
    margin: 0;
    overflow: auto;
    background: #ffffff;
    color: #1f2937;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.support-form-modal__content h3 {
    color: #111827;
}

.support-form-modal__content .admin-modal__message {
    color: #4b5563;
    margin: 0 0 12px;
    line-height: 1.45;
}

.support-form-modal__content--sm {
    width: min(420px, 100%);
    max-width: 420px;
}

.support-form-modal__content .admin-modal__close {
    top: 10px;
    right: 10px;
}

.support-form-modal__content .support-form {
    margin-top: 8px;
}

.support-form-modal__content .support-form input,
.support-form-modal__content .support-form textarea {
    margin: 0;
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(124, 58, 237, 0.35);
}

.support-form-modal__content .support-form input::placeholder,
.support-form-modal__content .support-form textarea::placeholder {
    color: #6b7280;
    opacity: 1;
}

.support-form-modal__content .support-button {
    width: 100%;
    margin-top: 4px;
}

body.support-modal-open {
    overflow: hidden;
}

body.theme-dark .support-form-modal__content {
    background: #17171f;
    color: #f5f3ff;
}

.support-status-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.support-status-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 92px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid rgba(168, 85, 247, 0.18);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(88, 28, 135, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.support-status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(109, 40, 217, 0.16);
    text-decoration: none;
    color: inherit;
}

.support-status-card.is-active {
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(109, 40, 217, 0.22);
    background:
        linear-gradient(#ffffff, #faf5ff) padding-box,
        linear-gradient(135deg, #c084fc, #7c3aed) border-box;
    border: 1px solid transparent;
}

.support-status-card__label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #6b7280;
}

.support-status-card__count {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
    color: #4c1d95;
}

.support-status-card--all.is-active .support-status-card__count,
.support-status-card--all .support-status-card__count {
    color: #5b21b6;
}

.support-status-card--elaborado .support-status-card__count { color: #7c3aed; }
.support-status-card--diagnostico .support-status-card__count { color: #c2410c; }
.support-status-card--proceso .support-status-card__count { color: #0369a1; }
.support-status-card--finalizado .support-status-card__count { color: #15803d; }

.support-status-card--elaborado {
    border-color: rgba(124, 58, 237, 0.22);
}
.support-status-card--diagnostico {
    border-color: rgba(194, 65, 12, 0.22);
}
.support-status-card--proceso {
    border-color: rgba(3, 105, 161, 0.22);
}
.support-status-card--finalizado {
    border-color: rgba(21, 128, 61, 0.22);
}

.support-status-card.is-active .support-status-card__label {
    color: #5b21b6;
}

body.theme-dark .support-status-card {
    background: #17171f;
    border-color: rgba(168, 85, 247, 0.28);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

body.theme-dark .support-status-card__label {
    color: rgba(229, 231, 235, 0.7);
}

body.theme-dark .support-status-card__count {
    color: #e9d5ff;
}

body.theme-dark .support-status-card.is-active {
    background:
        linear-gradient(#1b1526, #17171f) padding-box,
        linear-gradient(135deg, #a855f7, #6d28d9) border-box;
}

@media (max-width: 900px) {
    .support-status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .support-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.support-sound-chip {
    position: fixed;
    right: 24px;
    top: 72px;
    left: auto;
    bottom: auto;
    z-index: 60;
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 999px;
    padding: 10px 14px;
    background: #ffffff;
    color: #5b21b6;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(88, 28, 135, 0.18);
    cursor: pointer;
}

@media (max-width: 900px) {
    .support-sound-chip {
        top: auto;
        bottom: 20px;
        right: 16px;
    }
}

.support-sound-chip.is-ready {
    background: linear-gradient(90deg, #a855f7, #c084fc);
    color: #111827;
    border-color: transparent;
}

body.theme-dark .support-sound-chip {
    background: #17171f;
    color: #e9d5ff;
    border-color: rgba(168, 85, 247, 0.45);
}

body.theme-dark .support-button {
    background: rgba(20, 20, 32, 0.9);
    color: #f5f3ff;
    border-color: rgba(192, 132, 252, 0.4);
}

body.theme-dark .support-button--primary {
    background: linear-gradient(90deg, #a855f7, #c084fc);
    color: #111827;
    border-color: transparent;
}

body.theme-dark .support-contact a {
    color: #d8b4fe;
}

body.theme-dark .support-form input,
body.theme-dark .support-form textarea {
    background: rgba(20, 20, 32, 0.9);
    color: #f5f3ff;
    border-color: rgba(192, 132, 252, 0.4);
}

body.theme-dark .support-field-label {
    color: rgba(229, 231, 235, 0.7);
}

body.theme-dark .support-form select,
body.theme-dark .support-select select {
    background: linear-gradient(#1b1526, #17171f);
    color: #e9d5ff;
    border-color: rgba(168, 85, 247, 0.45);
}

body.theme-dark .support-select::after {
    border-color: #c4b5fd;
}

/* Admin secreto en menú */
.list__item--admin {
    margin-top: auto;
    opacity: 0.12;
    transition: opacity 0.25s ease;
}

.nav:hover .list__item--admin,
.list__item--admin:focus-within {
    opacity: 0.55;
}

body.is-admin .list__item--admin {
    opacity: 0.4;
}

.list__button--admin-trigger {
    min-height: 28px;
    padding: 6px 0;
}

.nav__admin-secret {
    display: block;
    width: 100%;
    height: 24px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav__admin-secret::after {
    content: "";
    display: block;
    width: 36px;
    height: 2px;
    margin: 10px auto 0;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.35);
    transition: background 0.2s ease, width 0.2s ease;
}

.nav:hover .nav__admin-secret::after,
.list__item--admin:focus-within .nav__admin-secret::after {
    width: 52px;
    background: rgba(248, 250, 252, 0.7);
}

/* Panel admin de avisos del sitio */
.admin-site-panel {
    display: none;
}

body.is-admin .admin-site-panel {
    display: block;
}

body.is-admin .admin-site-panel--floating {
    display: flex;
    flex-direction: column;
}

.admin-site-panel__body {
    display: grid;
    gap: 12px;
}

.admin-site-panel__hint {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.85;
}

.admin-site-panel--floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 45;
    width: min(320px, calc(100vw - 40px));
    max-height: calc(100dvh - 24px);
    padding: 14px;
    border-radius: 14px;
    background: rgba(18, 18, 27, 0.96);
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.admin-site-panel--floating .admin-site-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 10px;
    flex: 0 0 auto;
}

.admin-site-panel__toggle {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #e9d5ff;
    font: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.admin-site-panel__content {
    display: grid;
    gap: 10px;
}

.admin-site-panel--floating .admin-site-panel__content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 6px;
    margin-right: -2px;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.admin-site-panel--floating .admin-site-panel__content::-webkit-scrollbar {
    width: 8px;
}

.admin-site-panel--floating .admin-site-panel__content::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.45);
    border-radius: 999px;
}

.admin-site-panel--floating .admin-site-panel__footer {
    flex: 0 0 auto;
    display: grid;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(168, 85, 247, 0.22);
}

.admin-site-panel--floating .admin-site-panel__footer .admin-btn {
    width: 100%;
}

.admin-site-panel--floating .admin-site-panel__footer .admin-site-panel__status {
    margin: 0;
}

.admin-site-panel__chip {
    display: none;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: linear-gradient(90deg, #a855f7, #c084fc);
    color: #111827;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.admin-site-panel--floating.is-minimized {
    width: auto;
    min-width: 0;
    padding: 8px;
}

.admin-site-panel--floating.is-minimized .admin-site-panel__header,
.admin-site-panel--floating.is-minimized .admin-site-panel__content,
.admin-site-panel--floating.is-minimized .admin-site-panel__footer {
    display: none;
}

.admin-site-panel--floating.is-minimized .admin-site-panel__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-site-panel__preview {
    display: block;
    width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.admin-site-panel__status {
    margin: 10px 0 0;
    font-size: 0.85rem;
    line-height: 1.35;
}

.admin-site-panel__status.is-ok {
    color: #86efac;
}

.admin-site-panel__status.is-error {
    color: #fca5a5;
}

.support-button.is-disabled,
.support-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.support-modal .admin-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.support-modal.is-submitting .admin-modal__content {
    pointer-events: none;
}

.support-wait {
    text-align: center;
    padding: 8px 0 4px;
}

.support-wait h3 {
    margin-bottom: 8px;
}

.support-wait__bar {
    position: relative;
    width: 100%;
    height: 8px;
    margin: 18px 0 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.15);
}

.support-wait__bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #7c3aed, #c084fc, #7c3aed);
    background-size: 200% 100%;
    animation: supportWaitSlide 1.1s ease-in-out infinite;
}

@keyframes supportWaitSlide {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}

.support-modal.is-submitting .admin-modal__actions .admin-btn {
    opacity: 0.75;
}

/* Modal de imagen en inicio */
.site-banner-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 70;
    place-items: center;
    padding: 24px;
}

.site-banner-modal.is-open {
    display: grid;
    animation: siteBannerFadeIn 0.28s ease;
}

.site-banner-modal.is-open.is-closing {
    animation: siteBannerFadeOut 0.24s ease forwards;
    pointer-events: none;
}

.site-banner-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.site-banner-modal__frame {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(92vw, 920px);
    max-height: 92vh;
}

.site-banner-modal.is-open .site-banner-modal__frame {
    animation: siteBannerFrameIn 0.3s ease;
}

.site-banner-modal.is-closing .site-banner-modal__frame {
    animation: siteBannerFrameOut 0.24s ease forwards;
}

.site-banner-modal__frame img {
    display: block;
    max-width: min(92vw, 920px);
    max-height: calc(92vh - 24px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.site-banner-modal__frame:has(.site-banner-modal__footer:not([hidden])) img {
    max-height: calc(92vh - 72px);
    border-radius: 10px 10px 0 0;
}

.site-banner-modal__footer {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    color: #f3f3f8;
    text-align: center;
    background: rgba(0, 0, 0, 0.88);
    border-radius: 0 0 10px 10px;
}

@keyframes siteBannerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes siteBannerFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes siteBannerFrameIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes siteBannerFrameOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.97);
    }
}

.site-banner-modal__caption {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.site-banner-modal__caption:not([hidden]) + .site-banner-modal__link:not([hidden]) {
    margin-top: 10px;
}

.site-banner-modal__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 9px 18px;
    border-radius: 999px;
    background: #fff;
    color: #12121a;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.site-banner-modal__link:hover {
    background: #ececf4;
}

.admin-site-panel [data-home-banner-link-fields][hidden] {
    display: none;
}

.admin-site-panel .admin-field {
    display: grid;
    gap: 6px;
}

.admin-site-panel .admin-field > span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.site-banner-modal__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #12121a;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.admin-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #12121a;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.site-banner-modal__close:hover,
.admin-modal__close:hover {
    background: #2a2a3a;
}

.admin-modal__content {
    position: relative;
}

@media (max-height: 700px) {
    .admin-modal__content {
        max-height: 92vh;
        padding: 14px 14px 12px;
    }
    .admin-modal__content textarea.admin-input {
        min-height: 44px;
    }
}

