/* =====================================================================
   ANARNOVA — COMPONENTES NUEVOS para integración con motor del template
   Plantilla por: Nicolas Cattolica — +5493815090548
   ===================================================================== */

/* ===== USER BADGE (cuando está logueado) ===== */
.auth-guest, .auth-user { display: flex; align-items: center; gap: .75rem; }
.auth-user.hidden, .auth-guest.hidden { display: none; }

.user-badge {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .9rem;
    background: linear-gradient(135deg, rgba(212, 162, 78, .12), rgba(212, 162, 78, .03));
    border: 1px solid rgba(212, 162, 78, .35);
    border-radius: 4px;
    color: var(--gold-bright);
    font-family: var(--f-display);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-decoration: none;
    transition: all .25s ease;
    backdrop-filter: blur(8px);
}
.user-badge:hover {
    background: linear-gradient(135deg, rgba(212, 162, 78, .2), rgba(212, 162, 78, .08));
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(212, 162, 78, .3);
}
.user-badge__icon { color: var(--gold); }

/* ===== AUTH MODAL ===== */
.auth-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
}
.auth-modal.hidden { display: none; }
.auth-modal__backdrop {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(212, 162, 78, .15) 0%, transparent 70%),
        rgba(10, 8, 7, .85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}
.auth-modal__panel {
    position: relative;
    max-width: 460px;
    width: 100%;
    background:
        linear-gradient(180deg, rgba(212, 162, 78, .06), transparent 30%),
        var(--bg-dark);
    border: 1px solid rgba(212, 162, 78, .35);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 50px rgba(212, 162, 78, .2);
    animation: modalIn .4s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-modal__panel::before, .auth-modal__panel::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--gold);
    pointer-events: none;
}
.auth-modal__panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.auth-modal__panel::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.auth-modal__close {
    position: absolute;
    top: .8rem; right: 1rem;
    background: transparent; border: none;
    color: var(--text-dim);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color .25s, transform .25s;
}
.auth-modal__close:hover { color: var(--gold-bright); transform: rotate(90deg); }

.auth-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 162, 78, .25);
}
.auth-tab {
    flex: 1;
    padding: .75rem 0;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--f-display);
    font-size: .85rem;
    letter-spacing: .25em;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .3s ease;
}
.auth-tab:hover { color: var(--gold-bright); }
.auth-tab.is-active {
    color: var(--gold-bright);
    border-bottom-color: var(--gold);
    text-shadow: 0 0 12px rgba(212, 162, 78, .4);
}

.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-form.hidden { display: none; }
.auth-form__title {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 1.6rem;
    background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: .25rem;
}
.auth-form__lead {
    text-align: center;
    color: var(--text-dim);
    font-size: .9rem;
    margin-bottom: .5rem;
    font-style: italic;
}

.form__field { display: flex; flex-direction: column; gap: .35rem; }
.form__field label {
    font-family: var(--f-display);
    font-size: .7rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}
.form__field small { color: var(--text-faint); font-size: .75rem; }
.form__field input {
    background: rgba(10, 8, 7, .6);
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 4px;
    padding: .8rem 1rem;
    color: var(--text);
    font-family: var(--f-body);
    font-size: .95rem;
    transition: all .25s ease;
}
.form__field input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 162, 78, .15);
    background: rgba(10, 8, 7, .85);
}
.auth-form__error {
    padding: .75rem 1rem;
    background: rgba(200, 32, 43, .12);
    border-left: 3px solid var(--ruby);
    color: #fda5a5;
    font-size: .85rem;
    border-radius: 4px;
}
.auth-form__error.hidden { display: none; }

/* ===== LANG SWITCHER (Anarnova palette) ===== */
.nav__left { display: flex; align-items: center; gap: 1rem; }

.lang-switch { position: relative; z-index: 110; }
.lang-switch__btn {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .85rem;
    background:
        linear-gradient(135deg, rgba(212, 162, 78, .12), rgba(212, 162, 78, .03)),
        rgba(10, 8, 7, .55);
    border: 1px solid rgba(212, 162, 78, .35);
    color: var(--gold-bright);
    font-family: var(--f-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    cursor: url('img/cursor/link.cur'), url('img/cursor/link.png'), pointer;
    transition: all .3s ease;
    backdrop-filter: blur(8px);
    position: relative;
    isolation: isolate;
}
.lang-switch__btn::before, .lang-switch__btn::after {
    content: '';
    position: absolute;
    width: 6px; height: 6px;
    border: 1px solid var(--gold);
    pointer-events: none;
}
.lang-switch__btn::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.lang-switch__btn::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.lang-switch__btn:hover {
    background:
        linear-gradient(135deg, rgba(212, 162, 78, .2), rgba(212, 162, 78, .08)),
        rgba(10, 8, 7, .65);
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(212, 162, 78, .35);
    color: var(--cream);
}
.lang-switch__flag {
    width: 18px; height: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, .4);
    border-radius: 1px;
    overflow: hidden;
    background-color: #333;
    position: relative;
}
.lang-switch__flag[data-flag="es"] {
    background:
        linear-gradient(180deg,
            #AA151B 0%, #AA151B 25%,
            #F1BF00 25%, #F1BF00 75%,
            #AA151B 75%, #AA151B 100%);
}
.lang-switch__flag[data-flag="hu"] {
    background:
        linear-gradient(180deg,
            #CD2A3E 0%, #CD2A3E 33.33%,
            #FFFFFF 33.33%, #FFFFFF 66.66%,
            #436F4D 66.66%, #436F4D 100%);
}
.lang-switch__flag[data-flag="en"] {
    background: linear-gradient(180deg, #012169 0%, #012169 100%);
    position: relative;
}
.lang-switch__flag[data-flag="en"]::before {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom right, transparent calc(50% - 1px), #FFFFFF calc(50% - 1px), #FFFFFF calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(to bottom left,  transparent calc(50% - 1px), #FFFFFF calc(50% - 1px), #FFFFFF calc(50% + 1px), transparent calc(50% + 1px));
}
.lang-switch__flag[data-flag="en"]::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, transparent calc(50% - 1.5px), #FFFFFF calc(50% - 1.5px), #FFFFFF calc(50% + 1.5px), transparent calc(50% + 1.5px)),
        linear-gradient(0deg,  transparent calc(50% - 1.5px), #FFFFFF calc(50% - 1.5px), #FFFFFF calc(50% + 1.5px), transparent calc(50% + 1.5px)),
        linear-gradient(90deg, transparent calc(50% - .5px), #C8102E calc(50% - .5px), #C8102E calc(50% + .5px), transparent calc(50% + .5px)),
        linear-gradient(0deg,  transparent calc(50% - .5px), #C8102E calc(50% - .5px), #C8102E calc(50% + .5px), transparent calc(50% + .5px));
}
.lang-switch__chevron { font-size: .7rem; color: var(--gold); transition: transform .3s ease; }
.lang-switch.is-open .lang-switch__chevron { transform: rotate(180deg); }
.lang-switch__menu {
    position: absolute;
    top: calc(100% + .55rem);
    left: 0;
    min-width: 120px;
    list-style: none;
    padding: .35rem;
    margin: 0;
    background: rgba(10, 8, 7, .96);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(212, 162, 78, .35);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,.8), 0 0 30px rgba(212, 162, 78, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s, transform .3s, visibility 0s .3s;
}
.lang-switch.is-open .lang-switch__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .3s, transform .3s, visibility 0s;
}
.lang-switch__option {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .75rem;
    color: var(--text);
    font-family: var(--f-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    cursor: url('img/cursor/link.cur'), url('img/cursor/link.png'), pointer;
    transition: background .25s, color .25s, padding .25s;
}
.lang-switch__option:hover {
    background: rgba(212, 162, 78, .12);
    color: var(--gold-bright);
    padding-left: 1rem;
}
.lang-switch__option.is-active {
    color: var(--gold-bright);
    background: rgba(212, 162, 78, .08);
}
.lang-switch__option.is-active::after {
    content: '\2713';
    margin-left: auto;
    color: var(--gold);
}

/* ===== FOOTER CREDITS ===== */
.footer__credits {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(212, 162, 78, .15);
    font-size: .75rem;
    color: var(--text-faint);
    letter-spacing: .1em;
}
.footer__credits a {
    color: var(--gold);
    text-decoration: none;
    margin-left: .35rem;
}
.footer__credits a:hover { color: var(--gold-bright); }

/* ===== PAGE STRUCTURE (para páginas internas como profile/webshop/market) ===== */
.page-header {
    text-align: center;
    padding: 8rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}
.page-header__kicker {
    display: inline-block;
    font-family: var(--f-display);
    font-size: .7rem;
    letter-spacing: .5em;
    color: var(--gold-bright);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.page-header__title {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: linear-gradient(180deg, var(--cream), var(--gold) 60%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: .04em;
    margin-bottom: 1rem;
}
.page-header__lead {
    font-family: var(--f-heading);
    font-size: 1.05rem;
    color: var(--text-dim);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== EQUIPMENT VIEW (perfil de jugador) ===== */
.equipment-view {
    display: grid;
    grid-template-columns: minmax(0, 540px) 320px;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    align-items: start;
    justify-content: center;
}
.equipment-grid {
    position: relative;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 270 / 250;
    background-image: url('img/inventory/equipment_bg.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(212, 162, 78, .25), inset 0 0 30px rgba(0, 0, 0, .6);
}
.equipment-slot {
    position: absolute;
    background: transparent;
    border: none;
    overflow: visible;
    transition: all .25s ease;
    cursor: url('img/cursor/link.cur'), url('img/cursor/link.png'), pointer;
}
/* Slots vacíos: borde dashed apenas visible para indicar dónde van */
.equipment-slot:empty {
    background: rgba(212, 162, 78, .03);
    border: 1px dashed rgba(212, 162, 78, .15);
    border-radius: 3px;
}
.equipment-slot:empty[data-slot="9"],
.equipment-slot:empty[data-slot="10"],
.equipment-slot:empty[data-slot="11"] { border-radius: 50%; }

.equipment-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.85));
    transition: filter .25s ease, transform .25s ease;
}
.equipment-slot:hover img {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.9)) drop-shadow(0 0 8px rgba(245, 200, 117, .65));
    transform: scale(1.08);
}

/* ===== ITEM TOOLTIP (estilo MU clásico) ===== */
.item-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 240px;
    max-width: 280px;
    padding: .85rem 1rem;
    background:
        linear-gradient(180deg, rgba(28, 22, 16, .98), rgba(10, 8, 7, .98));
    border: 1px solid var(--gold);
    border-radius: 4px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, .8),
        0 0 20px rgba(212, 162, 78, .25),
        inset 0 1px 0 rgba(245, 200, 117, .15);
    color: var(--cream);
    font-family: var(--f-body);
    font-size: .8rem;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
    transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
}
.item-tooltip::before, .item-tooltip::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border: 1px solid var(--gold);
    pointer-events: none;
}
.item-tooltip::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.item-tooltip::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.equipment-slot:hover .item-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

.tooltip-name {
    font-family: var(--f-display);
    font-weight: 700;
    color: var(--gold-bright);
    text-align: center;
    padding-bottom: .5rem;
    margin-bottom: .55rem;
    border-bottom: 1px solid rgba(212, 162, 78, .25);
    font-size: .85rem;
    letter-spacing: .03em;
}
.tooltip-line { color: var(--cream); padding: 1px 0; }
.tooltip-line--exc { color: #6ee7ff; }       /* excellent options: cyan */
.tooltip-line--anc { color: #c084fc; }       /* ancient: purple */
.tooltip-line--harm { color: #f5c875; }      /* harmony: gold */
.tooltip-line--socket { color: #fb923c; }    /* sockets: orange */
.tooltip-line--add { color: #86efac; }       /* additional: green */
.tooltip-line--skill { color: #fcd34d; }     /* skill/luck: yellow */
.tooltip-line--info { color: var(--text-dim); font-style: italic; font-size: .75rem; }
.tooltip-divider {
    border-top: 1px dashed rgba(212, 162, 78, .15);
    margin: .4rem 0;
}

/* Tooltips de slots bajos (gloves/pants/boots/rings) van arriba; los de arriba van debajo */
.equipment-slot[data-slot="2"] .item-tooltip,
.equipment-slot[data-slot="7"] .item-tooltip,
.equipment-slot[data-slot="8"] .item-tooltip {
    bottom: auto;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-6px);
}
.equipment-slot[data-slot="2"]:hover .item-tooltip,
.equipment-slot[data-slot="7"]:hover .item-tooltip,
.equipment-slot[data-slot="8"]:hover .item-tooltip {
    transform: translateX(-50%) translateY(0);
}

/* Slot positions matching MU Online inventory layout (12 slots) */
.equipment-slot[data-slot="8"]  { left: 1.7%;  top: 2%;    width: 26.7%; height: 28.8%; } /* Pet */
.equipment-slot[data-slot="2"]  { left: 38%;   top: 2%;    width: 26.7%; height: 28.8%; } /* Helmet */
.equipment-slot[data-slot="7"]  { left: 70%;   top: 4%;    width: 26.7%; height: 28.8%; } /* Wings */
.equipment-slot[data-slot="0"]  { left: 1%;    top: 36%;   width: 27%;   height: 30%;   } /* Weapon L */
.equipment-slot[data-slot="3"]  { left: 37%;   top: 36%;   width: 26.7%; height: 28.8%; } /* Armor */
.equipment-slot[data-slot="1"]  { left: 73%;   top: 38%;   width: 26.7%; height: 28.8%; } /* Shield/Weapon R */
.equipment-slot[data-slot="5"]  { left: 2%;    top: 70%;   width: 26.7%; height: 28.8%; } /* Gloves */
.equipment-slot[data-slot="4"]  { left: 37%;   top: 70%;   width: 26.7%; height: 28.8%; } /* Pants */
.equipment-slot[data-slot="6"]  { left: 74.1%; top: 70%;   width: 25.6%; height: 28.8%; } /* Boots */
.equipment-slot[data-slot="9"]  { left: 25.5%; top: 31%;   width: 13.3%; height: 14.4%; border-radius: 50%; } /* Pendant */
.equipment-slot[data-slot="10"] { left: 25.9%; top: 69.4%; width: 14.8%; height: 16%;   border-radius: 50%; } /* Ring 1 */
.equipment-slot[data-slot="11"] { left: 61.4%; top: 70%;   width: 14.8%; height: 16%;   border-radius: 50%; } /* Ring 2 */

@media (max-width: 900px) {
    .equipment-view { grid-template-columns: 1fr; }
    .equipment-grid { max-width: 420px; margin: 0 auto; }
}

/* ===== BENEFITS FREE vs VIP (en index home) ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.benefit-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(58, 46, 34, .45), rgba(10, 8, 7, .9));
    border: 1px solid rgba(212, 162, 78, .3);
    border-radius: 6px;
    box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .7);
    overflow: hidden;
    transition: all .4s ease;
}
.benefit-card::before, .benefit-card::after {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--gold);
    pointer-events: none;
}
.benefit-card::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.benefit-card::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.benefit-card--free {
    background:
        linear-gradient(180deg, rgba(58, 46, 34, .3), rgba(10, 8, 7, .95));
}
.benefit-card--vip {
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 162, 78, .15), transparent 60%),
        linear-gradient(180deg, rgba(58, 46, 34, .55), rgba(10, 8, 7, .95));
    border-color: var(--gold);
    box-shadow:
        0 16px 40px -14px rgba(0, 0, 0, .7),
        0 0 30px rgba(212, 162, 78, .2);
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px -14px rgba(0, 0, 0, .8);
}
.benefit-card--vip:hover {
    box-shadow:
        0 22px 50px -14px rgba(0, 0, 0, .8),
        0 0 40px rgba(212, 162, 78, .35);
}

.benefit-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 162, 78, .25);
}
.benefit-card__title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: .12em;
    color: var(--gold-bright);
    text-transform: uppercase;
}
.benefit-card--vip .benefit-card__title {
    background: linear-gradient(180deg, #FFD66B 0%, var(--gold-bright) 50%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 24px rgba(212, 162, 78, .5);
}
.benefit-card__crown {
    font-size: 1.6rem;
    color: var(--gold);
    filter: drop-shadow(0 0 10px rgba(212, 162, 78, .5));
}
.benefit-card__crown--vip {
    color: var(--gold-bright);
    filter: drop-shadow(0 0 16px rgba(245, 200, 117, .8));
    animation: crownPulse 3s ease-in-out infinite;
}
.benefit-card__badge {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .6));
    transition: transform .4s ease, filter .4s ease;
}
.benefit-card__badge--vip {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .6)) drop-shadow(0 0 16px rgba(245, 200, 117, .55));
    animation: crownPulse 3s ease-in-out infinite;
}
.benefit-card:hover .benefit-card__badge {
    transform: scale(1.08) rotate(-3deg);
}
@keyframes crownPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 12px rgba(0,0,0,.6)) drop-shadow(0 0 16px rgba(245, 200, 117, .55)); }
    50%      { transform: scale(1.08); filter: drop-shadow(0 4px 12px rgba(0,0,0,.7)) drop-shadow(0 0 24px rgba(245, 200, 117, .9)); }
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.benefit-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .65rem 0;
    border-bottom: 1px dashed rgba(212, 162, 78, .12);
    font-size: .9rem;
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-list li span:first-child {
    color: var(--text-dim);
    font-family: var(--f-body);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
}
.benefit-list li span:last-child {
    font-family: var(--f-display);
    font-weight: 700;
    color: var(--cream);
    letter-spacing: .04em;
}
.benefit-card--vip .benefit-list li span:last-child {
    color: var(--gold-bright);
    text-shadow: 0 0 12px rgba(212, 162, 78, .25);
}

.benefit-subtitle {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 1.5rem 0 .75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 162, 78, .2);
    text-align: center;
}
.benefit-list--mix li span:first-child {
    color: var(--text);
    font-family: var(--f-display);
    font-size: .8rem;
}

@media (max-width: 880px) {
    .benefits-grid { grid-template-columns: 1fr; }
}

/* ===== OTROS PERSONAJES (debajo del inventario en profile.html) ===== */
.other-chars {
    max-width: 1200px;
    margin: 2.5rem auto 4rem;
    padding: 1.75rem 2rem;
    background:
        linear-gradient(180deg, rgba(58, 46, 34, .4), rgba(10, 8, 7, .85));
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 6px;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
    position: relative;
}
.other-chars::before, .other-chars::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    border: 2px solid var(--gold);
    pointer-events: none;
}
.other-chars::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.other-chars::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.other-chars__title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gold-bright);
    letter-spacing: .15em;
    margin-bottom: .25rem;
}
.other-chars__hint {
    font-size: .85rem;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.other-chars__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .85rem;
}
.other-char {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem 1rem;
    background: rgba(10, 8, 7, .55);
    border: 1px solid rgba(212, 162, 78, .2);
    border-radius: 4px;
    color: var(--cream);
    text-decoration: none;
    transition: all .25s ease;
    cursor: url('img/cursor/link.cur'), url('img/cursor/link.png'), pointer;
}
.other-char:hover {
    background: linear-gradient(135deg, rgba(212, 162, 78, .12), rgba(10, 8, 7, .85));
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(212, 162, 78, .35);
}
.other-char__icon {
    width: 42px; height: 42px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(212, 162, 78, .3);
    background: rgba(212, 162, 78, .08);
    flex-shrink: 0;
}
.other-char:hover .other-char__icon {
    border-color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(212, 162, 78, .35);
}
.other-char__info {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}
.other-char__name {
    font-family: var(--f-display);
    font-weight: 700;
    color: var(--gold-bright);
    font-size: .95rem;
    letter-spacing: .03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.other-char__class {
    font-size: .75rem;
    color: var(--text-dim);
    letter-spacing: .05em;
}

.char-info {
    background:
        linear-gradient(180deg, rgba(58, 46, 34, .4), rgba(10, 8, 7, .85));
    border: 1px solid rgba(212, 162, 78, .25);
    padding: 1.5rem;
    border-radius: 4px;
}
.char-info__name {
    font-family: var(--f-display);
    font-size: 1.5rem;
    color: var(--gold-bright);
    margin-bottom: .25rem;
}
.char-info__class {
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 1.5rem;
}
.char-info__stats { display: flex; flex-direction: column; gap: .65rem; }
.char-info__stat {
    display: flex;
    justify-content: space-between;
    padding: .4rem 0;
    border-bottom: 1px dashed rgba(212, 162, 78, .15);
    font-size: .9rem;
}
.char-info__stat span:first-child {
    color: var(--text-dim);
    font-family: var(--f-display);
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.char-info__stat span:last-child { color: var(--gold-bright); font-weight: 700; }

/* ===== WEBSHOP GRID ===== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}
.shop-item {
    background:
        linear-gradient(180deg, rgba(58, 46, 34, .4), rgba(10, 8, 7, .85));
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    transition: all .35s ease;
    position: relative;
    overflow: hidden;
}
.shop-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212, 162, 78, .15), transparent 60%);
    opacity: 0;
    transition: opacity .35s ease;
}
.shop-item:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px -10px rgba(212, 162, 78, .4);
}
.shop-item:hover::before { opacity: 1; }
.shop-item__icon {
    width: 80px; height: 80px;
    margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(212, 162, 78, .08);
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 4px;
    position: relative;
    z-index: 1;
}
.shop-item__icon img { width: 80%; height: 80%; object-fit: contain; image-rendering: pixelated; }
.shop-item__name {
    font-family: var(--f-display);
    font-weight: 700;
    color: var(--cream);
    margin-bottom: .35rem;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}
.shop-item__category {
    font-size: .7rem;
    color: var(--text-dim);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.shop-item__price {
    font-family: var(--f-display);
    font-weight: 900;
    color: var(--gold-bright);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}
.shop-item__price small {
    font-size: .65rem;
    color: var(--text-dim);
    letter-spacing: .25em;
    display: block;
    font-weight: normal;
    margin-top: .15rem;
}

/* ===== MARKET TABLE ===== */
.market-table {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}
.market-row {
    display: grid;
    grid-template-columns: 60px 1.5fr 1fr 1fr 100px;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background:
        linear-gradient(180deg, rgba(58, 46, 34, .3), rgba(10, 8, 7, .85));
    border: 1px solid rgba(212, 162, 78, .2);
    margin-bottom: .5rem;
    border-radius: 4px;
    transition: all .25s ease;
}
.market-row:hover {
    border-color: var(--gold);
    background:
        linear-gradient(180deg, rgba(58, 46, 34, .5), rgba(10, 8, 7, .9));
}
.market-row__icon {
    width: 48px; height: 48px;
    background: rgba(212, 162, 78, .08);
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
}
.market-row__icon img { max-width: 100%; max-height: 100%; image-rendering: pixelated; }
.market-row__name { font-family: var(--f-display); font-weight: 700; color: var(--cream); }
.market-row__seller { color: var(--text-dim); font-size: .9rem; }
.market-row__price { font-family: var(--f-display); font-weight: 900; color: var(--gold-bright); }

/* ===== CASTLE SIEGE BANNER ===== */
.castle-banner {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(200, 32, 43, .15), transparent 60%),
        linear-gradient(180deg, rgba(58, 46, 34, .4), rgba(10, 8, 7, .9));
    border: 1px solid rgba(212, 162, 78, .35);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.castle-banner__crown {
    font-size: 4rem;
    color: var(--gold);
    filter: drop-shadow(0 0 25px rgba(212, 162, 78, .6));
    margin-bottom: 1rem;
}
.castle-banner__owner {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 2rem;
    color: var(--ruby);
    letter-spacing: .15em;
    margin-bottom: .5rem;
    text-shadow: 0 0 20px rgba(200, 32, 43, .5);
}
.castle-banner__label {
    color: var(--text-dim);
    letter-spacing: .25em;
    font-size: .85rem;
    text-transform: uppercase;
}

/* Live system states and transactional modals */
.system-state {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .55rem;
    padding: 1.5rem;
    border: 1px solid rgba(212, 162, 78, .22);
    background: rgba(8, 6, 4, .55);
    color: var(--text-dim);
    text-align: center;
}
.system-state strong {
    color: var(--cream);
    font-family: var(--f-display);
    font-size: 1.1rem;
}
.system-state--error {
    border-color: rgba(239, 68, 68, .42);
    background: rgba(80, 20, 20, .25);
}
.system-state--empty { border-color: rgba(148, 163, 184, .28); }
.system-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    max-width: 1180px;
    margin: 0 auto 1rem;
    padding: 0 1.25rem;
}
.shop-item__fallback {
    color: var(--gold-bright);
    font-family: var(--f-display);
    font-weight: 900;
    letter-spacing: .15em;
}
.system-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(5, 4, 3, .78);
    backdrop-filter: blur(8px);
}
.system-modal.is-open { display: flex; }
.system-modal__panel {
    width: min(680px, 96vw);
    max-height: 90vh;
    overflow: auto;
    position: relative;
    padding: 1.4rem;
    border: 1px solid rgba(212, 162, 78, .38);
    background: rgba(15, 12, 8, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.system-modal__close {
    position: absolute;
    top: .8rem;
    right: .8rem;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(212, 162, 78, .28);
    background: rgba(0, 0, 0, .25);
    color: var(--cream);
    cursor: pointer;
}
.system-modal__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.system-modal__head h2 {
    margin: 0 2rem .2rem 0;
    color: var(--cream);
    font-family: var(--f-display);
    font-size: 1.35rem;
}
.system-modal__head p {
    margin: 0;
    color: var(--text-dim);
}
.system-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.system-form label,
.system-fieldset label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    color: var(--text-dim);
    font-size: .88rem;
}
.system-form input,
.system-form select {
    min-height: 42px;
    border: 1px solid rgba(212, 162, 78, .24);
    background: rgba(0, 0, 0, .32);
    color: var(--cream);
    padding: .6rem .75rem;
}
.system-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
    margin: .9rem 0;
}
.system-checks label,
.system-fieldset label {
    flex-direction: row;
    align-items: center;
}
.system-fieldset {
    border: 1px solid rgba(212, 162, 78, .22);
    padding: .9rem;
    margin: .8rem 0;
}
.system-fieldset legend {
    color: var(--gold-bright);
    padding: 0 .35rem;
}
.system-fieldset legend span {
    color: var(--text-dim);
    font-size: .8rem;
}
.system-modal__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
    padding: .85rem 1rem;
    border: 1px solid rgba(212, 162, 78, .22);
    background: rgba(212, 162, 78, .08);
}
.system-modal__price strong {
    color: var(--gold-bright);
    font-family: var(--f-display);
}
.system-modal__msg {
    min-height: 22px;
    margin-bottom: .75rem;
    color: var(--text-dim);
}
.system-modal__msg.is-good { color: var(--green); }
.system-modal__msg.is-bad { color: #ff8a8a; }
.system-vault {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .65rem;
    max-height: 320px;
    overflow: auto;
    margin-bottom: 1rem;
    padding: .75rem;
    border: 1px solid rgba(212, 162, 78, .18);
    background: rgba(0, 0, 0, .18);
}
.system-vault__slot {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border: 1px solid rgba(212, 162, 78, .18);
    background: rgba(255, 255, 255, .03);
    color: var(--text-dim);
    cursor: pointer;
}
.system-vault__slot.is-selected {
    border-color: var(--gold-bright);
    background: rgba(212, 162, 78, .12);
    color: var(--cream);
}
.system-vault__slot img {
    max-width: 42px;
    max-height: 42px;
    object-fit: contain;
    image-rendering: pixelated;
}
.system-vault__slot span {
    max-width: 100%;
    font-size: .72rem;
    text-align: center;
    overflow-wrap: anywhere;
}
@media (max-width: 680px) {
    .system-form__grid,
    .system-checks { grid-template-columns: 1fr; }
    .system-actions { justify-content: stretch; }
    .system-actions .btn { flex: 1; }
}

/* ===== AUTH-ONLY VISIBILITY ===== */
/* Webshop y Market solo aparecen cuando el usuario está logueado.
   El body recibe la clase .is-authenticated desde script.js → checkAuth() */
.nav__link--auth-only { display: none; }
body.is-authenticated .nav__link--auth-only { display: inline-block; }
@media (max-width: 880px) {
    body.is-authenticated .nav__link--auth-only { display: flex; }
}

/* ===== ADMIN-ONLY (visible solo cuando logueado como admin) ===== */
/* El body recibe .is-admin desde script.js → checkAuth() si admin */
.admin-only { display: none !important; }
body.is-admin .admin-only { display: inline-flex !important; }
body.is-admin .admin-only.btn { display: inline-flex !important; }
body.is-admin section.admin-only { display: block !important; }

/* Botón crear noticia (admin) */
.news-admin-actions {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 2rem;
    text-align: right;
}

/* Lápiz de editar dentro de cada card (admin) */
.news-card__edit {
    position: absolute;
    top: .65rem;
    right: .65rem;
    z-index: 5;
    width: 32px; height: 32px;
    background: rgba(10, 8, 7, .85);
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--gold-bright);
    font-size: 1rem;
    cursor: url('img/cursor/link.cur'), url('img/cursor/link.png'), pointer;
    transition: all .25s ease;
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
}
body.is-admin .news-card__edit { display: flex; }
.news-card__edit:hover {
    background: var(--gold);
    color: var(--bg-darkest);
    box-shadow: 0 0 12px rgba(212, 162, 78, .6);
    transform: scale(1.08);
}

/* Estado vacío de news */
.news-empty {
    max-width: 720px;
    margin: 2rem auto 0;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(58, 46, 34, .3), rgba(10, 8, 7, .85));
    border: 1px dashed rgba(212, 162, 78, .35);
    border-radius: 8px;
    position: relative;
}
.news-empty__sigil {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: .55;
    filter: drop-shadow(0 0 20px rgba(212, 162, 78, .35));
    animation: sigilFloat 4s ease-in-out infinite;
}
@keyframes sigilFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.news-empty__title {
    font-family: var(--f-display);
    font-size: 1.5rem;
    color: var(--gold-bright);
    margin-bottom: .75rem;
}
.news-empty__lead {
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 1.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== NEWS ARTICLE (single article view) ===== */
.news-article {
    max-width: 880px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 5;
}
.article-back {
    display: inline-block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: .85rem;
    letter-spacing: .15em;
    margin-bottom: 2rem;
    transition: color .25s, transform .25s;
    font-family: var(--f-display);
}
.article-back:hover { color: var(--gold-bright); transform: translateX(-4px); }
.article-badge {
    display: inline-block;
    background: var(--grad-ruby);
    color: var(--cream);
    font-family: var(--f-display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .35em;
    padding: .4rem .85rem;
    border-radius: 3px;
    margin-bottom: 1rem;
    margin-right: .85rem;
    vertical-align: middle;
}
.article-date {
    display: inline-block;
    font-family: var(--f-display);
    font-size: .75rem;
    letter-spacing: .25em;
    color: var(--gold);
    text-transform: uppercase;
    vertical-align: middle;
}
.article-title {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: .03em;
    line-height: 1.2;
    margin: 1rem 0;
    background: linear-gradient(180deg, var(--cream), var(--gold) 60%, var(--gold-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.article-subtitle {
    font-family: var(--f-heading);
    font-size: 1.15rem;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 1.25rem;
}
.article-admin {
    display: none;
    gap: .5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(212, 162, 78, .2);
}
body.is-admin .article-admin { display: flex; }
.article-hero {
    margin: 2rem 0 3rem;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--gold);
    box-shadow: 0 20px 50px -15px rgba(0,0,0,.7);
}
.article-hero img { width: 100%; height: auto; display: block; }
.article-body { color: var(--text); font-size: 1.05rem; line-height: 1.8; }
.article-body h2 {
    font-family: var(--f-display);
    font-weight: 700;
    color: var(--gold-bright);
    font-size: 1.65rem;
    letter-spacing: .03em;
    margin: 2.5rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(212, 162, 78, .25);
}
.article-body h3 {
    font-family: var(--f-display);
    color: var(--gold);
    font-size: 1.25rem;
    margin: 2rem 0 .75rem;
}
.article-body p { margin: 1rem 0; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin: 1rem 0; }
.article-body li { padding: .35rem 0; }
.article-body strong { color: var(--gold-bright); font-weight: 700; }
.article-body em { color: var(--cream); font-style: italic; }
.article-body a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}
.article-body a:hover { color: var(--gold-bright); }
.article-body img {
    max-width: 100%; height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    border: 1px solid rgba(212, 162, 78, .25);
}
.article-body hr {
    border: none;
    border-top: 1px dashed rgba(212, 162, 78, .25);
    margin: 2rem 0;
}
.article-body code {
    background: rgba(212, 162, 78, .1);
    color: var(--gold-bright);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', monospace;
    font-size: .9em;
}
.article-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 162, 78, .25);
    text-align: center;
}
.article-signature {
    font-family: var(--f-heading);
    font-style: italic;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

/* ===== NEWS EDITOR (admin) ===== */
.editor-page { max-width: 1400px; margin: 0 auto; padding: 7rem 2rem 4rem; position: relative; z-index: 5; }
.editor-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}
.editor-form { display: flex; flex-direction: column; gap: 1.5rem; }
.editor-section {
    background: linear-gradient(180deg, rgba(58, 46, 34, .35), rgba(10, 8, 7, .85));
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 6px;
    padding: 1.5rem;
    position: relative;
}
.editor-section::before, .editor-section::after {
    content: '';
    position: absolute;
    width: 14px; height: 14px;
    border: 1px solid var(--gold);
    pointer-events: none;
}
.editor-section::before { top: -1px; left: -1px; border-right:none; border-bottom:none; }
.editor-section::after  { bottom: -1px; right: -1px; border-left:none; border-top:none; }
.editor-section__title {
    font-family: var(--f-display);
    font-size: 1rem;
    color: var(--gold-bright);
    letter-spacing: .15em;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(212, 162, 78, .2);
}
.editor-section .form__field { margin-bottom: 1rem; }
.editor-section .form__field:last-child { margin-bottom: 0; }
.editor-section textarea {
    width: 100%;
    background: rgba(10, 8, 7, .65);
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 4px;
    padding: .8rem 1rem;
    color: var(--text);
    font-family: 'Consolas', monospace;
    font-size: .9rem;
    line-height: 1.6;
    resize: vertical;
}
.editor-section textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 162, 78, .15);
}
.editor-section select {
    width: 100%;
    background: rgba(10, 8, 7, .65);
    border: 1px solid rgba(212, 162, 78, .25);
    border-radius: 4px;
    padding: .75rem 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: .95rem;
}
.editor-toolbar {
    display: flex;
    gap: .35rem;
    margin-bottom: .75rem;
    padding: .55rem;
    background: rgba(10, 8, 7, .6);
    border: 1px solid rgba(212, 162, 78, .2);
    border-radius: 4px;
    flex-wrap: wrap;
    align-items: center;
}
.editor-toolbar button {
    background: transparent;
    border: 1px solid rgba(212, 162, 78, .25);
    color: var(--gold-bright);
    padding: .35rem .65rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: .85rem;
    transition: all .2s;
}
.editor-toolbar button:hover {
    background: rgba(212, 162, 78, .15);
    border-color: var(--gold);
}
.editor-toolbar__hint {
    margin-left: auto;
    font-size: .75rem;
    color: var(--text-faint);
    font-style: italic;
}
.editor-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(212, 162, 78, .2);
}
.editor-preview {
    position: sticky;
    top: 7rem;
    background: linear-gradient(180deg, rgba(58, 46, 34, .35), rgba(10, 8, 7, .85));
    border: 1px solid rgba(212, 162, 78, .2);
    border-radius: 6px;
    padding: 1.25rem;
}
.editor-preview__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(212, 162, 78, .2);
}
.editor-preview__head h3 {
    font-family: var(--f-display);
    color: var(--gold-bright);
    font-size: 1rem;
    letter-spacing: .15em;
}
.editor-preview__hint {
    font-size: .7rem;
    color: var(--text-faint);
    font-style: italic;
}
.editor-preview__url {
    margin-top: 1rem;
    padding: .55rem .85rem;
    background: rgba(10, 8, 7, .6);
    border: 1px dashed rgba(212, 162, 78, .25);
    border-radius: 3px;
    font-family: 'Consolas', monospace;
    font-size: .75rem;
    color: var(--gold);
    word-break: break-all;
}
@media (max-width: 900px) {
    .editor-layout { grid-template-columns: 1fr; }
    .editor-preview { position: static; }
}

/* ===== HIDDEN utility (global) ===== */
.hidden { display: none !important; }
