/* ========================================
   GLOBAL FIXES
   ======================================== */
/* Prevent horizontal scrollbar caused by Bootstrap grid negative margins
   and background decorative elements */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.datacenter-carousel-outer {
    overflow: hidden;
    width: 100%;
    margin-bottom: 24px;
}

.datacenter-carousel {
    /* acts as container for two inline tracks; transform is used to animate */
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.datacenter-track {
    display: flex;
    gap: 28px;
    align-items: center;
}

.datacenter-inner {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
}

.datacenter-track .location-box,
.datacenter-carousel>.location-box {
    min-width: 180px;
    max-width: 220px;
    flex: 0 0 auto;
    margin-bottom: 0;
}

/* Hide native scrollbars but keep scrolling via JS */
.datacenter-carousel {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.datacenter-carousel::-webkit-scrollbar {
    display: none;
}

/* Visual affordance: change cursor and pause hint */
.datacenter-carousel:hover {
    cursor: grab;
}

.datacenter-carousel:active {
    cursor: grabbing;
}

/* Modern Web Hosting Design Styles */

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

/* When top bar is fixed, keep it above the nav */
.top-bar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
}

.top-bar-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.top-bar-item i {
    font-size: 12px;
}

.top-bar-right {
    text-align: right;
}

.top-bar-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .top-bar {
        text-align: center;
    }

    .top-bar-left {
        justify-content: center;
    }

    .top-bar-right {
        text-align: center;
        margin-top: 10px;
    }
}

/* ========================================
   MODERN NAVIGATION
   ======================================== */
.navbar-modern {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

/* Fixed navbar appearance and stacking */
.navbar-modern.fixed-top {
    position: fixed !important;
    /* top is controlled dynamically by JS so the navbar sits under the top-bar */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1050;
}

.navbar-placeholder {
    height: 0px;
    width: 100%;
}

.navbar-modern .navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    display: flex;
    align-items: center;
}

.navbar-modern .navbar-brand i {
    font-size: 28px;
}

.navbar-modern .nav-link {
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.navbar-modern .nav-link:hover {
    color: #667eea;
}

.navbar-modern .dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.navbar-modern .dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.navbar-modern .dropdown-item:hover {
    background: #667eea;
    color: white;
}

/* ========================================
   HERO SECTION
   ======================================== */
.modern-hero {
    background: linear-gradient(180deg, #07102a 0%, #07132a 35%, #0a234a 100%);
    padding: 120px 0 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
    /* revert to a normal hero background */
}

.modern-hero::before {
    /* soft radial highlight on the right */
    content: '';
    position: absolute;
    right: -10%;
    top: 5%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at 70% 20%, rgba(77, 115, 255, 0.22) 0%, rgba(59, 130, 246, 0.10) 18%, rgba(59, 130, 246, 0.04) 34%, transparent 60%);
    pointer-events: none;
    filter: blur(18px);
    mix-blend-mode: screen;
    z-index: 0;
    /* behind pricing */
}

.modern-hero::after {
    /* angled dark band across bottom to match screenshot */
    content: '';
    position: absolute;
    left: -25%;
    right: -25%;
    bottom: -10px;
    /* bring the band slightly higher so pricing card sits nicely on top */
    height: 200px;
    background: linear-gradient(90deg, rgba(5, 12, 45, 0.85) 0%, rgba(6, 20, 63, 0.95) 60%, rgba(8, 26, 75, 1) 100%);
    transform: skewY(-8deg);
    transform-origin: top left;
    box-shadow: 0 -18px 40px rgba(5, 12, 45, 0.28);
    pointer-events: none;
    z-index: 0;
    /* ensure this band stays behind the pricing wrapper */
}

.modern-hero svg.background-wave {
    opacity: 0.25;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #ffd54a;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.05;
    color: #ffffff;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.hero-feature-item i {
    color: #4ade80;
}

.hero-illustration {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #333;
    animation: float 3s ease-in-out infinite;
}

/* Hero angled background and social */
.hero-angled {
    position: relative;
}

.hero-angled .hero-shape-left {
    position: absolute;
    bottom: -120px;
    left: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(180deg, rgba(14, 30, 60, 0) 0%, rgba(236, 240, 255, 0.06) 100%);
    transform: skewY(-6deg);
    pointer-events: none;
}

/* hide the dark side panels to avoid dark/black appearance behind pricing */
.hero-angled .hero-shape-left {
    display: none !important;
}

.hero-left {
    position: relative;
    padding-left: 40px;
}

.hero-social {
    position: absolute;
    left: -70px;
    top: 80px;
}

.hero-social li {
    margin-bottom: 16px;
}

.hero-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-social a:hover {
    transform: translateY(-6px);
    background: #111827;
    color: #ffd54a;
}

.hero-illustration-img {
    max-width: 620px;
}

/* Animated hosting illustration (subtle float + slow rotate) */
.animated-icon {
    will-change: transform;
    /* improve performance */
    transform-origin: 50% 50%;
    animation: heroFloat 6s ease-in-out infinite;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.animated-icon:hover {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
    animation-play-state: paused;
    transform: translateY(-6px) scale(1.01);
}

@keyframes heroFloat {
    0% {
        transform: translateY(0px) rotate(0.0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-0.6deg);
    }

    50% {
        transform: translateY(0px) rotate(0.0deg);
    }

    75% {
        transform: translateY(6px) rotate(0.6deg);
    }

    100% {
        transform: translateY(0px) rotate(0.0deg);
    }
}

/* Yellow CTA */
.btn-cta-yellow {
    background: #ffbf24;
    color: #07132a;
    border: none;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 28px;
    box-shadow: 0 10px 30px rgba(255, 191, 36, 0.12);
}

.btn-cta-yellow:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(255, 191, 36, 0.18);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    border-radius: 8px;
}

@media (max-width: 992px) {
    .hero-social {
        display: none;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-illustration-img {
        max-width: 420px;
    }

    .modern-hero {
        padding: 80px 0 40px;
    }
}

/* Diamond-style bottom for hero */
.hero-diamond {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -120px;
    height: 240px;
    pointer-events: none;
    z-index: 0;
    /* diamond sits behind pricing */
}

.hero-diamond::before,
.hero-diamond::after {
    content: '';
    position: absolute;
    top: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(180deg, #eef6ff 0%, #e9f3ff 100%);
}

.hero-diamond::before {
    left: 0;
    transform: skewY(-10deg) translateY(10px);
    transform-origin: top left;
}

.hero-diamond::after {
    right: 0;
    transform: skewY(10deg) translateY(10px);
    transform-origin: top right;
}

.hero-diamond::after,
.hero-diamond::before {
    box-shadow: 0 -24px 48px rgba(6, 18, 48, 0.08);
}

.hero-diamond::after {
    /* central darker strip to mimic the deep cut shadow */
    background: linear-gradient(90deg, rgba(11, 22, 60, 0.02) 0%, #eef6ff 20%, #eef6ff 80%, rgba(11, 22, 60, 0.02) 100%);
}

/* Add a central diamond notch by overlaying a darker small diamond */
.hero-diamond .center-notch {
    display: none;
}

/* show center notch to create a clean separation under the pricing card */
.hero-diamond .center-notch {
    display: block;
    position: absolute;
    left: 50%;
    top: -20px;
    transform: translateX(-50%) rotate(45deg);
    width: 160px;
    height: 160px;
    background: linear-gradient(180deg, #eef6ff 0%, #e9f3ff 100%);
    box-shadow: 0 -18px 36px rgba(6, 18, 48, 0.06);
    z-index: -1;
    border-radius: 6px;
}

@media (min-width: 1200px) {
    .pricing-wrapper {
        transform: translateY(-180px);
    }
}

@media (min-width: 992px) and (max-width:1199px) {
    .pricing-wrapper {
        transform: translateY(-140px);
    }
}

@media (max-width: 991px) {
    .hero-diamond {
        bottom: -80px;
        height: 160px;
    }
}

.floating-card i {
    font-size: 60px;
    color: #667eea;
    margin-bottom: 15px;
}

.floating-card h4 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #667eea;
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, -50%) translateY(0px);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-illustration {
        margin-top: 50px;
        height: 300px;
    }
}

/* ========================================
   SECTION STYLES
   ======================================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
}

.section-description {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    background: #f8f9fa;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
}

.feature-box h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.feature-box p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* ========================================
   MIGRATION SECTION
   ======================================== */
.migration-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.migration-icon {
    text-align: center;
}

.migration-icon i {
    font-size: 120px;
    opacity: 0.3;
}

.migration-section .section-title,
.migration-section .section-subtitle {
    color: white;
}

.migration-section .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.migration-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.migration-buttons .btn {
    padding: 12px 30px;
}

/* ========================================
   GUARANTEES SECTION
   ======================================== */
.guarantees-section {
    background: white;
}

.guarantee-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.guarantee-box:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.guarantee-icon {
    width: 60px;
    height: 60px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.guarantee-box h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.guarantee-box p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* ========================================
   DATA CENTER SECTION
   ======================================== */
.datacenter-section {
    background: linear-gradient(rgba(248, 249, 250, 1), rgba(248, 249, 250, 1));
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.datacenter-section>.container {
    position: relative;
    z-index: 1;
}

.datacenter-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    /* 60% transparency requested */
    pointer-events: none;
    z-index: 0;
    filter: saturate(0.9) contrast(0.9);
}

.location-box {
    background: rgba(255, 255, 255, 0.78);
    padding: 22px 18px;
    border-radius: 14px;
    text-align: center;
    transition: transform 0.28s cubic-bezier(.2, .9, .2, 1), box-shadow 0.28s;
    box-shadow: 0 6px 18px rgba(12, 20, 40, 0.06);
    border: 1px solid rgba(102, 126, 234, 0.06);
}

.location-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(12, 20, 40, 0.12);
}

.location-box i {
    font-size: 20px;
    color: #4361ee;
    margin-bottom: 12px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.12), rgba(118, 75, 162, 0.06));
}

.location-box h6 {
    font-size: 15px;
    font-weight: 700;
    margin: 8px 0 4px 0;
    color: #222;
}

.location-box p {
    color: #7a8190;
    font-size: 13px;
    margin: 0;
}

@media (min-width: 992px) {
    .datacenter-section .row.g-4 {
        gap: 28px;
    }
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    background: white;
}

/* Dark / futuristic testimonial variant */
.testimonials-section.testimonials-dark {
    background: linear-gradient(180deg, #07132a 0%, #0a234a 60%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.testimonials-section.testimonials-dark .container {
    position: relative;
    z-index: 2;
}

.testimonials-section.testimonials-dark .testimonial-card,
.testimonials-section.testimonials-dark .testimonial-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.95);
}

.testimonials-section.testimonials-dark .testimonial-card .card-body,
.testimonials-section.testimonials-dark .testimonial-box {
    color: rgba(255, 255, 255, 0.94);
}

.testimonials-section.testimonials-dark h2,
.testimonials-section.testimonials-dark h3,
.testimonials-section.testimonials-dark p,
.testimonials-section.testimonials-dark .testimonial-text {
    color: rgba(255, 255, 255, 0.95);
}

.testimonials-section.testimonials-dark .testimonial-avatar {
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.06);
}

/* small decorative overlay highlight */
.testimonials-section.testimonials-dark::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.12), transparent 30%);
    filter: blur(32px);
    pointer-events: none;
    z-index: 1;
}

.testimonial-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-box:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-rating i {
    font-size: 16px;
}

.testimonial-text {
    font-size: 15px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fbff 100%);
    color: #0f1724;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
}

/* If an <img> is still present, hide it visually and use the icon avatar instead */
.testimonial-avatar img {
    display: none !important;
}

.testimonial-avatar .fa-user {
    font-size: 20px;
    color: #1f2937;
    /* dark icon for light backgrounds */
}

/* Dark testimonial variant: lighter icon on dark background */
.testimonials-section.testimonials-dark .testimonial-avatar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.6);
}

.testimonials-section.testimonials-dark .testimonial-avatar .fa-user {
    color: rgba(255, 255, 255, 0.92);
}

/* Ensure avatar + author area is fixed height and aligns across testimonial cards */
.testimonial-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonial-text {
    /* allow text to grow and push author block to the bottom */
    flex: 1 1 auto;
    margin-bottom: 18px;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    /* fixed area so all testimonial meta blocks are equal height */
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* ensure consistent avatar sizing inside the meta block */
.testimonial-meta .testimonial-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}

/* if text is short, keep the meta block pinned to the bottom */
.testimonial-card .card-body>.testimonial-meta {
    margin-top: auto;
}

@media (max-width: 768px) {
    .testimonial-meta {
        min-height: 64px;
    }
}

.testimonial-author h6 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #0f1724;
    /* strong dark color on light backgrounds for contrast */
}

.testimonial-author p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Ensure author name and role have sufficient contrast on dark testimonial backgrounds */
.testimonials-section.testimonials-dark .testimonial-author h6 {
    color: rgba(255, 255, 255, 0.96) !important;
}

.testimonials-section.testimonials-dark .testimonial-author p {
    color: rgba(255, 255, 255, 0.78) !important;
}

/* Explicit light-theme fallback to guarantee contrast if other rules interfere */
.testimonials-section:not(.testimonials-dark) .testimonial-author h6 {
    color: #0f1724 !important;
}

.testimonials-section:not(.testimonials-dark) .testimonial-author p {
    color: #6b7280 !important;
}

/* (Combined migration/datacenter styles removed - reverting to original separate section styles) */

/* ========================================
   PARTNERS SECTION
   ======================================== */
.partners-section {
    background: #f8f9fa;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}

.partner-logo img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Fallback tile when external logo fails to load */
.partner-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 60px;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 10px;
    color: #333;
    font-weight: 600;
    text-align: center;
    padding: 8px 12px;
}

@media (max-width: 992px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 20px;
    }
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-section {
    background: #f8fafc;
    /* light background to remove dark/black appearance */
    padding-top: 40px;
    /* restore comfortable spacing from hero */
}

/* soften pricing wrapper contrast to remove heavy dark edges */
.pricing-wrapper {
    box-shadow: 0 18px 40px rgba(8, 20, 50, 0.06);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-description {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
}

/* ========================================
   MODERN FOOTER
   ======================================== */
.modern-footer {
    background: #1a1a2e;
    color: white;
    padding-top: 60px;
}

.footer-main {
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: white;
}

.footer-logo i {
    color: #667eea;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #667eea;
    width: 20px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==================================================
   Elegant Feature Tile Styles (glass + tile grid)
   ================================================== */
/* Alternate section backgrounds (keep hero, migration, CTA, and dark testimonial sections untouched) */
section:not(.modern-hero):not(.migration-section):not(.cta-section):not(.testimonials-section):nth-of-type(odd) {
    background: #ffffff;
}

section:not(.modern-hero):not(.migration-section):not(.cta-section):not(.testimonials-section):nth-of-type(even) {
    background: #fbfdff;
    /* ultra-subtle tint */
}

/* helper class for explicit alternate background */
.alt-bg {
    background: #fbfdff;
}

/* Feature tiles grid using CSS Grid for precise control */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(260px, 1fr));
    gap: 28px;
    /* make rows equal height so cards match even with differing content */
    grid-auto-rows: 1fr;
    align-items: stretch;
}

/* grid child wrapper (replaces Bootstrap column wrappers) */
.feature-tile {
    display: flex;
}

.features-grid>.feature-tile {
    align-self: stretch;
}

.feature-tile .feature-card {
    width: 100%;
    flex: 1 1 auto;
}

/* Tile card */
.feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    /* fill the grid row so all cards are equal height */
    height: 100%;
    padding: 30px 28px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 10px 30px rgba(8, 15, 30, 0.06), 0 2px 8px rgba(99, 102, 241, 0.04) inset;
    overflow: hidden;
    transition: transform 360ms cubic-bezier(.2, .9, .2, 1), box-shadow 360ms ease, background 360ms ease;
    backdrop-filter: blur(8px) saturate(120%);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.12), transparent 40%);
    transform: rotate(20deg);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-16px);
    box-shadow: 0 30px 90px rgba(16, 24, 64, 0.16);
}

.feature-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.feature-badge {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(90deg, #6b72ff, #4dd0e1);
    box-shadow: 0 6px 18px rgba(77, 115, 255, 0.08);
}

.feature-icon-advanced {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    font-size: 30px;
    box-shadow: 0 18px 36px rgba(79, 70, 229, 0.14);
}

.feature-title {
    font-size: 18px;
    font-weight: 800;
    color: #0b1220;
    margin: 6px 0 6px;
}

.feature-desc {
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 12px;
}

/* CTA reveal on hover */
.feature-cta {
    transition: transform 260ms ease, opacity 260ms ease;
    transform: translateY(6px);
    opacity: 0.0;
}

.feature-card:hover .feature-cta {
    transform: translateY(0);
    opacity: 1;
}

.feature-cta a {
    text-decoration: none;
    font-weight: 700;
    color: #0f172a;
    background: rgba(99, 102, 241, 0.06);
    padding: 6px 10px;
    border-radius: 8px;
}

/* small subtle icon accent in bottom-left */
.feature-card .tile-accent {
    position: absolute;
    left: 14px;
    bottom: 14px;
    font-size: 12px;
    color: rgba(7, 10, 30, 0.06);
}

/* Accessibility focus */
.feature-card:focus-within,
.feature-card:focus {
    outline: 3px solid rgba(102, 126, 234, 0.12);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .features-grid {
        grid-template-columns: repeat(3, minmax(240px, 1fr));
    }
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .feature-icon-advanced {
        width: 70px;
        height: 70px;
        font-size: 22px;
    }
}

@media (max-width:576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 36px 0;
    }

    .feature-card {
        padding: 18px;
        border-radius: 12px;
    }

    .feature-icon-advanced {
        width: 56px;
        height: 56px;
        font-size: 18px;
    }
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #667eea;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 20px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    align-items: center;
}

.payment-methods i {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.payment-methods i:hover {
    color: white;
}

@media (max-width: 768px) {
    .payment-methods {
        justify-content: center;
        margin-top: 15px;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* ========================================
   BUTTON STYLES
   ======================================== */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: white;
    color: #667eea;
}

.btn-light {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
    color: #667eea;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 20px;
    }

    section {
        padding: 50px 0;
    }

    .migration-icon i {
        font-size: 80px;
    }

    .cta-title {
        font-size: 24px;
        text-align: center;
    }

    .cta-description {
        font-size: 16px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* ========================================
   PRICING - NEW LAYOUT
   ======================================== */
.pricing-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    position: relative;
    z-index: 60;
    /* sits above hero accents but below eventual modals */
    box-shadow: 0 28px 70px rgba(8, 20, 50, 0.10);
    transform: translateY(-120px);
    /* overlap using transform for smoother rendering */
    padding: 28px;
    border: 1px solid rgba(8, 20, 50, 0.04);
}

.price-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

.price-card.highlight {
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
    transform: translateY(-6px);
}

.price-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.price-card-top img {
    filter: drop-shadow(0 6px 20px rgba(102, 126, 234, 0.12));
}

.price-feature-list li {
    padding: 8px 0;
    color: #333;
}

.price-feature-list i {
    color: #3b82f6;
    margin-right: 10px;
}

.price-big {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
}

.price-big .currency {
    font-size: 20px;
    vertical-align: top;
}

.price-big .cents {
    font-size: 16px;
    color: #6b7280;
}

.btn-order {
    padding: 12px 20px;
}

/* ========================================
   DOMAIN SEARCH STYLES
   ======================================== */
.domain-search-section {
    background: #eef6ff;
}

.domain-search-form .form-control-lg {
    border-radius: 50px;
    padding-left: 20px;
}

.domain-search-form button {
    border-radius: 50px;
    padding-left: 26px;
    padding-right: 26px;
}

.tld-pricing-grid {
    margin-top: 10px;
}

.tld-card {
    display: inline-block;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    min-width: 110px;
}

.tld-card .tld {
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.tld-card .tld-price {
    color: #3b82f6;
    font-weight: 700;
}

@media (max-width: 768px) {
    .price-big {
        font-size: 26px;
    }

    .pricing-wrapper {
        padding: 20px;
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(8, 20, 50, 0.06);
    }
}

/* -------------------------------
   Revert hero accents to simple background
   ------------------------------- */
.modern-hero::before,
.modern-hero::after,
.modern-hero svg.background-wave,
.hero-diamond {
    display: none !important;
}

.modern-hero {
    /* keep the gradient but remove extra visual accents */
    background: linear-gradient(180deg, #07102a 0%, #07132a 35%, #0a234a 100%);
}

/* Stronger overrides for legacy hero.css #pricing rules */
#pricing {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Use the light section background and lift the pricing-wrapper */
#pricing.pricing-section,
#pricing.pricing-section .container,
.pricing-section#pricing {
    background: #f8fafc !important;
}

/* Transparent pricing wrapper - cards float independently */
.pricing-wrapper {
    background: transparent;
    border-radius: 0;
    padding: 40px 20px;
    transform: translateY(-18px) !important;
    box-shadow: none !important;
    border: none;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.price-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 36px 28px;
    transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(15, 23, 42, 0.04);
    max-width: 320px;
    margin: 0 auto;
}

/* Overlapping card layout - stronger, conflict-resistant rules
   Makes the plans row behave as a centered flex-track with overlapping
   columns, and provides a mobile fallback that disables overlap. */
.pricing-cards-overlap {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 0 !important;
    flex-wrap: nowrap !important;
    width: 100%;
    box-sizing: border-box;
}

.pricing-cards-overlap>[class*="col-"] {
    /* Fix column sizing so cards use their intrinsic width instead of
       percentage-based Bootstrap columns that create large gaps. */
    flex: 0 0 auto !important;
    max-width: 320px !important;
    /* match .price-card max-width */
    width: 320px !important;
    box-sizing: border-box !important;
    margin-left: -48px !important;
    /* overlap amount - tweak as needed */
    position: relative !important;
    z-index: 1 !important;
}

.pricing-cards-overlap>[class*="col-"]:first-child {
    margin-left: 0 !important;
}

.pricing-cards-overlap>[class*="col-"]:hover,
.pricing-cards-overlap>[class*="col-"]:focus-within {
    z-index: 50 !important;
}

/* Make the inner card centered within each column */
.pricing-cards-overlap .price-card {
    margin: 0 auto;
}

/* Mobile / tablet fallback: disable overlap so cards stack normally */
@media (max-width: 991px) {
    .pricing-cards-overlap {
        display: block !important;
        flex-wrap: wrap !important;
    }

    .pricing-cards-overlap>[class*="col-"] {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 20px !important;
    }
}

/* Stronger visual treatment for the featured (premium) plan */
.pricing-cards-overlap>.featured-col {
    margin-left: -8px !important;
    /* pull featured slightly forward */
    z-index: 80 !important;
}

.pricing-cards-overlap>.featured-col .price-card {
    transform: translateY(-22px) scale(1.08) !important;
    box-shadow: 0 50px 120px rgba(37, 99, 235, 0.20) !important;
    border-color: rgba(37, 99, 235, 0.28) !important;
}

.pricing-cards-overlap>.featured-col .plan-badge {
    transform: translateY(-6px) scale(1.05);
    padding: 8px 18px;
}

/* Make the featured card's accent bar more visible */
.pricing-cards-overlap>.featured-col .price-card::before {
    opacity: 1 !important;
    transform: scaleX(1) !important;
    height: 5px !important;
}

/* On hover, keep the featured card even more pronounced */
.pricing-cards-overlap>.featured-col:hover .price-card,
.pricing-cards-overlap>.featured-col:focus-within .price-card {
    transform: translateY(-28px) scale(1.1) !important;
    box-shadow: 0 60px 140px rgba(37, 99, 235, 0.24) !important;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    opacity: 0;
    transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scaleX(0);
    transform-origin: center;
}

.price-card:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.price-card.highlight {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.18), 0 8px 24px rgba(37, 99, 235, 0.10);
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.price-card.highlight::before {
    opacity: 1;
    transform: scaleX(1);
    height: 4px;
}

/* Featured card gets higher z-index */
.pricing-cards-overlap>[class*="col-"] .price-card.highlight {
    z-index: 5;
}

.pricing-cards-overlap>[class*="col-"]:has(.price-card.highlight) {
    z-index: 5;
}

.price-card .price-card-top img {
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.2));
}

.price-card:hover {
    transform: translateY(-16px) scale(1.03);
    box-shadow: 0 30px 80px rgba(37, 99, 235, 0.16), 0 12px 32px rgba(37, 99, 235, 0.10);
    border-color: rgba(37, 99, 235, 0.2);
}

.price-card.highlight:hover {
    transform: translateY(-18px) scale(1.04);
    box-shadow: 0 35px 90px rgba(37, 99, 235, 0.20), 0 14px 36px rgba(37, 99, 235, 0.12);
}

.price-card .price-feature-list li {
    padding: 10px 0;
    color: #475569;
    font-size: 14.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.22s ease;
}

.price-card .price-feature-list li:hover {
    color: #1e293b;
    transform: translateX(4px);
}

.price-card .price-feature-list li i {
    color: #2563eb;
    margin-right: 10px;
    font-size: 15px;
    width: 20px;
    text-align: center;
}

.price-card .price-big {
    font-size: 42px;
    color: #0f1724;
    font-weight: 700;
    line-height: 1;
}

.price-card .price-big .currency {
    font-size: 24px;
    vertical-align: super;
}

.price-card .price-big .amount {
    font-weight: 800;
}

.price-card .price-big .cents {
    font-size: 24px;
}

.price-card .btn-order {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    color: #fff;
    padding: 15px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15.5px;
    letter-spacing: 0.3px;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.price-card .btn-order:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.32), 0 4px 12px rgba(37, 99, 235, 0.16);
    transform: translateY(-4px);
}

/* Improve contrast for outline buttons used across the site (View / Pay / Action buttons) */
.btn-outline-primary,
.btn-outline-success,
.btn-outline-warning,
.btn-outline-secondary {
    border-width: 1px;
    border-style: solid;
    /* default to high-contrast dark text on light backgrounds */
    color: #0f1724;
}

.btn-outline-primary {
    border-color: #1d4ed8;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: #1d4ed8;
    color: #fff;
    border-color: #1e40af;
}

.btn-outline-success {
    border-color: #16a34a;
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    background: #16a34a;
    color: #fff;
    border-color: #15803d;
}

.btn-outline-warning {
    border-color: #ffcd00;
    color: #111;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus {
    background: #ffcd00;
    color: #111;
    border-color: #e6b800;
}

.btn-outline-secondary {
    border-color: rgba(15, 23, 42, 0.08);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: rgba(15, 23, 42, 0.06);
    color: #0f1724;
}

/* When outline buttons appear on dark backgrounds, invert to white-on-dark for readability */
:where(.bg-dark, .scripts-section, .modern-hero, .hero-angled, .section-dark, .navbar-contrast) .btn-outline-primary,
:where(.bg-dark, .scripts-section, .modern-hero, .hero-angled, .section-dark, .navbar-contrast) .btn-outline-success,
:where(.bg-dark, .scripts-section, .modern-hero, .hero-angled, .section-dark, .navbar-contrast) .btn-outline-warning,
:where(.bg-dark, .scripts-section, .modern-hero, .hero-angled, .section-dark, .navbar-contrast) .btn-outline-secondary {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

:where(.bg-dark, .scripts-section, .modern-hero, .hero-angled, .section-dark, .navbar-contrast) .btn-outline-primary:hover,
:where(.bg-dark, .scripts-section, .modern-hero, .hero-angled, .section-dark, .navbar-contrast) .btn-outline-success:hover,
:where(.bg-dark, .scripts-section, .modern-hero, .hero-angled, .section-dark, .navbar-contrast) .btn-outline-warning:hover,
:where(.bg-dark, .scripts-section, .modern-hero, .hero-angled, .section-dark, .navbar-contrast) .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

/* Enhanced card visuals: icon circle, badge, subtle gradients */
.price-card {
    position: relative;
    overflow: visible;
    padding-top: 18px;
}

.plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    padding: 7px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.24);
    z-index: 40;
}

.price-icon-wrapper .icon-circle {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.18);
    transform: translateY(-18px);
}

.price-card-top h5 {
    margin-top: 8px;
    font-size: 20px;
}

.price-card .price-big {
    font-size: 40px;
    letter-spacing: -1px;
}

.price-card .price-big .currency {
    font-size: 20px;
}

.price-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
}

.price-feature-list li i {
    color: #06b6d4;
    min-width: 22px;
    font-size: 16px;
}

.price-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

/* Layout tweaks for header/title inside pricing wrapper */
.pricing-wrapper .section-title {
    margin-top: 0;
    margin-bottom: 12px;
    color: #0f1724;
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-wrapper .section-description {
    margin-bottom: 32px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .pricing-wrapper {
        transform: translateY(-40px) !important;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Use default Bootstrap row behavior; set reasonable column gap */
.pricing-section>.container-fluid>.row {
    column-gap: 1.5rem;
}

/* Prevent wrapping of the two main columns on desktop */
@media (min-width: 992px) {

    /* ensure columns don't shrink unexpectedly on large screens */
    .pricing-section>.container-fluid>.row {
        align-items: stretch;
    }

    .pricing-section .col-lg-6 {
        flex-shrink: 0;
    }
}

/* New: explicit pricing grid wrapper to force side-by-side columns */
.pricing-grid {
    display: flex !important;
    gap: 1.5rem !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    width: 100%;
}

.pricing-grid>[class*="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 991px) {
    .pricing-grid {
        flex-wrap: wrap !important;
    }

    .pricing-grid>[class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* make the pricing wrapper fill its column so domain aside sits closer */
.pricing-section .col-lg-6 .pricing-wrapper {
    max-width: 100%;
    margin: 0;
}

/* domain aside style adjustments */
.domain-side {
    position: relative;
    top: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f4ff 100%) !important;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

.domain-side .section-title {
    color: #0f1724;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.domain-side .section-description {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.domain-side .domain-search-form {
    margin-top: 24px;
}

.domain-side .domain-search-form .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.domain-side .domain-search-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.domain-side .domain-search-form .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.domain-side .domain-search-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.domain-side .tld-pricing-grid {
    margin-top: 28px;
}

.domain-side .tld-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.domain-side .tld-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.domain-side .tld-card .tld {
    font-weight: 700;
    color: #0f1724;
    font-size: 18px;
    margin-bottom: 8px;
}

.domain-side .tld-card .tld-price {
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
}

/* Enhanced domain search visuals */
.domain-side {
    padding: 28px !important;
    background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 100%) !important;
}

.domain-side .input-group-text {
    border: none;
    background: transparent;
}

.domain-side .form-control {
    border-radius: 8px;
}

.domain-side .domain-available {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.domain-available .btn {
    min-width: 120px;
}

.domain-taken {
    color: #7f1d1d;
    background: linear-gradient(90deg, #fff4f4 0%, #fff 100%);
    border: 1px solid #f5c2c2;
    padding: 12px;
    border-radius: 8px;
}

.domain-side #domain-result .alert {
    margin-bottom: 0;
}

.domain-side .tld-pricing-grid {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.domain-side .tld-card {
    min-width: 100px;
}

/* subtle animation for availability result */
.domain-side #domain-result .alert {
    animation: fadeIn 0.45s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel styles */
.plans-carousel-wrapper {
    position: relative;
    padding: 0 12px;
    /* smaller side padding so wrapper doesn't push layout */
    max-width: 100%;
    overflow: visible;
}

.plans-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
    /* ensure track's 100% refers to this container */
}

.plans-track {
    display: flex;
    gap: 20px;
    transition: none;
    will-change: transform;
    flex-wrap: nowrap;
    width: 100%;
    /* constrain to carousel width so calc(100% / 3) works */
}

/* Neutralize Bootstrap row negative margins inside the carousel track */
.plans-track.row {
    margin-left: 0;
    margin-right: 0;
}

/* Remove column padding inside the carousel to avoid extra width from gutters */
.plans-track.row>[class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/* Allow Bootstrap columns inside pricing to shrink if needed to avoid wrapping */
.pricing-section .row>[class*="col-"] {
    min-width: 0;
}

/* Ensure columns stay side-by-side on desktop (lg breakpoint is 992px and above) */
@media (min-width: 992px) {

    /* Enforce a strict 50/50 two-column layout on desktop so the domain
       panel always appears to the right. Use !important to override other rules. */
    .pricing-section>.container-fluid>.row {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 1.5rem !important;
        align-items: flex-start !important;
    }

    .pricing-section .col-lg-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        box-sizing: border-box !important;
    }

    /* Make sure inner wrappers do not expand beyond their column */
    .pricing-section .pricing-wrapper,
    .pricing-section .plans-carousel-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Reduce the main pricing wrapper width (the white panel) so it doesn't visually dominate
       and leaves space for the domain panel on the right. Left-align the wrapper inside the column. */
    .pricing-section>.container-fluid>.row>.col-lg-6:first-child .pricing-wrapper {
        max-width: 70% !important;
        width: 70% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Ensure the domain aside uses remaining space and aligns to the right */
    .pricing-section>.container-fluid>.row>.col-lg-6:last-child .domain-side {
        width: 100% !important;
        margin-left: auto !important;
    }
}

/* Strong overrides to prevent any column from expanding beyond its half */
@media (min-width: 992px) {
    .pricing-section>.container-fluid {
        width: 100%;
    }

    .pricing-section>.container-fluid>.row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .pricing-section>.container-fluid>.row>[class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pricing-section>.container-fluid>.row>.col-lg-6 {
        float: none !important;
    }

    .pricing-section .pricing-wrapper {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .plans-carousel-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.pricing-section .col-lg-6 {
    min-width: 0;
}

/* Ensure cards have fixed width for carousel - show 3 at a time */
.plans-track .col-lg-3 {
    min-width: 0;
    flex: 0 0 calc((100% - 60px) / 4);
    max-width: calc((100% - 60px) / 4);
}

.plans-track .price-card {
    min-width: 0;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(15, 23, 42, 0.1);
}

@media (max-width: 1200px) {
    .plans-track .col-lg-3 {
        min-width: 260px;
        flex: 0 0 260px;
        max-width: 260px;
    }
}

/* Stack columns only on tablet and smaller screens */
@media (max-width: 991px) {
    .pricing-section .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .domain-side {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-nav {
        display: none;
    }

    .plans-carousel-wrapper {
        padding: 0;
    }

    .plans-track {
        gap: 16px;
    }

    .plans-track .col-lg-3 {
        min-width: 280px;
        flex: 0 0 280px;
        max-width: 280px;
    }

    /* keep default gutters on small screens */
    .pricing-section>.container-fluid>.row {
        column-gap: 0;
    }
}

/* hide horizontal scrollbar while allowing touch scroll */
.plans-carousel::-webkit-scrollbar {
    height: 0;
}

.plans-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== Static plans layout (carousel removed) ===== */
/* Force a 3-column static grid for plans on desktop and responsive stacking */
.plans-carousel-wrapper {
    overflow: visible !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.plans-carousel {
    overflow: visible !important;
}

.plans-track {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.plans-track .col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
}

.plans-track .price-card {
    width: 100% !important;
}

.carousel-nav {
    display: none !important;
}

@media (max-width: 1200px) {
    .plans-track .col-lg-3 {
        flex: 0 0 33.3333% !important;
        max-width: 33.3333% !important;
    }
}

@media (max-width: 991px) {
    .plans-track .col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 768px) {
    .plans-track .col-lg-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Desktop: force single-row 4-column layout (no wrap) */
@media (min-width: 992px) {
    .plans-track {
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 24px !important;
    }

    /* precise 4-column sizing inside the pricing wrapper */
    .plans-track .col-lg-3 {
        flex: 0 0 calc((100% - 72px) / 4) !important;
        /* subtract total gaps (3 * 24px) */
        max-width: calc((100% - 72px) / 4) !important;
    }

    /* Prevent inner padding from causing wrap */
    .pricing-wrapper,
    .plans-carousel,
    .plans-track {
        box-sizing: border-box !important;
    }
}

/* ===== Hover overlap and z-index for pricing cards ===== */
/* FORCE pricing section to allow visual overflow for hover transforms */
#pricing,
#pricing.pricing-section,
.pricing-section {
    overflow: visible !important;
}

/* Hover overlap: column wrapper z-index */
.pricing-cards-overlap {
    position: relative;
}

.pricing-cards-overlap>[class*="col-"] {
    position: relative !important;
    z-index: 1;
}

.pricing-cards-overlap>[class*="col-"]:hover {
    z-index: 1000 !important;
}

/* CRITICAL: Price card positioning for hover overlap */
.pricing-cards-overlap .price-card {
    position: relative !important;
    z-index: 1 !important;
    transition: transform .18s ease, box-shadow .18s ease, z-index 0s .18s !important;
}

.pricing-cards-overlap>.featured-col .price-card {
    z-index: 2 !important;
}

/* Non-featured hover: rise above everything */
.pricing-cards-overlap .price-card:not(.highlight):hover {
    transform: translateY(-10px) !important;
    z-index: 1000 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    transition: transform .18s ease, box-shadow .18s ease, z-index 0s !important;
    scale: 1 !important;
}

/* Featured hover: keep scaled transform */
.pricing-cards-overlap>.featured-col .price-card:hover,
.pricing-cards-overlap .price-card.highlight:hover {
    transform: translateY(-28px) scale(1.06) !important;
    z-index: 1001 !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16) !important;
    transition: transform .18s ease, box-shadow .18s ease, z-index 0s !important;
}

/* Ensure billing cycle select shows long amounts and doesn't truncate */
.cycle-select {
    min-width: 280px;
    max-width: 100%;
    white-space: nowrap;
}

.cycle-select option {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .cycle-select {
        min-width: 100%;
    }
}