/* ==========================================================================
   HUBNRO APPLE LIQUID GLASS BUTTONS & PRODUCT CLICK INTERACTION
   ========================================================================== */

/* Universal Liquid Glass Button Base */
.vps-plan-cta,
.vps-card-btn,
.card-action-pill,
.hub-ai-card-button,
.btn-buy-primary-large,
.btn-demo-secondary,
.sticky-bar-btn,
.vps-cat-btn,
.hub-ai-filters button,
.hn-filter-pills a,
.dur-pill,
.step-btn,
.vps-btn-primary,
.vps-btn-ghost,
.hub-ai-button,
.hub-ai-button-ghost {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
                background 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* Ensure text and icons float cleanly above liquid ripples */
.vps-plan-cta > *,
.vps-card-btn > *,
.card-action-pill > *,
.hub-ai-card-button > *,
.btn-buy-primary-large > *,
.btn-demo-secondary > *,
.sticky-bar-btn > *,
.vps-cat-btn > *,
.hub-ai-filters button > * {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

/* Tactile Elastic Depression on Click / Press */
.vps-plan-cta:active,
.vps-plan-cta.is-liquid-pressing,
.vps-card-btn:active,
.vps-card-btn.is-liquid-pressing,
.card-action-pill:active,
.card-action-pill.is-liquid-pressing,
.hub-ai-card-button:active,
.hub-ai-card-button.is-liquid-pressing,
.btn-buy-primary-large:active,
.btn-buy-primary-large.is-liquid-pressing,
.btn-demo-secondary:active,
.btn-demo-secondary.is-liquid-pressing,
.sticky-bar-btn:active,
.sticky-bar-btn.is-liquid-pressing,
.vps-cat-btn:active,
.vps-cat-btn.is-liquid-pressing,
.hub-ai-filters button:active,
.hub-ai-filters button.is-liquid-pressing,
.hn-filter-pills a:active,
.hn-filter-pills a.is-liquid-pressing,
.dur-pill:active,
.dur-pill.is-liquid-pressing,
.step-btn:active,
.step-btn.is-liquid-pressing {
    transform: scale(0.96) translateY(1px) !important;
    transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Dynamic Liquid Ripple Wave */
.hn-btn-liquid-ripple {
    position: absolute !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(56, 189, 248, 0.45) 30%,
        rgba(0, 110, 230, 0.2) 60%,
        transparent 75%
    );
    animation: hn-btn-ripple-anim 0.55s cubic-bezier(0.12, 0.8, 0.32, 1) forwards;
    z-index: 1 !important;
}
@keyframes hn-btn-ripple-anim {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
        filter: blur(0px);
    }
    45% {
        opacity: 0.95;
        filter: blur(1px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
        filter: blur(4px);
    }
}

/* Liquid Surface Flash */
.hn-btn-liquid-flash {
    position: absolute !important;
    inset: 0 !important;
    border-radius: inherit !important;
    background: radial-gradient(circle at var(--click-x, 50%) var(--click-y, 50%),
        rgba(255, 255, 255, 0.5) 0%,
        rgba(56, 189, 248, 0.2) 45%,
        transparent 70%
    );
    pointer-events: none !important;
    user-select: none !important;
    animation: hn-btn-flash-anim 0.38s ease-out forwards;
    z-index: 1 !important;
}
@keyframes hn-btn-flash-anim {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

[data-theme="dark"] .hn-btn-liquid-ripple {
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(0, 240, 255, 0.55) 30%,
        rgba(37, 99, 235, 0.3) 60%,
        transparent 75%
    );
}
[data-theme="dark"] .hn-btn-liquid-flash {
    background: radial-gradient(circle at var(--click-x, 50%) var(--click-y, 50%),
        rgba(255, 255, 255, 0.45) 0%,
        rgba(0, 240, 255, 0.3) 45%,
        transparent 70%
    );
}

/* ==========================================================================
   SPECIFIC PRODUCT BUTTON STYLES (LIQUID GLASS ELEVATION)
   ========================================================================== */

/* 1. VPS Purchase Button ("Mua ngay") */
.vps-card-btn,
.vps-plan-cta {
    background: linear-gradient(135deg, rgba(0, 110, 230, 0.94) 0%, rgba(37, 99, 235, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 4px 16px -2px rgba(0, 110, 230, 0.45),
                inset 0 1px 1.5px rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    color: #ffffff !important;
}
.vps-card-btn:hover,
.vps-plan-cta:hover {
    background: linear-gradient(135deg, #006ee6 0%, #1d4ed8 100%) !important;
    box-shadow: 0 8px 24px -2px rgba(0, 110, 230, 0.6),
                inset 0 1px 2px rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}
[data-theme="dark"] .vps-card-btn,
[data-theme="dark"] .vps-plan-cta {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(37, 99, 235, 0.28) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 240, 255, 0.25),
                inset 0 1px 1.5px rgba(255, 255, 255, 0.25) !important;
    color: #38bdf8 !important;
}
[data-theme="dark"] .vps-card-btn:hover,
[data-theme="dark"] .vps-plan-cta:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(37, 99, 235, 0.42) 100%) !important;
    border-color: rgba(56, 189, 248, 0.75) !important;
    box-shadow: 0 6px 26px rgba(0, 240, 255, 0.4),
                inset 0 1px 2px rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
}

/* 2. AI Card Button ("Xem gói ↗") */
.hub-ai-card-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(240, 246, 255, 0.65) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 30, 80, 0.05),
                inset 0 1px 1px #fff !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #006ee6 !important;
    font-weight: 700 !important;
}
.hub-ai-card-button:hover {
    background: linear-gradient(135deg, rgba(0, 110, 230, 0.92) 0%, rgba(37, 99, 235, 0.96) 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 6px 20px -2px rgba(0, 110, 230, 0.45),
                inset 0 1px 1px #fff !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}
[data-theme="dark"] .hub-ai-card-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25),
                inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    color: #38bdf8 !important;
}
[data-theme="dark"] .hub-ai-card-button:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(37, 99, 235, 0.35) 100%) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.35),
                inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}

/* 3. Product 3D Card Action Pill ("Xem chi tiết ↗", "Cấu hình ↗") */
.card-action-pill {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 246, 255, 0.7) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 30, 80, 0.05),
                inset 0 1px 1px #fff !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #006ee6 !important;
}
.product-3d-card:hover .card-action-pill,
.card-action-pill:hover {
    background: linear-gradient(135deg, #006ee6 0%, #2563eb 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px -2px rgba(0, 110, 230, 0.45),
                inset 0 1px 1px #fff !important;
    transform: translateY(-1px) !important;
}
[data-theme="dark"] .card-action-pill {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25),
                inset 0 1px 1px rgba(255, 255, 255, 0.12) !important;
    color: #38bdf8 !important;
}
[data-theme="dark"] .product-3d-card:hover .card-action-pill,
[data-theme="dark"] .card-action-pill:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(37, 99, 235, 0.35) 100%) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.3) !important;
}

.card-footer-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}
.card-action-pill {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* 4. Product Detail Page ("Mua ngay" & "Xem Bản Demo") */
.btn-buy-primary-large,
.sticky-bar-btn {
    background: linear-gradient(135deg, rgba(0, 110, 230, 0.95) 0%, rgba(37, 99, 235, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 8px 24px -2px rgba(0, 110, 230, 0.45),
                inset 0 1px 2px rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(14px) !important;
    color: #ffffff !important;
}
.btn-buy-primary-large:hover,
.sticky-bar-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px -2px rgba(0, 110, 230, 0.65),
                inset 0 1px 2px #fff !important;
}
.btn-demo-secondary {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.1)) !important;
    box-shadow: 0 2px 8px rgba(0, 20, 60, 0.04),
                inset 0 1px 1px #fff !important;
    backdrop-filter: blur(12px) !important;
    color: var(--text-primary, #0f172a) !important;
}
.btn-demo-secondary:hover {
    background: #ffffff !important;
    border-color: #38bdf8 !important;
    color: #006ee6 !important;
    transform: translateY(-2px) !important;
}
[data-theme="dark"] .btn-demo-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #e2e8f0 !important;
}
[data-theme="dark"] .btn-demo-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #38bdf8 !important;
}

/* 5. Category Tabs & Filter Buttons */
.vps-cat-btn,
.hub-ai-filters button,
.hn-filter-pills a {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 6px rgba(0, 20, 60, 0.03),
                inset 0 1px 1px #fff !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}
.vps-cat-btn:hover,
.hub-ai-filters button:hover,
.hn-filter-pills a:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #38bdf8 !important;
    color: #006ee6 !important;
    transform: translateY(-1px) !important;
}
.vps-cat-btn.vps-cat-btn-active,
.hub-ai-filters button.is-active,
.hn-filter-pills a.active {
    background: linear-gradient(135deg, rgba(0, 110, 230, 0.95) 0%, rgba(37, 99, 235, 0.98) 100%) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 110, 230, 0.3),
                inset 0 1px 1px #fff !important;
}
[data-theme="dark"] .vps-cat-btn,
[data-theme="dark"] .hub-ai-filters button,
[data-theme="dark"] .hn-filter-pills a {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
}
[data-theme="dark"] .vps-cat-btn:hover,
[data-theme="dark"] .hub-ai-filters button:hover,
[data-theme="dark"] .hn-filter-pills a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
}
[data-theme="dark"] .vps-cat-btn.vps-cat-btn-active,
[data-theme="dark"] .hub-ai-filters button.is-active,
[data-theme="dark"] .hn-filter-pills a.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(37, 99, 235, 0.35) 100%) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.25) !important;
}

/* 6. Purchase Config Panel Sub-buttons */
.dur-pill {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03), inset 0 1px 1px #fff !important;
    backdrop-filter: blur(8px) !important;
}
.dur-pill.active {
    background: linear-gradient(135deg, rgba(0, 110, 230, 0.95) 0%, rgba(37, 99, 235, 0.98) 100%) !important;
    border-color: #006ee6 !important;
    color: #ffffff !important;
}
[data-theme="dark"] .dur-pill {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #94a3b8 !important;
}
[data-theme="dark"] .dur-pill.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2) 0%, rgba(37, 99, 235, 0.3) 100%) !important;
    border-color: #38bdf8 !important;
    color: #38bdf8 !important;
}
.step-btn {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), inset 0 1px 1px #fff !important;
    backdrop-filter: blur(6px) !important;
}
[data-theme="dark"] .step-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
}


/* 7. Purchase Modal / Checkout Submission */
#submitBtn,
#purchasePanel .btn-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 8px 24px -2px rgba(16, 185, 129, 0.45),
                inset 0 1px 2px rgba(255, 255, 255, 0.7) !important;
    color: #ffffff !important;
    backdrop-filter: blur(12px) !important;
}
#submitBtn:hover,
#purchasePanel .btn-success:hover {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    box-shadow: 0 10px 28px -2px rgba(16, 185, 129, 0.65),
                inset 0 1px 2px #fff !important;
    transform: translateY(-2px) !important;
}
[data-theme="dark"] #submitBtn,
[data-theme="dark"] #purchasePanel .btn-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.4) 100%) !important;
    border: 1px solid rgba(52, 211, 153, 0.5) !important;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.3),
                inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
    color: #34d399 !important;
}
[data-theme="dark"] #submitBtn:hover,
[data-theme="dark"] #purchasePanel .btn-success:hover {
    color: #ffffff !important;
}

