/**
 * barabd — Premium pricing section background (#pricing)
 * Full-width dark cyber/datacenter — visual only.
 */

.pricing-section--premium {
    position: relative;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
    background: linear-gradient(
        145deg,
        #010508 0%,
        #031018 26%,
        #051828 52%,
        #0a1f38 78%,
        #031018 100%
    );
    padding: 68px 0 80px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pricing-section--premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #39d353 0%, #22c55e 42%, #0d9488 100%);
    z-index: 3;
    pointer-events: none;
}

.pricing-section--premium::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 0% 50%, rgba(57, 211, 83, 0.14), transparent 58%),
        radial-gradient(ellipse 80% 60% at 100% 50%, rgba(37, 99, 235, 0.16), transparent 58%);
    pointer-events: none;
    z-index: 0;
}

.pricing-section-ambient {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.pricing-section-ambient__mesh {
    position: absolute;
    inset: -40%;
    opacity: 0.72;
    background-image:
        radial-gradient(circle at center, rgba(57, 211, 83, 0.22) 1px, transparent 1px),
        linear-gradient(rgba(57, 211, 83, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 28px 28px, 64px 64px, 64px 64px;
    animation: barabdPricingMesh 45s linear infinite;
}

.pricing-section-ambient__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.pricing-section-ambient__blob--1 {
    width: min(60vw, 560px);
    height: min(60vw, 560px);
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.55) 0%, transparent 68%);
    animation: barabdPricingBlob1 22s ease-in-out infinite;
}

.pricing-section-ambient__blob--2 {
    width: min(55vw, 500px);
    height: min(55vw, 500px);
    bottom: -25%;
    left: -12%;
    background: radial-gradient(circle, rgba(57, 211, 83, 0.48) 0%, transparent 70%);
    animation: barabdPricingBlob2 26s ease-in-out infinite;
}

.pricing-section-ambient__blob--3 {
    width: min(40vw, 360px);
    height: min(40vw, 360px);
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(13, 148, 136, 0.28) 0%, transparent 72%);
    animation: barabdPricingBlob3 18s ease-in-out infinite;
}

.pricing-section-ambient__grid {
    position: absolute;
    left: -25%;
    right: -25%;
    bottom: -2%;
    height: 55%;
    transform-origin: 50% 100%;
    transform: perspective(480px) rotateX(70deg);
    background-image:
        linear-gradient(rgba(57, 211, 83, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.12) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 100%);
    animation: barabdPricingGrid 28s linear infinite;
    opacity: 0.9;
}

.pricing-section-ambient__streams span {
    position: absolute;
    top: -15%;
    width: 2px;
    height: 50%;
    background: linear-gradient(180deg, transparent, rgba(57, 211, 83, 0.95), rgba(56, 189, 248, 0.65), transparent);
    border-radius: 2px;
    box-shadow: 0 0 18px rgba(57, 211, 83, 0.55);
    animation: barabdPricingStream 5s linear infinite;
    opacity: 0;
}

.pricing-section-ambient__streams span:nth-child(1) { left: 4%; animation-delay: 0s; }
.pricing-section-ambient__streams span:nth-child(2) { left: 14%; animation-delay: 1.2s; height: 38%; }
.pricing-section-ambient__streams span:nth-child(3) { left: 28%; animation-delay: 2.8s; }
.pricing-section-ambient__streams span:nth-child(4) { left: 42%; animation-delay: 0.5s; height: 42%; }
.pricing-section-ambient__streams span:nth-child(5) { left: 58%; animation-delay: 3.5s; height: 35%; }
.pricing-section-ambient__streams span:nth-child(6) { left: 72%; animation-delay: 1.8s; }
.pricing-section-ambient__streams span:nth-child(7) { left: 86%; animation-delay: 0.9s; height: 45%; }
.pricing-section-ambient__streams span:nth-child(8) { left: 96%; animation-delay: 2.4s; height: 30%; }

.pricing-section-ambient__lanes span {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57, 211, 83, 0.7), rgba(56, 189, 248, 0.5), transparent);
    opacity: 0;
    animation: barabdPricingLane 6s ease-in-out infinite;
}

.pricing-section-ambient__lanes span:nth-child(1) { top: 20%; left: 2%; width: 22%; animation-delay: 0s; }
.pricing-section-ambient__lanes span:nth-child(2) { top: 35%; right: 3%; width: 20%; animation-delay: 1.5s; }
.pricing-section-ambient__lanes span:nth-child(3) { top: 55%; left: 5%; width: 18%; animation-delay: 2.5s; }
.pricing-section-ambient__lanes span:nth-child(4) { top: 70%; right: 6%; width: 24%; animation-delay: 0.8s; }
.pricing-section-ambient__lanes span:nth-child(5) { top: 85%; left: 8%; width: 16%; animation-delay: 3.2s; }

.pricing-section-ambient__packets span {
    position: absolute;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(186, 230, 253, 0.72);
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    animation: barabdPricingPacket 14s linear infinite;
}

.pricing-section-ambient__packets span:nth-child(1) { left: 3%; top: 12%; animation-delay: 0s; }
.pricing-section-ambient__packets span:nth-child(2) { left: 6%; top: 78%; animation-delay: 2s; color: rgba(57, 211, 83, 0.6); }
.pricing-section-ambient__packets span:nth-child(3) { left: 92%; top: 15%; animation-delay: 4s; }
.pricing-section-ambient__packets span:nth-child(4) { left: 95%; top: 72%; animation-delay: 1s; }
.pricing-section-ambient__packets span:nth-child(5) { left: 88%; top: 42%; animation-delay: 3s; color: rgba(57, 211, 83, 0.55); }
.pricing-section-ambient__packets span:nth-child(6) { left: 10%; top: 48%; animation-delay: 5s; }
.pricing-section-ambient__packets span:nth-child(7) { left: 94%; top: 88%; animation-delay: 2.5s; }
.pricing-section-ambient__packets span:nth-child(8) { left: 2%; top: 32%; animation-delay: 4.5s; }

.pricing-section-ambient__nodes span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(57, 211, 83, 0.9);
    box-shadow: 0 0 0 4px rgba(57, 211, 83, 0.15), 0 0 20px rgba(57, 211, 83, 0.5);
    animation: barabdPricingNode 3.5s ease-in-out infinite;
}

.pricing-section-ambient__nodes span::after {
    content: "";
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 50%;
    animation: barabdPricingNodeRing 3.5s ease-out infinite;
}

.pricing-section-ambient__nodes span:nth-child(1) { left: 5%; top: 28%; }
.pricing-section-ambient__nodes span:nth-child(2) { left: 8%; top: 62%; animation-delay: 0.6s; }
.pricing-section-ambient__nodes span:nth-child(3) { left: 93%; top: 25%; animation-delay: 1.2s; background: rgba(56, 189, 248, 0.9); }
.pricing-section-ambient__nodes span:nth-child(4) { left: 96%; top: 58%; animation-delay: 1.8s; }
.pricing-section-ambient__nodes span:nth-child(5) { left: 2%; top: 88%; animation-delay: 0.3s; }
.pricing-section-ambient__nodes span:nth-child(6) { left: 97%; top: 82%; animation-delay: 2.4s; }

.pricing-section-ambient__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(57, 211, 83, 0.6), rgba(56, 189, 248, 0.45), transparent);
    box-shadow: 0 0 20px rgba(57, 211, 83, 0.35);
    opacity: 0.7;
    animation: barabdPricingScan 8s ease-in-out infinite;
}

.pricing-section-ambient__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.pricing-section-ambient__path {
    fill: none;
    stroke: rgba(57, 211, 83, 0.5);
    stroke-width: 1.2;
    stroke-dasharray: 10 16;
    animation: barabdPricingPath 14s linear infinite;
}

.pricing-section-ambient__path--cyan {
    stroke: rgba(56, 189, 248, 0.4);
    animation-duration: 11s;
    animation-direction: reverse;
}

.pricing-section--premium .pricing-section__inner {
    position: relative;
    z-index: 2;
}

/* Title on dark bg */
.pricing-section--premium .pricing-title-cursor-wrap {
    color: #94a3b8;
}

.pricing-section--premium .pricing-title-base {
    color: #64748b;
}

.pricing-section--premium .pricing-title-reveal {
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 45%, #86efac 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.pricing-section--premium .pricing-cursor {
    background: #4ade80;
}

.pricing-section--premium .pricing-title::after {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
}

.pricing-section--premium .pricing-sub,
.pricing-section--premium .pricing-sub-inside {
    color: #94a3b8 !important;
}

.pricing-section--premium .service-detail-link {
    color: #7dd3fc !important;
}

.pricing-section--premium .service-detail-link:hover {
    color: #bae6fd !important;
}

/* Tab bar — glass on dark, full width kept */
.pricing-section--premium .pricing-pill-row-white-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.pricing-section--premium .pricing-pill {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.pricing-section--premium .pricing-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.pricing-section--premium .pricing-pill.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #059669 100%);
    border-color: rgba(57, 211, 83, 0.5);
    color: #fff;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

.pricing-section--premium .pricing-heading-box {
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(57, 211, 83, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Plan cards — bright white on dark */
.pricing-section--premium #pricingCards .plan-card-modern {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(57, 211, 83, 0.08) !important;
}

.pricing-section--premium #pricingCards .plan-card-modern:hover {
    transform: translateY(-10px);
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(57, 211, 83, 0.2),
        0 0 48px rgba(57, 211, 83, 0.12) !important;
}

.pricing-section--premium #pricingCards .plan-card-modern.is-popular {
    border-color: rgba(57, 211, 83, 0.35) !important;
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.38),
        0 0 0 2px rgba(57, 211, 83, 0.2),
        0 0 32px rgba(57, 211, 83, 0.15) !important;
}

@keyframes barabdPricingMesh {
    0% { transform: translate(0, 0); }
    100% { transform: translate(64px, 64px); }
}

@keyframes barabdPricingBlob1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-4%, 6%); }
}

@keyframes barabdPricingBlob2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, -4%); }
}

@keyframes barabdPricingBlob3 {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; transform: translateX(-50%) translateY(3%); }
}

@keyframes barabdPricingGrid {
    0% { background-position: 0 0; }
    100% { background-position: 0 52px; }
}

@keyframes barabdPricingStream {
    0% { top: -20%; opacity: 0; }
    8% { opacity: 0.9; }
    92% { opacity: 0.9; }
    100% { top: 105%; opacity: 0; }
}

@keyframes barabdPricingLane {
    0%, 100% { opacity: 0; transform: scaleX(0.5); }
    45% { opacity: 0.85; transform: scaleX(1); }
}

@keyframes barabdPricingPacket {
    0% { transform: translateY(10px); opacity: 0; }
    12% { opacity: 0.85; }
    88% { opacity: 0.85; }
    100% { transform: translateY(-24px); opacity: 0; }
}

@keyframes barabdPricingNode {
    0%, 100% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes barabdPricingNodeRing {
    0% { transform: scale(0.5); opacity: 0.7; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes barabdPricingScan {
    0%, 100% { top: 10%; opacity: 0; }
    8% { opacity: 0.8; }
    50% { top: 85%; opacity: 0.8; }
    58% { opacity: 0; }
}

@keyframes barabdPricingPath {
    to { stroke-dashoffset: -120; }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-section-ambient__mesh,
    .pricing-section-ambient__blob,
    .pricing-section-ambient__grid,
    .pricing-section-ambient__streams span,
    .pricing-section-ambient__lanes span,
    .pricing-section-ambient__packets span,
    .pricing-section-ambient__nodes span,
    .pricing-section-ambient__scan,
    .pricing-section-ambient__path {
        animation: none !important;
    }
}
