.treasury-wrap { max-width: 820px; margin: 0 auto; padding: 10px 0 40px; }
.treasury-card {
    background: rgba(15, 16, 30, 0.85);
    border: 1px solid rgba(226, 117, 255, 0.25);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
}
.treasury-card h3 { color: #fff; margin: 0 0 12px; font-size: 22px; }
.treasury-card p { color: #9ca3af; line-height: 1.7; }
.treasury-card label { display: block; color: #c4c8e0; font-size: 14px; margin: 12px 0 6px; }
.treasury-card input,
.treasury-card select,
.treasury-card textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #010314;
    color: #fff;
    font-size: 15px;
}
.treasury-card .btn-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.treasury-err { color: #f87171; font-size: 14px; margin-top: 8px; }
.treasury-ok { color: #86efac; font-size: 14px; margin-top: 8px; }
.invest-progress {
    height: 14px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin: 16px 0;
}
.invest-progress > span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(93deg, #e275ff, #7e2afd);
    transition: width 0.4s ease;
}
.treasury-stat { font-size: 28px; font-weight: 700; color: #e275ff; }

.aici-auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.aici-auth-modal.is-open { display: flex; }
.aici-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 3, 20, 0.75);
    backdrop-filter: blur(6px);
}
.aici-auth-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: rgba(15, 16, 30, 0.98);
    border: 1px solid rgba(226, 117, 255, 0.35);
    border-radius: 20px;
    padding: 32px 28px 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.aici-auth-modal__panel h3 {
    color: #fff;
    margin: 0 0 8px;
    font-size: 22px;
}
.aici-auth-modal__sub {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 22px;
}
.aici-auth-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.aici-auth-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.aici-auth-modal__close:hover { color: #fff; }
