/* ==========================================================================
   Haztap — Premium Pricing Tables (Awwwards Style)
   ========================================================================== */

.htp-pricing-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    font-family: 'Ubuntu', sans-serif;
    color: #fff;
    perspective: 1200px; /* For 3D effects if needed */
}

#htp-particles-canvas {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Header Section */
.htp-pricing-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    position: relative;
    z-index: 2;
}
.htp-pricing-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    background: rgba(255,255,255,0.03);
}
.htp-pricing-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    color: #fff;
    background: linear-gradient(to right, #fff, rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.htp-pricing-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0;
}

.htp-pricing-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* Card Container */
.htp-plan-card {
    position: relative;
    border-radius: 24px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.htp-card-inner {
    position: relative;
    z-index: 3;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(30,30,30,0.8) 0%, rgba(15,15,15,0.9) 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hover effects */
.htp-plan-card:hover {
    transform: translateY(-10px);
    z-index: 10;
}

/* Background ambient glow inside card */
.htp-card-bg-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}
.htp-plan-card:hover .htp-card-bg-glow {
    opacity: 1;
}

/* Popular Card Adjustments */
.htp-plan-card.htp-popular {
    transform: scale(1.05);
    z-index: 2;
}
.htp-plan-card.htp-popular:hover {
    transform: scale(1.05) translateY(-10px);
}
.htp-plan-card.htp-popular .htp-card-inner {
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(40,40,40,0.9) 0%, rgba(20,20,20,0.95) 100%);
}

/* Popular Card Box Shadow instead of glowing border */
.htp-plan-card.htp-popular {
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

/* Popular Badge */
.htp-popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(255,255,255,0.3);
    z-index: 20;
}
.htp-badge-glow {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #000;
    position: relative;
}
.htp-badge-glow::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: #000;
    border-radius: 50%;
    animation: htp-pulse 1.5s ease-out infinite;
}

@keyframes htp-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

/* Headers */
.htp-plan-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #fff;
}
.htp-plan-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 2rem 0;
    line-height: 1.4;
    min-height: 40px;
}
.htp-plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 2rem 0;
    color: #fff;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

/* Buttons */
.htp-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.htp-plan-card.htp-popular .htp-plan-btn {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.htp-plan-card.htp-popular .htp-plan-btn svg {
    color: #000;
}
.htp-plan-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.htp-plan-card.htp-popular .htp-plan-btn:hover {
    background: #f0f0f0;
    transform: scale(1.02);
}
.htp-plan-btn svg {
    transition: transform 0.3s ease;
}
.htp-plan-btn:hover svg {
    transform: translateX(4px);
}

/* Features List */
.htp-plan-features {
    margin-top: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.htp-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.htp-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
    transition: color 0.3s ease;
}
.htp-feature-item:hover {
    color: #fff;
}

/* Hidden features logic (Smooth Accordion via Grid) */
.htp-hidden-features-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.htp-hidden-features-inner {
    overflow: hidden;
}
.htp-hidden-list {
    padding-top: 1.2rem; /* space between visible and hidden */
}
.htp-hidden-item {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.htp-plan-card.is-expanded .htp-hidden-features-wrapper {
    grid-template-rows: 1fr;
}
.htp-plan-card.is-expanded .htp-hidden-item {
    opacity: 1;
    transform: translateY(0);
}
.htp-plan-card.is-expanded .htp-hidden-list .htp-feature-item:nth-child(1) { transition-delay: 0.1s; }
.htp-plan-card.is-expanded .htp-hidden-list .htp-feature-item:nth-child(2) { transition-delay: 0.15s; }
.htp-plan-card.is-expanded .htp-hidden-list .htp-feature-item:nth-child(3) { transition-delay: 0.2s; }
.htp-plan-card.is-expanded .htp-hidden-list .htp-feature-item:nth-child(4) { transition-delay: 0.25s; }
.htp-plan-card.is-expanded .htp-hidden-list .htp-feature-item:nth-child(5) { transition-delay: 0.3s; }
.htp-plan-card.is-expanded .htp-hidden-list .htp-feature-item:nth-child(6) { transition-delay: 0.35s; }

.htp-check-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.htp-plan-card.htp-popular .htp-check-icon {
    background: rgba(255,255,255,0.2);
}
.htp-check-icon svg {
    width: 14px;
    height: 14px;
}

/* Animated checks on reveal */
.htp-check-icon svg polyline {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
}
.htp-plan-card.is-visible .htp-check-icon svg polyline {
    animation: htp-draw-check 0.6s ease forwards;
    animation-delay: calc(var(--delay, 0) * 0.1s);
}
@keyframes htp-draw-check {
    to { stroke-dashoffset: 0; }
}

/* Toggle Button */
.htp-toggle-features {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    align-self: flex-start;
}
.htp-toggle-features:hover {
    color: #fff;
}
.htp-toggle-features svg {
    transition: transform 0.3s ease;
}
.htp-plan-card.is-expanded .htp-toggle-features svg {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .htp-pricing-title {
        font-size: 2.5rem;
    }
    .htp-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 3rem;
    }
    .htp-plan-card.htp-popular {
        transform: scale(1);
    }
    .htp-plan-card.htp-popular:hover {
        transform: translateY(-5px);
    }
}
