.plans {
    @apply mx-auto grid w-full gap-6 lg:gap-8;
    max-width: 1400px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 1fr;
}

@media (max-width: 768px) {
    .plans {
        grid-template-columns: 1fr !important; /* Single column on mobile */
        gap: 1.25rem !important; /* Consistent spacing */
        padding: 0 0.5rem; /* Small side padding */
    }
}

@media (min-width: 1024px) {
    .plans {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        justify-content: center;
        max-width: 1400px;
    }
}

.plan {
    @apply flex origin-bottom flex-col justify-between rounded-2xl bg-white p-8 relative;
    border: 2px solid #613a96; /* Purple border */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08); /* Soft shadow */
    min-height: 100%;
}

/* Desktop only - transitions and hover effects */
@media (min-width: 769px) {
    .plan {
        transition: all 300ms ease;
    }

    .plan:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
        border-color: #613a96; /* Purple border on hover */
    }
}

/* Mobile - disable ALL transitions and transforms (causes RTL freeze) */
@media (max-width: 768px) {
    .plan,
    .plan *,
    .plan:hover {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .plan {
        box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.1) !important;
        border: 2px solid #613a96 !important; /* Purple border on mobile */
        padding: 1.75rem !important; /* Consistent padding */
        margin-bottom: 1rem;
    }
}

/* Featured Plan - Modern Look */
.plan.featured {
    border: 2px solid #613a96; /* Purple border */
    box-shadow: 0 15px 40px -10px rgba(97, 58, 150, 0.2);
    z-index: 10;
}

@media (min-width: 769px) {
    .plan.featured {
        transform: scale(1.02); /* Slightly larger by default */
    }

    .plan.featured:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 25px 50px -12px rgba(97, 58, 150, 0.3);
    }
}

/* Mobile - Featured plan looks cleaner and more subtle */
@media (max-width: 768px) {
    .plan.featured,
    .plan.featured *,
    .plan.featured:hover {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .plan.featured {
        border: 2px solid #613a96 !important; /* Purple border on mobile */
        box-shadow: 0 8px 20px -8px rgba(97, 58, 150, 0.15) !important; /* Softer shadow */
        margin-bottom: 1rem; /* Extra spacing below featured plan */
    }
}

.plan > div {
    @apply flex-1 flex flex-col gap-4;
}

.plan__badge {
    @apply mx-auto block w-fit rounded-full px-4 py-1.5 text-xs font-bold text-white uppercase tracking-wider shadow-sm whitespace-nowrap;
    background: #613a96; /* Solid purple color */
}

.plan__name {
    @apply mb-1 text-2xl font-extrabold lg:text-3xl;
    color: #1a202c;
    letter-spacing: -0.02em;
    text-align: center !important;
}

.plan__info {
    @apply mb-4 text-sm lg:text-base;
    color: #64748b;
    line-height: 1.6;
    min-height: 3.5rem;
    text-align: center !important;
}

/* Mobile - ensure consistent spacing and sizing */
@media (max-width: 768px) {
    .plan__badge {
        font-size: 10px !important;
        padding: 0.375rem 0.75rem !important; /* Slightly less padding */
        margin-bottom: 0.75rem !important;
        white-space: nowrap !important; /* Prevent text wrapping */
    }

    /* English text in badge - smaller font if needed */
    html[dir="ltr"] .plan__badge {
        font-size: 9px !important;
        padding: 0.375rem 0.75rem !important;
    }

    .plan__name {
        font-size: 1.5rem !important; /* 24px */
        margin-bottom: 0.5rem !important;
    }

    .plan__info {
        font-size: 0.875rem !important; /* 14px */
        margin-bottom: 1rem !important;
        min-height: 2.5rem !important;
        line-height: 1.5 !important;
    }

    .plan__price {
        margin-bottom: 1.25rem !important;
    }
}

/* السعر الرئيسي */
.plan__price {
    margin-bottom: 1.5rem;
    text-align: center !important;
    color: #1a202c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plan__price.price-yearly {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
}

.plan__price.price-yearly .original-price {
    text-align: center !important; /* Override RTL start alignment */
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.plan__price.price-yearly .current-price,
.plan__price.price-yearly .discount,
.plan__price.price-yearly .savings-note,
.plan__price.price-yearly .vat-note {
    text-align: center !important;
}

/* السعر الأصلي المشطوب */
.plan__price .original-price {
    text-decoration: line-through;
    margin-bottom: 4px;
    display: block;
    font-size: 0.95rem;
    opacity: 0.7;
    color: #9ca3af;
}

/* RTL only for Arabic */
html[dir="rtl"] .plan__price .original-price {
    direction: rtl;
}

/* LTR for English */
html[dir="ltr"] .plan__price .original-price {
    direction: ltr;
}

/* Monthly price - align to start */
.plan__price.price-monthly .original-price {
    text-align: start; /* مع اتجاه الكتابة - مو center */
}

.plan__price .original-price del {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.plan__price .original-price img.riyal-symbol {
    width: 14px !important;
    height: 14px !important;
}

/* السعر الجديد - كبير */
.plan__price .current-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Free price - smaller and same color as plan__info */
.plan__price .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1;
}

/* Period text - / شهري */
.plan__price .period {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
}

/* بادج الخصم - لون المنصة - أكبر */
.plan__price .discount {
    background: var(--color-primary-hexa, #613a96);
    color: white;
    font-size: 16px !important; /* Bigger */
    font-weight: 700;
    padding: 6px 14px !important; /* Bigger padding */
    border-radius: 8px;
    display: inline-block;
    margin-top: 8px;
    box-shadow: 0 4px 6px -1px rgba(97, 58, 150, 0.3);
    direction: ltr !important;
}

/* ملاحظة التوفير - أكبر */
.plan__price .savings-note {
    display: block;
    font-size: 18px !important; /* Even Bigger - was 16px */
    color: #009FB7;
    font-weight: 700 !important; /* Bolder */
    margin-top: 8px;
}

/* ملاحظة الضريبة */
.plan__price .vat-note {
    display: block;
    font-size: 11px !important;
    font-weight: 300 !important;
    margin-top: 6px !important;
    color: #9ca3af;
}

/* رمز الريال */
.plan__price img.riyal-symbol {
    display: inline-block;
    width: 28px;
    height: 28px;
    margin-right: 4px;
    vertical-align: middle;
    transition: filter 0.3s ease;
}

/* Original price riyal symbol - smaller */
.plan__price .original-price img.riyal-symbol {
    width: 18px !important;
    height: 18px !important;
    margin-right: 3px;
    transition: filter 0.3s ease;
}

.plan__price img.riyal-symbol-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 2px;
    vertical-align: middle;
    transition: filter 0.3s ease;
}

.plan__features {
    margin-bottom: 2rem;
    flex-grow: 1;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.plan__features p {
    @apply mb-4 text-xs font-bold uppercase tracking-wider text-center;
    color: #94a3b8;
}

.plan__features ul {
    @apply space-y-3;
}

.plan__features li {
    @apply flex items-start gap-3 text-sm;
    color: #475569;
}

/* Mobile - features spacing */
@media (max-width: 768px) {
    .plan__features {
        margin-bottom: 1.5rem !important;
        padding-top: 1rem !important;
    }

    .plan__features p {
        font-size: 10px !important;
        margin-bottom: 0.75rem !important;
    }

    .plan__features ul {
        gap: 0.625rem !important; /* 10px */
    }

    .plan__features li {
        font-size: 0.8125rem !important; /* 13px */
        gap: 0.625rem !important;
        line-height: 1.5 !important;
    }
}

.plan__features .plan__features-icon {
    @apply inline-flex items-center justify-center rounded-full bg-purple-50 flex-shrink-0;
    width: 20px;
    height: 20px;
    color: #613a96; /* Icon color */
}

.plan__features .plan__features-icon svg {
    width: 12px;
    height: 12px;
    fill: currentColor; /* Use text color */
}

.plan__btn {
    @apply w-full rounded-xl py-3.5 text-center text-sm font-bold;
    /* Default button style with purple background */
    background: #613a96;
    border: 2px solid #613a96;
    color: white;
    margin-top: auto;
    flex-shrink: 0;
}

/* Desktop only - transitions and hover effects */
@media (min-width: 769px) and (hover: hover) {
    .plan__btn {
        transition: all 200ms ease;
    }

    .plan__btn:hover {
        background: #7B4DB8; /* Lighter purple on hover */
        border-color: #7B4DB8;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(97, 58, 150, 0.3);
    }
}

/* Mobile optimization - ensure button stays in place, NO transitions */
@media (max-width: 768px) {
    .plan {
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        min-height: auto !important;
        height: auto !important;
    }

    .plan > div {
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    .plan__btn {
        position: static !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
        margin-top: 1.5rem !important;
        width: 100% !important;
        display: block !important;
        flex-shrink: 0 !important;
        padding: 0.875rem 1rem !important; /* Consistent padding */
        font-size: 0.875rem !important; /* 14px */
        border-width: 1.5px !important; /* Slightly thinner border */
    }

    /* تأكد الـ features ما تاخذ مساحة زيادة */
    .plan__features {
        flex: 0 1 auto !important;
        margin-bottom: 1rem !important;
    }
}

/* Featured Plan Button (Solid) */
.plan.featured .plan__btn {
    background: #613a96;
    border-color: #613a96;
    color: white;
    box-shadow: 0 4px 12px rgba(97, 58, 150, 0.25);
}

/* Featured button hover - DESKTOP ONLY */
@media (min-width: 769px) and (hover: hover) {
    .plan.featured .plan__btn:hover {
        background: #4c2d75;
        border-color: #4c2d75;
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(97, 58, 150, 0.3);
    }
}

/* ===========================================
   MOBILE OPTIMIZATIONS - DISABLE ALL EFFECTS
   =========================================== */

/* Disable ALL transitions and animations in comparison table on mobile */
@media (max-width: 768px) {
    /* Comparison table rows - disable all transitions */
    .comparison-table tr,
    .comparison-table tr *,
    .comparison-table tr:hover,
    .comparison-table tr:hover * {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    /* Disable hover effects on table rows */
    .comparison-table tr:hover {
        background-color: transparent !important;
    }

    /* NO sticky on mobile */
    .comparison-table th.sticky,
    .comparison-table th[style*="position: sticky"],
    .comparison-table th[style*="position: -webkit-sticky"] {
        position: relative !important;
        right: auto !important;
        z-index: auto !important;
    }

    /* Disable CTA button transitions and hover effects */
    .comparison-table a,
    .comparison-table a:hover,
    .comparison-table a:focus,
    .comparison-table a:active {
        transition: none !important;
        animation: none !important;
        transform: none !important; /* Disable scale on tap */
    }

    /* Keep shadow but disable transform */
    .comparison-table a {
        box-shadow: 0 4px 15px rgba(97, 58, 150, 0.3) !important;
    }

    .comparison-table a[href*="contact"],
    .comparison-table a[href*="packages-form"] {
        box-shadow: 0 4px 15px rgba(237, 44, 133, 0.3) !important;
    }

    /* All other columns are normal (not sticky) */
    .comparison-table th:not(:first-child),
    .comparison-table td:not(:first-child) {
        position: static !important;
    }

    /* CTA buttons - ensure no transforms on mobile */
    .comparison-table a {
        transition: none !important;
    }

    .comparison-table a:hover,
    .comparison-table a:active {
        transform: none !important;
    }

    /* Disable any gradient animations or effects */
    .comparison-table [style*="background: linear-gradient"] {
        animation: none !important;
    }
}

/* ========================================
   PRICING PAGE SPECIFIC STYLES
   Merged from pricing.css
   ======================================== */

/* ========== MOBILE FIX - SIMPLIFIED ========== */
@media (max-width: 768px) {
    /* Kill all animations */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    /* Kill transforms on plans */
    .plan, .plan:hover, .plan:active {
        transform: none !important;
    }

    /* Force scroll */
    html, body {
        overflow-y: auto !important;
        height: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Kill Lenis */
    html.lenis, html.lenis body,
    .lenis-smooth, .lenis-stopped {
        overflow: auto !important;
        height: auto !important;
    }

    /* Simplify comparison table */
    .comparison-table {
        min-width: 500px !important;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 6px 8px !important;
        font-size: 11px !important;
    }

    .comparison-table thead {
        position: relative !important;
    }
}
/* ========== END MOBILE FIX ========== */

/* Performance optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-overflow-scrolling: touch;
}

/* Desktop only: smooth scrolling */
@media (min-width: 769px) {
    html {
        scroll-behavior: smooth;
    }
}

/* Reduce repaints */
body {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Optimize Alpine.js animations */
[x-cloak] {
    display: none !important;
}

/* Use GPU acceleration for collapse animations - Desktop only */
@media (min-width: 769px) {
    [x-collapse] {
        transform: translateZ(0);
        will-change: height, opacity;
    }
}

/* Toggle Slider States - Using CSS classes instead of inline styles */
#toggle-slider {
    transition: transform 0.3s ease;
}

#toggle-slider.slider-monthly {
    transform: translateX(0);
}

#toggle-slider.slider-yearly-ltr {
    transform: translateX(calc(100% + 8px));
}

#toggle-slider.slider-yearly-rtl {
    transform: translateX(calc(-100% - 8px));
}

/* Toggle option text color states */
.toggle-option {
    color: #6b7280;
    transition: color 0.3s ease;
}

.toggle-option.active {
    color: #ffffff;
}

/* Free Plan States - Using CSS classes instead of inline styles */
.plan.plan-visible {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    height: auto;
}

.plan.plan-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}

/* FAQ Styles */
.faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .faq-items {
        gap: 1rem;
    }
}

.faq-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(97, 58, 150, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-item:hover {
    border-color: #613A96;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(97, 58, 150, 0.18), 0 6px 16px rgba(0, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
    transition: all 0.3s ease;
}

html[dir="ltr"] .faq-question {
    text-align: left;
}

.faq-question:hover {
    background: rgba(97, 58, 150, 0.02);
}

.faq-question.active {
    background: linear-gradient(135deg, rgba(97, 58, 150, 0.05), rgba(237, 44, 133, 0.05));
}

.faq-question-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #24223E;
    flex: 1;
    line-height: 1.5;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: #613A96;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

@media (min-width: 1024px) {
    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-question-text {
        font-size: 1.05rem;
    }

    .faq-icon {
        width: 22px;
        height: 22px;
    }
}

.faq-answer {
    padding: 0 1.25rem 1rem 1.25rem;
    border-top: 1px solid rgba(97, 58, 150, 0.08);
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    margin: 1rem 0 0 0;
    font-size: 0.9rem;
}

@media (min-width: 1024px) {
    .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
        margin-top: 1rem;
    }
}

/* Comparison Table Styles - NO sticky */
.comparison-table thead {
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* NO STICKY - Everything scrolls normally */
.comparison-table th:first-child,
.comparison-table td:first-child {
    position: relative !important;
}

/* Desktop - Normal scrolling */
@media (min-width: 769px) {
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: relative !important;
    }
}

/* Mobile - Normal scrolling (NO sticky) */
@media (max-width: 768px) {
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: relative !important;
    }
}

.comparison-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.comparison-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(97, 58, 150, 0.04), rgba(237, 44, 133, 0.04));
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(97, 58, 150, 0.08);
}

.comparison-table tbody tr.category-row {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 700;
}

.comparison-table tbody tr.category-row:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: none;
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Use CSS containment for better performance */
    .comparison-table {
        contain: layout style paint;
    }

    /* Optimize transforms and opacity changes */
    .comparison-table tbody tr {
        will-change: auto;
    }

    /* Disable Alpine animations in comparison table on mobile */
    .comparison-table [x-collapse] {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
        transition: none !important;
        animation: none !important;
    }

    /* CRITICAL FIX: Remove sticky completely on mobile - causes RTL freeze */
    .comparison-table tbody tr.category-row {
        position: relative !important;
    }

    .comparison-table tbody tr.category-row td:first-child {
        position: relative !important;
        background: #f8f9fa !important;
    }

    .comparison-table tbody tr.category-row:hover td:first-child {
        background: #f8f9fa !important;
    }

    /* Disable hover effects on mobile for better performance */
    .comparison-table tbody tr:hover {
        background: transparent !important;
        transform: none !important;
    }

    /* Simplify gradients on mobile - use solid colors */
    .comparison-table tbody tr.category-row td:first-child {
        background: #f8f9fa !important;
    }

    /* Disable shadows on mobile */
    .comparison-table thead,
    .comparison-table tbody tr.category-row {
        box-shadow: none !important;
    }

    /* Disable transitions on mobile */
    .comparison-table tbody tr,
    .comparison-table tbody tr * {
        transition: none !important;
    }

    /* Add containment to table rows */
    .comparison-table tbody tr {
        contain: layout style;
    }

    /* Reduce table size on mobile */
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .comparison-table thead th {
        font-size: 0.8rem !important;
    }

    /* Reduce category row size */
    .comparison-table tbody tr.category-row td {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.8rem !important;
    }

    /* Smaller min-width for table */
    .comparison-table {
        min-width: 600px !important;
    }
}

/* Desktop - Normal scrolling, NO sticky */
@media (min-width: 769px) {
    /* Ensure NO sticky on desktop */
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: relative !important;
        right: auto !important;
        left: auto !important;
        z-index: auto !important;
    }
}

/* Category row styling - Simple, NO sticky */
.category-row {
    user-select: none;
    background: #f3f4f6;
    position: relative !important;
}

.category-row td {
    cursor: pointer;
    background: #f3f4f6;
}

/* CTA buttons - Desktop hover effects only */
@media (min-width: 769px) and (hover: hover) {
    .comparison-table a[href]:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(97, 58, 150, 0.4) !important;
    }

    .comparison-table a[href*="contact"]:hover,
    .comparison-table a[href*="packages-form"]:hover {
        box-shadow: 0 6px 20px rgba(237, 44, 133, 0.4) !important;
    }
}

/* Prevent text wrapping in table cells for mobile */
.comparison-table th,
.comparison-table td {
    white-space: nowrap;
}

.plan__price .original-price {
    text-decoration: line-through;
    margin-bottom: 0.25rem;
    display: block;
    font-size: 0.875rem;
    opacity: 0.6;
}

.grid-cols-3 {
    grid-template-columns: 3 !important;
}

/* Discount badges */
.discount.color-1 {
    background: #613a96 !important;
    color: white !important;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 6px;
    box-shadow: 0 4px 6px -1px rgba(97, 58, 150, 0.3) !important;
    transition: all 0.3s ease;
    direction: ltr !important;
    unicode-bidi: embed !important;
}

.discount.color-2 {
    background: #613a96 !important;
    color: white !important;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 6px;
    box-shadow: 0 4px 6px -1px rgba(97, 58, 150, 0.3) !important;
    transition: all 0.3s ease;
    direction: ltr !important;
    unicode-bidi: embed !important;
}

.discount.color-3 {
    background: #8B5CF6;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 6px;
    box-shadow: 0 4px 6px -1px rgba(139, 92, 246, 0.3);
}

.plan__features-icon {
    flex-shrink: 0
}

.vat-note {
    display: block;
    font-size: 11px !important;
    font-weight: 300 !important;
    margin-top: 6px !important;
}

/* Riyal Symbol Styling */
.plan__price img[alt="ر.س"] {
    display: inline-block;
    height: 0.8em;
    width: auto;
    vertical-align: baseline;
    margin: 0 2px;
}

/* Savings Note - Simple & Clean */
.savings-note {
    display: block;
    font-size: 11px;
    color: #009FB7;
    font-weight: 500;
    margin-top: 6px;
}

/* Currency symbol styling - Moved to inline in pricing.blade.php for asset() support */

/* ALL HOVER EFFECTS - DESKTOP ONLY (prevents mobile freeze) */
@media (min-width: 769px) and (hover: hover) and (pointer: fine) {
    /* Plan card hover transform */
    .plan:hover {
        transform: translateY(-4px) scale(1.015) !important;
        box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.08) !important;
        border-color: #613a96 !important;
    }

    /* Discount badge hover */
    .plan:hover .discount {
        background: white !important;
        color: #613a96 !important;
        box-shadow: 0 4px 6px -1px rgba(255, 255, 255, 0.3) !important;
    }

    /* Savings note hover */
    .plan:hover .savings-note {
        color: white;
        opacity: 0.9;
    }
}

/* Plan card styling - matching library/blog cards */
.plan {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border: 2px solid #613a96 !important; /* Purple border */
    border-radius: 0.75rem !important;
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.05) !important;
}

/* Desktop only - enable transitions */
@media (min-width: 769px) {
    .plan {
        transition: all 0.3s ease !important;
    }
}

/* Mobile - NO transitions to prevent freeze */
@media (max-width: 768px) {
    .plan {
        transition: none !important;
    }
}

.plan > div {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.plan__btn {
    margin-top: auto !important;
    flex-shrink: 0 !important;
}

/* Force hide Try plan in yearly mode - overrides all other display rules */
.plan.plan-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Plans container - centered grid that adapts to number of cards */
.plans {
    max-width: 1400px !important;
    gap: 1.5rem !important;
}

/* On large screens, center cards when less than 4 */
@media (min-width: 1024px) {
    .plans {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        justify-content: center !important;
        gap: 1.5rem !important;
    }
}

/* On medium screens, show 2 columns */
@media (max-width: 1023px) and (min-width: 768px) {
    .plans {
        grid-template-columns: repeat(2, 1fr) !important;
        justify-content: center !important;
    }
}
