/* ── AIV Public Gate — refined dark aesthetic ────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

*,*::before,*::after{box-sizing:border-box}

/* Full-page gate wrapper */
#aiv-page-gate-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b0f1a;
    padding: 32px 16px;
}

/* Card */
.aiv-gate {
    font-family: 'DM Sans', sans-serif;
    display: flex;
    justify-content: center;
    padding: 24px 16px 40px;
}

.aiv-gate__card {
    background: #111827;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;
    padding: 48px 44px 44px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.04) inset;
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

/* Subtle glow top */
.aiv-gate__card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(99,102,241,.25) 0%, transparent 70%);
    pointer-events: none;
}

/* Icon */
.aiv-gate__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #312e81, #4338ca);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #c7d2fe;
    box-shadow: 0 8px 24px rgba(99,102,241,.4);
}
.aiv-gate__icon svg { width: 36px; height: 36px; }

/* Headings */
.aiv-gate__title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: #f1f5f9;
    margin: 0 0 10px;
    letter-spacing: -.02em;
}
.aiv-gate__subtitle {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.6;
    margin: 0 0 24px;
}
.aiv-gate__subtitle strong { color: #c7d2fe; }

/* Accepted docs */
.aiv-gate__accepted {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.aiv-gate__accepted span {
    font-size: 12px;
    background: rgba(99,102,241,.15);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,.3);
    border-radius: 100px;
    padding: 4px 12px;
    font-weight: 500;
}

/* Dropzone */
.aiv-gate__dropzone {
    border: 2px dashed rgba(99,102,241,.35);
    border-radius: 14px;
    transition: border-color .2s, background .2s;
    background: rgba(99,102,241,.04);
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    cursor: pointer;
}
.aiv-gate__dropzone:hover,
.aiv-gate__dropzone.aiv-drag-over {
    border-color: #6366f1;
    background: rgba(99,102,241,.10);
}
.aiv-dropzone__inner {
    text-align: center;
    padding: 28px 20px;
    pointer-events: none;
}
.aiv-dropzone__icon {
    width: 40px;
    height: 40px;
    color: #6366f1;
    margin: 0 auto 12px;
    display: block;
}
.aiv-dropzone__text {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 6px;
}
.aiv-dropzone__browse {
    color: #818cf8;
    text-decoration: underline;
    cursor: pointer;
    pointer-events: all;
}
.aiv-dropzone__hint {
    font-size: 12px;
    color: #475569;
    font-family: 'DM Mono', monospace;
    margin: 0;
}

/* Preview */
.aiv-dropzone__preview {
    position: relative;
    padding: 12px;
    width: 100%;
    text-align: center;
}
.aiv-dropzone__preview img {
    max-height: 160px;
    max-width: 100%;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    opacity: .85;
}
.aiv-dropzone__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,.6);
    color: #e2e8f0;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Privacy */
.aiv-gate__privacy {
    font-size: 12px;
    color: #475569;
    text-align: center;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.aiv-gate__privacy svg { flex-shrink: 0; }

/* Submit button */
.aiv-gate__submit {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: -.01em;
    box-shadow: 0 4px 16px rgba(99,102,241,.4);
}
.aiv-gate__submit:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.aiv-gate__submit:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* Spinner animation */
.aiv-spin {
    transform-origin: 50% 50%;
    animation: aiv-spin-kf .8s linear infinite;
}
@keyframes aiv-spin-kf { to { transform: rotate(360deg); } }
.aiv-btn-spinner svg { width: 18px; height: 18px; }

/* Result banner */
.aiv-gate__result {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}
.aiv-result--success {
    background: rgba(16,185,129,.15);
    border: 1px solid rgba(16,185,129,.3);
    color: #6ee7b7;
}
.aiv-result--error {
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.25);
    color: #fca5a5;
}

/* Verified notice (shortcode after verification) */
.aiv-verified-notice {
    background: rgba(16,185,129,.1);
    border: 1px solid rgba(16,185,129,.25);
    color: #34d399;
    padding: 12px 18px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 540px) {
    .aiv-gate__card { padding: 32px 22px 28px; }
}
