.velox-foundation-page {
    min-height: calc(100vh - 130px);
    padding: 32px 20px;
}

.velox-foundation-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
}

.velox-foundation-card h1 {
    margin: 12px 0 8px;
    color: #222;
    font-size: 30px;
    font-weight: 700;
}

.velox-foundation-card > p {
    color: #666;
}

.velox-foundation-badge {
    display: inline-block;
    padding: 5px 10px;
    color: #b3261e;
    background: #fff2f2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.velox-foundation-reference {
    margin-top: 16px;
}

.velox-state {
    margin-top: 28px;
    padding: 28px 20px;
    text-align: center;
    color: #666;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 12px;
}

.velox-state i {
    margin-bottom: 10px;
    color: #999;
    font-size: 28px;
}

.velox-state h2 {
    margin-bottom: 8px;
    color: #333;
    font-size: 20px;
}

.velox-state p {
    margin: 0;
}

.velox-state-error i,
.velox-state-error h2 {
    color: #b3261e;
}

.velox-state-spinner {
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-bottom: 10px;
    border: 3px solid #ddd;
    border-top-color: #e53935;
    border-radius: 50%;
    animation: velox-spin .8s linear infinite;
}

.velox-foundation-actions {
    margin-top: 20px;
    text-align: center;
}

.velox-auth-card {
    max-width: 560px;
}

.velox-account-card {
    max-width: 720px;
}

.velox-auth-form {
    display: grid;
    gap: 9px;
    margin-top: 24px;
}

.velox-auth-form label {
    margin-top: 8px;
    color: #2a2a2a;
    font-weight: 700;
}

.velox-auth-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
}

.velox-auth-form input:focus {
    border-color: #d93025;
    outline: 3px solid rgba(217, 48, 37, .12);
}

.velox-auth-form button {
    min-height: 46px;
    margin-top: 14px;
}

.velox-auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 22px;
}

.velox-alert {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.velox-alert-success {
    color: #14532d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.velox-alert-error {
    color: #8b1a14;
    background: #fff4f2;
    border-color: #ffc9c4;
}

.velox-alert-info {
    color: #164e63;
    background: #ecfeff;
    border-color: #a5f3fc;
}

.velox-field-error {
    color: #b3261e;
}

.velox-profile-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.velox-profile-summary div {
    padding: 14px;
    background: #fafafa;
    border-radius: 8px;
}

.velox-profile-summary dt {
    color: #666;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.velox-profile-summary dd {
    margin: 4px 0 0;
    color: #222;
}

.velox-menu-logout-form {
    margin: 0;
}

.velox-menu-logout-form button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

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

@media (max-width: 767px) {
    .velox-foundation-page {
        min-height: auto;
        padding: 10px 0 24px;
    }

    .velox-foundation-card {
        padding: 22px 16px;
    }

    .velox-foundation-card h1 {
        font-size: 25px;
    }

    .velox-profile-summary {
        grid-template-columns: 1fr;
    }
}
