@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Brand Design System */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #06b6d4;
    --accent: #d946ef;
    
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --accent-gradient: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    
    --dark-bg: #09090b;
    --dark-card: #18181b;
    --dark-border: #27272a;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
    
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Global Overrides */
body {
    font-family: var(--font-body);
}

/* Homepage Only - Dark Futuristic Layout */
body.page-homepage {
    background-color: #0b0c10 !important;
    color: #e2e8f0 !important;
}

body.page-homepage h1, 
body.page-homepage h2, 
body.page-homepage h3, 
body.page-homepage h4, 
body.page-homepage h5, 
body.page-homepage h6 {
    color: #ffffff !important;
}

/* Other Pages - Clean Light Layout (Default WHMCS) */
body:not(.page-homepage) {
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

body:not(.page-homepage) h1, 
body:not(.page-homepage) h2, 
body:not(.page-homepage) h3, 
body:not(.page-homepage) h4, 
body:not(.page-homepage) h5, 
body:not(.page-homepage) h6 {
    color: #0f172a !important;
}

/* Navbar & Header Customization */
header#header {
    background: rgba(11, 12, 16, 0.8) !important;
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--dark-border);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.topbar {
    background-color: rgba(9, 9, 11, 0.9) !important;
    border-bottom: 1px solid var(--dark-border);
    padding: 6px 0;
}

header .navbar-brand {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

header .navbar-brand:hover {
    transform: scale(1.03);
}

.main-navbar-wrapper {
    background: transparent !important;
    padding: 10px 0;
}

.navbar-nav > li > a {
    color: #94a3b8 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.navbar-nav > li > a:hover, 
.navbar-nav > li.active > a, 
.navbar-nav > li > a.active, 
.navbar-nav > li:hover > a {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.cart-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 16px !important;
    color: #e2e8f0 !important;
}

.cart-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff !important;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 60%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
    padding: 100px 0 80px 0;
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Domain Search Bar Styling */
.home-domain-search {
    background: transparent !important;
    padding: 0 !important;
}

.domain-search-card {
    background: rgba(24, 24, 27, 0.6) !important;
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.domain-search-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px !important;
}

.domain-search-card .input-group-wrapper {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(9, 9, 11, 0.8);
    border: 1px solid var(--dark-border);
    padding: 6px;
    transition: all 0.3s ease;
}

.domain-search-card .input-group-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.domain-search-card input.form-control {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.1rem;
    height: 50px;
    padding-left: 15px;
}

.domain-search-card input.form-control::placeholder {
    color: #4b5563;
}

.domain-search-card .btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 30px !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease !important;
}

.domain-search-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.domain-search-card .btn-success {
    background: var(--secondary-gradient) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 0 30px !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease !important;
}

.domain-search-card .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.domain-search-card .tld-logos {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
    list-style: none;
    padding: 0;
}

.domain-search-card .tld-logos li {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 6px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.domain-search-card .tld-logos img {
    height: 18px;
    filter: brightness(1.2);
}

/* Feature Grid Card Style */
.features-container {
    padding: 80px 0;
}

.section-tagline {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 35px 25px;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0b0c10 0%, #09090b 100%);
}

.pricing-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 24px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: scale(1.03);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.pricing-card .tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    min-height: 48px;
    margin-bottom: 25px;
}

.pricing-card .price-wrapper {
    margin-bottom: 30px;
}

.pricing-card .price {
    font-size: 2.75rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-headings);
}

.pricing-card .price-period {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-card .btn {
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.pricing-card .btn-outline-primary {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.pricing-card .btn-outline-primary:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.pricing-card.popular .btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: #fff;
}

.pricing-card.popular .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Action Icon Grid Styling */
.action-grid-section {
    padding: 80px 0;
}

.action-icon-btns a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 20px;
    text-decoration: none !important;
}

.action-icon-btns a .ico-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.action-icon-btns a:hover {
    transform: translateY(-5px);
    background: rgba(24, 24, 27, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.action-icon-btns a.card-accent-teal:hover {
    border-color: #06b6d4;
    color: #06b6d4;
}
.action-icon-btns a.card-accent-teal:hover .ico-container {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

.action-icon-btns a.card-accent-pomegranate:hover {
    border-color: #ef4444;
    color: #ef4444;
}
.action-icon-btns a.card-accent-pomegranate:hover .ico-container {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.action-icon-btns a.card-accent-sun-flower:hover {
    border-color: #eab308;
    color: #eab308;
}
.action-icon-btns a.card-accent-sun-flower:hover .ico-container {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.action-icon-btns a.card-accent-asbestos:hover {
    border-color: #64748b;
    color: #64748b;
}
.action-icon-btns a.card-accent-asbestos:hover .ico-container {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.action-icon-btns a.card-accent-green:hover {
    border-color: #10b981;
    color: #10b981;
}
.action-icon-btns a.card-accent-green:hover .ico-container {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.action-icon-btns a.card-accent-midnight-blue:hover {
    border-color: #6366f1;
    color: #6366f1;
}
.action-icon-btns a.card-accent-midnight-blue:hover .ico-container {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

/* Footer Customization */
footer#footer {
    background: #09090b !important;
    border-top: 1px solid var(--dark-border);
    padding: 60px 0 40px 0;
    color: var(--text-muted);
}

footer#footer .nav-link {
    color: var(--text-muted) !important;
    transition: color 0.3s ease;
}

footer#footer .nav-link:hover {
    color: #ffffff !important;
}

footer#footer p.copyright {
    color: #4b5563;
    font-size: 0.85rem;
    margin-top: 20px;
}

/* Social icons */
.social-accounts-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-accounts-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-accounts-icons a:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .pricing-card:hover {
        transform: none;
    }
}

/* Global WHMCS Clientarea Overrides */
body.page-homepage .card {
    background: var(--dark-card) !important;
    border: 1px solid var(--dark-border) !important;
    border-radius: 16px !important;
    color: #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

body.page-homepage .card-header {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid var(--dark-border) !important;
    color: #ffffff !important;
    font-family: var(--font-headings);
    font-weight: 600;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    padding: 15px 20px !important;
}

body.page-homepage .card-body {
    padding: 25px !important;
}

body.page-homepage .list-group-item {
    background: rgba(24, 24, 27, 0.3) !important;
    border: 1px solid var(--dark-border) !important;
    color: #cbd5e1 !important;
    padding: 12px 20px !important;
}

body.page-homepage .list-group-item:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

body.page-homepage .list-group-item.active, body.page-homepage .list-group-item.active:hover {
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    font-weight: 600;
}

.master-breadcrumb {
    background: transparent !important;
    border-bottom: 1px solid var(--dark-border) !important;
    padding: 15px 0 !important;
    margin-bottom: 30px !important;
}

.breadcrumb {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted) !important;
}

.breadcrumb-item a {
    color: var(--primary) !important;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--text-muted) !important;
}

/* Sidebar Customization */
body.page-homepage .sidebar .card {
    margin-bottom: 25px !important;
}

/* Dropdowns (Global since header is dark) */
.dropdown-menu {
    background: #18181b !important;
    border: 1px solid var(--dark-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    padding: 8px !important;
}

.dropdown-item {
    color: #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background: rgba(99, 102, 241, 0.1) !important;
    color: #ffffff !important;
}

.dropdown-divider {
    border-top: 1px solid var(--dark-border) !important;
    margin: 8px 0 !important;
}

/* Form Controls (Homepage only) */
body.page-homepage .form-control:not(.appended-form-control):not(.prepended-form-control) {
    background-color: rgba(9, 9, 11, 0.6) !important;
    border: 1px solid var(--dark-border) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 10px 15px !important;
    height: auto !important;
}

body.page-homepage .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2) !important;
    background-color: rgba(9, 9, 11, 0.8) !important;
}

/* Header links and buttons global overrides */
.topbar, .topbar a, .topbar button, .topbar .btn {
    color: #f8fafc !important;
}
.navbar-nav > li > a {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}
.navbar-nav > li > a:hover, 
.navbar-nav > li.active > a, 
.navbar-nav > li > a.active, 
.navbar-nav > li:hover > a {
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Readability fix for clean pages / light layouts (Login, Reset, Register) */
body.clean-page {
    background-color: #f8f9fa !important;
    color: #1a1a1a !important;
}
body.clean-page h1, body.clean-page h2, body.clean-page h3, body.clean-page h4, body.clean-page h5, body.clean-page h6 {
    color: #111111 !important;
}
body.clean-page .form-control-label, body.clean-page label {
    color: #333333 !important;
}
body.clean-page p, body.clean-page span, body.clean-page small {
    color: #444444 !important;
}
body.clean-page .form-control {
    background-color: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #cccccc !important;
}
body.clean-page .card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #1a1a1a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
body.clean-page .card-header {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #111111 !important;
}

/* Quantum Illustrations & Visual Enhancements */
.hero-illustration-wrapper {
    position: relative;
    padding: 10px;
}

.floating-hero-img {
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25), 0 0 30px rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
    animation: floatingHero 6s ease-in-out infinite;
    max-height: 480px;
    object-fit: cover;
}

@keyframes floatingHero {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.glass-badge {
    position: absolute;
    background: rgba(18, 18, 24, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 10;
    animation: badgeFloat 4s ease-in-out infinite alternate;
}

.badge-speed {
    top: 15%;
    left: -20px;
}

.badge-security {
    bottom: 15%;
    right: -20px;
    animation-delay: 2s;
}

@keyframes badgeFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.feature-img-wrapper {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-img {
    max-height: 150px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.feature-card:hover .feature-img-wrapper {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.feature-card:hover .feature-img {
    transform: scale(1.08) translateY(-4px);
}

.brand-text {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-headings);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}



