/* ==============================================================
   Model 1: Blue Glassmorphism (Adapted for Dark Mode)
   ============================================================== */
.pm1-bg {
    background: radial-gradient(circle at top center, rgba(16, 35, 78, 1) 0%, rgba(6, 20, 44, 1) 100%);
    color: #ffffff;
    padding: 6rem 1.5rem;
    position: relative;
    z-index: 10;
}

.pm1-header-container {
    text-align: center;
    margin-bottom: 4rem;
}

.pm1-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: -0.025em;
}

.pm1-subtitle {
    font-size: 1.125rem;
    color: rgba(191, 219, 254, 0.6);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.625;
}

.pm1-toggles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pm1-toggle-container {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
}

.pm1-toggle-btn {
    padding: 8px 24px;
    border-radius: 9999px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pm1-toggle-btn small {
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 2px 6px;
    border-radius: 12px;
}

.pm1-toggle-btn.is-active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.pm1-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media(min-width: 768px) {
    .pm1-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        align-items: center;
        justify-content: center;
    }
}

.pm1-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    transition: transform 200ms cubic-bezier(0.2, 0, 0, 1), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1;
    cursor: pointer;
}

/* Entrance Animation for Cards */
@keyframes pm1FadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pm1-card-animate {
    animation: pm1FadeUp 0.6s cubic-bezier(0.2, 0, 0, 1) both;
}
.pm1-card-animate:nth-child(1) { animation-delay: 0.05s; }
.pm1-card-animate:nth-child(2) { animation-delay: 0.15s; }
.pm1-card-animate:nth-child(3) { animation-delay: 0.25s; }
.pm1-card-animate:nth-child(4) { animation-delay: 0.35s; }

/* Subtle pulsing glow for the highlighted card */
@keyframes pm1PulseGlow {
    0%, 100% { box-shadow: 0 0 40px -10px rgba(59, 130, 246, 0.5); }
    50% { box-shadow: 0 0 60px -5px rgba(59, 130, 246, 0.8); }
}

/* When the container is not hovered, the featured card gets the highlight */
.pm1-cards:not(:hover) .pm1-card.highlight {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 40px -10px rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
    z-index: 10;
    animation: pm1PulseGlow 3s infinite ease-in-out;
}

/* When any card is hovered, it gets the highlight (but no pulse to avoid distraction) */
.pm1-card:hover {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 40px -10px rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
    z-index: 10;
}

.pm1-plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 99px;
    white-space: nowrap;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.pm1-plan-name { width: 100%; font-size: 1.25rem; font-weight: 500; color: #fff; text-align: center; }
.pm1-price { width: 100%; font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: baseline; gap: 8px; direction: rtl; justify-content: center; text-align: center; }
.pm1-price small { font-size: 1rem; font-weight: 400; color: rgba(255, 255, 255, 0.6); }
.pm1-desc { width: 100%; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); line-height: 1.6; margin-bottom: 24px; min-height: 42px; text-align: center; }

.pm1-btn {
    background: #ffffff;
    color: #06142c !important;
    border-radius: 999px;
    padding: 12px;
    font-weight: 600;
    text-align: center;
    width: 100%;
    transition: transform 150ms cubic-bezier(0.2, 0, 0, 1), opacity 150ms ease, background-color 150ms ease, color 150ms ease;
    margin-bottom: 32px;
    text-decoration: none;
    display: inline-block;
    align-self: stretch;
}

.pm1-btn:hover { opacity: 0.9; transform: scale(0.98); }

.pm1-features { width: 100%; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pm1-features li { width: 100%; display: flex; align-items: flex-start; justify-content: center; gap: 12px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.8); line-height: 1.5; text-align: center; }
.pm1-features li svg { width: 18px; height: 18px; color: #3b82f6; flex-shrink: 0; margin-top: 2px; }

/* ==============================================================
   Comparison Table Styles (Model 1)
   ============================================================== */
.pm1-comparison {
    margin-top: 6rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pm1-comparison-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    text-align: center;
    gap: 1rem;
}

.pm1-comparison-heading h3 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.pm1-comparison-heading span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 99px;
}

.pm1-table-scroll {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    -webkit-overflow-scrolling: touch;
}

.pm1-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    min-width: 600px;
}

.pm1-table th:first-child,
.pm1-table td:first-child {
    text-align: right;
}

.pm1-table th {
    font-weight: 600;
    color: #fff;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.pm1-table tbody tr {
    transition: background-color 0.15s ease;
}
.pm1-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.pm1-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

.pm1-table tbody tr:last-child td {
    border-bottom: none;
}

/* The highlighted column */
.pm1-table th.is-highlight,
.pm1-table td.is-highlight {
    background: rgba(59, 130, 246, 0.08);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    .pm1-card-animate { animation: none !important; opacity: 1 !important; transform: none !important; }
    .pm1-card { transition: none !important; }
    .pm1-cards:not(:hover) .pm1-card.highlight { animation: none !important; }
}
