/* Transfer modal — shared marketplace-style components */
.me-transfer-modal__dialog {
    max-width: 440px;
    padding: 22px 22px 20px;
    border-radius: 16px;
}

.me-transfer-modal__header {
    margin-bottom: 16px;
}

.me-transfer-modal__close {
    border-radius: 50%;
    background: #f3f4f6;
}

.me-transfer-event {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.me-transfer-event__thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f4f5;
}

.me-transfer-event__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.me-transfer-event__info {
    flex: 1;
    min-width: 0;
}

.me-transfer-event__name {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #18181b;
    line-height: 1.3;
}

.me-transfer-event__pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f4f4f5;
    color: #52525b;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.me-transfer-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.me-transfer-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #f0f0f3;
    border-radius: 12px;
    background: #fafafa;
}

.me-transfer-ticket__left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.me-transfer-ticket__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
}

.me-transfer-ticket__field {
    min-width: 0;
}

.me-transfer-ticket__field--right {
    flex-shrink: 0;
    text-align: right;
}

.me-transfer-ticket__field-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #a1a1aa;
    margin-bottom: 2px;
}

.me-transfer-ticket__field-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #18181b;
    line-height: 1.3;
}

.me-transfer-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    padding: 0;
    font-size: 12px;
    color: #71717a;
    line-height: 1.45;
}

.me-transfer-notice__icon {
    flex-shrink: 0;
    line-height: 1.45;
}

.me-transfer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.me-transfer-field__label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #18181b;
}

.me-transfer-field__control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e4e4e7;
    border-radius: 12px;
    background: #fff;
    font-family: var(--font-roobert, inherit);
    font-size: 15px;
    font-weight: 500;
    color: #18181b;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.me-transfer-field__control:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.me-transfer-field__control--error {
    border-color: #fca5a5;
    box-shadow: none;
}

.me-transfer-field__control::placeholder {
    color: #a1a1aa;
}

.me-transfer-modal__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.me-transfer-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    background: #fff;
    color: #52525b;
    font-family: var(--font-roobert, inherit);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.me-transfer-btn-ghost:hover {
    background: #fafafa;
    border-color: #d4d4d8;
}

.me-transfer-btn-primary {
    width: auto;
    min-width: 140px;
    min-height: 42px;
}

.me-transfer-modal .me-field-error {
    margin-top: 4px;
}

/* Transfer success modal */
.me-transfer-success-modal__dialog {
    max-width: 400px;
    padding: 32px 28px 24px;
    text-align: center;
    border-radius: 18px;
}

.me-transfer-success-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
}

.me-transfer-success-modal__title {
    margin: 0 0 10px;
    font-family: var(--font-roobert, inherit);
    font-size: 22px;
    font-weight: 700;
    color: #18181b;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.me-transfer-success-modal__message {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.55;
    color: #71717a;
}

.me-transfer-success-modal__btn {
    width: 100%;
    min-height: 44px;
}

/* Page entrance + list animations */
.me-flow-content {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.me-flow-content--visible {
    opacity: 1;
    transform: translateY(0);
}

.me-flow-content--visible .me-flow-animate-item {
    animation: me-flow-item-in 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.me-flow-content--visible .me-vender-section.me-flow-animate-item:nth-child(1) {
    animation-delay: 0.04s;
}

.me-flow-content--visible .me-vender-section.me-flow-animate-item:nth-child(2) {
    animation-delay: 0.1s;
}

.me-flow-content--visible .me-vender-section__list .me-flow-animate-item:nth-child(1) { animation-delay: 0.08s; }
.me-flow-content--visible .me-vender-section__list .me-flow-animate-item:nth-child(2) { animation-delay: 0.12s; }
.me-flow-content--visible .me-vender-section__list .me-flow-animate-item:nth-child(3) { animation-delay: 0.16s; }
.me-flow-content--visible .me-vender-section__list .me-flow-animate-item:nth-child(4) { animation-delay: 0.2s; }
.me-flow-content--visible .me-vender-section__list .me-flow-animate-item:nth-child(n+5) { animation-delay: 0.24s; }

@keyframes me-flow-item-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.me-transfer-profile-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition:
        max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.me-transfer-profile-fields--visible {
    max-height: 320px;
    opacity: 1;
    transform: translateY(0);
}

.me-transfer-lookup-message {
    margin: 0;
    font-size: 12px;
    color: #52525b;
    line-height: 1.45;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.me-transfer-lookup-message:not([hidden]) {
    animation: me-flow-item-in 0.28s ease both;
}

.me-transfer-btn-ghost,
.me-transfer-btn-primary {
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.me-transfer-btn-ghost:hover,
.me-transfer-btn-primary:hover {
    transform: translateY(-1px);
}

.me-transfer-btn-ghost:active,
.me-transfer-btn-primary:active {
    transform: translateY(0) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .me-flow-content,
    .me-flow-content--visible .me-flow-animate-item,
    .me-transfer-profile-fields,
    .me-transfer-lookup-message:not([hidden]),
    .me-transfer-btn-ghost,
    .me-transfer-btn-primary {
        animation: none;
        transition: none;
        transform: none;
        opacity: 1;
        max-height: none;
    }
}
