.top-img{
  position: relative;
  z-index: 1;
}

.bottom-img{
  position: relative;
  z-index: 2;
  margin-top: -40px;
}
.form-section{
 background: #fff;
    border-radius: 18px;
}

.desktop-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100% !important;
    z-index: 99999 !important;
    background: #00215e !important;
}

.mobile-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100% !important;
    z-index: 99999 !important;
    background: #00215e !important;
}

.icon-btn:hover,
.icon-btn:active {
    background-color: #ca524a !important;
    transform: scale(1.08); /* slightly enlarges on hover */
}



.header-text {
    background: linear-gradient(
        100deg,
        #B11563 -24.78%,
        #F44C7F 10.93%,
        #EBA900 76.35%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai_at_ruby_container {
    background: linear-gradient(30deg, #1F2D7E 36.8%, #00AEEF 106.91%, #A2D9E7 130.39%);
    background-size: 250% 250%;
    animation: smoothBlueGradient 15s ease-in-out infinite;
}
.ruby-promocode-banner {
    background: linear-gradient(120deg, #B11563, #F44C7F, #8A2BE2, #3401B5, #B11563);
    background-size: 300% 300%;
    animation: premiumGradient 15s ease-in-out infinite;
}

@keyframes premiumGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-border-row {
    position: relative;
    border-radius: 18px;
    overflow: hidden;

    /* Background gradient */
    background: linear-gradient(
        130deg,
        #1F2D7E 36.8%,
        #00AEEF 106.91%,
        #A2D9E7 130.39%
    );

    background-size: 250% 250%;
    animation: smoothBlueGradient 15s ease-in-out infinite;
}

.gradient-border-row::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 6px; /* Border thickness */
    border-radius: 18px;

    background: linear-gradient(
        120deg,
        #B11563,
        #F44C7F,
        #8A2BE2,
        #3401B5,
        #B11563
    );

    background-size: 300% 300%;
    animation: premiumGradient 15s ease-in-out infinite;

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

@keyframes premiumGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes smoothBlueGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-border-only {
    position: relative;
    padding: 2px;
    border-radius: 22px;

    background: linear-gradient(
        120deg,
        #B11563,
        #F44C7F,
        #8A2BE2,
        #3401B5,
        #B11563
    );

    background-size: 300% 300%;
    animation: premiumGradient 8s ease infinite;

    /* Soft outer glow */
    box-shadow:
        0 0 10px rgba(138, 43, 226, 0.45),
        0 0 20px rgba(177, 21, 99, 0.35),
        0 0 35px rgba(52, 1, 181, 0.25);

    overflow: visible;
}

/* Glow layer */
.gradient-border-only::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 26px;

    background: linear-gradient(
        120deg,
        #B11563,
        #F44C7F,
        #8A2BE2,
        #3401B5,
        #B11563
    );

    background-size: 300% 300%;
    animation: premiumGradient 8s ease infinite;

    filter: blur(14px);
    opacity: 0.65;
    z-index: -1;
}

/* Inner content area */
.gradient-border-only > div {
    background: #EDE3F3;
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    position: relative;
    z-index: 2;
}

@keyframes premiumGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.active-card {
    position: relative;
    z-index: 10;

    transform: scale(1.03);

    box-shadow:
        0 0 20px rgba(138, 43, 226, 0.35),
        0 0 40px rgba(177, 21, 99, 0.25),
        0 0 60px rgba(52, 1, 181, 0.18);
}

.feature-parent {
    position: relative;
    overflow: visible !important;
}

/* Floating popup card */
.floating-card {
    position: absolute !important;

    top: 38%;
    right: -30px;

    z-index: 99;

    padding: 16px;
    border-radius: 22px;

    background: rgba(30, 20, 40, 0.88);

    backdrop-filter: blur(16px);

    border: 1px solid rgba(255,255,255,0.08);

    box-shadow:
        0 0 20px rgba(180, 80, 255, 0.45),
        0 12px 40px rgba(0,0,0,0.35);

    animation: floatCard 4s ease-in-out infinite;

    display: inline-block;
}

/* Why Ruby card */
.why-box {
    padding: 42px 42px !important;
    box-sizing: border-box;
}

/* AI learn more button */
.AI-button {
  position: relative;
  z-index: 5000;
}