/* ==========================================================================
   Escort Form Modal
   ========================================================================== */

.efm-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(10, 5, 8, .65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.efm-backdrop--open {
    display: flex;
}

.efm-modal {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 780px;
    max-width: calc(100vw - 32px);
    margin: auto;
    padding: 36px 40px 28px;
    animation: modalIn .25s cubic-bezier(.4, 0, .2, 1);
}

.efm-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}

.efm-modal__close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.efm-modal__close svg {
    width: 14px;
    height: 14px;
}

/* ── Steps ── */
.efm-steps {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

.efm-steps__item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.efm-steps__num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.efm-steps__item--active .efm-steps__num {
    background: linear-gradient(135deg, var(--fuchsia-600), var(--fuchsia-500));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(224, 0, 122, .3);
}

.efm-steps__item--pending .efm-steps__num {
    background: var(--gray-100);
    color: var(--gray-400);
}

.efm-steps__item--done .efm-steps__num {
    background: #f0fdf4;
    color: #16a34a;
    border: 1.5px solid #86efac;
}

.efm-steps__label {
    font-size: .78rem;
    font-weight: 600;
}

.efm-steps__item--active .efm-steps__label {
    color: var(--fuchsia-600);
}

.efm-steps__item--pending .efm-steps__label {
    color: var(--gray-400);
}

.efm-steps__item--done .efm-steps__label {
    color: #16a34a;
}

.efm-steps__sep {
    flex: 1;
    height: 1.5px;
    background: var(--gray-200);
    margin: 0 10px;
    min-width: 16px;
}

/* ── Header ── */
.efm-modal__header {
    text-align: center;
    margin-bottom: 24px;
}

.efm-modal__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gray-400);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.efm-modal__icon svg {
    width: 22px;
    height: 22px;
    color: var(--white);
}

.efm-modal__title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.efm-modal__subtitle {
    font-size: .85rem;
    color: var(--gray-400);
}

/* ── Sections ── */
.efm-section {
    border: 1.5px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: border-color .2s, background-color .2s;
}

.efm-section--error {
    border-color: #fca5a5;
    background-color: #fff5f5;
}

.efm-section--error .efm-section__title {
    border-bottom-color: #fca5a5;
    color: #b91c1c;
}

.efm-section--error .efm-section__title svg {
    color: #ef4444;
}

.efm-field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 6px;
    color: #dc2626;
    font-size: .75rem;
    line-height: 1.4;
}

.efm-field-error[hidden] {
    display: none;
}

.efm-field-error svg {
    width: 14px;
    height: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

#escortForm .efm-control--error {
    border-color: #ef4444 !important;
    background-color: #fffafa;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .1);
}

/* ── Chained contact row (prefix + input) ── */
.efm-field-row {
    display: flex;
    align-items: stretch;
}

.efm-pfx-plus {
    display: inline-flex;
    align-items: center;
    padding: 0 0 0 10px;
    flex-shrink: 0;
    background: var(--gray-50, #f9fafb);
    border: 1.5px solid var(--gray-200);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-700);
    user-select: none;
}

.efm-pfx-plus--mid {
    border-radius: 0;
}

.efm-pfx-plus[hidden],
.efm-pfx-input[hidden],
.efm-pfx-span[hidden] {
    display: none !important;
}

.efm-pfx-input {
    width: 34px;
    flex-shrink: 0;
    padding: 0 4px 0 2px;
    text-align: left;
    background: var(--gray-50, #f9fafb);
    border: 1.5px solid var(--gray-200);
    border-left: none;
    border-right: none;
    border-radius: 0;
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-700);
    outline: none;
    font-family: inherit;
}

.efm-pfx-input--mid {
    border-radius: 0;
}

.efm-pfx-input:focus {
    border-color: var(--fuchsia-400);
    background: var(--white);
    z-index: 1;
}

.efm-pfx-span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 0 10px;
    background: var(--gray-50, #f9fafb);
    border: 1.5px solid var(--gray-200);
    border-right: none;
    border-radius: 0;
    /* always in middle of a 3-piece row */
    font-size: .9rem;
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
}

.efm-contact-type-sel {
    flex-shrink: 0;
    padding: 0 28px 0 10px;
    background: var(--gray-50, #f9fafb);
    border: 1.5px solid var(--gray-200);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-family: inherit;
    font-size: .875rem;
    color: var(--gray-700);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23a1a1aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    outline: none;
}

.efm-contact-type-sel:focus {
    border-color: var(--fuchsia-400);
}

.efm-field-input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: inherit;
    font-size: .9rem;
    color: var(--gray-800);
    background: var(--white);
    outline: none;
}

.efm-field-input:focus {
    border-color: var(--fuchsia-400);
    box-shadow: 0 0 0 3px rgba(224, 0, 122, .1);
    z-index: 1;
}

.efm-field-input::placeholder {
    color: var(--gray-400);
}

.efm-section__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--gray-100);
}

.efm-section__title svg {
    width: 16px;
    height: 16px;
    color: var(--fuchsia-500);
    flex-shrink: 0;
}

/* ── Status notice ── */
.efm-status-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .85rem;
    line-height: 1.5;
}

.efm-status-notice svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.efm-status-notice div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.efm-status-notice strong {
    font-weight: 700;
    font-size: .88rem;
}

.efm-status-notice span {
    opacity: .85;
}

.efm-status-notice--pending {
    background: #fffbeb;
    border: 1.5px solid #fcd34d;
    color: #92400e;
}

.efm-status-notice--pending svg {
    color: #d97706;
}

.efm-status-notice__cancel {
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
    background: none;
    border: 1.5px solid #b45309;
    color: #b45309;
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.efm-status-notice__cancel:hover {
    background: #b45309;
    color: #fff;
}

.efm-status-notice--live {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #14532d;
}

.efm-status-notice--live svg {
    color: #16a34a;
}

.efm-status-notice--paused {
    background: #f8f9fa;
    border: 1.5px solid #adb5bd;
    color: #495057;
}

.efm-status-notice--paused svg {
    color: #6c757d;
}

/* ── Grid helpers ── */
.efm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.efm-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 16px;
}

/* ── Slug field ── */
.efm-slug-display {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 6px 6px 6px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    font-size: .82rem;
    color: var(--gray-400);
    line-height: 1.4;
}

.efm-slug-display__value {
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.efm-slug-display__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(224, 0, 122, .25);
    border-radius: 7px;
    background: var(--white);
    color: var(--fuchsia-500);
    font-family: inherit;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    cursor: pointer;
    transition: color .18s, background .18s, border-color .18s;
}

.efm-slug-display__copy svg {
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
}

.efm-slug-display__copy:hover {
    border-color: var(--fuchsia-500);
    background: var(--fuchsia-50);
}

.efm-slug-display__copy:focus-visible {
    outline: 2px solid rgba(224, 0, 122, .22);
    outline-offset: 2px;
}


/* ── Input with addon (icon/unit) ── */
.efm-input-group {
    display: flex;
    align-items: stretch;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.efm-input-group:focus-within {
    border-color: var(--fuchsia-400);
    box-shadow: 0 0 0 3px rgba(224, 0, 122, .1);
}

.efm-input-addon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: var(--gray-50);
    border-right: 1.5px solid var(--gray-200);
    color: var(--gray-400);
    flex-shrink: 0;
}

.efm-input-addon--wa {
    color: #25d366;
}

.efm-input-addon--tg {
    color: var(--telegram-blue);
}

.efm-input-with-addon {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
}

.efm-unit-badge {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: var(--gray-50);
    border-left: 1.5px solid var(--gray-200);
    font-size: .78rem;
    font-weight: 600;
    color: var(--gray-500);
    flex-shrink: 0;
}

.efm-input-with-unit {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
}

/* ── Tags (pills) ── */
.efm-tag-group {
    margin-bottom: 16px;
}

.efm-tag-group:last-child {
    margin-bottom: 0;
}

.efm-tag-group__label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.efm-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.efm-tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: .8125rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--white);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}

.efm-tag-pill:hover {
    border-color: var(--fuchsia-300);
    color: var(--fuchsia-600);
    background: var(--rose-50);
}

.efm-tag-pill--checked,
.efm-tag-pill input:checked~* {
    border-color: var(--fuchsia-500);
    color: var(--fuchsia-600);
    background: rgba(224, 0, 122, .07);
    font-weight: 600;
}

/* ── Sessions (tarifas) ── */
.efm-sessions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.efm-session-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: border-color .2s, background .2s;
}

.efm-session-row--active {
    border-color: rgba(224, 0, 122, .3);
    background: rgba(224, 0, 122, .03);
}

/* Toggle switch */
.efm-session-toggle {
    flex-shrink: 0;
    cursor: pointer;
}

.efm-session-toggle input {
    display: none;
}

.efm-session-toggle__track {
    display: block;
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: var(--gray-200);
    position: relative;
    transition: background .2s;
}

.efm-session-toggle__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .2s;
}

.efm-session-toggle input:checked+.efm-session-toggle__track {
    background: var(--fuchsia-500);
}

.efm-session-toggle input:checked+.efm-session-toggle__track::after {
    transform: translateX(16px);
}

.efm-session-info {
    flex: 1;
    min-width: 0;
}

.efm-session-name {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.efm-session-duration {
    font-size: .75rem;
    color: var(--gray-400);
}

.efm-session-price {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: opacity .2s;
}

.efm-session-price--disabled {
    opacity: .4;
    pointer-events: none;
}

.efm-currency-select {
    border: none;
    background: var(--gray-50);
    font-family: inherit;
    font-size: .78rem;
    font-weight: 700;
    color: var(--gray-600);
    padding: 6px 8px;
    cursor: pointer;
    border-right: 1.5px solid var(--gray-200);
    appearance: none;
    -webkit-appearance: none;
    width: 60px;
}

.efm-price-input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 80px;
    padding: 6px 10px;
    font-size: .875rem;
    text-align: right;
}

/* ── Social badges ── */
.efm-social-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    background: var(--gray-50);
    border-right: 1.5px solid var(--gray-200);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .03em;
    color: var(--gray-500);
    flex-shrink: 0;
}

.efm-social-badge--instagram {
    color: #e1306c;
}

.efm-social-badge--twitter {
    color: #000;
}

.efm-social-badge--tiktok {
    color: #010101;
}

.efm-social-badge--onlyfans {
    color: #00aff0;
}

.efm-social-badge--website {
    color: var(--blue-500);
}

/* ── Misc ── */
.efm-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.efm-hint {
    font-size: .75rem;
    color: var(--gray-400);
    margin-top: 5px;
}

.efm-char-count {
    font-size: .75rem;
    color: var(--gray-400);
    text-align: right;
    margin-top: 4px;
}

.efm-char-count--warn {
    color: var(--amber-500);
}

.efm-char-count--over {
    color: var(--red-500);
}

.efm-required {
    color: var(--fuchsia-500);
    margin-left: 2px;
}

.form-input.form-input--locked {
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: not-allowed;
    border-color: var(--gray-200)
}

.efm-field-hint {
    font-size: .75rem;
    color: var(--gray-400);
    margin-top: 5px
}

.efm-field-hint a {
    color: var(--fuchsia-500);
    text-decoration: none
}

.efm-field-hint a:hover {
    text-decoration: underline
}

/* ── Footer ── */
.efm-modal__footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1.5px solid var(--gray-100);
}

.efm-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--gray-500);
    color: var(--white);
    transition: transform .2s, box-shadow .2s;
}

.efm-btn-primary svg {
    width: 16px;
    height: 16px;
}

.efm-btn-primary:hover {
    transform: translateY(-1px);
}

.efm-btn-primary:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.efm-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--white);
    color: var(--gray-600);
    transition: border-color .2s, color .2s;
}

.efm-btn-secondary:hover {
    border-color: var(--gray-300);
    color: var(--gray-800);
}

/* ── Media drop zone ── */
.efm-media-drop {
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-md);
    padding: 36px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    text-align: center;
    margin-bottom: 20px;
}

.efm-media-drop:hover,
.efm-media-drop--over {
    border-color: var(--fuchsia-400);
    background: rgba(224, 0, 122, .03);
}

.efm-media-drop svg {
    width: 36px;
    height: 36px;
    color: var(--gray-300);
    margin-bottom: 4px;
}

.efm-media-drop--over svg {
    color: var(--fuchsia-400);
}

.efm-media-drop__title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--gray-700);
}

.efm-media-drop__sub {
    font-size: .78rem;
    color: var(--gray-400);
}

/* ── Media grid ── */
.efm-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 8px;
    min-height: 0;
}

.efm-media-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
}

.efm-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.efm-media-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
}

.efm-media-item__placeholder svg {
    width: 28px;
    height: 28px;
    color: var(--gray-400);
}

.efm-media-item__placeholder--video {
    background: #1a1a2e;
}

.efm-media-item__placeholder--video svg {
    color: rgba(255, 255, 255, .4);
}

.efm-media-item__badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: .65rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* play button (videos) */
.efm-media-item__play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .25);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
    z-index: 1;
}

.efm-media-item__play svg {
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

.efm-media-item__play:hover {
    background: rgba(0, 0, 0, .4);
}

.efm-media-item__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .15s;
    padding: 0;
}

.efm-media-item__remove svg {
    width: 10px;
    height: 10px;
    color: #fff;
}

.efm-media-item:hover .efm-media-item__remove {
    opacity: 1;
}

/* preview container */
.efm-media-item__preview {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
}

.efm-media-item__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* upload overlay + progress */
.efm-media-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 6px;
    gap: 4px;
}

.efm-media-item__progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, .25);
    border-radius: 99px;
    overflow: hidden;
}

.efm-media-item__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--fuchsia-500), var(--fuchsia-400));
    border-radius: 99px;
    transition: width .15s ease;
}

.efm-media-item__pct {
    font-size: .65rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .03em;
}

/* ── Time range (horario) ── */
.efm-time-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.efm-time-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.efm-time-label {
    font-size: .8rem;
    color: var(--gray-500);
    white-space: nowrap;
}

.efm-time-input {
    flex: 1;
}

.efm-time-sep {
    color: var(--gray-400);
    font-weight: 600;
    flex-shrink: 0;
}

/* ── Video lightbox ── */
#efmVideoLightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#efmVideoLightbox.efm-lb--open {
    display: flex;
}

.efm-lb__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(4px);
}

.efm-lb__box {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 900px);
    width: 100%;
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
}

/* Wrapper del player */
.efm-lb__player-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
}

/* Video.js dentro del lightbox */
.efm-lb__player-wrap .video-js {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.efm-lb__player-wrap .vjs-tech {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.efm-lb__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
}

.efm-lb__close svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

.efm-lb__close:hover {
    background: rgba(0, 0, 0, .9);
}

/* ── Publish panel ── */
.efm-publish-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.efm-publish-check {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    color: #14532d;
}

.efm-publish-check--pending {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.efm-publish-check--empty {
    background: var(--gray-50, #f9fafb);
    border-color: var(--gray-200, #e5e7eb);
    color: var(--gray-500, #6b7280);
}

.efm-publish-check__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.efm-publish-check__icon svg {
    width: 16px;
    height: 16px;
}

.efm-publish-check--pending .efm-publish-check__icon {
    background: rgba(255, 255, 255, .6);
    color: #d97706;
}

.efm-publish-check--empty .efm-publish-check__icon {
    color: var(--gray-400, #9ca3af);
}

.efm-publish-check__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}

.efm-publish-check__text strong {
    font-size: .88rem;
    font-weight: 700;
}

.efm-publish-check__label {
    font-size: .81rem;
    opacity: .8;
}

.efm-publish-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    color: #1e3a5f;
    margin-bottom: 28px;
    font-size: .85rem;
    line-height: 1.5;
}

.efm-publish-notice svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #3b82f6;
}

.efm-publish-notice p {
    margin: 0;
}

.efm-publish-admin-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    background: var(--gray-50, #f9fafb);
    border: 1.5px solid var(--gray-200, #e5e7eb);
    border-left: 3px solid var(--fuchsia-500, #e0007a);
    border-radius: 10px;
}

.efm-publish-admin-contact__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.efm-publish-admin-contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--fuchsia-50, #fdf2f8);
    color: var(--fuchsia-600, #c0006c);
}

.efm-publish-admin-contact__icon svg {
    width: 18px;
    height: 18px;
}

.efm-publish-admin-contact__copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.efm-publish-admin-contact__copy strong {
    color: var(--gray-800, #27272a);
    font-size: .9rem;
    line-height: 1.3;
}

.efm-publish-admin-contact__copy span {
    color: var(--gray-500, #71717a);
    font-size: .79rem;
    line-height: 1.45;
}

.efm-publish-admin-contact .wt-as-contact__links {
    justify-content: flex-end;
    flex-shrink: 0;
}

.efm-publish-admin-contact .wt-as-contact__btn {
    padding: 8px 14px;
}

/* ── Avatar picker ── */
.efm-avatar-group {
    align-items: flex-start;
}

.efm-avatar-picker {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.efm-avatar-picker:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.efm-avatar-picker--error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .2);
}

.efm-avatar-picker__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.efm-avatar-picker__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity .18s;
    color: #fff;
    font-size: .72rem;
    font-weight: 500;
}

.efm-avatar-picker:hover .efm-avatar-picker__overlay,
.efm-avatar-picker:focus .efm-avatar-picker__overlay {
    opacity: 1;
}

.efm-avatar-picker__overlay svg {
    width: 22px;
    height: 22px;
}

/* ── Responsive ── */
@media (max-width: 840px) {
    .efm-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    /* Backdrop y modal a pantalla completa */
    .efm-backdrop {
        padding: 0;
        overflow: hidden;
    }

    .efm-modal {
        position: fixed;
        inset: 0;
        border-radius: 0;
        padding: 55px 18px 24px;
        margin: 0;
        width: 100%;
        max-width: 100%;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .efm-modal__close {
        position: fixed;
        top: 12px;
        right: 12px;
        z-index: 501;
    }

    /* Footer sticky en mobile */
    .efm-modal__footer {
        position: sticky;
        bottom: 0;
        margin: 16px -18px -24px;
        padding: 14px 18px;
        background: var(--white);
        border-top: 1px solid var(--gray-100);
        box-shadow: 0 -4px 12px rgba(0,0,0,.06);
        flex-direction: column-reverse;
    }

    .efm-btn-primary,
    .efm-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .efm-publish-admin-contact {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .efm-publish-admin-contact .wt-as-contact__links {
        justify-content: stretch;
    }

    .efm-publish-admin-contact .wt-as-contact__btn {
        flex: 1;
        justify-content: center;
    }

    /* Steps: ocultar labels */
    .efm-steps__label {
        display: none;
    }

    /* Campos en fila → apilar verticalmente */
    .efm-modal .form-row {
        flex-direction: column;
        gap: 0;
    }

    .efm-modal .form-row [style*="flex:2"],
    .efm-modal .form-row [style*="flex:1"] {
        flex: unset;
    }

    /* Grids → una columna */
    .efm-grid-2,
    .efm-grid-3 {
        grid-template-columns: 1fr;
    }

    /* Sesiones */
    .efm-session-row {
        flex-wrap: wrap;
    }

    .efm-session-price {
        width: 100%;
    }
}
