/* 
   ToolsHub Pricing Styling Sheet
   Formats plan panels, comparison tables, toggles
*/

/* 1. BILLING SWITCH TOGGLE */
.pricing-header-wrapper {
    text-align: center;
    margin: 50px 0 40px;
}

.pricing-header-wrapper h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.pricing-header-wrapper p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.billing-toggle-container {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px;
    border-radius: 50px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.billing-toggle-btn {
    border: none;
    background: none;
    padding: 8px 20px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    color: var(--text-muted);
}

.billing-toggle-btn.active {
    background-color: var(--primary);
    color: #FFFFFF;
}

.yearly-savings-tag {
    background-color: var(--success);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 50px;
}

/* 2. PLANS CARDS GRID */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto;
  align-items: start;
}

.pricing-plan-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 30px;
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pricing-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(var(--primary-rgb), 0.3);
}

[data-theme="dark"] .pricing-plan-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(var(--primary-rgb), 0.5);
}

/* Featured / Pro Card highlighted with neon-glow and gradient */
.pricing-plan-card.plan-featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(229, 50, 45, 0.03) 0%, var(--bg-card) 100%);
    box-shadow: 0 15px 35px rgba(229, 50, 45, 0.15);
}

[data-theme="dark"] .pricing-plan-card.plan-featured {
    background: linear-gradient(180deg, rgba(229, 50, 45, 0.08) 0%, var(--bg-card) 100%);
    box-shadow: 0 15px 40px rgba(229, 50, 45, 0.35);
}

.pricing-plan-card.plan-featured:hover {
    box-shadow: 0 20px 45px rgba(229, 50, 45, 0.45);
}

.plan-popular-ribbon {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-card-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.plan-card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    min-height: 40px;
    margin-bottom: 24px;
}

.plan-card-price-block {
    margin-bottom: 30px;
}

.price-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: super;
}

.price-number {
    font-size: 2.8rem;
    font-weight: 800;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-strike-saving {
    font-size: 0.88rem;
    margin-top: 4px;
    display: none;
}

.strike-price {
    text-decoration: line-through;
    color: var(--text-muted);
}

.save-percent {
    color: var(--success);
    font-weight: 700;
    margin-left: 6px;
}

.plan-features-ul {
    margin-bottom: 35px;
    flex: 1;
}

.plan-features-ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.feature-check-icon {
    color: var(--success);
    font-weight: 900;
}

.feature-cross-icon {
    color: var(--text-muted);
    opacity: 0.5;
}

/* 3. COMPARISON TABLE */
.pricing-comparison-section {
    margin: 80px 0;
}

.pricing-comparison-section h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
}

.comparison-table-wrapper {
    overflow-x: auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, 
.comparison-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.comparison-table th {
    background-color: var(--bg);
    font-weight: 700;
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table td:nth-child(4) {
    text-align: center;
}

.comparison-table tr:hover td {
    background-color: rgba(var(--primary-rgb), 0.02);
}

.comparison-header-plan {
    font-weight: 800;
    color: var(--text);
}

.comparison-table .feature-group {
    background-color: rgba(var(--primary-rgb), 0.03);
    font-weight: 700;
    color: var(--text);
    padding: 10px 24px;
}

/* 4. MONEY BACK GUARANTEE & TRUSTS */
.guarantee-banner-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 60px;
}

.guarantee-icon {
    font-size: 3.5rem;
}

.guarantee-info h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.guarantee-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.trust-badges-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    opacity: 0.7;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* RESPONSIVE STACK CARDS */
@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}
