.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    --white: hsl(0, 0%, 100%);
    --black: hsl(240, 15%, 9%);
    --paragraph: hsl(0, 0%, 83%);
    --line: hsl(240, 9%, 30%);
    --primary: hsl(250, 70%, 60%);
    --background: hsl(250, 30%, 20%);
    
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    width: 19rem;
    background-color: #17171B;
    border-radius: 1rem;
    flex: 1 1 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.popular-banner {
    position: absolute;
    top: -10px;
    left: 10px;
    padding: 5px 10px;
    background-color: #ff4d4d;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.original-price {
    font-size: 1.5rem;
    color: #d3d3d3;
    text-decoration: line-through;
    margin-right: -5px;
    letter-spacing: 1px;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.card-details {
    margin-left: 15px;
}

.card-details-ul {
    margin-left: 30px;
    display: flex;
    flex-direction: row;
    gap: 8rem;
}

.feature-group {
    display: flex;
    flex-direction: column;
}

.card-details p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}
.card-details-ul p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.card .card__border {
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    z-index: -10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    background: #0d0d0d;
    border-radius: 1rem;
}

.card .card__border::before {
    content: "";
    pointer-events: none;
    position: fixed;
    z-index: 200;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: left;
    width: 200%;
    height: 10rem;
    background-image: linear-gradient(0deg, hsla(250, 100%, 30%, 0) 0%, hsl(250, 100%, 50%) 40%, hsl(250, 100%, 50%) 60%, hsla(250, 40%, 0, 0) 100%);
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.card .card_title__container {
    text-align: center;
}

.card .card_title__container .card_title {
    font-size: 1.5rem;
    color: var(--white);
}

.card .card_title__container .price {
    margin-top: 0.15rem;
    font-size: 36px;
    font-weight: bold; 
    color: var(--primary);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 1), 0px 0px 4px var(--primary);
    padding: 0.2rem 0.5rem;
}

.card .line {
    width: 100%;
    height: 0.1rem;
    margin-top: -45px;
    background-color: var(--line);
    border: none;
}

.card .button {
  --primary-color: #453c9f;
  --secondary-color: #fff;
  --hover-color: #111;
  --arrow-width: 10px;
  --arrow-stroke: 2px;
  box-sizing: border-box;
  border: 0;
  border-radius: 20px;
  color: var(--secondary-color);
  padding: 1rem 1.8rem;
  height: 3rem;
  background: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  font-weight: bold;
  text-align: center;
  transition: 0.2s background;
}

.card .button .arrow-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card .button .arrow {
  margin-top: 1px;
  width: var(--arrow-width);
  background: var(--primary-color);
  height: var(--arrow-stroke);
  position: relative;
  transition: 0.2s;
}

.card .button .arrow::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  border: solid var(--secondary-color);
  border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
  display: inline-block;
  top: -3px;
  right: 3px;
  transition: 0.2s;
  padding: 3px;
  transform: rotate(-45deg);
}

.card .button:hover {
  background-color: var(--hover-color);
}

.card .button:hover .arrow {
  background: var(--secondary-color);
}

.card .button:hover .arrow:before {
  right: 0;
}

@keyframes gradient-animation_2 {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

#plans {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 20px;
    color: #ffffff;
    min-height: 100vh;
}

#plans h3 {
    font-size: 1.5rem;
    color: #c5c5d1;
    margin-top: 1rem;
    text-align: center;
}

#plans .s2high {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
    text-align: center;
}

@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        align-items: center;
    }
    .card-details-ul {
        margin-left: 10px;
        flex-direction: column;
        gap: 0;
    }
    .card-details-ul p {
        line-height: 1.3;
    }
}
