
/* ══════════════════════════════════════════════════════════
   PLAN CARDS — Holographic Pricing (pricing page redesign)
══════════════════════════════════════════════════════════ */

.plan-section {
    background: #070d1c;
    position: relative;
}

/* Animated blobs */
.plan-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}
.plan-blob-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(34,211,238,0.07) 0%, transparent 70%);
    top: -150px; left: -200px;
    animation: planBlob1 14s ease-in-out infinite;
}
.plan-blob-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(167,139,250,0.07) 0%, transparent 70%);
    bottom: -100px; right: -100px;
    animation: planBlob2 11s ease-in-out infinite;
}
.plan-blob-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(251,191,36,0.05) 0%, transparent 70%);
    top: 50%; left: 55%;
    transform: translate(-50%,-50%);
    animation: planBlob3 17s ease-in-out infinite;
}
@keyframes planBlob1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(80px,60px)} }
@keyframes planBlob2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-60px,-80px)} }
@keyframes planBlob3 {
    0%,100%{transform:translate(-50%,-50%) scale(1)}
    50%{transform:translate(-50%,-50%) scale(1.35)}
}

/* Dot grid overlay */
.plan-dot-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    opacity: 0.18;
}

/* ── Billing Toggle ── */
.plan-toggle-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.28);
    transition: color 0.25s;
    letter-spacing: 0.02em;
}
.plan-toggle-label.active { color: rgba(255,255,255,0.9); }
.plan-toggle-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(74,222,128,0.13);
    color: #4ade80;
    letter-spacing: 0.05em;
    margin-left: 6px;
}
.plan-toggle-switch {
    position: relative;
    width: 48px; height: 26px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    flex-shrink: 0;
}
.plan-toggle-switch.active {
    background: rgba(34,211,238,0.18);
    border-color: rgba(34,211,238,0.4);
}
.plan-toggle-knob {
    position: absolute;
    left: 4px; top: 4px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), background 0.3s, box-shadow 0.3s;
}
.plan-toggle-switch.active .plan-toggle-knob {
    transform: translateX(22px);
    background: var(--led-teal);
    box-shadow: 0 0 10px rgba(34,211,238,0.7);
}

/* ── Plan Card ── */
@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 22px 22px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(13,22,48,0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: transform 0.3s cubic-bezier(.34,1.1,.64,1), box-shadow 0.3s;
    will-change: transform;
    overflow: visible;
}

.plan-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(var(--pc-rgb,255,255,255),0.04) 0%, transparent 55%);
    pointer-events: none;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 70px rgba(var(--pc-rgb,30,58,95),0.28), 0 0 0 1px rgba(var(--pc-rgb,30,58,95),0.18);
}

/* Popular — rotating conic border */
.plan-card--popular {
    transform: translateY(-6px) scale(1.035);
    background:
        linear-gradient(rgba(11,20,45,0.92), rgba(11,20,45,0.92)) padding-box,
        conic-gradient(from var(--border-angle),
            transparent 25%,
            rgba(34,211,238,0.9) 40%,
            rgba(167,139,250,0.7) 55%,
            rgba(34,211,238,0.9) 70%,
            transparent 85%
        ) border-box;
    border: 1.5px solid transparent;
    animation: rotatePlanBorder 4s linear infinite;
}
.plan-card--popular:hover {
    transform: translateY(-14px) scale(1.035);
    box-shadow: 0 32px 80px rgba(34,211,238,0.22), 0 0 40px rgba(34,211,238,0.1);
}
@keyframes rotatePlanBorder { to { --border-angle: 360deg; } }

/* Popular badge */
.plan-popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    background: linear-gradient(90deg, #0891b2, #22d3ee 50%, #0891b2);
    background-size: 200% auto;
    animation: badgeShimmer 3s linear infinite;
    color: #000;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 0 24px rgba(34,211,238,0.45);
    text-transform: uppercase;
}
@keyframes badgeShimmer { to { background-position: 200% center; } }

/* Colored top accent bar */
.plan-top-bar {
    position: absolute;
    top: 0; left: 28px; right: 28px;
    height: 2px;
    background: var(--pc, #6b7fa3);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 14px rgba(var(--pc-rgb,107,127,163),0.7);
}

/* Header */
.plan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 10px;
    margin-bottom: 18px;
}
.plan-unit-label {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.18);
    padding-top: 3px;
}
.plan-title {
    font-size: 19px;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    letter-spacing: -0.01em;
}

/* Price */
.plan-price-wrap { margin-bottom: 18px; }
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    line-height: 1;
}
.plan-price-val {
    font-family: var(--mono);
    font-size: 38px;
    font-weight: 800;
    color: var(--pc, #6b7fa3);
    text-shadow: 0 0 28px rgba(var(--pc-rgb,107,127,163),0.5);
    letter-spacing: -0.04em;
}
.plan-price-cur {
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--pc, #6b7fa3);
    opacity: 0.65;
    margin-bottom: 2px;
}
.plan-price-period {
    font-size: 10px;
    color: rgba(255,255,255,0.28);
    margin-top: 5px;
    font-family: var(--mono);
    letter-spacing: 0.04em;
}

/* 2x2 stats grid */
.plan-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.05);
}
.plan-stat {
    background: rgba(255,255,255,0.025);
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.plan-stat-key {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
}
.plan-stat-val {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    line-height: 1.3;
}

/* Divider */
.plan-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin-bottom: 16px;
}

/* Features */
.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex: 1;
    margin-bottom: 20px;
}
.plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.45;
}
.plan-feature svg {
    color: var(--pc, #6b7fa3);
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 0 3px rgba(var(--pc-rgb,107,127,163),0.6));
}

/* CTA */
.plan-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid rgba(var(--pc-rgb,107,127,163),0.35);
    background: rgba(var(--pc-rgb,107,127,163),0.07);
    color: var(--pc, #6b7fa3);
    font-family: var(--mono);
}
.plan-btn:hover {
    background: rgba(var(--pc-rgb,107,127,163),0.16);
    border-color: var(--pc, #6b7fa3);
    box-shadow: 0 0 20px rgba(var(--pc-rgb,107,127,163),0.18);
}
.plan-btn--primary {
    background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(8,145,178,0.28));
    border-color: rgba(34,211,238,0.55);
    color: #22d3ee;
    box-shadow: 0 0 22px rgba(34,211,238,0.14);
}
.plan-btn--primary:hover {
    background: linear-gradient(135deg, rgba(34,211,238,0.28), rgba(8,145,178,0.38));
    box-shadow: 0 0 32px rgba(34,211,238,0.28);
    transform: translateY(-1px);
}

/* ── Comparison table (dark) ── */
.plan-compare-section {
    background: #0a1220;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.plan-compare-wrap {
    overflow-x: auto;
}
.plan-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
.plan-compare-table thead th {
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-family: var(--mono);
    color: rgba(255,255,255,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}
.plan-compare-table thead th:first-child { text-align: left; }
.plan-compare-table thead th.col-active { color: var(--led-teal); }
.plan-compare-table tbody td {
    padding: 11px 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-align: center;
}
.plan-compare-table tbody td:first-child { text-align: left; color: rgba(255,255,255,0.5); }
.plan-compare-table tbody tr:last-child td { border-bottom: none; }
.plan-compare-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ── FAQ (dark) ── */
.plan-faq-section { background: #0d1525; }
.plan-faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.plan-faq-item.open { border-color: rgba(34,211,238,0.2); }
.plan-faq-btn {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.2s;
}
.plan-faq-btn:hover { color: white; }
.plan-faq-icon {
    width: 18px; height: 18px;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(.34,1.2,.64,1), color 0.2s;
}
.plan-faq-body {
    display: none;
    padding: 14px 20px 18px;
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255,255,255,0.38);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.plan-faq-item.open .plan-faq-icon { transform: rotate(180deg); color: var(--led-teal); }
.plan-faq-item.open .plan-faq-body { display: block; }
.plan-faq-item.open .plan-faq-btn { color: white; }

/* штатный vs аутсорсинг table */
.compare-vs-table {
    width: 100%;
    border-collapse: collapse;
}
.compare-vs-table thead th {
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
}
.compare-vs-table thead th:first-child { text-align: left; }
.compare-vs-table thead th.vs-winner { color: var(--teal); }
.compare-vs-table tbody td {
    padding: 13px 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
}
.compare-vs-table tbody td:first-child { text-align: left; }
.compare-vs-table tbody td.vs-winner { color: var(--teal); font-weight: 600; }
.compare-vs-table tbody tr:last-child td { border-bottom: none; }
