/* regcity brand palette — overrides FOSSBilling/Huraga default blue theme with the regcity logo blue */

:root,
[data-bs-theme="light"] {
    --bs-primary: #2f78de;
    --bs-primary-rgb: 47, 120, 222;
    --bs-primary-text-emphasis: #1a4b8f;
    --bs-primary-bg-subtle: #e1ecfc;
    --bs-primary-border-subtle: #a8c6f3;
    --bs-link-color: #2f78de;
    --bs-link-color-rgb: 47, 120, 222;
    --bs-link-hover-color: #2361ba;
    --bs-link-hover-color-rgb: 35, 97, 186;
    --bs-focus-ring-color: rgba(47, 120, 222, .25);
}

[data-bs-theme="dark"] {
    --bs-primary: #6fa4ec;
    --bs-primary-rgb: 111, 164, 236;
    --bs-primary-text-emphasis: #bcd6f8;
    --bs-primary-bg-subtle: #10223f;
    --bs-primary-border-subtle: #1f4a86;
    --bs-link-color: #6fa4ec;
    --bs-link-color-rgb: 111, 164, 236;
    --bs-link-hover-color: #9cc2f3;
    --bs-link-hover-color-rgb: 156, 194, 243;
}

.btn-primary {
    --bs-btn-bg: #2f78de;
    --bs-btn-border-color: #2f78de;
    --bs-btn-hover-bg: #2867c2;
    --bs-btn-hover-border-color: #2360b3;
    --bs-btn-focus-shadow-rgb: 47, 120, 222;
    --bs-btn-active-bg: #235aa7;
    --bs-btn-active-border-color: #235aa7;
    --bs-btn-disabled-bg: #2f78de;
    --bs-btn-disabled-border-color: #2f78de;
}

.btn-outline-primary {
    --bs-btn-color: #2f78de;
    --bs-btn-border-color: #2f78de;
    --bs-btn-hover-bg: #2f78de;
    --bs-btn-hover-border-color: #2f78de;
    --bs-btn-focus-shadow-rgb: 47, 120, 222;
    --bs-btn-active-bg: #2f78de;
    --bs-btn-active-border-color: #2f78de;
    --bs-btn-disabled-color: #2f78de;
    --bs-btn-disabled-border-color: #2f78de;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #86b7e8;
    box-shadow: 0 0 0 .25rem rgba(47, 120, 222, .25);
}

.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate {
    background-color: #2f78de;
    border-color: #2f78de;
}

.form-range:focus::-webkit-slider-thumb,
.form-range::-webkit-slider-thumb,
.form-range:focus::-moz-range-thumb,
.form-range::-moz-range-thumb {
    background-color: #2f78de;
}

.nav-pills {
    --bs-nav-pills-link-active-bg: #2f78de;
}

.nav-link:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(47, 120, 222, .25);
}

.pagination {
    --bs-pagination-active-bg: #2f78de;
    --bs-pagination-active-border-color: #2f78de;
    --bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(47, 120, 222, .25);
}

.progress {
    --bs-progress-bar-bg: #2f78de;
}

.dropdown-menu,
.dropdown-menu-dark {
    --bs-dropdown-link-active-bg: #2f78de;
}

/* Soften the default corners for a slightly more modern feel */
.card,
.btn,
.form-control,
.form-select,
.input-group,
.alert {
    --bs-border-radius: .6rem;
}

/*
 * Inline SVG icons sit on the text baseline by default, which adds descender
 * space below the label and makes buttons taller than their text-only siblings.
 */
.icon {
    vertical-align: -.2em;
}

.btn .icon {
    margin-right: .35rem;
}

.btn .icon:only-child {
    margin-right: 0;
}

.navbar-brand .brand-logo {
    height: 34px;
    width: auto;
}

@media (min-width: 576px) {
    .navbar-brand .brand-logo {
        height: 42px;
    }
}

/* Keep the hero search on a single row instead of wrapping the button below */
#hero-domain-search .input-group {
    flex-wrap: nowrap;
}

/* Compact circular "back to top" so it does not cover content on small screens */
.to-top-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    opacity: .9;
}


/* ==========================================================================
   Landing page
   The theme's CSS build purges unused Bootstrap utilities, so the marketing
   page uses its own classes instead of relying on grid/spacing helpers that
   may not survive the next theme build.
   ========================================================================== */

body.landing {
    overflow-x: hidden;
}

/* The client area nests a container inside a container and then puts content
   in a 9-column block. Let the landing use the full viewport instead. */
body.landing .app-content {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

body.landing .app-content > .row > [class*="col-"] {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}

body.landing .content-block {
    padding: 0;
}

.lp-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 4.5rem 0;
}

.lp-band--muted {
    background: var(--bs-tertiary-bg);
}

.lp-band--accent {
    background: var(--bs-primary-bg-subtle);
}

.lp-band--hero {
    background: linear-gradient(170deg, var(--bs-primary-bg-subtle) 0%, var(--bs-body-bg) 100%);
    padding: 5rem 0 4rem;
}

.lp-section {
    padding: 4.5rem 0;
}

.lp-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.lp-inner--narrow {
    max-width: 820px;
}

/* --- typography ---------------------------------------------------------- */

.lp-title {
    text-wrap: balance;
    max-width: 20ch;
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 auto 1rem;
}

.lp-subtitle {
    font-size: 1.125rem;
    color: var(--bs-secondary-color);
    margin: 0 auto 2rem;
    max-width: 44rem;
}

.lp-heading {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 .5rem;
}

.lp-lede {
    color: var(--bs-secondary-color);
    margin: 0 0 2rem;
}

.lp-center {
    text-align: center;
}

.lp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.lp-head > div {
    min-width: 0;
}

/* --- hero ---------------------------------------------------------------- */

.lp-search {
    max-width: 640px;
    margin: 0 auto;
}

.lp-search .input-group {
    box-shadow: 0 12px 30px rgba(15, 35, 75, .12);
    border-radius: .75rem;
    overflow: hidden;
}

.lp-hint {
    color: var(--bs-secondary-color);
    font-size: .875rem;
    margin: .75rem 0 0;
}

.lp-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 2rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--bs-secondary-color);
    font-size: .9375rem;
}

.lp-stats li {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.lp-stats li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--bs-primary);
    opacity: .5;
}

.lp-stats strong {
    color: var(--bs-body-color);
}

/* --- extension ribbon ---------------------------------------------------- */

.lp-ribbon {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 1.1rem 0;
    border-top: 1px solid var(--bs-border-color);
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-body-bg);
}

.lp-ribbon-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

.lp-chip {
    display: inline-flex;
    align-items: baseline;
    gap: .45rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 50rem;
    padding: .3rem 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bs-body-color);
    transition: border-color .15s ease, color .15s ease;
}

.lp-chip span {
    font-weight: 400;
    font-size: .875rem;
    color: var(--bs-secondary-color);
}

.lp-chip:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.lp-chip--more {
    border-style: dashed;
    color: var(--bs-primary);
}

/* --- grids --------------------------------------------------------------- */

.lp-grid {
    display: grid;
    gap: 1rem;
}

.lp-grid--prices {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) {
    .lp-grid--prices {
        grid-template-columns: repeat(4, 1fr);
    }
}

.lp-grid--features {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.lp-grid--steps {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

/* --- cards --------------------------------------------------------------- */

.lp-price {
    display: block;
    text-align: center;
    padding: 1.25rem .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .85rem;
    background: var(--bs-body-bg);
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.lp-price:hover {
    transform: translateY(-2px);
    border-color: var(--bs-primary);
    box-shadow: 0 8px 20px rgba(15, 35, 75, .08);
    color: inherit;
}

.lp-price-tld {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.lp-price-now {
    margin-top: .35rem;
    font-weight: 600;
    color: var(--bs-primary);
}

.lp-price-renew {
    font-size: .8125rem;
    color: var(--bs-secondary-color);
    margin-top: .1rem;
    min-height: 1.2em;
}

.lp-feature {
    padding: 1.5rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .85rem;
    background: var(--bs-body-bg);
    height: 100%;
}

.lp-feature .icon {
    width: 26px;
    height: 26px;
    color: var(--bs-primary);
    margin-bottom: .85rem;
}

.lp-feature h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 .4rem;
    min-height: 2.6em;
}

.lp-feature p {
    font-size: .9rem;
    color: var(--bs-secondary-color);
    margin: 0;
}

/* --- steps --------------------------------------------------------------- */

.lp-step {
    display: flex;
    gap: 1rem;
}

.lp-step-number {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 700;
}

.lp-step h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: .35rem 0 .4rem;
}

.lp-step p {
    color: var(--bs-secondary-color);
    font-size: .9rem;
    margin: 0;
}

/* --- payments ------------------------------------------------------------ */

.lp-eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .75rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    margin: 0 0 1.25rem;
}

.lp-pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.lp-pay-item {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 50rem;
    padding: .45rem 1.1rem;
    background: var(--bs-body-bg);
    font-size: .9375rem;
    font-weight: 500;
}

.lp-pay-item img {
    height: 22px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
}

/* --- faq ----------------------------------------------------------------- */

.lp-faq .accordion-item {
    border-radius: .75rem !important;
    border: 1px solid var(--bs-border-color);
    margin-bottom: .6rem;
    overflow: hidden;
}

.lp-faq .accordion-button {
    font-weight: 600;
}

.lp-faq .accordion-button:not(.collapsed) {
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
    box-shadow: none;
}

/* --- cta ----------------------------------------------------------------- */

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 1.75rem;
}

.lp-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.75rem;
    font-size: .9rem;
}

@media (max-width: 767.98px) {
    .lp-band,
    .lp-section {
        padding: 3rem 0;
    }

    .lp-band--hero {
        padding: 3rem 0 2.5rem;
    }
}

/* The theme build strips px-3/px-4/link-secondary/input-group-lg, so the landing
   styles its own controls instead of depending on those utilities. */
.lp-search .form-control,
.lp-search .form-select {
    font-size: 1.0625rem;
    padding-top: .85rem;
    padding-bottom: .85rem;
}

.lp-search .form-control {
    padding-left: 1.1rem;
}

.lp-search .btn {
    font-size: 1.0625rem;
    font-weight: 600;
    padding-left: 1.4rem;
    padding-right: 1.4rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.lp-actions .btn {
    padding: .7rem 1.6rem;
    font-size: 1.0625rem;
    font-weight: 600;
}

.lp-links a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.lp-links a:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

.lp-head .btn {
    padding: .5rem 1.15rem;
    white-space: nowrap;
}

/* Availability results dropped under the hero search. */
#hero-domain-result.list-group {
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 35, 75, .1);
}

/* link-secondary is stripped by the theme's CSS purge, so plain secondary-text
   links (login page, footnotes) use this instead. */
.link-muted {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.link-muted:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

/* Solid "Available" pill in hero search results; the theme build strips
   Bootstrap's *-subtle / *-emphasis utilities, which left it washed out. */
.lp-avail {
    display: inline-block;
    margin-left: .35rem;
    padding: .2em .6em;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
    color: #fff;
    background-color: #198754;
}
