/* ==========================================================================
   MyHosting Gold - Namecheap-Inspired Light Gold WHMCS Theme
   File: templates/myhosting/css/custom.css
   ========================================================================== */

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

:root {
    --gold-primary: #C99A2E;
    --gold-bright: #E5B84B;
    --gold-light: #F7E8BE;
    --gold-soft-bg: #FCF9F0;
    --gold-border: #EBD598;
    --gold-hover: #AF8320;
    --dark-navy: #161922;
    --dark-slate: #222634;
    --text-main: #1E2330;
    --text-muted: #5E6678;
    --bg-body: #F8F9FA;
    --white: #FFFFFF;
    --success-green: #10B981;
    --radius-lg: 14px;
    --radius-md: 10px;
    --shadow-sm: 0 2px 10px rgba(22, 25, 34, 0.05);
    --shadow-md: 0 10px 30px rgba(22, 25, 34, 0.08);
    --shadow-gold: 0 8px 25px rgba(201, 154, 46, 0.25);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
}

/* ==========================================================================
   1. GLOBAL WHMCS & BOOTSTRAP OVERRIDES
   ========================================================================== */
a {
    color: var(--gold-primary);
    transition: all 0.2s ease;
}
a:hover {
    color: var(--gold-hover);
    text-decoration: none;
}

.btn-primary,
.btn-gold {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-primary) 100%) !important;
    border: 1px solid var(--gold-primary) !important;
    color: #161922 !important;
    font-weight: 700 !important;
    border-radius: 8px;
    padding: 0.65rem 1.4rem;
    box-shadow: 0 4px 14px rgba(201, 154, 46, 0.22);
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-hover) 100%) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 700;
    border-radius: 8px;
    padding: 0.6rem 1.35rem;
    transition: all 0.2s ease;
}
.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: #161922;
}

.btn-dark-gold {
    background-color: var(--dark-navy);
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
    font-weight: 700;
    border-radius: 8px;
    padding: 0.65rem 1.4rem;
}
.btn-dark-gold:hover {
    background-color: var(--gold-primary);
    color: var(--dark-navy);
}

/* Form Controls */
.form-control {
    border-radius: 8px;
    border: 1.5px solid #DCE1EB;
    padding: 0.65rem 1rem;
    height: auto;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.18);
}

/* ==========================================================================
   2. NAMECHEAP-STYLE TOP UTILITY BAR & MAIN NAVBAR
   ========================================================================== */
.nc-topbar {
    background-color: var(--dark-navy);
    color: #CBD2E0;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(235, 213, 152, 0.12);
}

.nc-topbar a {
    color: #CBD2E0;
    margin-left: 1.25rem;
    font-weight: 500;
}
.nc-topbar a:hover {
    color: var(--gold-bright);
}

.nc-promo-pill {
    background: rgba(229, 184, 75, 0.18);
    color: var(--gold-light);
    border: 1px solid rgba(229, 184, 75, 0.4);
    padding: 2px 10px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
}

.nc-navbar {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 2px solid var(--gold-soft-bg);
}

.nc-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-navy) !important;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.nc-brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
    color: var(--dark-navy);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(201, 154, 46, 0.3);
}

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

.nc-nav-links .nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
}
.nc-nav-links .nav-link:hover,
.nc-nav-links .nav-link.active {
    color: var(--gold-primary) !important;
    background-color: var(--gold-soft-bg);
}

/* Client Area Sub-navigation bar when logged in */
.nc-client-subnav {
    background-color: var(--dark-slate);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0;
}
.nc-client-subnav .navbar-nav .nav-link {
    color: #E2E8F0 !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem !important;
}
.nc-client-subnav .navbar-nav .nav-link:hover {
    color: var(--gold-bright) !important;
}

/* ==========================================================================
   3. NAMECHEAP-STYLE HERO & DOMAIN SEARCH
   ========================================================================== */
.nc-hero {
    background: radial-gradient(circle at top right, #2D2618 0%, var(--dark-navy) 65%);
    color: var(--white);
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--gold-primary);
}

.nc-hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(229, 184, 75, 0.14);
    border: 1px solid rgba(229, 184, 75, 0.4);
    color: var(--gold-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.nc-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.8px;
    margin-bottom: 1rem;
    color: var(--white);
}

.nc-hero h1 .text-gold {
    color: var(--gold-bright);
}

.nc-hero p.lead {
    color: #CBD5E1;
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2rem;
}

/* Namecheap Search Bar Box */
.nc-search-wrapper {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    border: 2px solid var(--gold-border);
}

.nc-search-input {
    border: none !important;
    box-shadow: none !important;
    font-size: 1.08rem;
    padding: 0.85rem 1.2rem;
    flex-grow: 1;
    color: var(--text-main);
    font-weight: 500;
}

.nc-search-btn {
    padding: 0.9rem 2rem !important;
    font-size: 1.02rem;
    border-radius: 8px !important;
    white-space: nowrap;
}

.nc-transfer-btn {
    background: #F1F5F9;
    color: var(--text-main);
    font-weight: 600;
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    margin-left: 6px;
    white-space: nowrap;
    border: 1px solid #E2E8F0;
}
.nc-transfer-btn:hover {
    background: var(--gold-soft-bg);
    color: var(--gold-hover);
}

/* TLD Pills under search bar */
.nc-tld-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.nc-tld-pill {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(247, 232, 190, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #E2E8F0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nc-tld-pill strong {
    color: var(--gold-bright);
    font-weight: 800;
}

/* ==========================================================================
   4. PROMO STRIP & CPANEL PRICING CARDS (NAMECHEAP STYLE)
   ========================================================================== */
.nc-promo-strip {
    background: linear-gradient(90deg, var(--gold-soft-bg) 0%, #FFFDF7 50%, var(--gold-soft-bg) 100%);
    border-bottom: 1px solid var(--gold-border);
    padding: 1rem 0;
}

.nc-section-title {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--dark-navy);
    letter-spacing: -0.5px;
}

.nc-pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1.5px solid #E5E7EB;
    padding: 2.2rem 1.8rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.nc-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-bright);
}

.nc-pricing-card.popular {
    border: 2.5px solid var(--gold-primary);
    background: linear-gradient(180deg, #FFFCF5 0%, #FFFFFF 35%);
    box-shadow: 0 14px 35px rgba(201, 154, 46, 0.16);
}

.nc-popular-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
    color: var(--dark-navy);
    font-weight: 800;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(201, 154, 46, 0.3);
}

.nc-plan-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark-navy);
    margin-bottom: 0.25rem;
}

.nc-plan-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.nc-discount-tag {
    display: inline-block;
    background-color: var(--gold-light);
    color: #7C580B;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 6px;
    margin-left: 6px;
}

.nc-price-block {
    margin: 1rem 0 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #F1F5F9;
}

.nc-price-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--dark-navy);
    line-height: 1;
}

.nc-price-period {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nc-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    flex-grow: 1;
}

.nc-feature-list li {
    padding: 0.5rem 0;
    font-size: 0.94rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.nc-feature-list li i {
    color: var(--gold-primary);
    margin-right: 10px;
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

/* ==========================================================================
   5. FEATURES GRID & TRUST BANNERS
   ========================================================================== */
.nc-feature-box {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    height: 100%;
    transition: all 0.2s ease;
}

.nc-feature-box:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-md);
}

.nc-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--gold-soft-bg);
    border: 1px solid var(--gold-border);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.15rem;
}

/* ==========================================================================
   6. AUTH PAGES (LOGIN & REGISTER)
   ========================================================================== */
.nc-auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #E5E7EB;
    overflow: hidden;
    margin: 2rem 0 3rem;
}

.nc-auth-sidebar {
    background: linear-gradient(155deg, var(--dark-navy) 0%, #2B2415 100%);
    color: var(--white);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 3px solid var(--gold-primary);
}

/* ==========================================================================
   7. CLIENT AREA DASHBOARD & TABLES
   ========================================================================== */
.nc-dashboard-welcome {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #2B2416 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    margin-bottom: 1.75rem;
    border-bottom: 3px solid var(--gold-primary);
    box-shadow: var(--shadow-md);
}

.nc-stat-tile {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.5rem;
    border: 1px solid #E5E7EB;
    border-left: 4px solid var(--gold-primary);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease;
}
.nc-stat-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.nc-stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--dark-navy);
    line-height: 1.1;
}

.nc-stat-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.nc-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gold-soft-bg);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.nc-footer {
    background-color: var(--dark-navy);
    color: #94A3B8;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 4px solid var(--gold-primary);
}

.nc-footer h5 {
    color: var(--gold-light);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.nc-footer ul {
    list-style: none;
    padding: 0;
}

.nc-footer ul li {
    margin-bottom: 0.65rem;
}

.nc-footer ul li a {
    color: #94A3B8;
    font-size: 0.92rem;
}

.nc-footer ul li a:hover {
    color: var(--gold-bright);
    padding-left: 4px;
}

.nc-payment-badge {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-right: 6px;
    display: inline-block;
}

/* ==========================================================================
   Global Button Alignment, Domain Search/Transfer & Dashboard Fixes
   ========================================================================== */
.btn,
.btn-gold,
.btn-outline-gold,
.btn-dark-gold,
.btn-primary,
.btn-success,
.btn-info,
.btn-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    box-sizing: border-box;
    line-height: 1.3;
}

/* Ensure side-by-side buttons never have uneven top margins */
.btn + .btn,
.btn + .btn-group,
.btn-group + .btn {
    margin-top: 0 !important;
}

/* Fix WHMCS Client Area "Register a New Domain" Panel & Domain Checker Buttons */
div[menuItemName="Register a New Domain"] form .input-group,
#frmDomainChecker .input-group,
#frmDomainHomepage .input-group {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 8px;
}

div[menuItemName="Register a New Domain"] form .input-group .form-control {
    flex: 1 1 200px !important;
    border-radius: 8px !important;
    height: 42px !important;
}

div[menuItemName="Register a New Domain"] form .input-group-append,
div[menuItemName="Register a New Domain"] form .input-group-btn,
div[menuItemName="Register a New Domain"] form .btn-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

div[menuItemName="Register a New Domain"] form input[type="submit"],
div[menuItemName="Register a New Domain"] form button[type="submit"],
#frmDomainChecker button[type="submit"],
#frmDomainChecker input[type="submit"] {
    height: 42px !important;
    padding: 0 18px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fix Standard Cart Domain Register / Transfer Switcher & Buttons */
#order-standard_cart .domain-selection-options .option,
#order-standard_cart .domain-input-group .input-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#order-standard_cart .btn,
.client-home-cards .card-header .btn {
    white-space: nowrap;
}

/* Ensure Card Headers in Client Area Dashboard never overlap titles & buttons */
.client-home-cards .card-header h5.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.client-home-cards .card-header h5.card-title .float-right {
    float: none !important;
    margin-left: auto;
    order: 2;
}

@media (max-width: 767px) {
    .nc-hero h1 {
        font-size: 2.1rem;
    }
    .nc-search-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    .nc-search-input,
    .nc-search-btn,
    .nc-transfer-btn {
        width: 100%;
        margin-left: 0;
    }
}
