/* 
 * SLDevHub Cloud Theme & UI Design System
 * High-Performance Cloud Architecture UI
 * Typography: Plus Jakarta Sans & Inter
 * Brand Colors: #3560FF (Electric Blue), #0A0B0E (Deep Space Black), #141620 (Surface Dark)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --hg-primary: #3560FF;
    --hg-primary-hover: #264ee6;
    --hg-primary-light: rgba(53, 96, 255, 0.12);
    --hg-primary-border: rgba(53, 96, 255, 0.35);
    --hg-primary-glow: rgba(53, 96, 255, 0.38);
    
    --hg-navy: #FFFFFF;
    --hg-navy-light: #F1F5F9;
    --hg-slate: #9AA0B4;
    --hg-muted: #62687A;
    
    --hg-bg: #0A0B0E;
    --hg-bg-alt: #0E1017;
    --hg-surface: #141620;
    --hg-surface-glass: rgba(20, 22, 32, 0.75);
    --hg-surface-hover: #1A1D2A;
    --hg-border: rgba(255, 255, 255, 0.08);
    --hg-border-light: rgba(255, 255, 255, 0.05);
    --hg-border-focus: rgba(53, 96, 255, 0.6);

    --hg-emerald: #00D26A;
    --hg-emerald-light: rgba(0, 210, 106, 0.12);
    --hg-emerald-border: rgba(0, 210, 106, 0.3);

    --hg-amber: #FFB020;
    --hg-amber-light: rgba(255, 176, 32, 0.12);
    --hg-amber-border: rgba(255, 176, 32, 0.3);

    --hg-rose: #FF4D4D;
    --hg-rose-light: rgba(255, 77, 77, 0.12);
    --hg-rose-border: rgba(255, 77, 77, 0.3);

    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--hg-bg);
    color: var(--hg-slate);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--hg-navy);
    font-weight: 700;
    letter-spacing: -0.025em;
}

a {
    color: var(--hg-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #6088ff;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==========================================
   SLDevHub Top Announcement Bar
   ========================================== */
.hg-top-banner {
    background: #0E1017;
    border-bottom: 1px solid var(--hg-border);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.hg-top-banner a {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.hg-top-banner a:hover {
    color: #ffffff;
}

.hg-top-banner a i {
    font-size: 0.78rem;
    color: var(--hg-primary);
    transition: transform 0.2s ease;
}

.hg-top-banner a:hover i {
    transform: translateX(3px);
}

/* ==========================================
   SLDevHub Navigation Header
   ========================================== */
.hg-navbar {
    position: sticky;
    top: 0;
    background: rgba(10, 11, 14, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--hg-border);
    z-index: 999;
    height: 74px;
    display: flex;
    align-items: center;
}

.hg-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hg-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.hg-brand-icon {
    width: 38px;
    height: 38px;
    background: var(--hg-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 0 16px var(--hg-primary-glow);
}

.hg-brand span {
    color: var(--hg-primary);
}

.hg-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.hg-menu a {
    color: var(--hg-slate);
    font-weight: 600;
    font-size: 0.92rem;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.hg-menu a:hover, .hg-menu a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.hg-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================
   SLDevHub Pill Buttons
   ========================================== */
.btn-hg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 9999px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    line-height: 1.4;
}

.btn-hg-primary {
    background: var(--hg-primary);
    color: #fff !important;
    box-shadow: 0 0 20px rgba(53, 96, 255, 0.4);
}

.btn-hg-primary:hover {
    background: var(--hg-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(53, 96, 255, 0.65);
    color: #fff !important;
}

.btn-hg-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    backdrop-filter: blur(8px);
}

.btn-hg-outline:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-hg-emerald {
    background: var(--hg-emerald);
    color: #061e12 !important;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(0, 210, 106, 0.35);
}

.btn-hg-emerald:hover {
    background: #00b85c;
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(0, 210, 106, 0.5);
    color: #061e12 !important;
}

.btn-hg-rose {
    background: var(--hg-rose);
    color: #fff !important;
}

.btn-hg-rose:hover {
    background: #e03c3c;
    transform: translateY(-2px);
}

.btn-hg-lg {
    padding: 13px 32px;
    font-size: 1.05rem;
    border-radius: 9999px;
}

.btn-hg-sm {
    padding: 7px 18px;
    font-size: 0.85rem;
    border-radius: 9999px;
}

.btn-hg-block {
    width: 100%;
}

/* ==========================================
   SLDevHub Pill Badges & Chips
   ========================================== */
.hg-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(53, 96, 255, 0.12);
    color: #82a0ff;
    border: 1px solid rgba(53, 96, 255, 0.3);
    padding: 7px 20px;
    border-radius: 9999px;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hg-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hg-badge-pending {
    background: var(--hg-amber-light);
    color: var(--hg-amber);
    border: 1px solid var(--hg-amber-border);
}

.hg-badge-approved, .hg-badge-active {
    background: var(--hg-emerald-light);
    color: var(--hg-emerald);
    border: 1px solid var(--hg-emerald-border);
}

.hg-badge-suspended, .hg-badge-danger {
    background: var(--hg-rose-light);
    color: var(--hg-rose);
    border: 1px solid var(--hg-rose-border);
}

.hg-badge-info {
    background: var(--hg-primary-light);
    color: #82a0ff;
    border: 1px solid var(--hg-primary-border);
}

/* ==========================================
   SLDevHub Cosmic Hero Section
   ========================================== */
.hg-hero {
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    background-color: var(--hg-bg);
    background-image: 
        linear-gradient(180deg, rgba(10, 11, 14, 0.7) 0%, rgba(10, 11, 14, 0.25) 30%, rgba(10, 11, 14, 0.9) 80%, #0A0B0E 100%),
        url('../images/hero_cosmic_cloud.jpg');
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.hg-hero-title {
    font-size: clamp(2.6rem, 5.2vw, 4.3rem);
    line-height: 1.12;
    margin-bottom: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.03em;
}

.hg-gradient-text {
    background: linear-gradient(135deg, #ffffff 30%, #5b82ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hg-hero-desc {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--hg-slate);
    font-size: 1.15rem;
    line-height: 1.7;
}

.hg-hero-desc strong {
    color: #FFFFFF;
}

.hg-hero-pills {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.25rem;
    color: var(--hg-slate);
    font-size: 0.92rem;
}

.hg-hero-pills span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 7px 18px;
    border-radius: 9999px;
    color: #cbd5e1;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.hg-hero-pills span:hover {
    border-color: rgba(53, 96, 255, 0.4);
    background: rgba(53, 96, 255, 0.08);
}

.hg-hero-pills i {
    color: var(--hg-primary);
}

/* ==========================================
   SLDevHub Moving & Floating Background Assets
   ========================================== */
.cosmic-floating-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.cosmic-float-asset {
    position: absolute;
    pointer-events: none;
    user-select: none;
    transition: transform 0.15s cubic-bezier(0.2, 0.9, 0.4, 1);
    filter: drop-shadow(0 15px 35px rgba(53, 96, 255, 0.4));
    will-change: transform;
}

/* Floating animation keyframe presets with Compound Scroll & Cursor Parallax */
.anim-float-slow {
    animation: sldevhubFloatSlow 7s ease-in-out infinite;
}

.anim-float-reverse {
    animation: sldevhubFloatReverse 8.5s ease-in-out infinite;
}

.anim-float-drift {
    animation: sldevhubFloatDrift 11s ease-in-out infinite;
}

.anim-float-pulse {
    animation: sldevhubFloatPulse 6s ease-in-out infinite;
}

.anim-spin-slow {
    animation: sldevhubSpinSlow 24s linear infinite;
}

.anim-twinkle {
    animation: sldevhubTwinkle 4s ease-in-out infinite;
}

@keyframes sldevhubFloatSlow {
    0%, 100% {
        transform: translate3d(var(--parallax-x, 0px), calc(var(--parallax-y, 0px) + var(--scroll-y, 0px) + 0px), 0) rotate(var(--parallax-rot, 0deg));
    }
    50% {
        transform: translate3d(var(--parallax-x, 0px), calc(var(--parallax-y, 0px) + var(--scroll-y, 0px) - 24px), 0) rotate(calc(var(--parallax-rot, 0deg) + 4deg));
    }
}

@keyframes sldevhubFloatReverse {
    0%, 100% {
        transform: translate3d(var(--parallax-x, 0px), calc(var(--parallax-y, 0px) + var(--scroll-y, 0px) + 0px), 0) rotate(var(--parallax-rot, 0deg));
    }
    50% {
        transform: translate3d(var(--parallax-x, 0px), calc(var(--parallax-y, 0px) + var(--scroll-y, 0px) + 22px), 0) rotate(calc(var(--parallax-rot, 0deg) - 5deg));
    }
}

@keyframes sldevhubFloatDrift {
    0%, 100% {
        transform: translate3d(var(--parallax-x, 0px), calc(var(--parallax-y, 0px) + var(--scroll-y, 0px)), 0) rotate(var(--parallax-rot, 0deg));
    }
    33% {
        transform: translate3d(calc(var(--parallax-x, 0px) + 18px), calc(var(--parallax-y, 0px) + var(--scroll-y, 0px) - 20px), 0) rotate(calc(var(--parallax-rot, 0deg) + 6deg));
    }
    66% {
        transform: translate3d(calc(var(--parallax-x, 0px) - 14px), calc(var(--parallax-y, 0px) + var(--scroll-y, 0px) + 14px), 0) rotate(calc(var(--parallax-rot, 0deg) - 4deg));
    }
}

@keyframes sldevhubFloatPulse {
    0%, 100% {
        transform: translate3d(var(--parallax-x, 0px), calc(var(--parallax-y, 0px) + var(--scroll-y, 0px)), 0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate3d(var(--parallax-x, 0px), calc(var(--parallax-y, 0px) + var(--scroll-y, 0px) - 14px), 0) scale(1.12);
        opacity: 1;
        filter: drop-shadow(0 20px 35px rgba(0, 240, 255, 0.55));
    }
}

@keyframes sldevhubSpinSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes sldevhubTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.85) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(90deg);
    }
}

/* Scroll Parallax Image Container */
.scroll-parallax-image-wrap {
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(53, 96, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.scroll-parallax-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.4, 1);
    transform: translateY(var(--scroll-y, 0px)) scale(1.05);
}

/* Background Cosmic Nebula Glow Orbs */
.cosmic-nebula-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.45;
    animation: nebulaDrift 14s ease-in-out infinite alternate;
}

.nebula-blue {
    background: radial-gradient(circle, rgba(53, 96, 255, 0.5) 0%, rgba(53, 96, 255, 0) 70%);
}

.nebula-cyan {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.4) 0%, rgba(0, 240, 255, 0) 70%);
}

.nebula-purple {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, rgba(139, 92, 246, 0) 70%);
}

.nebula-emerald {
    background: radial-gradient(circle, rgba(0, 210, 106, 0.35) 0%, rgba(0, 210, 106, 0) 70%);
}

@keyframes nebulaDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(35px, -45px) scale(1.18);
    }
    100% {
        transform: translate(-30px, 25px) scale(0.92);
    }
}

/* Starfield canvas styling */
.cosmic-starfield-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* Hide or scale down on mobile for ultra performance */
@media (max-width: 768px) {
    .cosmic-float-asset.hide-on-mobile {
        display: none !important;
    }
    .cosmic-float-asset {
        transform: scale(0.7) !important;
    }
}

/* ==========================================
   SLDevHub Domain Search Bar
   ========================================== */
.hg-domain-search {
    max-width: 740px;
    margin: 0 auto 1.5rem;
    background: rgba(20, 22, 32, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--hg-border);
    border-radius: 9999px;
    padding: 8px 10px 8px 22px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hg-domain-search:focus-within {
    border-color: var(--hg-primary);
    box-shadow: 0 0 25px rgba(53, 96, 255, 0.25);
}

.hg-domain-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 0;
    font-size: 1.05rem;
    outline: none;
    font-family: var(--font-body);
    color: #ffffff;
}

.hg-domain-search input::placeholder {
    color: var(--hg-muted);
}

.hg-domain-tlds {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    color: var(--hg-slate);
    font-size: 0.9rem;
    margin-bottom: 3.5rem;
}

.hg-domain-tlds strong {
    color: #ffffff;
}

/* ==========================================
   SLDevHub Tech Stack Bar
   ========================================== */
.hg-tech-bar {
    background: #0E1017;
    border-top: 1px solid var(--hg-border);
    border-bottom: 1px solid var(--hg-border);
    padding: 1.5rem 0;
    margin-bottom: 4rem;
}

.hg-tech-items {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.75rem;
    color: #cbd5e1;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.98rem;
}

.hg-tech-items span {
    display: flex;
    align-items: center;
    gap: 9px;
}

/* ==========================================
   SLDevHub Pricing Section
   ========================================== */
.hg-pricing-section {
    padding: 4.5rem 0 5.5rem;
    background: var(--hg-bg);
}

.hg-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.25rem;
}

.hg-section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.65rem;
    letter-spacing: -0.03em;
}

.hg-section-desc {
    color: var(--hg-slate);
    font-size: 1.08rem;
    line-height: 1.6;
}

.hg-pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.25rem;
}

.hg-toggle-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 5px;
    display: flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.hg-toggle-btn {
    padding: 9px 26px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    color: var(--hg-slate);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    border: none;
    background: transparent;
}

.hg-toggle-btn.active {
    background: var(--hg-primary);
    color: #fff;
    box-shadow: 0 0 16px rgba(53, 96, 255, 0.5);
}

.hg-discount-chip {
    background: rgba(0, 210, 106, 0.18);
    color: #00D26A;
    border: 1px solid rgba(0, 210, 106, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 9999px;
    margin-left: 6px;
}

/* SLDevHub Spotlight Glass Cards */
.hg-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.hg-card {
    background: rgba(20, 22, 32, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--hg-border);
    border-radius: 24px;
    padding: 2.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hg-card:hover {
    transform: translateY(-6px);
    border-color: rgba(53, 96, 255, 0.45);
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.8), 0 0 35px rgba(53, 96, 255, 0.15);
}

.hg-card.featured {
    border-color: rgba(53, 96, 255, 0.5);
    background: linear-gradient(180deg, rgba(26, 30, 48, 0.88) 0%, rgba(18, 20, 30, 0.92) 100%);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 45px rgba(53, 96, 255, 0.22);
}

.hg-popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hg-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 20px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 0 20px rgba(53, 96, 255, 0.7);
}

.hg-card-title {
    font-size: 1.55rem;
    color: #FFFFFF;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.hg-card-desc {
    color: var(--hg-slate);
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
}

.hg-price-wrap {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--hg-border);
}

.hg-price-val {
    font-size: 2.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.hg-price-cycle {
    color: var(--hg-slate);
    font-size: 0.88rem;
}

.hg-card-features {
    list-style: none;
    margin-bottom: 2.25rem;
    flex-grow: 1;
}

.hg-card-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hg-card-features li i {
    color: var(--hg-primary);
    font-size: 0.95rem;
}

.hg-card-features li strong {
    color: #FFFFFF;
}

/* ==========================================
   SLDevHub Infrastructure Features Grid
   ========================================== */
.hg-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3.5rem;
}

.hg-feature-box {
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 20px;
    padding: 2.25rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hg-feature-box:hover {
    border-color: rgba(53, 96, 255, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.5), 0 0 25px rgba(53, 96, 255, 0.12);
}

.hg-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(53, 96, 255, 0.12);
    border: 1px solid rgba(53, 96, 255, 0.25);
    color: #6088ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.hg-feature-box h4 {
    font-size: 1.2rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.hg-feature-box p {
    color: var(--hg-slate);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   SLDevHub Local Payment Methods Section
   ========================================== */
.hg-payments-section {
    background: #0E1017;
    border-top: 1px solid var(--hg-border);
    border-bottom: 1px solid var(--hg-border);
    padding: 5rem 0;
    text-align: center;
}

.hg-payments-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2.75rem;
}

.hg-pay-card {
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 18px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 290px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.hg-pay-card:hover {
    border-color: rgba(53, 96, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(53, 96, 255, 0.1);
}

.hg-pay-card h4 {
    color: #FFFFFF;
}

.hg-pay-icon {
    font-size: 2.2rem;
}

/* FAQ Accordion */
.hg-faq-item {
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 16px;
    margin-bottom: 1rem;
    padding: 1.35rem 1.75rem;
    transition: all 0.2s ease;
}

.hg-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.hg-faq-item h4 {
    font-size: 1.12rem;
    margin-bottom: 0.45rem;
    color: #FFFFFF;
}

.hg-faq-item p {
    color: var(--hg-slate);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

.hg-faq-item a {
    color: #6088ff;
}

/* ==========================================
   SLDevHub Clean Dark Footer
   ========================================== */
.hg-footer {
    background: #060709;
    color: var(--hg-slate);
    padding: 5rem 0 2.5rem;
    border-top: 1px solid var(--hg-border);
}

.hg-footer h4 {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.hg-footer a {
    color: var(--hg-slate);
    transition: all 0.2s ease;
}

.hg-footer a:hover {
    color: #FFFFFF;
}

.hg-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.hg-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #62687A;
}

/* ==========================================
   Forms, Cards & Checkout Elements
   ========================================== */
.hg-form-box {
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 24px;
    padding: 2.75rem;
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.6);
    max-width: 920px;
    margin: 2.5rem auto 5rem;
}

.hg-form-step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--hg-border);
    color: #FFFFFF;
}

.hg-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--hg-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 0 12px rgba(53, 96, 255, 0.5);
}

.hg-form-group {
    margin-bottom: 1.5rem;
}

.hg-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
}

/* Universal Dark Form Inputs, Selects, & Textareas */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]),
select,
textarea,
.hg-form-input,
.hg-form-select,
.hg-form-control,
.form-control {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px;
    font-size: 0.98rem;
    font-family: var(--font-body);
    outline: none;
    color: #FFFFFF !important;
    background: #141620 !important;
    background-color: #141620 !important;
    transition: all 0.2s;
    box-sizing: border-box;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]):focus,
select:focus,
textarea:focus,
.hg-form-input:focus,
.hg-form-select:focus,
.hg-form-control:focus,
.form-control:focus {
    border-color: var(--hg-primary) !important;
    background-color: #1a1d2c !important;
    box-shadow: 0 0 0 4px rgba(53, 96, 255, 0.25) !important;
    color: #FFFFFF !important;
}

input::placeholder,
textarea::placeholder,
.hg-form-input::placeholder,
.hg-form-control::placeholder,
.form-control::placeholder {
    color: #64748b !important;
}

/* Ensure domain search bar input inside pill keeps its clean transparent look */
.hg-domain-search input {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
}

/* Ensure <option> inside <select> dropdowns are dark with white text in ALL browsers */
select option {
    background-color: #141620 !important;
    color: #FFFFFF !important;
    padding: 10px 14px;
}

select option:checked,
select option:hover {
    background-color: var(--hg-primary) !important;
    color: #FFFFFF !important;
}

/* WebKit autofill fix: prevent browser from turning autofilled inputs white with dark text */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #FFFFFF !important;
    -webkit-box-shadow: 0 0 0px 1000px #141620 inset !important;
    box-shadow: 0 0 0px 1000px #141620 inset !important;
    transition: background-color 5000s ease-in-out 0s;
    border: 1.5px solid var(--hg-primary) !important;
}

/* Universal Credential Box */
.hg-cred-box {
    background: rgba(0, 210, 106, 0.08) !important;
    border: 1px solid rgba(0, 210, 106, 0.25) !important;
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}
.hg-cred-box h3, .hg-cred-box h4 {
    color: #34d399 !important;
}
.hg-cred-box small {
    color: #94a3b8 !important;
}
.hg-cred-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 210, 106, 0.15);
    font-size: 0.95rem;
    color: #cbd5e1;
    flex-wrap: wrap;
    gap: 8px;
}
.hg-cred-row:last-child {
    border-bottom: none;
}
.hg-cred-row span {
    color: #34d399 !important;
    font-weight: 600;
}

/* Radio Selection Grid for Hosting Plans */
.hg-radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hg-radio-card {
    background: var(--hg-surface);
    border: 2px solid var(--hg-border);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    user-select: none;
    color: #FFFFFF;
}

.hg-radio-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hg-radio-card.selected {
    border-color: var(--hg-primary);
    background: rgba(53, 96, 255, 0.1);
    box-shadow: 0 0 20px rgba(53, 96, 255, 0.25);
}

.hg-radio-card input[type="radio"] {
    display: none;
}

/* Payment Tabs */
.hg-pay-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hg-pay-tab {
    background: var(--hg-surface);
    border: 2px solid var(--hg-border);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    color: #FFFFFF;
}

.hg-pay-tab:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.hg-pay-tab.active {
    border-color: var(--hg-primary);
    background: rgba(53, 96, 255, 0.1);
    box-shadow: 0 0 20px rgba(53, 96, 255, 0.25);
}

/* Bank & eZ Cash Detail Boxes */
.hg-details-card {
    background: #0E1017;
    border: 1px solid var(--hg-border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.hg-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--hg-border-light);
}

.hg-data-row:last-child {
    border-bottom: none;
}

.hg-copy-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #82a0ff;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.hg-copy-chip:hover {
    background: var(--hg-primary);
    color: #fff;
    border-color: var(--hg-primary);
}

/* Slip Upload Dropzone */
.hg-dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2.25rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s;
    color: #cbd5e1;
}

.hg-dropzone:hover {
    border-color: var(--hg-primary);
    background: rgba(53, 96, 255, 0.05);
}

/* Order Summary Box */
.hg-summary-card {
    background: #0E1017;
    border: 1px solid var(--hg-border);
    color: #fff;
    border-radius: 20px;
    padding: 1.75rem 2rem;
    margin-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hg-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
    color: #cbd5e1;
}

.hg-summary-row.total {
    border-bottom: none;
    padding-top: 16px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
}

/* Alerts */
.hg-alert-danger {
    background: rgba(255, 77, 77, 0.12);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff8080;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.hg-alert-success {
    background: rgba(0, 210, 106, 0.12);
    border: 1px solid rgba(0, 210, 106, 0.3);
    color: #00D26A;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* ==========================================
   Admin Portal SaaS Dashboard
   ========================================== */
/* ==========================================
   Admin Portal SaaS Dashboard
   ========================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--hg-bg);
    position: relative;
}

.admin-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
}

.admin-sidebar-overlay.active {
    display: block;
}

.admin-sidebar {
    width: 270px;
    background: #0A0B0E;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.25rem;
    border-right: 1px solid var(--hg-border);
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.admin-sidebar-close {
    display: none;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-sidebar a.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2.25rem;
    padding-left: 0.5rem;
}

.admin-sidebar a.admin-brand span {
    color: var(--hg-primary);
}

.admin-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 9999px;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.admin-nav a.active {
    background: var(--hg-primary);
    color: #fff;
    box-shadow: 0 0 16px var(--hg-primary-glow);
}

.admin-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}

.admin-topbar {
    background: #0E1017;
    border-bottom: 1px solid var(--hg-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 1rem;
}

.admin-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hg-border);
    color: #ffffff;
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.admin-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--hg-primary);
}

.admin-main {
    padding: 2rem;
    flex-grow: 1;
}

/* KPI Cards */
.hg-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hg-stat-card {
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hg-stat-val {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #FFFFFF;
    line-height: 1.2;
}

.hg-stat-label {
    color: var(--hg-slate);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.hg-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Modern Data Table */
.hg-table-card {
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    margin-bottom: 2rem;
}

.hg-table-head-bar {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--hg-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hg-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.hg-table th {
    background: #0E1017;
    color: var(--hg-slate);
    font-weight: 700;
    padding: 14px 18px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--hg-border);
}

.hg-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--hg-border-light);
    color: #e2e8f0;
    vertical-align: middle;
}

.hg-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

/* Modal Overlay */
.hg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 14, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.hg-modal-overlay.active {
    display: flex;
}

.hg-modal-content {
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    color: #e2e8f0;
}

.hg-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--hg-border);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hg-slate);
    font-size: 1rem;
}

.hg-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ==========================================
   Client Portal UI Components
   ========================================== */
.cl-layout {
    display: flex;
    min-height: 100vh;
    background: var(--hg-bg);
    position: relative;
    width: 100%;
}

.cl-sidebar {
    width: 260px;
    background: #0A0B0E;
    border-right: 1px solid var(--hg-border);
    color: #fff;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 1.5rem 1.25rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
}

.cl-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 1.5rem;
    border-bottom: 1px solid var(--hg-border);
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.cl-sidebar-close {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    align-items: center;
    justify-content: center;
}

.cl-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.cl-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    border-radius: 9999px;
    color: #94a3b8;
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cl-nav a:hover, .cl-nav a.active {
    background: rgba(53, 96, 255, 0.15);
    color: #fff;
}

.cl-nav a.active {
    background: var(--hg-primary);
    color: #fff;
    box-shadow: 0 0 16px var(--hg-primary-glow);
}

.cl-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}

.cl-topbar {
    background: #0E1017;
    border-bottom: 1px solid var(--hg-border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
}

.cl-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cl-mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hg-border);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.15rem;
    cursor: pointer;
}

.cl-body {
    padding: 2rem;
    flex: 1;
    width: 100%;
    max-width: 1400px;
}

.cl-welcome-card {
    background: linear-gradient(135deg, #181c2b 0%, #0E1017 100%);
    border: 1px solid var(--hg-border);
    border-radius: 24px;
    padding: 2.25rem;
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.cl-user-badge {
    background: rgba(0, 210, 106, 0.15);
    color: #00D26A;
    border: 1px solid rgba(0, 210, 106, 0.3);
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cl-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.cl-stat-box {
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cl-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.hg-service-hero {
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hg-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.hg-action-card {
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
    display: block;
}

.hg-action-card:hover {
    border-color: var(--hg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(53, 96, 255, 0.2);
}

.hg-action-icon {
    font-size: 2rem;
    color: var(--hg-primary);
    margin-bottom: 0.75rem;
}

/* ==========================================
   Modern Client Area Components & Tools
   ========================================== */
.hide-on-mobile {
    display: inline;
}
.show-on-mobile {
    display: none;
}

.cl-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.cl-tool-card {
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 18px;
    padding: 1.35rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cl-tool-card:hover {
    border-color: var(--hg-primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -8px rgba(53, 96, 255, 0.25);
}

.cl-tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.cl-tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cl-tool-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #FFFFFF;
    margin: 0;
}

.cl-tool-desc {
    color: var(--hg-slate);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.15rem;
    flex-grow: 1;
}

/* Service Card Components */
.cl-service-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cl-service-card {
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 18px;
    padding: 1.4rem 1.6rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cl-service-card:hover {
    border-color: var(--hg-primary);
    box-shadow: 0 8px 25px rgba(53, 96, 255, 0.2);
}

.cl-service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cl-service-info {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.cl-service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(53, 96, 255, 0.12);
    color: var(--hg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.cl-service-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 4px;
}

.cl-service-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--hg-slate);
    font-size: 0.88rem;
}

.cl-service-meta strong {
    color: #FFFFFF;
}

.cl-service-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* DNS Box */
.cl-dns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.cl-dns-box {
    background: #0E1017;
    border: 1px solid var(--hg-border);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cl-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 11, 14, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
    transition: opacity 0.3s ease;
}

.cl-sidebar-overlay.active {
    display: block;
}

/* Public Mobile Drawer Overlay */
.hg-drawer-overlay {
    position: fixed;
    inset: 0;
    top: 74px;
    background: rgba(10, 11, 14, 0.7);
    backdrop-filter: blur(6px);
    z-index: 995;
    display: none;
}

.hg-drawer-overlay.active {
    display: block;
}

/* Responsive Table Wrapper */
.hg-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: inherit;
    margin: 0;
    position: relative;
}

.hg-table-responsive::-webkit-scrollbar {
    height: 6px;
}

.hg-table-responsive::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.hg-table-responsive .hg-table {
    min-width: 740px;
    margin-bottom: 0;
}

/* Mobile Navbar Toggle & Drawer */
.hg-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hg-border);
    font-size: 1.2rem;
    color: #ffffff;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
}

.hg-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--hg-primary);
}

.hg-mobile-drawer {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: #0E1017;
    border-bottom: 2px solid var(--hg-border);
    padding: 1.25rem 1.5rem 1.75rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.75);
    z-index: 998;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideDownDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownDrawer {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hg-mobile-drawer.active {
    display: flex;
}

.hg-mobile-drawer a {
    font-size: 1rem;
    font-weight: 600;
    color: #cbd5e1;
    padding: 11px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.hg-mobile-drawer a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.hg-mobile-drawer a.drawer-btn-primary {
    background: var(--hg-primary);
    color: #fff !important;
    justify-content: center;
    border-radius: 9999px;
    margin-top: 0.5rem;
}

.hg-mobile-drawer a.drawer-btn-emerald {
    background: var(--hg-emerald);
    color: #061e12 !important;
    justify-content: center;
    border-radius: 9999px;
    font-weight: 700;
}

/* ==========================================
   Comprehensive Responsive System
   Mobile Phones (iOS & Android), Tablets & Laptops
   ========================================== */

/* Tablets and below (< 992px) */
@media (max-width: 992px) {
    .hg-menu { display: none !important; }
    .hg-nav-actions { display: none !important; }
    .hg-nav-toggle { display: inline-flex; }

    /* Client Portal Responsive Drawer */
    .cl-layout {
        flex-direction: column;
    }
    
    .cl-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 15px 0 35px rgba(0, 0, 0, 0.35);
    }

    .cl-sidebar.active {
        transform: translateX(0);
    }

    .cl-sidebar-close {
        display: flex;
    }

    .cl-mobile-toggle {
        display: inline-flex;
    }

    .cl-topbar {
        padding: 0.85rem 1.25rem;
    }

    .cl-body {
        padding: 1.5rem 1rem;
    }

    /* Admin Portal Responsive Drawer */
    .admin-layout {
        display: block;
        min-height: 100vh;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        z-index: 1050;
        transform: translateX(-100%);
        box-shadow: 15px 0 35px rgba(0, 0, 0, 0.45);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-sidebar-close {
        display: flex;
    }

    .admin-mobile-toggle {
        display: inline-flex;
    }

    .admin-topbar {
        padding: 0.85rem 1.25rem;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .admin-main {
        padding: 1.25rem 1rem;
    }

    .hg-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hg-pay-tabs {
        grid-template-columns: 1fr;
    }
}

/* Standard Mobile Phones & iOS Devices (< 768px) */
@media (max-width: 768px) {
    /* iOS Input Zoom Prevention */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    body {
        font-size: 14px;
        -webkit-text-size-adjust: 100%;
    }

    .container {
        padding: 0 1rem;
    }

    /* Hero */
    .hg-hero {
        padding: 3rem 0 2rem;
    }

    .hg-hero-title {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .hg-hero-desc {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .hg-hero-pills {
        gap: 0.5rem;
    }

    .hg-hero-pills span {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    .hg-tech-items {
        gap: 1.25rem;
        font-size: 0.85rem;
    }

    /* Section titles */
    .hg-section-title {
        font-size: 1.85rem;
    }

    /* Pricing card */
    .hg-pricing-grid {
        max-width: 100% !important;
    }

    .hg-card {
        padding: 1.75rem 1.25rem;
    }

    .hg-feature-grid {
        grid-template-columns: 1fr;
    }

    .hg-footer-grid {
        grid-template-columns: 1fr;
    }

    /* Forms */
    .hg-form-box {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .hg-order-grid {
        grid-template-columns: 1fr;
    }

    /* Navbar Mobile Adaptations */
    .hg-navbar {
        height: 66px;
    }

    .hg-brand img {
        max-height: 36px;
        width: auto;
    }

    .hg-drawer-overlay, .hg-mobile-drawer {
        top: 66px;
    }

    .hg-mobile-drawer {
        max-height: calc(100vh - 66px);
        padding: 1rem 1.25rem 1.5rem;
    }

    /* Admin Mobile Adaptations */
    .admin-topbar {
        padding: 0.75rem 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-topbar > div:first-child {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .admin-topbar h2 {
        font-size: 1.15rem !important;
    }

    .admin-topbar small {
        display: none;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 6px 14px;
        flex-shrink: 0;
    }

    /* Track & Invoice Card Mobile Polish */
    .hg-track-invoice {
        padding: 1.25rem 1rem !important;
        border-radius: 14px !important;
        margin: 1rem auto 2.5rem !important;
    }

    .hg-cred-box {
        padding: 1rem !important;
    }

    .hg-cred-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .hg-details-card > div:first-child {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Client Portal */
    .cl-welcome-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .cl-welcome-card h2 {
        font-size: 1.45rem;
    }

    .cl-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }

    .cl-stat-box {
        padding: 1rem;
        gap: 0.85rem;
    }

    .cl-stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    .cl-quick-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    .hg-service-hero {
        padding: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .hide-on-mobile {
        display: none !important;
    }
    .show-on-mobile {
        display: flex !important;
    }

    /* Client Topbar Polish */
    .cl-topbar {
        padding: 0.75rem 1rem;
    }

    .cl-tools-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .cl-service-card {
        padding: 1.15rem 1rem;
    }

    .cl-service-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .cl-service-actions {
        width: 100%;
    }

    .cl-service-actions .btn-hg {
        width: 100%;
        justify-content: center;
    }

    .cl-welcome-wallet-row {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .cl-welcome-wallet-row > div {
        width: 100%;
        text-align: left !important;
    }

    .btn-hg-lg {
        padding: 0.85rem 1.5rem;
        font-size: 0.98rem;
    }
}

/* Small Mobile Screens / iPhone SE & Mini (< 480px) */
@media (max-width: 480px) {
    .hg-hero-title {
        font-size: 1.85rem;
    }

    .cl-stat-grid {
        grid-template-columns: 1fr;
    }

    .cl-quick-grid {
        grid-template-columns: 1fr !important;
    }

    .hg-action-grid {
        grid-template-columns: 1fr;
    }

    .hg-topbar-actions {
        flex-wrap: wrap;
    }

    .hg-card .hg-price-val {
        font-size: 2.2rem;
    }

    .hg-radio-grid {
        grid-template-columns: 1fr;
    }

    .hg-form-box {
        padding: 1.25rem 0.85rem;
    }

    .hg-pill {
        font-size: 0.75rem;
        padding: 5px 12px;
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }
}

/* ===================================================
   MODERN BRANDED DIALOGS & TOAST NOTIFICATIONS
   Replaces browser "host says" popups
   =================================================== */

.hg-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 2rem);
}

.hg-toast {
    pointer-events: auto;
    background: var(--hg-surface);
    border: 1px solid var(--hg-border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.hg-toast.hg-toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.hg-toast.hg-toast-hiding {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
}

.hg-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.hg-toast-success {
    border-left: 4px solid var(--hg-emerald);
}
.hg-toast-success .hg-toast-icon {
    background: var(--hg-emerald-light);
    color: var(--hg-emerald);
}
.hg-toast-success .hg-toast-progress-bar {
    background: var(--hg-emerald);
}

.hg-toast-danger {
    border-left: 4px solid var(--hg-rose);
}
.hg-toast-danger .hg-toast-icon {
    background: var(--hg-rose-light);
    color: var(--hg-rose);
}
.hg-toast-danger .hg-toast-progress-bar {
    background: var(--hg-rose);
}

.hg-toast-warning {
    border-left: 4px solid var(--hg-amber);
}
.hg-toast-warning .hg-toast-icon {
    background: var(--hg-amber-light);
    color: var(--hg-amber);
}
.hg-toast-warning .hg-toast-progress-bar {
    background: var(--hg-amber);
}

.hg-toast-info {
    border-left: 4px solid var(--hg-primary);
}
.hg-toast-info .hg-toast-icon {
    background: var(--hg-primary-light);
    color: var(--hg-primary);
}
.hg-toast-info .hg-toast-progress-bar {
    background: var(--hg-primary);
}

.hg-toast-body {
    flex: 1;
    min-width: 0;
}

.hg-toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--hg-navy);
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.hg-toast-text {
    font-size: 0.88rem;
    color: var(--hg-slate);
    line-height: 1.45;
    word-break: break-word;
}

.hg-toast-close {
    background: transparent;
    border: none;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--hg-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.hg-toast-close:hover {
    color: var(--hg-navy);
    background: rgba(255, 255, 255, 0.08);
}

.hg-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.hg-toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: hgToastProgress linear forwards;
}

@keyframes hgToastProgress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Confirm Dialog Modal */
.hg-confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 14, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.hg-confirm-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.hg-confirm-dialog {
    background: var(--hg-surface);
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    padding: 2.25rem 1.75rem 2rem;
    text-align: center;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--hg-border);
}

.hg-confirm-modal-overlay.active .hg-confirm-dialog {
    transform: scale(1) translateY(0);
}

.hg-confirm-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.hg-confirm-type-danger {
    background: var(--hg-rose-light);
    color: var(--hg-rose);
    border: 2px solid var(--hg-rose-border);
}

.hg-confirm-type-warning {
    background: var(--hg-amber-light);
    color: var(--hg-amber);
    border: 2px solid var(--hg-amber-border);
}

.hg-confirm-type-primary {
    background: var(--hg-primary-light);
    color: var(--hg-primary);
    border: 2px solid var(--hg-primary-border);
}

.hg-confirm-type-success {
    background: var(--hg-emerald-light);
    color: var(--hg-emerald);
    border: 2px solid var(--hg-emerald-border);
}

.hg-confirm-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--hg-navy);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.hg-confirm-message {
    font-size: 0.95rem;
    color: var(--hg-slate);
    line-height: 1.5;
    margin-bottom: 1.75rem;
    word-break: break-word;
}

.hg-confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.hg-confirm-actions button {
    flex: 1;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .hg-toast-container {
        right: 1rem;
        left: 1rem;
        top: 1rem;
        width: auto;
    }
    .hg-confirm-actions {
        flex-direction: column-reverse;
    }
    .hg-confirm-actions button {
        width: 100%;
    }
}

/* ===================================================
   Premium Credential / cPanel Login Box (Cosmic Dark)
   =================================================== */
.hg-cred-box {
    background: rgba(0, 210, 106, 0.08) !important;
    border: 1.5px solid rgba(0, 210, 106, 0.28) !important;
    border-radius: 20px;
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 210, 106, 0.12);
}

.hg-cred-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #34d399, #00D26A);
    border-radius: 20px 20px 0 0;
}

.hg-cred-box::after {
    content: '\f084';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 6rem;
    color: rgba(0, 210, 106, 0.04);
    transform: rotate(20deg);
    pointer-events: none;
}

.hg-cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.1rem;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(0, 210, 106, 0.2) !important;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    gap: 1rem;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    color: #cbd5e1;
}

.hg-cred-row:last-child {
    margin-bottom: 0;
}

.hg-cred-row:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(0, 210, 106, 0.45) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hg-cred-row span {
    color: #34d399 !important;
    font-weight: 600;
}

.hg-cred-row strong {
    color: #ffffff !important;
}

/* ===================================================
   Universal Mobile & Any Device Auto-Adjustment Rules
   =================================================== */

/* Ensure zero horizontal viewport overflow anywhere */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
}

/* Prevent image and media blowout */
img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

/* Tablet & Mobile Screens (<= 992px) */
@media (max-width: 992px) {
    .hg-table-card {
        overflow: hidden;
        border-radius: 16px;
    }
    .hg-pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    .admin-layout, .cl-layout {
        flex-direction: column;
    }
}

/* Standard Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    /* Prevent iOS Safari 16px zoom bug */
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea,
    .hg-form-input,
    .hg-form-select,
    .hg-form-control {
        font-size: 16px !important;
    }

    /* Container fluid padding */
    .container {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    /* Hero Section Auto-fit */
    .hg-hero-section {
        padding: 3rem 0 3.5rem;
    }
    .hg-hero-title {
        font-size: clamp(1.9rem, 7vw, 2.6rem) !important;
        line-height: 1.22 !important;
    }
    .hg-hero-desc {
        font-size: 0.95rem !important;
        padding: 0 0.25rem;
        line-height: 1.6;
    }
    .hg-hero-pills {
        justify-content: center;
        gap: 0.5rem;
    }
    .hg-hero-pills span {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    /* Domain Search Bar Mobile Clean Flow */
    .hg-domain-search {
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
        gap: 0.6rem;
        border-radius: 20px;
    }
    .hg-domain-search input {
        width: 100%;
        padding: 0.75rem 0.85rem !important;
        text-align: center;
    }
    .hg-domain-search .btn-hg {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }
    .hg-domain-tlds {
        gap: 0.85rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Features Grid Auto-fit */
    .hg-features-grid, .hg-feature-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* Order Page Responsive Flow */
    .hg-form-box {
        padding: 1.5rem 1.15rem !important;
        margin: 1.25rem auto 3rem !important;
        border-radius: 16px !important;
    }
    .hg-form-step-title {
        font-size: 1.15rem;
        gap: 0.75rem;
    }
    .hg-radio-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)) !important;
        gap: 0.75rem !important;
    }
    .hg-radio-card {
        padding: 1rem !important;
        border-radius: 14px !important;
    }
    .hg-pay-tabs {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .hg-pay-tab {
        padding: 1rem 0.65rem !important;
        border-radius: 14px !important;
    }
    .hg-dropzone {
        padding: 1.5rem 1rem !important;
        border-radius: 14px !important;
    }
    .hg-summary-card {
        padding: 1.35rem 1.15rem !important;
        border-radius: 16px !important;
    }

    /* Track Page Mobile Clean Flow */
    .hg-track-invoice {
        padding: 1.35rem 1.1rem !important;
        border-radius: 16px !important;
        margin: 1rem auto 2.5rem !important;
    }
    .hg-cred-box {
        padding: 1.25rem 1rem !important;
        border-radius: 16px !important;
    }
    .hg-cred-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
        padding: 0.85rem 0.9rem !important;
    }
    .hg-cred-row > div {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    /* Table Scroll on Mobile */
    .hg-table-responsive {
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .hg-table th, .hg-table td {
        padding: 11px 12px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
    }

    /* Modals Auto-fit on Mobile */
    .hg-modal-content {
        padding: 1.35rem 1.1rem !important;
        border-radius: 18px !important;
        width: 95% !important;
    }
    .whm-tab-content div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
}

/* Compact Mobile Screens & iPhone SE (<= 480px) */
@media (max-width: 480px) {
    .hg-hero-title {
        font-size: 1.75rem !important;
    }
    .hg-pay-tabs {
        grid-template-columns: 1fr !important;
    }
    .hg-radio-grid {
        grid-template-columns: 1fr !important;
    }
    .hg-stats-grid, .cl-stat-grid {
        grid-template-columns: 1fr !important;
    }
    .hg-cred-box::after {
        display: none !important;
    }
    .btn-hg-lg {
        padding: 11px 18px !important;
        font-size: 0.92rem !important;
    }
    .cl-quick-grid, .hg-action-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }
    .cl-body {
        padding: 1rem 0.75rem !important;
    }
}

/* ==========================================
   SLDevHub Authentication & Portal Card Styling
   ========================================== */
.hg-login-wrapper, .hg-register-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hg-bg) !important;
    background-image: 
        radial-gradient(circle at 50% 15%, rgba(53, 96, 255, 0.28) 0%, transparent 65%),
        var(--hg-bg) !important;
    padding: 2rem 1rem !important;
}

.hg-client-login-card, .hg-client-register-card, .login-card {
    background: rgba(20, 22, 32, 0.88) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--hg-border) !important;
    border-radius: 24px !important;
    padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2.25rem) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(53, 96, 255, 0.12) !important;
    text-align: center;
    width: 100%;
    max-width: 440px;
}
