.pricing {
    width: 100%;
    padding: 90px 0 110px;
    color: #f9fafb;
    font-family: "DM Sans", sans-serif;
}

.pricing-inner {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.pricing-title {
    font-size: 64px;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 24px;
}

/* TABS */

.pricing-tabs {
    display: inline-flex;
    padding: 8px;
    border-radius: 10px;
    background: rgba(23, 23, 25, 0.5);
    box-shadow: 0 22px 50px rgba(0,0,0,0.9);
    margin-bottom: 40px;
    gap: 12px;
    width: fit-content;
}

.pricing-tab {
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    background: transparent;
    color: #9ca3af;
    transition: 0.18s ease;
    position: relative;
    white-space: nowrap;
}

.pricing-tab.active::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; 

  background: conic-gradient(
    from 0deg,
    rgba(64,64,64,0.5),
    rgba(64,64,64,0.35),
    rgba(255,255,255,0.5),
    rgba(255,255,255,0.5),
    rgba(64,64,64,0.35),
    rgba(249,249,249,1),
    rgba(255,255,255,0.5),
    rgba(249,249,249,0.5),
    rgba(64,64,64,0.35)
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  pointer-events: none;
  z-index: 2;
}

.pricing-tab.active{
  color:#fff;
  background:rgba(144,0,255,1);
  box-shadow:
    0 0 12px rgba(144,0,255,.66),
    0 0 26px rgba(144,0,255,.48),
    0 0 52px rgba(144,0,255,.36);
}




/* LAYOUT */

.pricing-groups {
    margin-top: 6px;
}

.pricing-group {
    display: none;
}

.pricing-group.active {
    display: block;
}

.pricing-cards {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: end;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

/* WSPÓLNE WNĘTRZE KARTY */

.pricing-card-inner {
    background: rgba(23, 23, 25, 0.5);
    border-radius: 28px;
    border: 1px solid rgba(39, 40, 41, 1);
    padding: 20px 26px 20px;
    text-align: left;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 525px;
    max-height: 535px;
    width: 365px;
}

/* HEADER KARTY */

.pricing-card-header {
    margin-top: 4px;
}

.pricing-card-tag {
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
}

.pricing-card-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.pricing-price-number {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
}

.pricing-price-currency {
    font-size: 32px;
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
}

.pricing-price-period {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(48, 48, 48, 1);
    color: rgba(145, 145, 145, 1);
}

.pricing-card-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(118, 118, 119, 1);
    max-width: 280px;
}

/* PRZYCISK */

.pricing-card-cta {
    margin-top: 22px;
}

.pricing-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    color: rgba(129, 129, 130, 1);
    background: rgba(39, 41, 42, 1);
    border: 1px solid rgba(74, 74, 74, 1);
    transition: 0.2s ease;
}

.pricing-card-btn:hover {
    background: rgba(31,41,55,1);
}

/* LISTA PARAMETRÓW */

.pricing-card-features {
    margin-top: 24px;
}

.pricing-features-title {
    font-size: 14px;
    color: rgba(116, 116, 116, 1);
    margin-bottom: 12px;
}

.pricing-card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-card-features li {
    font-size: 16px;
    color: rgba(190, 190, 190, 1);
    position: relative;
    display: flex;
    align-items: center;
}

.pricing-card-features li .feature-star {
    margin-right: 8px;
}

/* kontener ikonki (KOŁO) */
.pricing-card-icon{
  width: 45px;
  height: 45px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(51, 51, 51, 1);
  border: 1px solid rgba(71, 71, 71, 1);
}

.pricing-card-promoted .pricing-card-icon{
    background: rgba(144, 0, 255, 1);
    border: none;
    position: relative;
}

.pricing-card-promoted .pricing-card-icon::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.01px;

  background: conic-gradient(
    from 0deg,
    rgba(110,110,110,0.9),
    rgba(110,110,110,0.65),
    rgba(255,255,255,0.85),
    rgba(255,255,255,0.85),
    rgba(110,110,110,0.65),
    rgba(255,255,255,1),
    rgba(255,255,255,0.85),
    rgba(200,200,200,0.75),
    rgba(110,110,110,0.65)
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  pointer-events: none;
  z-index: 2;
}



.pricing-card-icon img{
  width: 18px;
  height: 18px;
}




.pricing-card-title-row{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}


/* PROMOWANA ŚRODKOWA OFERTA */

.pricing-card-promoted .pricing-shell{
  background: linear-gradient(
  to bottom,
  rgba(130,0,210,1) 0%,
  rgba(58,0,120,1) 30%,
  rgba(42,0,92,1) 55%,
  rgba(58,0,120,1) 80%,
  rgba(130,0,210,1) 100%
);
  border-radius: 34px;
  padding: 12px 8px 8px;
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  overflow: visible;
  box-shadow:
    0 0 40px  rgba(168,85,247,.15),
    0 0 90px  rgba(168,85,247,.10),
    0 0 160px rgba(129,140,248,.25),
    0 0 280px rgba(129,140,248,.10),
    0 60px 220px rgba(168,85,247,.45);
}



.pricing-tab.active::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; 

  background: conic-gradient(
    from 0deg,
    rgba(64,64,64,0.5),
    rgba(64,64,64,0.35),
    rgba(255,255,255,0.5),
    rgba(255,255,255,0.5),
    rgba(64,64,64,0.35),
    rgba(249,249,249,1),
    rgba(255,255,255,0.5),
    rgba(249,249,249,0.5),
    rgba(64,64,64,0.35)
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  pointer-events: none;
  z-index: 2;
}

@property --angle{
  syntax: "<angle>";
  inherits: false;
  initial-value: 30deg;
}

.pricing-card-promoted .pricing-shell{
  position: relative;
}

.pricing-card-promoted .pricing-shell::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  padding:1.2px;
  background: conic-gradient(
    from var(--angle),
    rgba(64,64,64,0.5),
    rgba(64,64,64,0.35),
    rgba(255,255,255,0.5),
    rgba(255,255,255,0.5),
    rgba(64,64,64,0.35),
    rgba(249,249,249,1),
    rgba(255,255,255,0.5),
    rgba(249,249,249,0.5),
    rgba(64,64,64,0.35)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
          mask-composite:exclude;
  pointer-events:none;
  z-index:2;
  animation: neon-angle 10s linear infinite;
}

@keyframes neon-angle{
  from{ --angle: 30deg; }
  to{ --angle: 390deg; }
}

.pricing-shell-header {
    position: relative;
    z-index: 1;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 1);
    text-align: center;
    padding: 10px 0 16px;
}

.pricing-card-promoted .pricing-card-inner {
    position: relative;
    z-index: 1;
    background: #131416;
    border-radius: 26px;
    padding: 20px 26px 20px;
    min-height: 360px;
    box-shadow: 0 18px 70px rgba(15,23,42,0.95);
}

/* Neonowy przycisk w promowanej karcie */

.pricing-card-promoted .pricing-card-btn.primary{
  position: relative;
  z-index: 1;
  overflow: visible;
  background: rgba(144,0,255,1);
  color:#fff;
  border-color: transparent;
  padding:14px 20px;
  box-shadow:
    0 0 14px  rgba(144,0,255,.70),
    0 0 30px  rgba(144,0,255,.55),
    0 0 70px  rgba(144,0,255,.45),
    0 0 140px rgba(144,0,255,.35),
    0 0 260px rgba(144,0,255,.25),
    inset 0 0 18px rgba(255,255,255,.18);
}

.pricing-card-promoted .pricing-card-btn.primary:hover{
  box-shadow:
    0 0 18px  rgba(144,0,255,.85),
    0 0 40px  rgba(144,0,255,.70),
    0 0 90px  rgba(144,0,255,.55),
    0 0 180px rgba(144,0,255,.42),
    0 0 320px rgba(144,0,255,.30),
    inset 0 0 22px rgba(255,255,255,.22);
  transform: translateY(-1px) scale(1.015);
}



.pricing-card-promoted .pricing-card-btn.primary::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px; 

  background: conic-gradient(
    from 0deg,
    rgba(64,64,64,0.5),
    rgba(64,64,64,0.35),
    rgba(255,255,255,0.5),
    rgba(255,255,255,0.5),
    rgba(64,64,64,0.35),
    rgba(249,249,249,1),
    rgba(255,255,255,0.5),
    rgba(249,249,249,0.5),
    rgba(64,64,64,0.35)
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  pointer-events: none;
  z-index: 2;
}

/* RESPONSYWNOŚĆ */

@media (max-width: 1192px) {
    .pricing-title {
        font-size: 32px;
    }

    .pricing-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .pricing-card-inner {
        min-height: 0;
    }

    .pricing-card-promoted .pricing-shell {
        padding: 10px 10px 14px;
    }
}

@media (max-width: 868px) {
    .pricing {
        padding: 70px 0 80px;
    }

    .pricing-inner {
        padding: 0 16px;
    }

    .pricing-title {
        font-size: 26px;
    }

    .pricing-tabs {
        width: fit-content;
        max-width: fit-content;
        justify-content: center;
        overflow-x: auto;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pricing-card-inner {
        padding: 26px 20px 24px;
    }

    .pricing-card-promoted .pricing-shell {
        padding: 10px;
    }
}

@media (max-width: 400px) {
    .pricing-card-inner {
        width: 320px;
    }
}