/* ========== Global background for auth/dashboard ========== */
body {
    background: #f5f7fa;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ========== Auth + Dashboard cards ========== */

.hvue-auth-card,
.hvue-dashboard-card,
.hvue-modern {
    max-width: 480px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Headings */
.hvue-auth-card h2,
.hvue-dashboard-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

/* Inputs */
.hvue-auth-card input[type="text"],
.hvue-auth-card input[type="email"],
.hvue-auth-card input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 15px;
}

/* Buttons */
.hvue-btn-primary,
.hvue-btn-secondary,
.hvue-btn-buy,
.hvue-logout-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.hvue-btn-primary,
.hvue-btn-buy {
    background: #2563eb;
    color: #ffffff;
    transition: all .2s ease;
}

.hvue-btn-primary:hover,
.hvue-btn-buy:hover {
    background: #1e40af;
    color: #ffffff;
}

.hvue-btn-secondary,
.hvue-logout-btn {
    background: #f3f4f6;
    color: #111827;
}

/* Footer text under forms */
.hvue-auth-footer {
    margin-top: 14px;
    font-size: 14px;
    text-align: center;
    color: #6b7280;
}
.hvue-auth-footer a {
    color: #2563eb;
    text-decoration: none;
}
.hvue-auth-footer a:hover {
    text-decoration: underline;
}

/* Alerts */
.hvue-alert-error,
.hvue-alert-success {
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 12px;
}
.hvue-alert-error {
    background: #fee2e2;
    color: #991b1b;
}
.hvue-alert-success {
    background: #dcfce7;
    color: #166534;
}

/* Dashboard header avatar + text */
.hvue-dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.hvue-avatar {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

.hvue-dashboard-sub {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.hvue-dashboard-section {
    margin-top: 16px;
}

.hvue-dashboard-footer {
    margin-top: 20px;
    text-align: right;
}

/* ========== Blurred restricted page overlay ========== */

.hvue-blur-wrapper {
    position: relative;
}

.hvue-blur-content {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.hvue-restrict-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.hvue-restrict-modal {
    max-width: 420px;
    width: 100%;
}

/* ========== Admin (optional, for dashboard cards) ========== */

.hvue-admin-wrap .hvue-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.hvue-admin-wrap .hvue-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.hvue-admin-wrap .hvue-number {
    font-size: 22px;
    font-weight: 600;
    margin: 6px 0 0;
}

/* ========== Mobile tweaks ========== */
@media (max-width: 600px) {
    .hvue-auth-card,
    .hvue-dashboard-card,
    .hvue-modern {
        margin: 20px auto;
        padding: 20px;
    }

    .hvue-avatar {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
