/* Art Vault — gate block + modal */

.av-gate {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border: 1px solid rgba(128, 128, 128, .25);
    border-radius: 12px;
}

.av-gate__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin-bottom: .9rem;
    font-size: .9rem;
    opacity: .85;
}

.av-gate__badge {
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .05em;
    padding: .15rem .5rem;
    border-radius: 4px;
    background: #2271b1;
    color: #fff;
}

.av-gate__rating { color: #dba617; font-weight: 600; }

.av-gate__btn {
    display: inline-block;
    padding: .7rem 1.6rem;
    border: 0;
    border-radius: 8px;
    background: #2271b1;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.av-gate__btn:hover:not(:disabled) { background: #135e96; }
.av-gate__btn:disabled { opacity: .55; cursor: not-allowed; }

.av-gate__note { margin-top: .6rem; font-size: .85rem; opacity: .7; }

/* Modal */

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

.av-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .65);
}

.av-modal {
    position: relative;
    width: 100%;
    max-width: 430px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    color: #1d2327;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.av-modal__close {
    position: absolute;
    top: .6rem;
    right: .8rem;
    border: 0;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.av-modal__title { margin: 0 0 .25rem; font-size: 1.2rem; }
.av-modal__subtitle { margin: 0 0 1rem; font-size: .9rem; color: #666; }
.av-modal__hint { font-size: .85rem; color: #666; margin-top: .5rem; }

.av-steps {
    display: flex;
    gap: .4rem;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    font-size: .72rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.av-steps__item {
    flex: 1;
    text-align: center;
    padding: .35rem .2rem;
    border-bottom: 3px solid #e0e0e0;
    color: #999;
}

.av-steps__item.is-active { border-color: #2271b1; color: #2271b1; font-weight: 700; }
.av-steps__item.is-done { border-color: #46b450; color: #46b450; }

.av-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; }

.av-tab {
    flex: 1;
    padding: .5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f6f7f7;
    cursor: pointer;
    font-weight: 600;
}

.av-tab.is-active { background: #2271b1; border-color: #2271b1; color: #fff; }

.av-form { display: flex; flex-direction: column; gap: .7rem; }
.av-form__row { display: flex; gap: .7rem; }
.av-form__row input { flex: 1; min-width: 0; }

.av-form input[type=text],
.av-form input[type=email],
.av-form input[type=password],
.av-comment {
    width: 100%;
    padding: .6rem .7rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: .95rem;
    box-sizing: border-box;
}

.av-consent { font-size: .82rem; display: flex; gap: .5rem; align-items: flex-start; }
.av-consent input { margin-top: .2rem; }

.av-stars { display: flex; gap: .3rem; margin: .5rem 0 1rem; }

.av-star {
    border: 0;
    background: none;
    font-size: 2.1rem;
    line-height: 1;
    color: #d5d5d5;
    cursor: pointer;
    padding: 0 .1rem;
    transition: transform .1s ease, color .1s ease;
}

.av-star:hover { transform: scale(1.15); }
.av-star.is-on { color: #dba617; }

.av-comment { margin-bottom: 1rem; resize: vertical; }

.av-error {
    color: #d63638;
    font-size: .85rem;
    margin: .3rem 0;
}

.av-spinner {
    width: 34px;
    height: 34px;
    margin: 2rem auto;
    border: 3px solid #e0e0e0;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: av-spin .8s linear infinite;
}

@keyframes av-spin { to { transform: rotate(360deg); } }
