body {
    font-family: 'Inter', sans-serif;
    background-color: #0d0d0d; /* Dark background similar to the image */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}
html {
    overflow-x: hidden;
}
.hero-section,
main.hero-section {
    overflow-x: hidden;
}
.gradient-text-hosting {
    background: linear-gradient(to right, #ff69b4, #8a2be2); /* Pink to purple gradient from GenHostin image */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Custom gradient button style */
.btn-gradient {
    background: linear-gradient(to right, #ff69b4, #8a2be2);
    border: none; /* Remove default border */
    box-shadow: 0 4px 14px 0 rgba(138, 43, 226, 0.3); /* Softer shadow */
}
.btn-gradient:hover {
    background: linear-gradient(to left, #ff69b4, #8a2be2); /* Reverse gradient on hover */
    box-shadow: 0 6px 20px 0 rgba(138, 43, 226, 0.4);
}

/* Bland button style */
.btn-bland {
    background-color: #1a1a1a; /* Dark gray background */
    color: #a0a0a0; /* Lighter gray text */
    border: 1px solid #333333; /* Subtle border */
    box-shadow: none; /* No shadow */
}
.btn-bland:hover {
    background-color: #2a2a2a; /* Slightly lighter on hover */
    color: #ffffff; /* White text on hover */
    border-color: #555555; /* Slightly lighter border on hover */
}

/* Navbar scroll behavior styles */
nav {
    transition: transform 0.3s ease-out; /* Smooth transition for show/hide */
    z-index: 100; /* Ensure navbar is always on top */
}
.navbar-hidden {
    transform: translateY(-100%); /* Move navbar completely out of view */
}

/* Responsive Navbar Styles */
.navbar-links {
    display: flex; /* Default to flex for desktop */
}

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    cursor: pointer;
    color: white;
    z-index: 101; /* Higher than navbar, to be clickable */
}

/* Dialog styles for mobile menu */
dialog#mobile-menu-dialog-nav {
    background-color: #1a1a1a;
    border: none;
    border-radius: 0.75rem; /* rounded-xl */
    padding: 2rem;
    width: 90%; /* Responsive width */
    max-width: 400px; /* Max width for larger mobiles/tablets */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    color: #ffffff;
    z-index: 98; /* Below overlay, above hero */
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

dialog#mobile-menu-dialog-nav[open] {
    opacity: 1;
    transform: scale(1);
}

dialog#mobile-menu-dialog-nav::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

dialog#mobile-menu-dialog-nav[open]::backdrop {
    opacity: 1;
}

@media (max-width: 767px) {
    .navbar-links {
        display: none; /* Hide desktop links on mobile */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
    }

    /* Adjust main navbar for mobile */
    nav {
        justify-content: space-between;
        padding: 1rem;
    }

    /* Push login/plus to the right on mobile */
    .navbar-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Styles for links inside the dialog */
    #mobile-menu-dialog-nav .menu-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        text-align: center; /* Center links in popup */
    }
    #mobile-menu-dialog-nav .menu-links a {
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        transition: background-color 0.2s;
    }
    #mobile-menu-dialog-nav .menu-links a:hover {
        background-color: #2a2a2a;
    }
}

@media (min-width: 768px) {
    dialog#mobile-menu-dialog-nav {
        display: none; /* Hide dialog on larger screens */
    }
}

/* Modern pricing card styles */
.pricing-card {
    background-color: #1a1a1a; /* Darker background for cards */
    border: 1px solid #2a2a2a;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: #4a4a4a;
}
.pricing-card.featured {
    border: 2px solid transparent; /* Remove default border */
    background-image: linear-gradient(to bottom right, #2a2a2a, #1a1a1a); /* Subtle gradient background */
    position: relative;
    z-index: 1;
}
.pricing-card.featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.5rem; /* Match card border-radius */
    padding: 2px; /* Border thickness */
    background: linear-gradient(to right, #ff69b4, #8a2be2); /* Gradient border */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}
.pricing-card.featured:hover::before {
     background: linear-gradient(to left, #ff69b4, #8a2be2); /* Reverse gradient on hover */
}

.popular-badge, .discount-badge {
    background: linear-gradient(to right, #ff69b4, #8a2be2); /* Gradient for the badge */
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.5);
    transform: translateX(-50%) rotate(3deg); /* Center horizontally and keep rotation */
    top: 0; /* Position at the very top */
    left: 50%; /* Center horizontally */
    padding: 0.5rem 1.5rem;
    border-radius: 9999px; /* Full rounded */
    z-index: 10; /* Ensure it's above the card content */
}
.discount-badge {
    background: linear-gradient(to right, #4CAF50, #2E7D32); /* Green gradient for discount */
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.5);
    transform: translateX(-50%) rotate(-3deg); /* Slightly different rotation */
    top: 0;
}

/* Tab specific styles */
.tab-button {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* Pill shape */
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: 1px solid transparent;
}
.tab-button.active {
    background: linear-gradient(to right, #ff69b4, #8a2be2);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(138, 43, 226, 0.3);
}
.tab-button:not(.active) {
    background-color: #1a1a1a;
    color: #a0a0a0;
    border-color: #333333;
}
.tab-button:not(.active):hover {
    background-color: #2a2a2a;
    color: #ffffff;
    border-color: #555555;
}

/* Hero Section Specific Styles */
.hero-section {
    position: relative;
    min-height: 100vh; /* Make hero section take full viewport height */
    display: grid; /* Use grid for layout */
    grid-template-columns: 1fr; /* Default to single column for mobile */
    align-items: center;
    justify-items: center; /* Center content within grid cells */
    overflow: hidden; /* Hide overflowing stars */
    padding-top: 4rem; /* Space for navbar */
}

@media (min-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr 1fr; /* Two columns for medium screens and up */
    }
}

#starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind content */
}

.hero-left {
    position: relative; /* Ensure z-index works */
    z-index: 20; /* Text content above icons */
    padding: 1rem; /* Add some padding */
    text-align: center; /* Default for mobile */
}

@media (min-width: 768px) {
    .hero-left {
        text-align: left; /* Align text left on desktop */
    }
}

.hero-right {
    display: flex;
    flex-direction: column; /* Stack icons vertically */
    align-items: center;
    justify-content: center;
    gap: 2rem; /* Space between icons */
    width: 100%; /* Ensure it takes full width for animation */
    height: 100%; /* Ensure it takes full height for animation */
    position: relative; /* For absolute positioning of icons */
    z-index: 10; /* Icons behind text content */
}

.pattern-icon {
    position: absolute; /* Position for scattering */
    color: rgba(138, 43, 226, 0.6); /* Purple with some transparency */
    animation: subtle-float 4s infinite ease-in-out; /* Subtle animation */
    z-index: 5; /* Icons slightly behind text, above canvas */
}

/* Individual icon sizes and positions to create a scattered pattern */
.icon-1 { width: 80px; height: 80px; top: 10%; left: 15%; animation-delay: 0s; opacity: 0.7; }
.icon-2 { width: 60px; height: 60px; top: 30%; left: 70%; animation-delay: 1s; opacity: 0.6; }
.icon-3 { width: 100px; height: 100px; top: 50%; left: 30%; animation-delay: 2s; opacity: 0.8; }
.icon-4 { width: 70px; height: 70px; top: 70%; left: 80%; animation-delay: 0.5s; opacity: 0.65; }
.icon-5 { width: 90px; height: 90px; top: 85%; left: 40%; animation-delay: 1.5s; opacity: 0.75; }
.icon-6 { width: 50px; height: 50px; top: 5%; left: 60%; animation-delay: 2.5s; opacity: 0.5; }
.icon-7 { width: 110px; height: 110px; top: 40%; left: 5%; animation-delay: 0.2s; opacity: 0.85; }
.icon-8 { width: 65px; height: 65px; top: 20%; left: 45%; animation-delay: 1.2s; opacity: 0.6; }
.icon-9 { width: 75px; height: 75px; top: 65%; left: 10%; animation-delay: 2.2s; opacity: 0.7; }
.icon-10 { width: 85px; height: 85px; top: 10%; left: 90%; animation-delay: 0.8s; opacity: 0.7; }
.icon-11 { width: 95px; height: 95px; top: 90%; left: 65%; animation-delay: 1.8s; opacity: 0.8; }
.icon-12 { width: 55px; height: 55px; top: 35%; left: 25%; animation-delay: 2.8s; opacity: 0.55; }
/* New icons for server and shield */
.icon-13 { width: 90px; height: 90px; top: 25%; left: 55%; animation-delay: 0.7s; opacity: 0.7; }
.icon-14 { width: 80px; height: 80px; top: 75%; left: 20%; animation-delay: 1.3s; opacity: 0.65; }

@keyframes subtle-float {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}

.ai-sale-tag {
    background-color: #a3e635; /* Greenish-yellow from image */
    color: #0d0d0d;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem; /* rounded-md */
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    transform: rotate(-5deg); /* Slight rotation */
    transform-origin: top left;
}

.ai-sale-tag::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10px;
    width: 10px;
    height: 10px;
    background-color: #a3e635;
    transform: rotate(45deg);
    z-index: -1;
}

/* News card styles */
.news-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease-in-out;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: #4a4a4a;
}

/* New Animation Styles */

/* Fade In Up Animation */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Left Animation */
@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right Animation */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Base class for elements that will be animated on scroll */
.animate-on-scroll {
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Initial position for fade-in-up */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Smooth transition */
}

/* Class added by JavaScript when element is in view */
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Specific animations for different elements */
.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}
.animate-on-scroll.slide-left.animated {
    animation: slide-in-left 0.8s ease-out forwards;
}

.animate-on-scroll.slide-right {
    transform: translateX(50px);
}
.animate-on-scroll.slide-right.animated {
    animation: slide-in-right 0.8s ease-out forwards;
}

.animate-on-scroll.fade-up {
    transform: translateY(20px);
}
.animate-on-scroll.fade-up.animated {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Staggered animation delays for hero section elements */
.hero-left .ai-sale-tag {
    animation-delay: 0.2s;
}
.hero-left h1 {
    animation-delay: 0.4s;
}
.hero-left .text-4xl {
    animation-delay: 0.6s;
}
.hero-left ul {
    animation-delay: 0.8s;
}
.hero-left .flex-col.sm\:flex-row { /* Targeting the button container */
    animation-delay: 1s;
}

/* Ensure these elements are initially hidden and then animated */
.hero-left .ai-sale-tag,
.hero-left h1,
.hero-left .text-4xl,
.hero-left ul,
.hero-left .flex-col.sm\:flex-row {
    opacity: 0;
    transform: translateY(20px);
}

.hero-left .ai-sale-tag.animated,
.hero-left h1.animated,
.hero-left .text-4xl.animated,
.hero-left ul.animated,
.hero-left .flex-col.sm\:flex-row.animated {
    animation: fade-in-up 0.8s ease-out forwards;
}

/* Specific styles for the domain search page to match the image */
.alert-box {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.filter-button {
    background-color: #1a1a1a;
    color: #a0a0a0;
    border: 1px solid #333333;
    border-radius: 9999px; /* pill shape */
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.filter-button.active {
    background: linear-gradient(to right, #ff69b4, #8a2be2);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px 0 rgba(138, 43, 226, 0.3);
}
.filter-button:not(.active):hover {
    background-color: #2a2a2a;
    color: #ffffff;
    border-color: #555555;
}
.domain-result-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.domain-result-card .domain-name {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #ffffff;
}
.domain-result-card .save-badge {
    background-color: #a3e635; /* Greenish-yellow */
    color: #0d0d0d;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem; /* text-xs */
}
.domain-result-card .price-old {
    text-decoration: line-through;
    color: #a0a0a0; /* Lighter gray */
    font-size: 0.875rem; /* text-sm */
    margin-right: 0.5rem;
}
.domain-result-card .price-new {
    font-weight: bold;
    color: #ffffff;
    font-size: 1rem; /* text-base */
}
.domain-result-card .info-icon {
    color: #a0a0a0;
    cursor: pointer;
}
.buy-button {
    background: linear-gradient(to right, #8a2be2, #ff69b4); /* Purple to Pink */
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    border: none;
}
.buy-button:hover {
    background: linear-gradient(to left, #8a2be2, #ff69b4);
    box-shadow: 0 4px 14px 0 rgba(138, 43, 226, 0.3);
}

      #nnxPlayerWrap .plyr--full-ui {

        --plyr-color-main: #e50914; /* progress, sliders, active states */

      }

      #nnxPlayerWrap .plyr__control--overlaid {

        background: #e50914;

      }

      #nnxPlayerWrap .plyr__control--overlaid:hover {

        background: #bf0810;

      }

      #nnxPlayerWrap .plyr__tooltip {

        background: #e50914;

        color: #fff;

      }

      #nnxPlayerWrap .plyr__tooltip::before {

        border-top-color: #e50914;

      }