/**
 * Premium client vault CTAs - consistent gradient, depth, and lock affordance.
 * Use with vault/login.php across public marketing pages.
 */

.ivl-premium-vault {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 40%, #4f46e5 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 4px 16px rgba(91, 33, 182, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.12) inset;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.ivl-premium-vault:hover {
    filter: brightness(1.06);
    box-shadow:
        0 8px 28px rgba(124, 58, 237, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
    transform: translateY(-1px);
}

.ivl-premium-vault:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

/* Shimmer sweep on hover */
.ivl-premium-vault::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.14) 50%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.ivl-premium-vault:hover::after {
    opacity: 1;
}

.ivl-premium-vault > * {
    position: relative;
    z-index: 1;
}

/* Compact - header nav */
.ivl-premium-vault--nav {
    padding: 0.5rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 0.65rem;
    white-space: nowrap;
}

/* Hero / large */
.ivl-premium-vault--lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 0.875rem;
}

/* On indigo–purple gradient CTA bands (frosted “premium” second action) */
.ivl-premium-vault--on-gradient {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ivl-premium-vault--on-gradient:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    filter: none;
}

.ivl-premium-vault--on-gradient::after {
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 65%
    );
}

/* FAB vault satellite chip */
.ivl-public-fab-host .ivl-fab-vault-chip {
    background: linear-gradient(145deg, rgba(124, 58, 237, 0.92), rgba(79, 70, 229, 0.95)) !important;
    border: 1px solid rgba(196, 181, 253, 0.55) !important;
    box-shadow:
        0 0 18px rgba(124, 58, 237, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.ivl-public-fab-host .ivl-fab-vault-chip:hover {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.95), rgba(99, 102, 241, 0.98)) !important;
    box-shadow:
        0 0 22px rgba(167, 139, 250, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
