/* =============================================
   ServerFellows Custom Theme (Order Form)
   Shares design tokens with serverfellowsclientarea.
   ============================================= */

/* Global hide helpers — only .hidden / [hidden] force display:none.
   NOTE: .message-h is a lagom2 LAYOUT class (horizontal flex), NOT a hide
   helper — do not include it here, or jQuery .show() can never reveal a
   message and search results stack up incorrectly. */
html body .hidden,
html body [hidden] {
    display: none !important;
}

/* Hide upsell sections per user request:
   - "Recommended for you" (product recommendations)
   - "Protect a single domain" (MarketConnect SSL upsell)
   - "Addons and Extras" (domain addons/marketconnect promos) */
html body .product-recommendations-container,
html body .product-recommendations,
html body .recommendations-complete,
html body .recommendations-modal,
html body #recommendationsModal,
html body .marketconnect-promo,
html body .panel-marketconnect,
html body .marketconnect-container,
html body .marketconnect-banners,
html body .ssl-upsell,
html body .domain-addons-panel,
html body .addons-extras,
html body .panel-addons-extras,
html body #addonsExtras,
html body .panel-protect-domain,
html body .panel-domain-protection {
    display: none !important;
}

/* Hide the entire Available Addons / Additional Services container when it has
   no inner .section (i.e. no promo addons AND no $addons rendered by smarty).
   The wrapper div#productAddonsContainer is always emitted; its children .section
   are conditionally rendered. Without this, an empty grey section block shows. */
#productAddonsContainer:not(:has(> .section)) {
    display: none !important;
}

/* =============================================
   LAGOM ICON FALLBACK — replaces missing lm/ls font icons with Font Awesome 5
   ============================================= */
i.lm::before, i.ls::before,
.lm::before, .ls::before,
[class*=" lm-"]::before, [class^="lm-"]::before,
[class*=" ls-"]::before, [class^="ls-"]::before {
    font-family: "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    line-height: 1;
}
.lm-trash::before,   .ls-trash::before    { content: "\f1f8"; }
.lm-check::before,   .ls-check::before    { content: "\f00c"; }
.lm-close::before,   .ls-close::before,
.lm-times::before,   .ls-times::before    { content: "\f00d"; }
.lm-edit::before,    .ls-edit::before     { content: "\f044"; }
.lm-search::before,  .ls-search::before   { content: "\f002"; }
.lm-share::before,   .ls-share::before    { content: "\f064"; }
.lm-user::before,    .ls-user::before     { content: "\f007"; }
.lm-shield::before,  .ls-shield::before   { content: "\f3ed"; }
.lm-download::before, .ls-download::before{ content: "\f019"; }
.lm-refresh::before, .ls-refresh::before  { content: "\f2f1"; }
.lm-box::before,     .ls-box::before,
.lm-cube::before,    .ls-cube::before     { content: "\f1b2"; }
.lm-menu::before,    .ls-menu::before,
.lm-bars::before,    .ls-bars::before     { content: "\f0c9"; }
.lm-plus::before,    .ls-plus::before     { content: "\f067"; }
.lm-minus::before,   .ls-minus::before    { content: "\f068"; }
.lm-info-circle::before, .ls-info-circle::before { content: "\f05a"; }
.lm-exclamation-circle::before, .ls-exclamation-circle::before { content: "\f06a"; }
.lm-envelope::before, .ls-envelope::before { content: "\f0e0"; }
.lm-lock::before,    .ls-lock::before     { content: "\f023"; }
.lm-unlock::before,  .ls-unlock::before   { content: "\f09c"; }
.lm-cog::before,     .ls-cog::before      { content: "\f013"; }
.lm-globe::before,   .ls-globe::before    { content: "\f0ac"; }
.lm-calendar::before, .ls-calendar::before { content: "\f073"; }
.lm-arrow-right::before, .ls-arrow-right::before { content: "\f061"; }
.lm-arrow-left::before, .ls-arrow-left::before { content: "\f060"; }
.lm-chevron-down::before, .ls-chevron-down::before { content: "\f078"; }
.lm-chevron-up::before, .ls-chevron-up::before { content: "\f077"; }
.lm-chevron-right::before, .ls-chevron-right::before { content: "\f054"; }
.lm-chevron-left::before, .ls-chevron-left::before { content: "\f053"; }
.lm-eye::before,     .ls-eye::before      { content: "\f06e"; }
.lm-eye-slash::before, .ls-eye-slash::before { content: "\f070"; }
.lm-star::before,    .ls-star::before     { content: "\f005"; }
.lm-heart::before,   .ls-heart::before    { content: "\f004"; }
.lm-copy::before,    .ls-copy::before     { content: "\f0c5"; }
.lm-file::before,    .ls-file::before     { content: "\f15b"; }
.lm-folder::before,  .ls-folder::before   { content: "\f07b"; }
.lm-home::before,    .ls-home::before     { content: "\f015"; }
.lm-credit-card::before, .ls-credit-card::before { content: "\f09d"; }
.lm-ticket::before,  .ls-ticket::before   { content: "\f3ff"; }
.lm-phone::before,   .ls-phone::before    { content: "\f095"; }
.lm-key::before,     .ls-key::before      { content: "\f084"; }
.lm-power::before,   .ls-power::before    { content: "\f011"; }
.lm-logout::before,  .ls-logout::before,
.lm-sign-out::before, .ls-sign-out::before { content: "\f2f5"; }
.lm-bookmark::before, .ls-bookmark::before { content: "\f02e"; }
.lm-bell::before,    .ls-bell::before     { content: "\f0f3"; }
.lm-list::before,    .ls-list::before     { content: "\f03a"; }
.lm-grid::before,    .ls-grid::before,
.lm-th::before,      .ls-th::before       { content: "\f009"; }
.lm-cart::before,    .ls-cart::before,
.lm-shopping-cart::before, .ls-shopping-cart::before { content: "\f07a"; }


/* ---- Design Tokens (mirrors React Tailwind config) ---- */
:root {
    --sf-brand-50:  #fef2f2;
    --sf-brand-100: #fee2e2;
    --sf-brand-200: #fecaca;
    --sf-brand-300: #fca5a5;
    --sf-brand-400: #f87171;
    --sf-brand-500: #dc2626;
    --sf-brand-600: #b91c1c;
    --sf-brand-700: #991b1b;
    --sf-brand-800: #7f1d1d;
    --sf-brand-900: #7c1515;
    --sf-brand-950: #450a0a;

    --sf-slate-50:  #f8fafc;
    --sf-slate-100: #f1f5f9;
    --sf-slate-200: #e2e8f0;
    --sf-slate-300: #cbd5e1;
    --sf-slate-400: #94a3b8;
    --sf-slate-500: #64748b;
    --sf-slate-600: #475569;
    --sf-slate-700: #334155;
    --sf-slate-800: #1e293b;
    --sf-slate-900: #0f172a;

    --sf-bg:            #ffffff;
    --sf-bg-muted:      #f8fafc;
    --sf-surface:       #ffffff;
    --sf-border:        #e2e8f0;
    --sf-text:          #334155;
    --sf-text-strong:   #0f172a;
    --sf-text-muted:    #64748b;
    --sf-text-inverse:  #ffffff;
    --sf-primary:       #b91c1c;
    --sf-primary-hover: #991b1b;
    --sf-link:          #b91c1c;
    --sf-link-hover:    #991b1b;
    --sf-success:       #16a34a;
    --sf-warning:       #d97706;
    --sf-danger:        #dc2626;
    --sf-info:          #2563eb;

    --sf-font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sf-text-xs:   0.75rem;
    --sf-text-sm:   0.875rem;
    --sf-text-base: 1rem;
    --sf-text-lg:   1.125rem;
    --sf-text-xl:   1.25rem;
    --sf-text-2xl:  1.5rem;
    --sf-text-3xl:  1.875rem;
    --sf-text-4xl:  2.25rem;
    --sf-text-5xl:  3rem;
    --sf-leading-tight:   1.2;
    --sf-leading-snug:    1.375;
    --sf-leading-normal:  1.5;
    --sf-leading-relaxed: 1.625;

    --sf-space-1:  0.25rem;
    --sf-space-2:  0.5rem;
    --sf-space-3:  0.75rem;
    --sf-space-4:  1rem;
    --sf-space-5:  1.25rem;
    --sf-space-6:  1.5rem;
    --sf-space-8:  2rem;
    --sf-space-10: 2.5rem;
    --sf-space-12: 3rem;
    --sf-space-16: 4rem;

    --sf-radius-sm:  0.25rem;
    --sf-radius:     0.375rem;
    --sf-radius-md:  0.5rem;
    --sf-radius-lg:  0.75rem;
    --sf-radius-xl:  1rem;
    --sf-radius-2xl: 1.5rem;
    --sf-radius-full: 9999px;

    --sf-shadow-sm:  0 1px 2px 0 rgba(0,0,0,0.05);
    --sf-shadow:     0 1px 3px 0 rgba(0,0,0,0.08), 0 1px 2px -1px rgba(0,0,0,0.05);
    --sf-shadow-md:  0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
    --sf-shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --sf-shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.10), 0 8px 10px -6px rgba(0,0,0,0.05);
    --sf-shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.20);

    --sf-transition-fast:   0.15s ease;
    --sf-transition:        0.2s ease;
    --sf-transition-slow:   0.3s ease;
}

/* ---- Alert Styling (replaces alert-lagom) ---- */
.alert-sf {
    border-radius: var(--sf-radius-md);
    border: none;
    padding: var(--sf-space-4) var(--sf-space-5);
}
.alert-sf .alert-body {
    font-size: 0.9rem;
}

/* ---- Global Font ---- */
body {
    font-family: var(--sf-font-sans);
    /* The .sf-product-hero uses a 100vw breakout; clip horizontal overflow
       so the viewport-width banner never triggers a horizontal scrollbar
       (the scrollbar width is otherwise counted into 100vw on desktop). */
    overflow-x: hidden;
}
html { overflow-x: hidden; }

/* ---- Primary Colors ---- */
.btn-primary,
.btn-primary:focus {
    background-color: var(--sf-primary) !important;
    border-color: var(--sf-primary) !important;
    color: var(--sf-text-inverse) !important;
}
.btn-primary:hover,
.btn-primary:active {
    background-color: var(--sf-primary-hover) !important;
    border-color: var(--sf-primary-hover) !important;
}
.btn-primary-faded {
    background-color: rgba(185, 28, 28, 0.1) !important;
    color: var(--sf-primary) !important;
    border-color: rgba(185, 28, 28, 0.2) !important;
}
.btn-primary-faded:hover {
    background-color: var(--sf-primary) !important;
    color: var(--sf-text-inverse) !important;
}

/* Links */
a { color: var(--sf-link); }
a:hover { color: var(--sf-link-hover); }

/* Labels & badges */
.label-primary,
.badge-primary {
    background-color: var(--sf-primary) !important;
}
.label-corner.label-primary {
    background-color: var(--sf-brand-500) !important;
}

/* Sidebar active */
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
    background-color: var(--sf-primary) !important;
    border-color: var(--sf-primary) !important;
}

/* Package featured border */
.package-featured {
    border-color: var(--sf-primary) !important;
}

/* Switches */
.switch__checkbox:checked + .switch__container {
    background-color: #b91c1c !important;
}

/* Alerts */
.alert-success .alert-body {
    border-left-color: #22c55e !important;
}

/* ---- Custom Hero Banners for Product Groups ---- */
.sf-product-hero {
    border-radius: 0;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Break out of parent padding — full viewport width */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -15px;
    margin-bottom: 0;
    box-sizing: border-box;
}
@media (min-width: 640px) {
    .sf-product-hero { padding: 3rem 2.5rem; }
}
.sf-product-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #fff;
    line-height: 1.15;
    max-width: 32rem;
}
.sf-product-hero p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    max-width: 36rem;
    line-height: 1.7;
}

/* Hero variants - All use brand red gradient to match React design */
.sf-hero-shared {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}
.sf-hero-wordpress {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}
.sf-hero-vps {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}
.sf-hero-reseller {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}
.sf-hero-email {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}
.sf-hero-ssl {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}
.sf-hero-starter {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}
.sf-hero-addon {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}
.sf-hero-default {
    background: linear-gradient(to right, #dc2626, #b91c1c);
}

/* Hero features list */
.sf-hero-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}
.sf-hero-features span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}
.sf-hero-features svg {
    width: 1rem;
    height: 1rem;
    color: #22c55e;
    flex-shrink: 0;
}

/* Hero badge */
.sf-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.sf-hero-badge-pulse {
    animation: sf-pulse 2s infinite;
}
@keyframes sf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Hero price inline */
.sf-hero-price {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 1rem;
}
.sf-hero-price .sf-price-from,
.sf-hero-price .sf-hero-price-from {
    font-size: 0.875rem;
    opacity: 0.7;
}
.sf-hero-price .sf-price-amount,
.sf-hero-price .sf-hero-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
}
.sf-hero-price .sf-price-cycle,
.sf-hero-price .sf-hero-price-cycle {
    font-size: 1rem;
    opacity: 0.7;
}

/* Hero CTA row: button + inline price label */
.sf-hero-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
}
.sf-hero-cta .sf-hero-price {
    margin-top: 0;
}
.sf-hero-cta .sf-hero-price .sf-hero-price-amount {
    font-size: 1.75rem;
}
.sf-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #b91c1c !important;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    border: 2px solid #fff;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.sf-hero-btn:hover,
.sf-hero-btn:focus {
    background: #b91c1c;
    color: #fff !important;
    border-color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
@media (max-width: 640px) {
    .sf-hero-cta { gap: 1rem; }
    .sf-hero-cta .sf-hero-price .sf-hero-price-amount { font-size: 1.5rem; }
}

/* =============================================
   PLAN CARDS - Matches React App Design
   ============================================= */
.sf-plans-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    align-items: start;
}
.sf-plans-grid.sf-plans-1 { grid-template-columns: minmax(0, 28rem); justify-content: center; }
.sf-plans-grid.sf-plans-2 { grid-template-columns: repeat(2, 1fr); }
.sf-plans-grid.sf-plans-3 { grid-template-columns: repeat(3, 1fr); }
.sf-plans-grid.sf-plans-4 { grid-template-columns: repeat(2, 1fr); }
.sf-plans-grid.sf-plans-5 { grid-template-columns: repeat(3, 1fr); }
.sf-plans-grid.sf-plans-6 { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 993px) {
    .sf-plans-grid.sf-plans-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .sf-plans-grid.sf-plans-3,
    .sf-plans-grid.sf-plans-4,
    .sf-plans-grid.sf-plans-5,
    .sf-plans-grid.sf-plans-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sf-plans-grid { grid-template-columns: 1fr !important; max-width: 28rem; margin-left: auto; margin-right: auto; }
}

/* Plan Card */
.sf-plan-card {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
}
.sf-plan-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    z-index: 2;
}

/* Featured/Popular card */
.sf-plan-featured {
    border: 2px solid #dc2626;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(185,28,28,0.2);
}
@media (min-width: 769px) {
    .sf-plan-featured { transform: scale(1.05); }
    .sf-plan-featured:hover { transform: scale(1.07); }
}

/* Badge - MOST POPULAR (red gradient pill) */
.sf-plan-badge {
    position: absolute;
    top: -0.875rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #b91c1c, #dc2626);
    color: #fff;
    padding: 0.375rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
    z-index: 5;
}

/* Badge - BEST VALUE (amber pill) */
.sf-plan-badge-amber {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #0f172a;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Amber border for Best Value card */
.sf-plan-bestvalue {
    border: 2px solid #fbbf24;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(251,191,36,0.2);
}
@media (min-width: 769px) {
    .sf-plan-bestvalue { transform: scale(1.05); }
    .sf-plan-bestvalue:hover { transform: scale(1.07); }
}

/* Plan Header */
.sf-plan-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 0.75rem;
}
.sf-plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.sf-plan-tagline {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Pricing */
.sf-plan-pricing {
    text-align: center;
    margin-bottom: 1.5rem;
}
.sf-plan-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}
.sf-plan-price {
    font-size: 2.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}
.sf-plan-cycle {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 500;
}
.sf-plan-setup {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}
.sf-plan-original-price {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}
.sf-plan-save-badge {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Order Button */
.sf-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
    background: #0f172a;
    color: #fff;
    border: none;
}
.sf-plan-btn:hover {
    background: #1e293b;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.15);
}
.sf-plan-btn-primary {
    background: #b91c1c;
    color: #fff !important;
    box-shadow: 0 4px 6px -1px rgba(185,28,28,0.3);
}
.sf-plan-btn-primary:hover {
    background: #991b1b;
    color: #fff !important;
    box-shadow: 0 10px 15px -3px rgba(185,28,28,0.4);
}

/* Features */
.sf-plan-features {
    flex: 1;
}
.sf-plan-features-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.sf-plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: #334155;
}
.sf-plan-feature svg {
    flex-shrink: 0;
    color: #b91c1c;
    margin-top: 0.125rem;
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
}
/* Product description as feature list */
.sf-plan-desc {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.6;
}
.sf-plan-desc ul, .sf-plan-desc ol {
    padding-left: 0;
    list-style: none;
}
.sf-plan-desc li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: #334155;
}
.sf-plan-desc li::before {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
    margin-top: 0.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23b91c1c' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.sf-plan-qty {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

/* Trust Bar Below Plans — subtle card, brand accents on <strong> */
.sf-trust-bar-plans {
    text-align: center;
    padding: var(--sf-space-5) var(--sf-space-6);
    margin-top: var(--sf-space-8);
    font-size: var(--sf-text-sm);
    color: var(--sf-text);
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-lg);
    box-shadow: var(--sf-shadow-sm);
}
.sf-trust-bar-plans strong {
    color: var(--sf-brand-600);
    font-weight: 700;
}

/* CTA Bottom Section - Dark navy (matches React design) */
.sf-cta-bottom {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
    border-radius: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sf-cta-bottom::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M36 18c3.314 0 6 2.686 6 6s-2.686 6-6 6-6-2.686-6-6 2.686-6 6-6z' stroke='%231f2937' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.15;
}
.sf-cta-bottom-inner {
    position: relative;
    z-index: 1;
}
.sf-cta-bottom h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
.sf-cta-bottom p {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}
.sf-cta-bottom-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #b91c1c;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(185,28,28,0.3);
}
.sf-cta-bottom-btn:hover {
    background: #991b1b;
    color: #fff;
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(185,28,28,0.4);
}

/* Included Features */
.sf-included-features {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 1rem;
}
.sf-included-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    text-align: center;
}
.sf-included-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}
.sf-included-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
}
.sf-included-list li svg {
    flex-shrink: 0;
}

/* =============================================
   WHY CHOOSE SECTION - Matches React design
   ============================================= */
.sf-why-section {
    margin-top: 3rem;
    padding: 3rem 0;
    text-align: center;
}
.sf-why-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.sf-why-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2rem;
}
.sf-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 992px) {
    .sf-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .sf-why-grid { grid-template-columns: 1fr; }
}
.sf-why-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}
.sf-why-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.sf-why-icon {
    width: 4rem;
    height: 4rem;
    background: #fee2e2;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}
.sf-why-card:hover .sf-why-icon {
    transform: scale(1.1);
}
.sf-why-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.sf-why-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* =============================================
   CTA SECTION - "Ready to Launch?"
   ============================================= */
.sf-cta-section {
    margin-top: 2rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #dc2626, #b91c1c, #991b1b);
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}
.sf-cta-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}
.sf-cta-section p {
    font-size: 1rem;
    color: #fecaca;
    margin-bottom: 1.5rem;
}
.sf-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #b91c1c !important;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.sf-cta-btn:hover {
    background: #f8fafc;
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
    color: #991b1b !important;
    text-decoration: none !important;
}

/* ---- Domain Search Styling ---- */
.search-box .domain-search-input .form-control {
    border-radius: 0.5rem !important;
}
.search-box .search-group-btn .btn {
    border-radius: 0 0.5rem 0.5rem 0 !important;
}

/* ---- Comparison Table Enhancement ---- */
.sf-comparison-wrapper {
    margin-top: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.sf-comparison-wrapper table {
    margin: 0;
}
.sf-comparison-wrapper th {
    background: #0f172a !important;
    color: #fff !important;
    font-weight: 600;
    padding: 1rem !important;
}
.sf-comparison-wrapper td {
    padding: 0.75rem 1rem !important;
}

/* ---- Sidebar Customization ---- */
.panel-sidebar .panel-heading {
    background: #f8fafc;
}
.panel-sidebar .list-group-item {
    transition: all 0.2s;
}
.panel-sidebar .list-group-item:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* ---- VPS Resource Badges ---- */
.sf-resource-badges {
    display: flex;
    gap: 0.5rem;
    margin: 0.75rem 0;
    flex-wrap: wrap;
}
.sf-resource-badge {
    background: #f1f5f9;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: #334155;
    font-weight: 600;
}

/* ---- Checkout/Cart Styling ---- */
.panel-summary .panel-heading {
    background: #0f172a !important;
}
.order-summary-mob .btn-checkout {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}

/* ---- Store Homepage ---- */
.sf-store-home a[style*="display:block"] {
    transition: all 0.3s ease !important;
}
.sf-store-home a[style*="display:block"]:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    border-color: #b91c1c !important;
    text-decoration: none !important;
}

/* Domain search button hover */
.sf-store-home button[type="submit"]:hover {
    background: #991b1b !important;
}

/* =============================================
   Domain Register Page - React-style Hero Card
   Mirrors src/components/Hero.tsx pattern
   ============================================= */

/* Outer hero section with fixed background image */
.sf-hero-section {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
    background-image: url('../img/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 1.25rem;
}
.sf-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Rounded white frosted card */
.sf-hero-card {
    background: rgba(255,255,255,0.7);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 992px) {
    .sf-hero-card { grid-template-columns: 1fr 1fr; }
}

/* LEFT panel */
.sf-hero-left {
    background: rgba(255,255,255,0.95);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 380px;
}
.sf-hero-left h1 {
    font-size: 2.25rem;
    line-height: 1.15;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
@media (min-width: 768px) { .sf-hero-left h1 { font-size: 3rem; } }
@media (min-width: 1200px) { .sf-hero-left h1 { font-size: 3.5rem; } }
.sf-hero-left .sf-hero-lead {
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sf-hero-left .sf-hero-lead .sf-icon {
    color: #dc2626;
    flex-shrink: 0;
}
.sf-hero-left .sf-hero-bullets {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    gap: 0.625rem;
}
.sf-hero-left .sf-hero-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: #334155;
    font-size: 0.95rem;
}
.sf-hero-left .sf-hero-bullets li::before {
    content: "✓";
    color: #b91c1c;
    font-weight: 700;
    flex-shrink: 0;
}

/* RIGHT panel - dark image with search overlay */
.sf-hero-right {
    position: relative;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    overflow: hidden;
    min-height: 380px;
}
.sf-hero-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../img/rounded-right.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.85;
}
.sf-hero-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}
.sf-hero-right-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
}
.sf-hero-right-title {
    text-align: center;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 15%, rgba(0,0,0,0.6) 85%, transparent 100%);
    border-radius: 0.5rem;
    color: #fff;
    font-weight: 300;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    line-height: 1.5;
}
.sf-hero-right-title strong {
    color: #fca5a5;
    font-weight: 600;
}

/* Search box inside hero right */
.sf-hero-search-box .domain-search-input {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 1rem;
}
.sf-hero-search-box .search-field {
    flex: 1;
    position: relative;
}
.sf-hero-search-box .search-field .form-control {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 2.75rem !important;
    border-radius: 0.5rem !important;
    border: none !important;
    background: #fff !important;
    font-size: 0.95rem;
    box-shadow: none !important;
}
.sf-hero-search-box .search-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}
.sf-hero-search-box .search-group-btn {
    display: block;
}
.sf-hero-search-box .search-group-btn .btn {
    height: 48px;
    border-radius: 0.5rem !important;
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
    font-weight: 700;
    padding: 0 1.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}
.sf-hero-search-box .search-group-btn .btn:hover {
    background: #991b1b !important;
}
.sf-hero-search-box .sf-search-submit {
    width: 100%;
    height: 48px;
    border-radius: 0.5rem;
    background: #b91c1c;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
}
.sf-hero-search-box .sf-search-submit:hover {
    background: #991b1b;
}
.sf-hero-benefit {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
    font-weight: 500;
}
.sf-hero-benefit strong { color: #fca5a5; }

/* Legacy compatibility - keep .sf-domain-hero alive but invisible */
.sf-domain-hero { display: none; }

/* =============================================
   Section header (React pill + heading pattern)
   ============================================= */
.sf-section-head {
    text-align: center;
    margin: 2.5rem 0 1.5rem;
}
.sf-section-pill {
    display: inline-block;
    background: #fee2e2;
    color: #b91c1c;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}
.sf-section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}
.sf-section-sub {
    color: #475569;
    font-size: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

/* =============================================
   Domain Promo Cards (React card pattern)
   ============================================= */
.domain-promo-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.domain-promo-box:hover {
    border-color: #fca5a5;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.domain-promo-box .promo-box-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}
.domain-promo-box .promo-box-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.domain-promo-box .promo-box-content-between {
    flex-direction: column;
    align-items: stretch;
    margin-top: auto;
    gap: 0.75rem;
}
.domain-promo-box .promo-box-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: #fef2f2;
    color: #b91c1c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.domain-promo-box .promo-box-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}
.domain-promo-box .promo-box-header h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}
.domain-promo-box .promo-box-header .description {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
}
.domain-promo-box .promo-description {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}
.domain-promo-box .btn-primary {
    align-self: flex-start;
    border-radius: 0.5rem !important;
    padding: 0.625rem 1.25rem !important;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
    color: #fff !important;
    background: var(--sf-brand-600) !important;
    border-color: var(--sf-brand-600) !important;
}
.domain-promo-box .btn-primary:hover {
    background: var(--sf-brand-700) !important;
    border-color: var(--sf-brand-700) !important;
    color: #fff !important;
}
@media (max-width: 767px) {
    .domain-promo-box .btn-primary {
        align-self: stretch;
        text-align: center;
        padding: 0.625rem 0.75rem !important;
        font-size: 0.875rem;
        white-space: nowrap;
    }
}

/* =============================================
   NEW: Powerful Features Section (Homepage)
   Matches React Features.tsx component
   ============================================= */
.sf-powerful-features {
    padding: 4rem 0;
    background: #fff;
}
.sf-powerful-features .sf-section-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}
.sf-section-badge {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.sf-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.sf-section-subtitle {
    font-size: 1.125rem;
    color: #475569;
    max-width: 48rem;
    margin: 0 auto 3rem;
    line-height: 1.7;
}
.sf-features-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
@media (max-width: 992px) {
    .sf-features-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .sf-features-cards-grid {
        grid-template-columns: 1fr;
    }
}
.sf-feature-card {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.sf-feature-card:hover {
    background: #fff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.sf-feature-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: #b91c1c;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
}
.sf-feature-card:hover .sf-feature-card-icon {
    transform: scale(1.1);
}
.sf-feature-card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: #fff;
}
.sf-feature-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}
.sf-feature-card p {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* App installs banner */
.sf-apps-banner {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    color: #fff;
}
.sf-apps-banner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
.sf-apps-banner p {
    font-size: 1rem;
    color: #fecaca;
    margin-bottom: 1.5rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}
.sf-apps-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.sf-apps-tags span {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
}

/* =============================================
   NEW: Limited Offer Section (Homepage)
   Matches React LimitedOffer.tsx component
   ============================================= */
.sf-limited-offer {
    padding: 4rem 0;
    background: linear-gradient(135deg, #b91c1c, #991b1b, #7f1d1d);
    position: relative;
    overflow: hidden;
}
.sf-limited-offer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='0.05'%3E%3Cpath d='M36 34v2h-2v-2h2zm0 4v2h2v-2h-2zm0-8v2h2v-2h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.sf-limited-offer .sf-section-container {
    position: relative;
    z-index: 1;
}
.sf-limited-offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fbbf24;
    color: #0f172a;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    animation: sf-pulse 2s infinite;
}
.sf-limited-offer-card {
    max-width: 64rem;
    margin: 0 auto;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) {
    .sf-limited-offer-card {
        grid-template-columns: 1fr;
    }
}
.sf-limited-offer-left {
    background: linear-gradient(135deg, #f8fafc, #fff);
    padding: 2rem 2.5rem;
}
.sf-limited-offer-left .sf-lo-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.sf-limited-offer-left .sf-lo-price-cycle {
    font-size: 1.25rem;
    color: #475569;
    font-weight: 600;
}
.sf-limited-offer-left .sf-lo-save {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 0.25rem;
}
.sf-limited-offer-left .sf-lo-guarantee {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}
.sf-lo-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
}
.sf-lo-benefit-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #b91c1c;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.sf-lo-benefit strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.sf-lo-benefit span {
    font-size: 0.8rem;
    color: #475569;
}
.sf-lo-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #b91c1c;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(185, 28, 28, 0.3);
}
.sf-lo-cta-btn:hover {
    background: #991b1b;
    box-shadow: 0 10px 15px -3px rgba(185, 28, 28, 0.4);
    transform: scale(1.02);
    color: #fff;
    text-decoration: none;
}
.sf-limited-offer-right {
    background: #0f172a;
    padding: 2rem 2.5rem;
}
.sf-limited-offer-right h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}
.sf-lo-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.sf-lo-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #e2e8f0;
}
.sf-lo-feature-list li svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #f87171;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.sf-lo-why-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
}
.sf-lo-why-box strong {
    color: #fff;
    font-size: 0.875rem;
}
.sf-lo-why-box p {
    color: #fecaca;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0.25rem 0 0;
}
.sf-lo-bottom-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.sf-lo-bottom-badges span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fecaca;
    font-size: 0.8rem;
    font-weight: 500;
}
.sf-lo-bottom-badges svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #fca5a5;
}

/* =============================================
   NEW: Why Choose Section (Homepage)
   Matches React WhyChoose.tsx component
   ============================================= */
.sf-why-choose {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fef2f2, #fff);
}
.sf-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 768px) {
    .sf-why-grid {
        grid-template-columns: 1fr;
    }
}
.sf-why-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.sf-why-point-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #b91c1c;
    flex-shrink: 0;
    margin-top: 0.25rem;
}
.sf-why-point strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.sf-why-point span {
    font-size: 0.875rem;
    color: #475569;
}
.sf-reason-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}
.sf-reason-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.sf-reason-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.sf-reason-icon {
    width: 3rem;
    height: 3rem;
    background: #b91c1c;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sf-reason-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
}
.sf-reason-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.sf-reason-card p {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   NEW: CTA Section (Homepage)
   Matches React CTA.tsx component
   ============================================= */
.sf-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sf-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M36 18c3.314 0 6 2.686 6 6s-2.686 6-6 6-6-2.686-6-6 2.686-6 6-6z' stroke='%231f2937' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}
.sf-cta-section .sf-section-container {
    position: relative;
    z-index: 1;
    max-width: 48rem;
}
.sf-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(185, 28, 28, 0.1);
    border: 1px solid rgba(185, 28, 28, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fca5a5;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}
.sf-cta-badge svg {
    width: 1rem;
    height: 1rem;
    color: #f87171;
}
.sf-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.sf-cta-section .sf-cta-desc {
    font-size: 1.125rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.sf-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #b91c1c;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin-bottom: 2rem;
}
.sf-cta-btn:hover {
    background: #991b1b;
    box-shadow: 0 25px 50px -12px rgba(185, 28, 28, 0.5);
    transform: scale(1.05);
    color: #fff;
    text-decoration: none;
}
.sf-cta-guarantees {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}
.sf-cta-guarantees span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #cbd5e1;
}
.sf-cta-guarantees svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #f87171;
}
.sf-cta-login {
    font-size: 0.8rem;
    color: #64748b;
}
.sf-cta-login a {
    color: #f87171;
    font-weight: 600;
    text-decoration: underline;
}
.sf-cta-login a:hover {
    color: #fca5a5;
}

/* =============================================
   NEW: Testimonials Section (Homepage)
   Matches React TrustSignals.tsx component
   ============================================= */
.sf-testimonials {
    padding: 4rem 0;
    background: #fff;
}
.sf-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.sf-stars svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: #fbbf24;
    color: #fbbf24;
}
.sf-stars-text {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}
.sf-stars-count {
    font-size: 1rem;
    color: #475569;
}
.sf-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
@media (max-width: 992px) {
    .sf-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .sf-testimonials-grid {
        grid-template-columns: 1fr;
    }
}
.sf-testimonial-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.sf-testimonial-card:hover {
    border-color: #fecaca;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.sf-testimonial-stars {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 1rem;
}
.sf-testimonial-stars svg {
    width: 1rem;
    height: 1rem;
    fill: #dc2626;
    color: #dc2626;
}
.sf-testimonial-quote-icon svg {
    width: 2rem;
    height: 2rem;
    color: #b91c1c;
    margin-bottom: 0.75rem;
}
.sf-testimonial-quote {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.sf-testimonial-divider {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}
.sf-testimonial-author {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.875rem;
}
.sf-testimonial-role {
    font-size: 0.8rem;
    color: #475569;
}

/* Final CTA box inside testimonials */
.sf-final-cta {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    color: #fff;
}
.sf-final-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}
.sf-final-cta p {
    font-size: 1rem;
    color: #fecaca;
    margin-bottom: 2rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}
.sf-final-cta-btn {
    display: inline-block;
    background: #b91c1c;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
.sf-final-cta-btn:hover {
    background: #991b1b;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    transform: scale(1.05);
    color: #fff;
    text-decoration: none;
}

/* =============================================
   NEW: Email Hosting Promo Section (Homepage)
   Matches React EmailHosting.tsx component
   ============================================= */
.sf-email-promo {
    padding: 4rem 0;
    background: linear-gradient(135deg, #fef2f2, #fff);
}
.sf-email-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 992px) {
    .sf-email-promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .sf-email-promo-grid {
        grid-template-columns: 1fr;
    }
}
.sf-email-card {
    position: relative;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    overflow: visible;
}
.sf-email-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
.sf-email-card.sf-email-featured {
    border-color: #b91c1c;
    transform: scale(1.03);
}
.sf-email-card-badge {
    position: absolute;
    top: -1rem;
    right: 1rem;
    background: #b91c1c;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.sf-email-card-bestvalue {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #0f172a;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.sf-email-card-inner {
    padding: 2rem;
    text-align: center;
}
.sf-email-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.sf-email-card .sf-email-tagline {
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 1.5rem;
}
.sf-email-card .sf-email-price-block {
    margin-bottom: 1.5rem;
}
.sf-email-card .sf-email-price-block .sf-ep-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
}
.sf-email-card .sf-email-price-block .sf-ep-cycle {
    font-size: 1.125rem;
    color: #475569;
}
.sf-email-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 2rem;
}
.sf-email-order-btn:hover {
    text-decoration: none;
}
.sf-email-order-btn.sf-btn-brand {
    background: #b91c1c;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(185, 28, 28, 0.3);
}
.sf-email-order-btn.sf-btn-brand:hover {
    background: #991b1b;
    box-shadow: 0 10px 15px -3px rgba(185, 28, 28, 0.4);
    color: #fff;
}
.sf-email-order-btn.sf-btn-dark {
    background: #0f172a;
    color: #fff;
}
.sf-email-order-btn.sf-btn-dark:hover {
    background: #1e293b;
    color: #fff;
}
.sf-email-feature-list {
    text-align: left;
}
.sf-email-feature-list .sf-efl-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
    margin-bottom: 0.75rem;
}
.sf-email-feature-list .sf-efl-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.sf-email-feature-list .sf-efl-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #b91c1c;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.sf-email-feature-list .sf-efl-item span {
    font-size: 0.875rem;
    color: #334155;
}

/* All plans include bar */
.sf-all-plans-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}
.sf-all-plans-bar p {
    color: #334155;
    font-size: 0.875rem;
    margin: 0;
}
.sf-all-plans-bar strong {
    color: #0f172a;
}

/* =============================================
   NEW: Control Panel Section (Homepage)
   Matches React ControlPanel.tsx component
   ============================================= */
.sf-cpanel-section {
    padding: 4rem 0;
    background: #f8fafc;
}
.sf-cpanel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 768px) {
    .sf-cpanel-grid {
        grid-template-columns: 1fr;
    }
}
.sf-cpanel-mockup {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.sf-cpanel-mockup-header {
    background: linear-gradient(to right, #1e293b, #0f172a);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sf-cpanel-dots {
    display: flex;
    gap: 0.375rem;
}
.sf-cpanel-dots span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}
.sf-cpanel-dots span:nth-child(1) { background: #ef4444; }
.sf-cpanel-dots span:nth-child(2) { background: #f59e0b; }
.sf-cpanel-dots span:nth-child(3) { background: #22c55e; }
.sf-cpanel-mockup-title {
    flex: 1;
    text-align: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}
.sf-cpanel-mockup-body {
    padding: 1.5rem;
    background: #f8fafc;
}
.sf-cpanel-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.sf-cpanel-icon-item {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.2s;
}
.sf-cpanel-icon-item:hover {
    border-color: #fecaca;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.sf-cpanel-icon-item svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #b91c1c;
    margin-bottom: 0.5rem;
}
.sf-cpanel-icon-item span {
    font-size: 0.7rem;
    font-weight: 500;
    color: #334155;
    display: block;
}
.sf-cpanel-stats {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}
.sf-cpanel-stats-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.sf-cpanel-stats-header strong {
    font-size: 0.875rem;
    color: #0f172a;
}
.sf-cpanel-stats-header span {
    font-size: 0.7rem;
    color: #64748b;
}
.sf-stat-row {
    margin-bottom: 0.5rem;
}
.sf-stat-row-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}
.sf-stat-row-header span:first-child { color: #475569; }
.sf-stat-row-header span:last-child { color: #0f172a; font-weight: 500; }
.sf-stat-bar {
    height: 0.5rem;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
}
.sf-stat-bar-fill {
    height: 100%;
    border-radius: 9999px;
}
.sf-stat-bar-fill.sf-brand { background: #b91c1c; }
.sf-stat-bar-fill.sf-green { background: #22c55e; }
.sf-cpanel-mockup-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #475569;
}
.sf-cpanel-content-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}
.sf-cpanel-content-badge svg {
    width: 1rem;
    height: 1rem;
    color: #b91c1c;
}
.sf-cpanel-content-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #991b1b;
}
.sf-cpanel-feature-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.sf-cpanel-feature-icon {
    width: 3rem;
    height: 3rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sf-cpanel-feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #b91c1c;
}
.sf-cpanel-feature-row h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.sf-cpanel-feature-row p {
    font-size: 0.8rem;
    color: #475569;
    margin: 0;
}
.sf-cpanel-why-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.sf-cpanel-why-box p {
    font-size: 0.8rem;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}
.sf-cpanel-why-box strong {
    color: #0f172a;
}

/* =============================================
   NEW: Pricing Cards Section (Homepage)
   Matches React Pricing.tsx component
   ============================================= */
.sf-pricing-section {
    padding: 4rem 0;
    background: #f8fafc;
}
.sf-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 992px) {
    .sf-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .sf-pricing-grid {
        grid-template-columns: 1fr;
    }
}
.sf-pricing-card {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.sf-pricing-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}
.sf-pricing-card.sf-pricing-popular {
    border: 2px solid #dc2626;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}
.sf-pricing-card.sf-pricing-popular:hover {
    transform: scale(1.07);
}
.sf-pricing-popular-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #b91c1c, #dc2626);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}
.sf-pricing-popular-badge svg {
    width: 0.75rem;
    height: 0.75rem;
}
.sf-pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.sf-pricing-card .sf-pc-tagline {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.sf-pricing-card .sf-pc-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
}
.sf-pricing-card .sf-pc-cycle {
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
}
.sf-pricing-card .sf-pc-billing {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.25rem;
}
.sf-pricing-card .sf-pc-free-domain {
    font-size: 0.7rem;
    color: #b91c1c;
    font-weight: 600;
    margin-top: 0.25rem;
}
.sf-pricing-get-started {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin: 1.5rem 0;
}
.sf-pricing-get-started:hover {
    text-decoration: none;
}
.sf-pricing-get-started.sf-btn-popular {
    background: #b91c1c;
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(185, 28, 28, 0.25);
}
.sf-pricing-get-started.sf-btn-popular:hover {
    background: #991b1b;
    box-shadow: 0 10px 15px -3px rgba(185, 28, 28, 0.3);
    color: #fff;
}
.sf-pricing-get-started.sf-btn-default {
    background: #0f172a;
    color: #fff;
}
.sf-pricing-get-started.sf-btn-default:hover {
    background: #1e293b;
    color: #fff;
}
.sf-pricing-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.sf-pricing-feature-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #b91c1c;
    flex-shrink: 0;
    margin-top: 0.125rem;
}
.sf-pricing-feature-item span {
    font-size: 0.8rem;
    color: #334155;
    line-height: 1.4;
}

/* Custom solution box */
.sf-custom-solution {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
}
.sf-custom-solution h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.sf-custom-solution p {
    font-size: 0.875rem;
    color: #475569;
    max-width: 36rem;
    margin: 0 auto 1.5rem;
}
.sf-custom-solution-btn {
    display: inline-block;
    background: #0f172a;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}
.sf-custom-solution-btn:hover {
    background: #1e293b;
    color: #fff;
    text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .sf-product-hero {
        padding: 2rem 1.25rem;
    }
    .sf-product-hero h1 {
        font-size: 1.75rem;
    }
    .sf-hero-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    .sf-hero-price .sf-price-amount {
        font-size: 2rem;
    }
    .sf-section-title {
        font-size: 1.75rem;
    }
    .sf-cta-section h2 {
        font-size: 1.75rem;
    }
    .sf-limited-offer-card {
        grid-template-columns: 1fr;
    }
    .sf-why-grid {
        grid-template-columns: 1fr;
    }
    .sf-cpanel-grid {
        grid-template-columns: 1fr;
    }
    .sf-pricing-grid {
        grid-template-columns: 1fr;
    }
    .sf-email-promo-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   HERO WITH IMAGE (matches React design)
   ============================================= */
.sf-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
@media (min-width: 992px) {
    .sf-hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.sf-hero-image-wrap {
    position: relative;
    height: 250px;
}
@media (min-width: 640px) { .sf-hero-image-wrap { height: 320px; } }
@media (min-width: 992px) { .sf-hero-image-wrap { height: 380px; } }
.sf-hero-image-box {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.sf-hero-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.sf-hero-image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent, transparent);
}
.sf-hero-circle {
    position: absolute;
    width: 24rem;
    height: 24rem;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.sf-hero-circle-tl { top: 0; left: 0; transform: translate(-50%,-50%); }
.sf-hero-circle-br { bottom: 0; right: 0; transform: translate(50%,50%); }

/* =============================================
   LAGOM2 LAYOUT CLASSES (needed by viewcart, configureproduct, etc.)
   These classes come from lagom2 base CSS and are used in the order form templates.
   ============================================= */

/* Grid layout — main content + sidebar side-by-side (lagom2 layout).
   Without display:flex the sidebar stacks below content and the order
   summary becomes invisible-by-scroll on viewcart / configureproduct. */
.main-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}
.main-grid .main-content {
    padding: 20px 0;
    flex: 1 1 auto;
    min-width: 0;
}
.main-grid .main-sidebar {
    flex: 0 0 320px;
    width: 320px;
    margin-top: 20px;
}
.main-grid .main-sidebar-lg {
    flex: 0 0 360px;
    width: 360px;
    margin-top: 20px;
}
@media (max-width: 991px) {
    .main-grid {
        flex-direction: column;
        gap: 1rem;
    }
    .main-grid .main-content,
    .main-grid .main-sidebar,
    .main-grid .main-sidebar-lg {
        width: 100%;
        flex: 0 0 auto;
    }
}

/* Sections */
.section {
    margin-bottom: 1.5rem;
}
.section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}
.section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.section-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.25rem 0 0;
}
.section-body {
    padding: 0;
}

/* Empty cart / no data message */
.message-no-data,
.message {
    text-align: center;
    padding: 3rem 1rem;
}
.message-image {
    margin-bottom: 1.5rem;
    opacity: 0.4;
}
.message-image svg {
    width: 64px;
    height: 64px;
}
.message-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}
.message-action {
    margin-top: 1rem;
}

/* =============================================
   DOMAIN REGISTER PAGE — Spotlight (Most Popular) + Suggested domains
   ============================================= */
.spotlight-tlds {
    margin: 1.5rem 0;
}
.spotlight-tlds .section-header { margin-bottom: 1rem; }
.spotlight-tlds .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}
.spotlights {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0.875rem !important;
    /* override any swiper inline layout */
    flex-wrap: wrap !important;
    transform: none !important;
    width: 100% !important;
}
@media (max-width: 1199px) {
    .spotlights { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 991px) {
    .spotlights { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 575px) {
    .spotlights { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.spotlights .spotlight-col,
.spotlights .swiper-slide {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    flex: none !important;
    display: flex !important;
}
.spotlight {
    flex: 1;
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    text-align: center;
}
.spotlight:hover {
    border-color: var(--sf-brand-600);
    box-shadow: 0 6px 16px rgba(185,28,28,0.12);
    transform: translateY(-2px);
}
.spotlight .spotlight-body { flex: 1; display: flex; flex-direction: column; }
.spotlight-top { margin-bottom: 0.75rem; }
.spotlight-content { text-align: center; margin-bottom: 0.75rem; }
.spotlight-content .extension {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.spotlight-content .extension span { color: var(--sf-brand-600); }
.spotlight .tld-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    width: auto;
    white-space: nowrap;
}
.spotlight .label-danger { background: #fef2f2; color: #dc2626; }
.spotlight .label-success { background: #f0fdf4; color: #22c55e; }
.spotlight .label-warning { background: #fffbeb; color: #d97706; }
.spotlight .label-purple { background: #faf5ff; color: #9333ea; }
.spotlight-footer {
    margin-top: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.spotlight-footer_price {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.spotlight-footer_price:before { content: "From "; font-size: 0.7rem; color: #64748b; font-weight: 500; }
.spotlight .btn {
    width: 100%;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
    background: var(--sf-brand-600, #b91c1c);
    border: 1px solid var(--sf-brand-600, #b91c1c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-decoration: none;
}
.spotlight .btn:hover {
    background: #991b1b;
    border-color: #991b1b;
    color: #fff;
}
/* Unavailable state — muted disabled look, not pink */
.spotlight .btn-unavailable,
.spotlight .btn.unavailable,
.spotlight .btn-disabled,
.spotlight .btn.btn-primary-faded.btn-disabled {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}
/* Hide buttons that are explicitly hidden via .hidden class or display:none */
.spotlight .btn.hidden,
.spotlight .btn[style*="display:none"],
.spotlight .btn[style*="display: none"] { display: none !important; }

/* =============================================
   Add-to-Cart / View Cart / Remove buttons
   Templates use .to-add (=Add to Cart) and .added (=View Cart) spans.
   JS toggles which is visible. .unavailable span is forced hidden.
   ============================================= */
/* Force "Taken" span hidden everywhere — UX uses one consistent label */
.btn-add-to-cart .unavailable { display: none !important; }

/* Default state: show .to-add ("Add to Cart"), hide .added ("View Cart") */
.btn-add-to-cart .added { display: none; }
.btn-add-to-cart .to-add { display: inline-flex; align-items: center; gap: 0.25rem; }

/* Added state: button has class .checkout via JS — show .added, hide .to-add.
   Use !important so JS's inline display doesn't break this when both classes set. */
.btn-add-to-cart.checkout .to-add { display: none !important; }
.btn-add-to-cart.checkout .added { display: inline-flex !important; align-items: center; gap: 0.25rem; }

/* Solid red button — white text everywhere by default */
.spotlight .btn-add-to-cart,
.suggested-domains .btn-add-to-cart,
#searchDomainInfo .btn-add-to-cart {
    background: var(--sf-brand-600) !important;
    border-color: var(--sf-brand-600) !important;
    color: #fff !important;
}
.spotlight .btn-add-to-cart:hover,
.suggested-domains .btn-add-to-cart:hover,
#searchDomainInfo .btn-add-to-cart:hover {
    background: var(--sf-brand-700) !important;
    border-color: var(--sf-brand-700) !important;
    color: #fff !important;
}
.spotlight .btn-add-to-cart .to-add,
.spotlight .btn-add-to-cart .added,
.suggested-domains .btn-add-to-cart .to-add,
.suggested-domains .btn-add-to-cart .added,
#searchDomainInfo .btn-add-to-cart .to-add,
#searchDomainInfo .btn-add-to-cart .added { color: #fff !important; }

/* Loading button: faded pink so empty .invisible span doesn't read as red block */
.spotlight .btn-loading {
    background: rgba(185, 28, 28, 0.08) !important;
    border-color: rgba(185, 28, 28, 0.2) !important;
    color: var(--sf-brand-600) !important;
    min-height: 2.25rem;
}
.spotlight .btn-loading .invisible { display: none; }

/* Remove button (trash + label): faded pink so it reads as secondary action */
.btn-remove-domain {
    background: rgba(185, 28, 28, 0.08) !important;
    border: 1px solid rgba(185, 28, 28, 0.25) !important;
    color: var(--sf-brand-600) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap;
}
.btn-remove-domain:hover {
    background: var(--sf-brand-600) !important;
    border-color: var(--sf-brand-600) !important;
    color: #fff !important;
}
.btn-remove-domain .lm,
.btn-remove-domain .ls {
    font-style: normal;
    line-height: 1;
    display: inline-block;
    min-width: 0.9em;
}
.btn-remove-domain .btn-remove-label {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Btn-group-remove: Add/View Cart + Remove side-by-side, equal height.
   Inside narrow spotlight cards we stack vertically so neither overflows. */
.btn-group-remove {
    display: flex !important;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
}
.btn-group-remove .btn {
    margin: 0 !important;
    border-radius: 0.5rem !important;
    min-height: 2.5rem;
    box-sizing: border-box;
}
.btn-group-remove .btn-add-to-cart {
    flex: 1 1 auto;
    min-width: 0;
}
.btn-group-remove .btn-remove-domain {
    flex: 0 0 auto;
    min-width: 0;
}
/* Hidden remove button takes no layout space */
.btn-group-remove .btn-remove-domain.hidden { display: none !important; }
/* Loader spacer should not blow layout */
.btn-group-remove .btn-group-loader { display: none; }
.btn-group-remove .btn-group-loader.show { display: inline-flex; }

/* Spotlight cards are narrow (~1/5 of grid). Stack buttons vertically so
   View Cart + Remove never overflow the card edge. */
.spotlight .btn-group-remove {
    flex-direction: column;
    width: 100%;
}
.spotlight .btn-group-remove .btn { width: 100%; }
.spotlight .btn-group-remove .btn-remove-domain { padding: 0.4rem 0.5rem !important; }
.spotlight .btn-group-remove .btn-remove-domain .btn-remove-label {
    font-size: 0.8rem;
}

/* Search-result message: actions area sits to the right of the body, both
   buttons must stay inside the colored message background. */
#searchDomainInfo .message-actions {
    flex-shrink: 0 !important;
    max-width: 50%;
    overflow: visible;
}
#searchDomainInfo .message-actions .btn-group-remove {
    width: auto;
    flex-wrap: nowrap;
}
#searchDomainInfo .message-actions .btn-add-to-cart {
    min-width: 8.5rem;
    padding: 0.625rem 1.25rem !important;
}
#searchDomainInfo .message-actions .btn-remove-domain {
    padding: 0.625rem 0.875rem !important;
}

/* Suggested-domain rows: keep inline; equalize heights so the small Remove
   pill doesn't visually shrink next to View Cart. */
.suggested-domains .domain-suggestion .btn-group-remove .btn {
    min-height: 2.25rem;
    padding: 0.4rem 0.85rem !important;
    font-size: 0.85rem;
}
.suggested-domains .domain-suggestion .btn-group-remove .btn-remove-domain {
    padding: 0.4rem 0.6rem !important;
}

/* =============================================
   SUGGESTED DOMAINS section
   ============================================= */
.suggested-domains {
    margin: 1.5rem 0;
}
.suggested-domains .section-header { margin-bottom: 1rem; }
.suggested-domains .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}
.suggested-domains .section-desc {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0 0 1rem;
}
.suggested-domains .domain-lookup-result.list-group {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: hidden;
}
.suggested-domains .domain-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}
.suggested-domains .domain-suggestion:last-child { border-bottom: none; }
.suggested-domains .domain-suggestion:hover { background: #f8fafc; }

/* Hide the template row (used by JS for cloning) */
.suggested-domains .domain-suggestion.hidden,
.suggested-domains .list-group.hidden { display: none !important; }
.suggested-domains .domain-suggestion .content {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    color: #0f172a;
}
.suggested-domains .domain-suggestion .content .domain { font-weight: 600; }
.suggested-domains .domain-suggestion .content .extension { color: var(--sf-brand-600); font-weight: 700; }
.suggested-domains .domain-suggestion .actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}
.suggested-domains .domain-suggestion .price {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}
.suggested-domains .domain-suggestion .btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
}

/* =============================================
   DOMAIN REGISTER PAGE — search box + category filter cleanup
   ============================================= */
/* Remove extra bottom border / padding / divider from the domain search box */
.search-box,
.search-box form,
.search-box .domain-search-input,
.search-box .search-group,
.search-box .search-field,
.search-box .search-group-btn,
#frmDomainChecker,
#frmDomainChecker + *,
.search-box + * {
    border-bottom: none !important;
    box-shadow: none !important;
}
.search-box {
    padding-bottom: 1rem !important;
    background: transparent !important;
    margin-bottom: 0 !important;
    border: none !important;
}
.search-box::after,
#frmDomainChecker::after {
    display: none !important;
    content: none !important;
    border: none !important;
}

/* TLD category filter — Select2 multi-select styled clean */
.domain-pricing .tld-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.domain-pricing .tld-categories {
    flex: 1 1 auto;
    min-width: 240px;
}
/* Native select (before Select2 inits) */
.domain-pricing .tld-categories select.custom-multiselect {
    width: 100%;
    min-height: 48px;
    height: 48px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-md);
    background: #fff;
    font-size: 0.9375rem;
    color: #0f172a;
}
.domain-pricing .tld-categories select[multiple].custom-multiselect {
    height: 48px !important;
    overflow: hidden;
}

/* Select2 multi-select container for the domain filter */
.domain-pricing .tld-categories .select2-container,
#select2-domain-filter-container,
.select2-container:has(#select2-domain-filter-container) {
    width: 100% !important;
    min-width: 240px;
}
.domain-pricing .tld-categories .select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--multiple:has(#select2-domain-filter-container) {
    min-height: 48px !important;
    padding: 4px 0.75rem !important;
    border: 1px solid var(--sf-border) !important;
    border-radius: var(--sf-radius-md) !important;
    background: #fff !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    box-shadow: none !important;
}
.domain-pricing .tld-categories .select2-container--default.select2-container--focus .select2-selection--multiple,
.domain-pricing .tld-categories .select2-container--default .select2-selection--multiple:focus-within {
    border-color: var(--sf-brand-600) !important;
    box-shadow: 0 0 0 3px rgba(185,28,28,0.12) !important;
}
/* Selected category pills inside the select */
.domain-pricing .tld-categories .select2-selection__choice {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #b91c1c !important;
    border-radius: 0.375rem !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    line-height: 1.2 !important;
}
.domain-pricing .tld-categories .select2-selection__choice__remove {
    color: #b91c1c !important;
    font-weight: 700 !important;
    margin-right: 0.25rem !important;
    cursor: pointer;
    border: none !important;
    background: transparent !important;
}
.domain-pricing .tld-categories .select2-selection__choice__remove:hover {
    color: #7f1d1d !important;
}
/* Placeholder text rendered inside the selector */
.domain-pricing .tld-categories .select2-selection__rendered {
    padding: 0 !important;
    list-style: none !important;
    line-height: normal !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    align-items: center !important;
    margin: 0 !important;
}
/* Search input inside the multi-select */
.domain-pricing .tld-categories .select2-search--inline .select2-search__field {
    margin: 0 !important;
    padding: 0.25rem !important;
    font-size: 0.875rem !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    min-width: 80px;
}

/* Dropdown results panel */
.select2-dropdown:has(.select2-results__options) {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
    z-index: 9999 !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background: var(--sf-brand-600, #b91c1c) !important;
    color: #fff !important;
    font-weight: 600;
}
.domain-pricing .tld-search {
    flex: 1 1 260px;
    min-width: 240px;
}
.domain-pricing .tld-search .search-field {
    position: relative;
}
.domain-pricing .tld-search .form-control {
    height: 48px;
    padding: 0 1rem 0 2.75rem;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-md);
    font-size: 0.9375rem;
}
.domain-pricing .tld-search .form-control:focus {
    outline: none;
    border-color: var(--sf-brand-600);
    box-shadow: 0 0 0 3px rgba(185,28,28,0.12);
}
.domain-pricing .tld-search .search-field-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

/* =============================================
   DOMAIN CHECK RESULT MESSAGES (search-result.tpl)
   Template structure:
     .message.message-success (or .message-danger)
       > .message-content (wrapper — this is where we apply flex)
           > .message-icon
           > .message-body
           > .message-actions
   OR sometimes (no .message-content wrapper):
     .message > .message-icon + .message-body + .message-actions
   ============================================= */
/* Visual styling only — does NOT force display on/off.
   Hidden state is controlled by .message-h (lagom2 "hide helper") and .hidden */
#searchDomainInfo .message,
#searchDomainInfo .message.message-lg {
    padding: 1.25rem 1.5rem !important;
    border-radius: 0.75rem !important;
    margin: 1rem 0 !important;
    border: 1px solid transparent !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
    text-align: left !important;
}

/* Hide IDN language selector — not needed for the simplified single-message UX. */
#searchDomainInfo #idnLanguageSelector {
    display: none !important;
}
/* All result messages start hidden by default. JS shim in common.tpl uses
   style.setProperty(..., 'important') so its inline display:block / display:none
   carries !important and wins against this rule. */
#primaryLookupResult .message {
    display: none !important;
}
/* Flex the inner .message-content wrapper (when present) */
#searchDomainInfo .message > .message-content {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}
/* Direct-child flex (when no .message-content wrapper) */
#searchDomainInfo .message.no-content-wrap,
#searchDomainInfo .message:not(:has(.message-content)) {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}
/* Icon — small circle, not giant block */
#searchDomainInfo .message-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    flex: 0 0 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    padding: 0 !important;
    margin: 0 !important;
}
#searchDomainInfo .message-icon i,
#searchDomainInfo .message-icon .lm,
#searchDomainInfo .message-icon .ls {
    font-size: 1.25rem !important;
    margin: 0 !important;
    line-height: 1 !important;
}
#searchDomainInfo .message-body {
    flex: 1;
    min-width: 0;
}
#searchDomainInfo .message-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: #0f172a;
    text-align: left;
}
#searchDomainInfo .message-body .text-light {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}
#searchDomainInfo .message-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
#searchDomainInfo .domain-price {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}
#searchDomainInfo .domain-price .price {
    font-weight: 700;
    color: #0f172a;
    display: inline-block;
}

/* Success — domain available / transfer eligible */
#searchDomainInfo .message-success {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}
#searchDomainInfo .message-success .message-icon {
    background: #22c55e !important;
    color: #fff !important;
    position: relative;
}
/* Checkmark fallback when lagom icon font isn't loaded */
#searchDomainInfo .message-success .message-icon::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 10px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg) translate(1px, -2px);
}
#searchDomainInfo .message-success .message-icon i { display: none; }

/* Danger — unavailable / invalid / error */
#searchDomainInfo .message-danger {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}
#searchDomainInfo .message-danger .message-icon {
    background: #dc2626 !important;
    color: #fff !important;
    position: relative;
}
#searchDomainInfo .message-danger .message-icon::before,
#searchDomainInfo .message-danger .message-icon::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 3px;
    background: #fff;
    top: 50%;
    left: 50%;
}
#searchDomainInfo .message-danger .message-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
#searchDomainInfo .message-danger .message-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
#searchDomainInfo .message-danger .message-icon i { display: none; }

/* .message-body text — cleaner layout, no weird selections */
#searchDomainInfo .message-body {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
#searchDomainInfo .message-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.25rem !important;
    color: #0f172a !important;
    text-align: left !important;
    background: transparent !important;
}
#searchDomainInfo .domain-price {
    margin-top: 0.25rem !important;
    font-size: 0.875rem !important;
    color: #475569 !important;
}
#searchDomainInfo .message-actions {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin: 0 !important;
}
#searchDomainInfo .message-actions .btn {
    margin: 0 !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
}

/* Action buttons inside result boxes */
#searchDomainInfo .btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    white-space: nowrap;
}
#searchDomainInfo .btn-primary {
    background: var(--sf-brand-600);
    border-color: var(--sf-brand-600);
    color: #fff;
}
#searchDomainInfo .btn-primary:hover {
    background: var(--sf-brand-700);
    border-color: var(--sf-brand-700);
}
#searchDomainInfo .btn-primary-faded {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--sf-brand-600);
}
#searchDomainInfo .btn-primary-faded:hover {
    background: #fee2e2;
}

/* Mobile — stack vertically */
@media (max-width: 640px) {
    #searchDomainInfo .message {
        flex-direction: column;
        text-align: center;
    }
    #searchDomainInfo .message-actions {
        width: 100%;
        justify-content: center;
    }
    #searchDomainInfo .message-title { text-align: center; }
}

/* Sidebar for order form */
.main-sidebar,
.order-summary-sidebar {
    margin-top: 1.5rem;
}

/* Switch toggle (marketing opt-in) */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    vertical-align: middle;
}
.switch__checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch__container {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #cbd5e1;
    border-radius: 26px;
    transition: 0.3s;
}
.switch__container::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.switch__checkbox:checked + .switch__container {
    background: #b91c1c;
}
.switch__checkbox:checked + .switch__container::before {
    transform: translateX(22px);
}
.switch__handle { display: none; }
.switch-label {
    font-size: 0.875rem;
    color: #334155;
    margin-right: 0.75rem;
}
.panel-switch .panel-body {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Spacing utilities from lagom2 */
.m-t-0 { margin-top: 0 !important; }
.m-t-1x { margin-top: 0.5rem !important; }
.m-t-2x { margin-top: 1rem !important; }
.m-t-3x { margin-top: 1.5rem !important; }
.m-b-0 { margin-bottom: 0 !important; }
.m-b-1x { margin-bottom: 0.5rem !important; }
.m-b-2x { margin-bottom: 1rem !important; }
.m-b-24 { margin-bottom: 1.5rem !important; }
.m-a { margin: auto !important; }
.m-w-288, .m-w-xs { max-width: 288px; }
.p-0 { padding: 0 !important; }
.text-center { text-align: center; }
/* RTL-safe alignment utilities */
.sf-text-left   { text-align: left; }
.sf-text-center { text-align: center; }
.sf-text-right  { text-align: right; }
.sf-text-start  { text-align: start; }
.sf-text-end    { text-align: end; }
.sf-text-justify { text-align: justify; }
.text-light, .text-lighter { color: #64748b; }
.text-danger { color: #dc2626 !important; }

/* Form improvements for order pages */
.billing-details-form .form-group {
    margin-bottom: 1.25rem;
}
.billing-details-form label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #0f172a;
    margin-bottom: 0.375rem;
}
.billing-details-form .form-control {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}
.billing-details-form .form-control:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
}

/* Promo code section */
.promo-code-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Order summary */
.order-summary {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}
.order-summary .panel-heading {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    font-weight: 700;
}
.order-summary .list-group-item {
    border-color: #f1f5f9;
    padding: 0.875rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-summary .total-due-today {
    background: #f8fafc;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
}

/* Checkout button */
.btn-checkout,
#btnCompleteOrder {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    width: 100%;
    transition: all 0.2s;
}
.btn-checkout:hover,
#btnCompleteOrder:hover {
    background: #991b1b !important;
    border-color: #991b1b !important;
}

/* SVG icon fallback for lagom2 includes */
.svg-icon { display: inline-block; }

/* Cart item rows */
.item-row,
.cart-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.item-row:last-child,
.cart-item:last-child {
    border-bottom: none;
}
.item-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.95rem;
}
.item-price {
    font-weight: 700;
    color: #0f172a;
}
.item-remove a {
    color: #dc2626;
    font-size: 0.8rem;
}

/* Payment method selection */
.payment-methods .panel {
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.payment-methods .panel:hover,
.payment-methods .panel.active {
    border-color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(185,28,28,0.1);
}

/* Product config page */
.product-config-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}
.product-info {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}
.billing-cycle-option {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}
.billing-cycle-option:hover,
.billing-cycle-option.active {
    border-color: #b91c1c;
    background: #fef2f2;
}
.billing-cycle-option input[type="radio"] {
    margin-right: 0.5rem;
}

/* Domain config */
.domain-option {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}
.domain-option:hover {
    border-color: #b91c1c;
}
.domain-option.active {
    border-color: #b91c1c;
    background: #fef2f2;
}

/* =============================================
   PRODUCT CONFIGURATION PAGE (configureproduct.tpl)
   ============================================= */

/* Panel check group - billing cycle selection */
.panel-check-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.row-eq-height { display: flex; flex-wrap: wrap; }
.row-eq-height > [class*="col-"] { display: flex; }

.panel-check {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    width: 100%;
}
.panel-check:hover {
    border-color: #fecaca;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.panel-check.checked {
    border-color: #b91c1c;
    background: #fef2f2;
    box-shadow: 0 0 0 1px #b91c1c;
}

.check { position: relative; }
.check label { cursor: pointer; display: block; margin: 0; }
.check-content { padding-left: 0; }
.check-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}
.check-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0.25rem 0 0;
}
.check-desc {
    font-size: 0.85rem;
    color: #475569;
    margin: 0.5rem 0 0;
}

/* iCheck inputs */
.icheck-control { margin-right: 0.5rem; }

/* Payment gateway radio cards — add left padding so radio + label
   are not flush against the panel edge */
#paymentGatewaysContainer .panel-check .panel-heading.check > label,
#paymentGatewaysContainer .panel-check .panel-heading.check {
    padding-left: 1.25rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
#paymentGatewaysContainer .panel-check .icheck-control {
    margin-right: 0.75rem;
}
#paymentGatewaysContainer .panel-check .check-content {
    flex: 1;
    padding-left: 0.25rem;
}

/* Save label */
.label-save {
    background: #22c55e !important;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}
.label-xs { font-size: 0.65rem; }
.line-through { text-decoration: line-through; }
.cycle-full-price { color: #94a3b8; font-size: 0.85rem; }

/* Panel form */
.panel-form {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}
.panel-form .panel-body { padding: 1.5rem; }
.panel-form .panel-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Product config info */
.product-config-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem;
}
.product-info {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
}
.product-info ul { padding-left: 1.25rem; }
.product-info li { margin-bottom: 0.25rem; }

/* Configurable options */
.configurable-option {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}
.configurable-option:last-child { border-bottom: none; }
.configurable-option label {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
}

/* Server config fields */
.server-hostname, .server-nameservers, .server-rootpw {
    margin-bottom: 1rem;
}

/* Addon selection */
.addon-products .panel-check {
    margin-bottom: 0.75rem;
}
.addon-products .addon-title {
    font-weight: 600;
    color: #0f172a;
}
.addon-products .addon-price {
    color: #b91c1c;
    font-weight: 700;
}
.addon-products .addon-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Order sidebar summary */
.order-summary-sidebar {
    position: sticky;
    top: 80px;
}
.order-summary-sidebar .panel {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.order-summary-sidebar .panel-heading {
    background: #0f172a;
    color: #fff;
    padding: 1rem 1.25rem;
    border: none;
}
.order-summary-sidebar .panel-heading h3 {
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
}
.order-summary-sidebar .panel-body {
    padding: 1.25rem;
}
.order-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    padding: 1rem 0;
}
.order-total-label {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

/* Continue / Add to cart button */
.btn-add-to-cart,
.btn-order-now,
#btnCompleteProductConfig {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    width: 100%;
    transition: all 0.2s;
    display: block;
    text-align: center;
}
.btn-add-to-cart:hover,
.btn-order-now:hover,
#btnCompleteProductConfig:hover {
    background: #991b1b !important;
    border-color: #991b1b !important;
}

/* Mobile checkout button */
.mobile-summary,
.btn-checkout-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.1);
}
@media (min-width: 992px) {
    .mobile-summary, .btn-checkout-mobile { display: none; }
}

/* Data virtual input */
[data-virtual-input] { cursor: pointer; }

/* Loader */
.loader { display: inline-block; }
.loader-button { display: inline-block; vertical-align: middle; }
.spinner-sm { width: 16px; height: 16px; }
.spinner-light { color: #fff; }

/* Domain config page */
.domain-config-tabs .nav-tabs > li > a {
    border-radius: 0.5rem 0.5rem 0 0;
    font-weight: 500;
    color: #475569;
}
.domain-config-tabs .nav-tabs > li.active > a {
    color: #b91c1c;
    border-bottom-color: #b91c1c;
}

/* Responsive for order pages */
@media (max-width: 768px) {
    .main-grid { padding: 0 10px; }
    .section-title { font-size: 1rem; }
    .panel-check-group .col-sm-4 { width: 100%; }
    .row-eq-height { flex-direction: column; }
}

/* =============================================
   DOMAIN SEARCH RESULTS STYLING
   ============================================= */
/* .domain-lookup-result is the <ul> list container in suggested domains -
   only style the individual .domain-suggestion <li> items, not the list itself. */
.domain-search-result {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    transition: all 0.2s;
    background: #fff;
}
.domain-search-result:hover {
    border-color: #b91c1c;
    box-shadow: 0 2px 8px rgba(185,28,28,0.08);
}
.domain-search-result .available {
    color: #16a34a;
    font-weight: 600;
}
.domain-search-result .unavailable {
    color: #dc2626;
    font-weight: 600;
}
.domain-checker-available .btn {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
    border-radius: 0.5rem;
}
.domain-checker-available .btn:hover {
    background: #991b1b !important;
}

/* Suggested-domains list: container is <ul.domain-lookup-result>, items are <li.domain-suggestion> */
ul.domain-lookup-result {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}
.domain-suggestion {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    transition: all 0.2s;
}
.domain-suggestion:hover {
    border-color: #b91c1c;
    box-shadow: 0 2px 8px rgba(185,28,28,0.08);
}
.domain-suggestion .content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.domain-suggestion .content .domain {
    font-weight: 700;
    color: #0f172a;
}
.domain-suggestion .content .extension {
    color: #b91c1c;
    font-weight: 600;
}
.domain-suggestion .actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.domain-suggestion .price {
    font-weight: 600;
    color: #0f172a;
}

/* TLD Pricing Table */
.tld-pricing-table,
.domain-pricing .table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.tld-pricing-table th,
.domain-pricing .table th {
    background: #f8fafc !important;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.75rem 1rem;
}
.tld-pricing-table td,
.domain-pricing .table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Featured TLDs */
.featured-tlds { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.featured-tld-item { border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.75rem 1rem; text-align: center; min-width: 100px; transition: all 0.2s; background: #fff; }
.featured-tld-item:hover { border-color: #b91c1c; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.featured-tld-item .tld-name { font-weight: 700; color: #0f172a; }
.featured-tld-item .tld-price { color: #b91c1c; font-weight: 600; font-size: 0.85rem; }

/* Bottom sticky bar for domain search */
.domain-search-sticky,
.bottom-sticky { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #e2e8f0; padding: 1rem; z-index: 10; box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.05); }

/* =============================================
   CART/CHECKOUT STYLING
   ============================================= */

/* Cart items table */
.viewcart .table,
.cart-body .table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.viewcart .table th,
.cart-body .table th {
    background: #f8fafc !important;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
}
.viewcart .table td,
.cart-body .table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Order summary panel */
.order-summary .panel-heading,
.panel-summary .panel-heading {
    background: #0f172a !important;
    color: #fff !important;
}
.order-summary .panel-heading .panel-title,
.panel-summary .panel-heading .panel-title,
.panel-summary .panel-heading h2 {
    color: #fff !important;
}
.order-summary .price-amount,
.panel-summary .price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b91c1c;
}
.order-summary .btn-checkout,
.summary-actions .btn-checkout {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}
.order-summary .btn-checkout:hover,
.summary-actions .btn-checkout:hover {
    background: #991b1b !important;
}

/* =============================================
   ORDER SUMMARY (sidebar on cart.php?a=confproduct).
   The HTML comes from the lagom2 ordersummary.tpl injected via recalctotals().
   Real classes used: .summary-content .summary-list .list-item .list-item-main
   .list-item-title .item-name .item-value .item-value-free .item-optionname
   .panel-footer .price-left-h .price-total .price-amount .amt .summary-actions
   ============================================= */
#orderSummary,
#orderSummary .panel-summary,
#orderSummary .order-summary {
    overflow: visible !important;
}
#producttotal { padding: 0; }
#producttotal .panel-body { padding: 0 !important; }
#producttotal .summary-content {
    padding: 0;
    margin: 0;
}
#producttotal .summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f1f5f9;
}
#producttotal .summary-list:last-of-type { border-bottom: 0; }
/* Section heading row — "Addons", "Recurring totals", etc. */
#producttotal .summary-list .list-item-title {
    display: block !important;
    padding: 0.75rem 1.25rem !important;
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.02em;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
/* Each line: product name | price, configoption | value, addon | price, etc. */
#producttotal .summary-list .list-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem !important;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    color: #0f172a;
    font-size: 0.875rem;
    line-height: 1.45;
    background: transparent;
}
#producttotal .summary-list .list-item:last-child { border-bottom: 0; }
/* Faded rows — configurable options, taxes section */
#producttotal .summary-list.faded,
#producttotal .summary-list .list-item.faded {
    color: #64748b;
}
#producttotal .summary-list .list-item.faded .item-name,
#producttotal .summary-list .list-item.faded .item-value {
    color: #64748b;
    font-weight: 500;
}
/* Main product row — emphasized */
#producttotal .summary-list .list-item-main {
    padding: 0.95rem 1.25rem !important;
    font-weight: 600;
    font-size: 0.95rem;
    background: #fff;
}
#producttotal .summary-list .list-item-main .item-name,
#producttotal .summary-list .list-item-main .main-item {
    font-weight: 700;
    color: #0f172a;
}
#producttotal .summary-list .list-item-main .pg-name {
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
}
/* Item name (left side) — allow wrapping */
#producttotal .summary-list .list-item .item-name {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
    color: #334155;
}
#producttotal .summary-list .list-item .item-optionname {
    color: #0f172a;
    font-weight: 600;
}
/* Item value (right side) — keep on one line */
#producttotal .summary-list .list-item .item-value {
    flex: 0 0 auto;
    text-align: right;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}
#producttotal .summary-list .list-item .item-value-free {
    color: #16a34a;
    font-weight: 700;
    margin-right: 0.25rem;
}
#producttotal .summary-list .list-item .text-faded {
    color: #94a3b8;
    font-weight: 400;
    margin-right: 0.25rem;
}
#producttotal .summary-list .list-item .line-through {
    text-decoration: line-through;
}
/* Recurring totals / Taxes — subtle background */
#producttotal .summary-list-recurring,
#producttotal .summary-list-taxes {
    background: #f8fafc;
}
#producttotal .summary-list-recurring .list-item,
#producttotal .summary-list-taxes .list-item {
    border-bottom-color: #e2e8f0;
}
/* Footer — total due today + Continue button */
#producttotal .panel-footer {
    padding: 0;
    background: #fff;
    border-top: 2px solid #e2e8f0;
}
#producttotal .panel-footer .price,
#producttotal .panel-footer .price-left-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
#producttotal .panel-footer .price-total {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
#producttotal .panel-footer .price-amount,
#producttotal .panel-footer .amt {
    font-size: 1.5rem;
    font-weight: 800;
    color: #b91c1c;
}
#producttotal .summary-actions {
    padding: 1rem 1.25rem !important;
}
#producttotal .summary-actions .btn-checkout,
#producttotal .summary-actions button[type="submit"],
#producttotal .summary-actions .btn-primary,
#producttotal .summary-actions .btn-primary-faded {
    width: 100%;
    justify-content: center;
    background: #b91c1c !important;
    border-color: #b91c1c !important;
    color: #fff !important;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}
#producttotal .summary-actions .btn-checkout:hover {
    background: #991b1b !important;
}

/* Form controls in cart */
.viewcart .form-control,
.cart-body .form-control {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
}
.viewcart .form-control:focus,
.cart-body .form-control:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
}

/* Promo code section */
.promo-code .form-control { border-radius: 0.5rem 0 0 0.5rem; }
.promo-code .btn { border-radius: 0 0.5rem 0.5rem 0; }

/* Panels in cart */
.viewcart .panel,
.cart-body .panel {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.viewcart .panel-heading,
.cart-body .panel-heading {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    padding: 1rem 1.25rem;
}

/* =============================================
   FORM STYLING (Global for order forms)
   ============================================= */
.form-control {
    border-radius: 0.5rem !important;
    border: 1px solid #e2e8f0 !important;
}
.form-control:focus {
    border-color: #b91c1c !important;
    box-shadow: 0 0 0 3px rgba(185,28,28,0.1) !important;
}
label {
    font-weight: 500;
    color: #0f172a;
    font-size: 0.875rem;
}

/* =============================================
   SELECT2 — React-style design system
   Brand red #b91c1c, slate borders #e2e8f0, Roboto
   ============================================= */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    background: #fff;
    padding: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.select2-container--default .select2-selection--multiple {
    min-height: 38px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    background: #fff;
    padding: 3px 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a;
    line-height: 36px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0 2.25rem 0 0.875rem;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    width: 28px;
    right: 4px;
    top: 1px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #64748b transparent transparent transparent;
    border-width: 6px 5px 0 5px;
    margin-left: -5px;
    margin-top: -3px;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #64748b transparent;
    border-width: 0 5px 6px 5px;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #b91c1c !important;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12) !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 0.375rem;
    padding: 2px 0.5rem;
    margin-top: 4px;
    margin-right: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #b91c1c;
    margin-right: 0.375rem;
    font-weight: 700;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #7c1515;
}
.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.12), 0 4px 10px -3px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-top: 4px;
}
.select2-container--default .select2-search--dropdown {
    padding: 0.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.375rem !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.875rem;
    outline: none !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #b91c1c !important;
    box-shadow: 0 0 0 2px rgba(185,28,28,0.1);
}
.select2-results__options { padding: 0.25rem 0; max-height: 280px; }
.select2-container--default .select2-results__option {
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    color: #334155;
    transition: background-color 0.1s ease;
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
    background-color: #b91c1c !important;
    color: #fff !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #fef2f2;
    color: #b91c1c;
    font-weight: 600;
}
.select2-container--default .select2-results__option[aria-selected=true].select2-results__option--highlighted {
    background-color: #b91c1c !important;
    color: #fff !important;
}
.select2-container--default .select2-results__option--disabled { color: #cbd5e1; }
.select2-container--default .select2-results__option.select2-results__message {
    color: #94a3b8;
    font-style: italic;
    padding: 0.75rem 0.875rem;
}
.select2-container--default .select2-results__group {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.875rem;
    border-bottom: 1px solid #e2e8f0;
}
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.7;
}

/* =============================================
   ORDER FLOW — Stepper + Page header
   ============================================= */
.sf-page-header {
    margin: 1.5rem 0 1.75rem;
    padding: 0 var(--sf-space-4);
}
.sf-page-header .sf-page-title {
    font-size: var(--sf-text-3xl);
    font-weight: 700;
    color: var(--sf-text-strong);
    margin: 0 0 var(--sf-space-2);
    line-height: var(--sf-leading-tight);
}
.sf-page-header .sf-page-subtitle {
    font-size: var(--sf-text-base);
    max-width: 42rem;
    margin: 0 auto;
    line-height: var(--sf-leading-relaxed);
}

.sf-order-stepper {
    margin: var(--sf-space-6) 0 var(--sf-space-4);
    padding: 0 var(--sf-space-4);
    display: flex;
    justify-content: center;
}
/* Selected plan badge — shown above Choose Your Domain */
.sf-selected-plan {
    max-width: 48rem;
    margin: 0 auto var(--sf-space-6);
    padding: 0.75rem 1.25rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid var(--sf-brand-600);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.sf-selected-plan-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}
.sf-selected-plan-name {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
}
.sf-steps {
    display: flex;
    align-items: center;
    gap: var(--sf-space-4);
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
}
.sf-step {
    display: flex;
    align-items: center;
    gap: var(--sf-space-2);
    font-size: var(--sf-text-sm);
    color: var(--sf-text-muted);
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
}
.sf-step + .sf-step::before {
    content: '';
    display: block;
    height: 2px;
    width: 3rem;
    background: var(--sf-border);
    margin-right: var(--sf-space-2);
    order: -1;
    flex: 0 0 3rem;
}
.sf-step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--sf-radius-full);
    background: var(--sf-slate-100);
    color: var(--sf-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--sf-text-sm);
    flex-shrink: 0;
}
.sf-step-label { white-space: nowrap; }
.sf-step-done .sf-step-num {
    background: var(--sf-brand-600);
    color: var(--sf-text-inverse);
}
.sf-step-done + .sf-step::before { background: var(--sf-brand-600); }
.sf-step-active .sf-step-num {
    background: var(--sf-brand-600);
    color: var(--sf-text-inverse);
    box-shadow: 0 0 0 4px var(--sf-brand-100);
}
.sf-step-active .sf-step-label {
    color: var(--sf-text-strong);
    font-weight: 600;
}
@media (max-width: 640px) {
    .sf-step-label { display: none; }
}

/* =============================================
   CHOOSE DOMAIN (configureproductdomain.tpl)
   Custom-styled radio cards for the domain
   register / transfer / existing options.
   iCheck CSS isn't loaded here, so we build our
   own accessible radio UI from the native input.
   ============================================= */
.panel-choose-domain {
    border: 1px solid var(--sf-border) !important;
    border-radius: var(--sf-radius-xl) !important;
    box-shadow: var(--sf-shadow-sm) !important;
    background: var(--sf-surface);
    overflow: hidden;
    margin: 0 auto 1.5rem;
    max-width: 56rem;
}
.panel-choose-domain .panel-body.panel-domain-option {
    padding: 1.25rem;
    background: var(--sf-bg-muted);
    border-bottom: 1px solid var(--sf-border);
}
.panel-choose-domain .panel-body.panel-domain-option .content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
@media (min-width: 640px) {
    .panel-choose-domain .panel-body.panel-domain-option .content {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .panel-choose-domain .panel-body.panel-domain-option .content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Hide the real radio, style the label as the card */
.panel-choose-domain .panel-body.panel-domain-option label.radio {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: #ffffff;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--sf-radius-md);
    cursor: pointer;
    font-weight: 500;
    color: var(--sf-text);
    transition: border-color var(--sf-transition), box-shadow var(--sf-transition), background var(--sf-transition);
    min-height: 56px;
}
.panel-choose-domain .panel-body.panel-domain-option label.radio:hover {
    border-color: var(--sf-brand-300);
    background: #fff7f7;
}
.panel-choose-domain .panel-body.panel-domain-option label.radio > input[type="radio"] {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--sf-slate-400);
    border-radius: 9999px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--sf-transition), background var(--sf-transition);
}
.panel-choose-domain .panel-body.panel-domain-option label.radio > input[type="radio"]:hover {
    border-color: var(--sf-brand-500);
}
.panel-choose-domain .panel-body.panel-domain-option label.radio > input[type="radio"]:checked {
    border-color: var(--sf-brand-600);
    background: radial-gradient(circle, var(--sf-brand-600) 42%, #fff 46%);
}
.panel-choose-domain .panel-body.panel-domain-option label.radio > input[type="radio"]:focus-visible {
    outline: 2px solid var(--sf-brand-400);
    outline-offset: 2px;
}
/* When the real input is checked, highlight the whole card */
.panel-choose-domain .panel-body.panel-domain-option label.radio:has(> input[type="radio"]:checked) {
    border-color: var(--sf-brand-600);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}
.panel-choose-domain .panel-body.panel-domain-option label.radio > span {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.4;
}

/* Hide Lagom2's iCheck wrapper artifacts if they render */
.panel-choose-domain .panel-body.panel-domain-option label.radio .icheck,
.panel-choose-domain .panel-body.panel-domain-option label.radio .icheckbox_square-red,
.panel-choose-domain .panel-body.panel-domain-option label.radio .iradio_square-red {
    display: none !important;
}

/* Domain search box below the options */
.panel-choose-domain .panel-body.panel-domain-search {
    padding: 1.5rem;
    background: #ffffff;
}
.panel-choose-domain .panel-body.panel-domain-search .inline-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: stretch;
}
/* Search input grows to fill, TLD + button fixed width, all on ONE row */
.panel-choose-domain .panel-body.panel-domain-search .inline-form-element {
    flex: 0 0 auto;
    min-width: 0;
}
.panel-choose-domain .panel-body.panel-domain-search .inline-form-element.w-100 {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}
/* TLD dropdown wrapper — fixed width */
.panel-choose-domain .panel-body.panel-domain-search .inline-form-element:has(.tld-select),
.panel-choose-domain .panel-body.panel-domain-search .inline-form-element:nth-of-type(2) {
    flex: 0 0 140px;
    width: 140px;
}
/* Check button — auto width, not block */
.panel-choose-domain .panel-body.panel-domain-search .inline-form-element:last-child {
    flex: 0 0 auto;
    width: auto;
}
.panel-choose-domain .panel-body.panel-domain-search .btn-block {
    width: auto !important;
    min-width: 120px;
}
/* Mobile: stack vertically when narrow */
@media (max-width: 640px) {
    .panel-choose-domain .panel-body.panel-domain-search .inline-form {
        flex-wrap: wrap;
    }
    .panel-choose-domain .panel-body.panel-domain-search .inline-form-element.w-100 {
        flex: 1 1 100%;
    }
    .panel-choose-domain .panel-body.panel-domain-search .inline-form-element:last-child {
        flex: 1 1 100%;
    }
    .panel-choose-domain .panel-body.panel-domain-search .btn-block {
        width: 100% !important;
    }
}
/* TLD dropdown toggle — no border, matches input visually */
.panel-choose-domain .panel-body.panel-domain-search .dropdown {
    height: 48px;
}
.panel-choose-domain .panel-body.panel-domain-search .dropdown-toggle {
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0;
    border: none !important;
    border-radius: var(--sf-radius-md);
    background: transparent;
    cursor: pointer;
}
.panel-choose-domain .panel-body.panel-domain-search .tld-select {
    height: 48px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.875rem;
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-md);
    background: #fff;
    font-weight: 600;
    white-space: nowrap;
    color: #0f172a;
}
.panel-choose-domain .panel-body.panel-domain-search .tld-select [data-dropdown-select-value-view] {
    font-size: 0.9375rem;
}
.panel-choose-domain .panel-body.panel-domain-search .tld-select .caret {
    color: #64748b;
    margin-left: auto;
}
/* Dropdown menu panel — clean, no heavy border, high z-index */
.panel-choose-domain .panel-body.panel-domain-search .dropdown {
    position: relative;
    z-index: 100;
}
.panel-choose-domain .panel-body.panel-domain-search .dropdown.open {
    z-index: 1050;
}
.panel-choose-domain .panel-body.panel-domain-search .dropdown-menu {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 4px;
    background: #fff;
    z-index: 1060;
    max-height: 360px;
    overflow: hidden;
}
.panel-choose-domain .panel-body.panel-domain-search .dropdown-menu .dropdown-menu-items {
    max-height: 280px;
    overflow-y: auto;
}
.panel-choose-domain .panel-body.panel-domain-search .dropdown-menu .dropdown-header {
    padding: 0.5rem 0.75rem;
}
.panel-choose-domain .panel-body.panel-domain-search .dropdown-menu .dropdown-header input.form-control {
    min-height: 36px !important;
    padding: 0.375rem 0.5rem 0.375rem 2rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
}
.panel-choose-domain .panel-body.panel-domain-search .dropdown-menu .dropdown-menu-item {
    padding: 0.5rem 0.875rem;
    cursor: pointer;
    font-size: 0.875rem;
}
.panel-choose-domain .panel-body.panel-domain-search .dropdown-menu .dropdown-menu-item:hover,
.panel-choose-domain .panel-body.panel-domain-search .dropdown-menu .dropdown-menu-item.active {
    background: #eff6ff;
}
.panel-choose-domain .panel-body.panel-domain-search .dropdown-menu .dropdown-menu-item a {
    color: #0f172a;
    text-decoration: none;
    display: block;
}
.panel-choose-domain .panel-body.panel-domain-search input.form-control,
.panel-choose-domain .panel-body.panel-domain-search select.form-control {
    min-height: 48px !important;
    padding: 0.625rem 0.875rem !important;
    border: 1px solid var(--sf-border) !important;
    border-radius: var(--sf-radius-md) !important;
    font-size: 0.9375rem !important;
    box-shadow: none !important;
}
.panel-choose-domain .panel-body.panel-domain-search input.form-control:focus,
.panel-choose-domain .panel-body.panel-domain-search select.form-control:focus {
    border-color: var(--sf-brand-600) !important;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12) !important;
    outline: none !important;
}
.panel-choose-domain .panel-body.panel-domain-search .btn-primary,
.panel-choose-domain .panel-body.panel-domain-search .btn-primary-faded {
    min-height: 48px !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: var(--sf-radius-md) !important;
    font-weight: 700 !important;
    white-space: nowrap;
    background: var(--sf-brand-600) !important;
    border-color: var(--sf-brand-600) !important;
    color: #fff !important;
}
.panel-choose-domain .panel-body.panel-domain-search .btn-primary:hover,
.panel-choose-domain .panel-body.panel-domain-search .btn-primary-faded:hover {
    background: var(--sf-brand-700) !important;
    border-color: var(--sf-brand-700) !important;
}

/* =============================================
   CONFIGURE DOMAINS PAGE (configuredomains.tpl)
   Domain rows + Assign Addons grid + Nameservers
   ============================================= */
.panel-domain-info {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 1.25rem !important;
}
.panel-domain-info .panel-body { padding: 1.25rem 1.5rem !important; }
.panel-domain-info.panel-separated > .panel-body + .panel-body {
    border-top: 1px solid #e2e8f0;
}

.panel-domain-info .domain-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.panel-domain-info .domain-info-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 0.5rem;
    background: var(--sf-brand-600);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.panel-domain-info .domain-info-icon svg {
    width: 24px; height: 24px; fill: currentColor;
    color: #fff;
}
.panel-domain-info .domain-info-icon svg path,
.panel-domain-info .domain-info-icon svg circle,
.panel-domain-info .domain-info-icon svg rect {
    fill: #fff;
}
.panel-domain-info .domain-info-body {
    flex: 1 1 auto;
    min-width: 0;
}
.panel-domain-info .domain-info-top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.panel-domain-info .domain-info-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    word-break: break-all;
}

/* Remove domain button on configuredomains page (.btn.btn-default with onclick) */
.panel-domain-info .domain-info-top .btn,
.panel-domain-info .domain-info-top .btn-default {
    display: inline-flex !important;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600;
    font-size: 0.875rem;
    background: rgba(185, 28, 28, 0.08) !important;
    border: 1px solid rgba(185, 28, 28, 0.25) !important;
    color: var(--sf-brand-600) !important;
    white-space: nowrap;
    cursor: pointer;
}
.panel-domain-info .domain-info-top .btn:hover {
    background: var(--sf-brand-600) !important;
    border-color: var(--sf-brand-600) !important;
    color: #fff !important;
}
.panel-domain-info .domain-info-top .btn .ls,
.panel-domain-info .domain-info-top .btn .lm {
    line-height: 1;
    font-style: normal;
    display: inline-block;
}
.panel-domain-info .domain-info-top .btn .btn-text {
    font-weight: 600;
}

.panel-domain-info .domain-info-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: #475569;
    font-size: 0.875rem;
}
.panel-domain-info .domain-info-period {
    color: #475569;
    font-weight: 500;
}
.panel-domain-info .domain-info-hosting .label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    width: auto;
    max-width: none;
}
.panel-domain-info .domain-info-hosting .label-success {
    background: #dcfce7;
    color: #166534;
}
/* "No Hosting! Click to Add" — solid red so it reads as an action prompt */
.panel-domain-info .domain-info-hosting .label-primary-faded,
.panel-domain-info .domain-info-hosting a.label-primary-faded {
    background: var(--sf-brand-600) !important;
    color: #fff !important;
    text-decoration: none !important;
    border: none;
}
.panel-domain-info .domain-info-hosting .label-primary-faded:hover,
.panel-domain-info .domain-info-hosting a.label-primary-faded:hover {
    background: var(--sf-brand-700) !important;
    color: #fff !important;
}
.panel-domain-info .domain-info-hosting .label-primary-faded i,
.panel-domain-info .domain-info-hosting a.label-primary-faded i {
    color: #fff;
    font-size: 0.7rem;
}

/* Assign Addons section under each domain row */
.panel-domain-info .domain-info-addons {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}
.panel-domain-info .domain-addons-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.875rem;
    text-transform: none;
    letter-spacing: 0;
}
.panel-domain-info .domain-info-addons .row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin: 0;
}
.panel-domain-info .domain-info-addons .row > [class*="col-"] {
    flex: 1 1 calc(33.333% - 0.875rem);
    min-width: 220px;
    padding: 0;
    max-width: none;
}
.panel-domain-info .panel-check {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 0.625rem !important;
    padding: 0.875rem 1rem !important;
    margin: 0 !important;
    width: 100%;
    background: #fff;
    transition: all 0.15s;
    cursor: pointer;
}
.panel-domain-info .panel-check:hover {
    border-color: #fca5a5 !important;
    background: #fffafa;
}
.panel-domain-info .panel-check.checked {
    border-color: var(--sf-brand-600) !important;
    background: #fef2f2;
    box-shadow: 0 0 0 1px var(--sf-brand-600);
}
.panel-domain-info .panel-check label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    margin: 0;
}
.panel-domain-info .panel-check .icheck-control,
.panel-domain-info .panel-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0 !important;
    flex: 0 0 18px;
    accent-color: var(--sf-brand-600);
    cursor: pointer;
}
.panel-domain-info .panel-check .check-content {
    flex: 1;
    min-width: 0;
}
.panel-domain-info .panel-check .check-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.3;
}
.panel-domain-info .panel-check .check-title .ls,
.panel-domain-info .panel-check .check-title .lm {
    color: #94a3b8;
    font-size: 0.85rem;
    cursor: help;
}
.panel-domain-info .panel-check .check-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0.35rem 0 0;
    line-height: 1.4;
}
.panel-domain-info .panel-check .check-subtitle span {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* EPP / additional fields rows */
.panel-domain-info .domain-info-additional {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.5rem !important;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}
.panel-domain-info .domain-info-additional .col-form-label {
    font-weight: 600;
    color: #334155;
    font-size: 0.875rem;
}
.panel-domain-info .domain-info-additional .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}
.panel-domain-info .domain-info-additional .form-control:focus {
    border-color: var(--sf-brand-600);
    box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
    outline: none;
}

/* Nameservers section */
form#frmConfigureDomains .section-header {
    margin: 1.5rem 0 0.75rem;
}
form#frmConfigureDomains .section-header .section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}
form#frmConfigureDomains .section-header .section-desc {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}
form#frmConfigureDomains .form-group { margin-bottom: 1rem; }
form#frmConfigureDomains .form-group label {
    font-weight: 600;
    color: #334155;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    display: inline-block;
}
form#frmConfigureDomains .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
    height: auto;
}
form#frmConfigureDomains .form-control:focus {
    border-color: var(--sf-brand-600);
    box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
    outline: none;
}

@media (max-width: 768px) {
    .panel-domain-info .domain-info-addons .row > [class*="col-"] {
        flex: 1 1 100%;
        min-width: 0;
    }
    .panel-domain-info .domain-info {
        flex-wrap: wrap;
    }
}

/* =============================================
   Modal (remove-item confirmation, etc.) — used by removeItem() in order.js
   ============================================= */
.modal {
    position: fixed !important;
    inset: 0;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1050 !important;
    display: none;
    overflow: auto;
    background: transparent;
}
.modal.in,
.modal[style*="display: block"],
.modal[style*="display:block"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* Bootstrap's .fade sets opacity:0; force opacity back when modal is shown */
.modal.fade { opacity: 0; transition: opacity 0.15s linear; }
.modal.fade.in,
.modal.fade[style*="display: block"],
.modal.fade[style*="display:block"] { opacity: 1 !important; }
.modal .modal-dialog {
    max-width: 480px;
    margin: 6rem auto 2rem;
    padding: 0 1rem;
    z-index: 1060;
    position: relative;
}
.modal .modal-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    overflow: hidden;
}
.modal .modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    /* Title is the second child in the HTML; we want it on the LEFT
       and the close button on the RIGHT. Use row-reverse + reverse order. */
    flex-direction: row-reverse;
}
.modal .modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    flex: 1 1 auto;
    text-align: left;
}
.modal .modal-header .close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    line-height: 1;
    flex: 0 0 auto;
    margin-left: auto;
}
.modal .modal-header .close::before {
    /* Visible × glyph fallback when lagom icon font isn't loaded */
    content: "\00d7";
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.modal .modal-header .close > * { display: none; }
.modal .modal-header .close:hover { color: #0f172a; }
.modal .modal-body {
    padding: 1.25rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
}
.modal .modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background: #f8fafc;
}
.modal .modal-footer .btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: 1px solid transparent;
}
.modal .modal-footer .btn-primary {
    background: var(--sf-brand-600) !important;
    border-color: var(--sf-brand-600) !important;
    color: #fff !important;
}
.modal .modal-footer .btn-primary:hover {
    background: var(--sf-brand-700) !important;
    border-color: var(--sf-brand-700) !important;
}
.modal .modal-footer .btn-default {
    background: #fff;
    border-color: #cbd5e1;
    color: #334155;
}
.modal .modal-footer .btn-default:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
body.modal-open { overflow: hidden; }
#sfModalBackdrop { z-index: 1040 !important; }

/* =============================================
   LAGOM (.lm-*, .ls-*) icon class → Font Awesome 5 mapping
   The lagom icon font isn't loaded in this order-form theme, so any
   <i class="lm lm-trash"> would render blank. We piggyback on FA5
   (loaded in common.tpl) by setting font-family + unicode content per class.
   ============================================= */
.lm, .ls,
i[class^="lm-"], i[class*=" lm-"],
i[class^="ls-"], i[class*=" ls-"],
span[class^="lm-"], span[class*=" lm-"],
span[class^="ls-"], span[class*=" ls-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome, sans-serif;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Map specific lagom icon names to Font Awesome 5 unicode codepoints */
.lm-check::before,        .ls-check::before        { content: "\f00c"; }
.lm-close::before,        .ls-close::before        { content: "\f00d"; }
.lm-times::before,        .ls-times::before        { content: "\f00d"; }
.lm-trash::before,        .ls-trash::before        { content: "\f1f8"; }
.lm-trash-alt::before,    .ls-trash-alt::before    { content: "\f2ed"; }
.lm-edit::before,         .ls-edit::before         { content: "\f044"; }
.lm-pencil::before,       .ls-pencil::before       { content: "\f303"; }
.lm-share::before,        .ls-share::before        { content: "\f061"; }
.lm-arrow-right::before,  .ls-arrow-right::before  { content: "\f061"; }
.lm-arrow-left::before,   .ls-arrow-left::before   { content: "\f060"; }
.lm-info-circle::before,  .ls-info-circle::before  { content: "\f05a"; }
.lm-exclamation-circle::before, .ls-exclamation-circle::before { content: "\f06a"; }
.lm-exclamation::before,  .ls-exclamation::before  { content: "\f12a"; }
.lm-reply::before,        .ls-reply::before        { content: "\f3e5"; }
.lm-search::before,       .ls-search::before       { content: "\f002"; }
.lm-bank-note::before,    .ls-bank-note::before    { content: "\f53a"; }
.lm-sort-desc::before,    .ls-sort-desc::before    { content: "\f0d7"; }
.lm-sort-asc::before,     .ls-sort-asc::before     { content: "\f0d8"; }
.lm-caret-down::before,   .ls-caret-down::before   { content: "\f0d7"; }
.lm-caret-up::before,     .ls-caret-up::before     { content: "\f0d8"; }
.lm-plus::before,         .ls-plus::before         { content: "\f067"; }
.lm-minus::before,        .ls-minus::before        { content: "\f068"; }
.lm-cart::before,         .ls-cart::before         { content: "\f07a"; }
.lm-shopping-cart::before, .ls-shopping-cart::before { content: "\f07a"; }
.lm-user::before,         .ls-user::before         { content: "\f007"; }
.lm-lock::before,         .ls-lock::before         { content: "\f023"; }
.lm-key::before,          .ls-key::before          { content: "\f084"; }
.lm-globe::before,        .ls-globe::before        { content: "\f0ac"; }
.lm-server::before,       .ls-server::before       { content: "\f233"; }
.lm-envelope::before,     .ls-envelope::before     { content: "\f0e0"; }
.lm-phone::before,        .ls-phone::before        { content: "\f095"; }
.lm-question-circle::before, .ls-question-circle::before { content: "\f059"; }
.lm-warning::before,      .ls-warning::before      { content: "\f071"; }
.lm-bars::before,         .ls-bars::before         { content: "\f0c9"; }
.lm-cog::before,          .ls-cog::before          { content: "\f013"; }
.lm-eye::before,          .ls-eye::before          { content: "\f06e"; }
.lm-eye-slash::before,    .ls-eye-slash::before    { content: "\f070"; }
.lm-download::before,     .ls-download::before     { content: "\f019"; }
.lm-upload::before,       .ls-upload::before       { content: "\f093"; }
.lm-link::before,         .ls-link::before         { content: "\f0c1"; }
.lm-external-link::before, .ls-external-link::before { content: "\f35d"; }
.lm-credit-card::before,  .ls-credit-card::before  { content: "\f09d"; }
.lm-calendar::before,     .ls-calendar::before     { content: "\f073"; }
.lm-clock::before,        .ls-clock::before        { content: "\f017"; }
.lm-tag::before,          .ls-tag::before          { content: "\f02b"; }
.lm-star::before,         .ls-star::before         { content: "\f005"; }

/* Generic .lm / .ls without a specific suffix get an empty placeholder */
.lm:not([class*="lm-"])::before,
.ls:not([class*="ls-"])::before { content: ""; }

/* Default sizing aliases — match Lagom's typical icon scales */
.lm  { font-size: 1.1rem; }
.ls  { font-size: 0.95rem; }

/* =============================================
   CONFIGUREPRODUCT — product info + sidebar order summary layout.
   Goal: name+desc top-left, sticky order summary top-right, SSL/addons
   below the product header, hide empty addon container.
   ============================================= */

/* Make the 2-column layout kick in earlier so the order summary is
   visible alongside product info on tablet too. */
@media (min-width: 768px) {
    .main-grid {
        flex-direction: row;
    }
    .main-grid .main-content {
        flex: 1 1 0;
        min-width: 0;
    }
    .main-grid .main-sidebar,
    .main-grid .main-sidebar-lg {
        flex: 0 0 320px;
        width: 320px;
    }
}

/* Product header card — make it look like a real intro card */
.product-config-info,
.panel.panel-form.product-config-info {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 1rem;
}
.product-config-info .panel-body {
    padding: 1.25rem 1.5rem !important;
}
.product-config-info h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.product-config-info .product-info {
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
}
.product-config-info .product-info p { margin: 0 0 0.5rem; }
.product-config-info .product-info p:last-child { margin: 0; }

/* Hide #productAddonsContainer when its visible content is empty.
   Backed up by JS in common.tpl, but CSS gives an instant pre-paint hide. */
#productAddonsContainer:empty,
#productAddonsContainer > .section:empty,
#productAddonsContainer > .section:has(> .section-body:empty) {
    display: none !important;
}
/* Section header for addons / SSL — consistent typography */
#productAddonsContainer .section-title,
.section .section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

/* Reduce gap between empty/collapsed sections */
.main-content > .section + .section { margin-top: 1rem; }
.main-content .panel-form { margin-bottom: 1rem; }

/* =============================================
   ORDER SUMMARY card (sidebar) — neat panel matching theme.
   ============================================= */
.main-sidebar .panel-summary,
.panel.panel-summary {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}
.panel.panel-summary > .panel-heading {
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
    padding: 0.875rem 1.25rem;
}
.panel.panel-summary > .panel-heading .panel-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sf-brand-700);
    margin: 0;
}
.panel.panel-summary #producttotal {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: #334155;
}

/* =============================================
   Promo / coupon code field inside order summary.
   ============================================= */
.sf-promo-code {
    padding: 1rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}
.sf-promo-code label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 0.4rem;
    text-transform: none;
    letter-spacing: 0;
}
.sf-promo-code .sf-promo-input-group {
    display: flex;
    gap: 0.4rem;
}
.sf-promo-code .form-control {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    background: #fff;
    color: #0f172a;
    height: auto;
    width: auto;
    min-width: 0;
}
.sf-promo-code .form-control:focus {
    outline: none;
    border-color: var(--sf-brand-600);
    box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
}
.sf-promo-code .btn {
    flex: 0 0 auto;
    padding: 0.5rem 0.875rem !important;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 0.5rem !important;
    background: rgba(185, 28, 28, 0.1) !important;
    color: var(--sf-brand-600) !important;
    border: 1px solid rgba(185, 28, 28, 0.25) !important;
    cursor: pointer;
}
.sf-promo-code .btn:hover {
    background: var(--sf-brand-600) !important;
    color: #fff !important;
    border-color: var(--sf-brand-600) !important;
}
.sf-promo-applied {
    margin-top: 0.5rem;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.sf-promo-applied .ls,
.sf-promo-applied .lm { color: #16a34a; }

/* =============================================
   VIEWCART (cart-php?a=view) — scoped to .panel-cart only.
   Every selector chains to .panel-cart so other pages with .panel-body or
   .row-eq-height aren't affected.
   ============================================= */
.panel.panel-cart {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.panel.panel-cart > .panel-heading.cart-heading {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.panel.panel-cart > .panel-heading.cart-heading .row { margin: 0; }

.panel.panel-cart > .panel-body.cart-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.panel.panel-cart > .panel-body.cart-item:hover { background: #fafbfc; }
.panel.panel-cart > .panel-body.cart-item:last-of-type { border-bottom: 0; }

.panel.panel-cart .cart-item-title-main {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
}
.panel.panel-cart .cart-item-title-small {
    font-size: 0.85rem;
    color: var(--sf-brand-600);
    font-weight: 500;
    display: block;
}

/* Billing-cycle dropdown — kill the giant red rectangle look */
.panel.panel-cart .cart-item-pricing.dropdown {
    display: inline-block;
    position: relative;
}
.panel.panel-cart .cart-item-pricing > .btn.btn-default.dropdown-toggle {
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    border-radius: 0.5rem !important;
    padding: 0.45rem 0.75rem !important;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: none;
    width: auto;
    min-width: 6rem;
    max-width: 100%;
}
.panel.panel-cart .cart-item-pricing > .btn.btn-default.dropdown-toggle:hover {
    border-color: var(--sf-brand-600) !important;
    background: #fef2f2 !important;
}
.panel.panel-cart .cart-item-pricing .caret {
    display: inline-block;
    margin-left: 0.35rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #64748b;
}
.panel.panel-cart .cart-item-pricing .dropdown-menu {
    position: absolute;
    top: 100%; left: 0;
    z-index: 100;
    min-width: 180px;
    margin: 0.25rem 0 0;
    padding: 0.25rem 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    list-style: none;
    display: none;
}
.panel.panel-cart .cart-item-pricing.open > .dropdown-menu,
.panel.panel-cart .cart-item-pricing > .dropdown-menu.show { display: block; }
.panel.panel-cart .cart-item-pricing .dropdown-menu > li > a {
    display: block;
    padding: 0.5rem 0.875rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.875rem;
}
.panel.panel-cart .cart-item-pricing .dropdown-menu > li > a:hover {
    background: #fef2f2;
    color: var(--sf-brand-600);
}

/* Edit / Trash icon buttons inside cart items — branded look */
.panel.panel-cart .prod-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.panel.panel-cart .cart-item-actions {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}
.panel.panel-cart .cart-item-actions > .btn.btn-icon {
    background: rgba(185, 28, 28, 0.08) !important;
    border: 1px solid rgba(185, 28, 28, 0.2) !important;
    color: var(--sf-brand-600) !important;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    cursor: pointer;
    transition: all 0.15s;
}
.panel.panel-cart .cart-item-actions > .btn.btn-icon:hover {
    background: var(--sf-brand-600) !important;
    border-color: var(--sf-brand-600) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.panel.panel-cart .cart-item-actions > .btn.btn-icon i,
.panel.panel-cart .cart-item-actions > .btn.btn-icon .lm,
.panel.panel-cart .cart-item-actions > .btn.btn-icon .ls {
    font-size: 1rem;
    line-height: 1;
}
/* Trash variant — slightly more emphatic on hover */
.panel.panel-cart .cart-item-actions > .btn.btn-icon.btn-hover-danger:hover {
    background: var(--sf-brand-700) !important;
    border-color: var(--sf-brand-700) !important;
}

/* Consistent left padding for header + item rows so columns line up.
   Same horizontal padding (1.25rem) on both heading and body rows. */
.panel.panel-cart > .panel-heading.cart-heading,
.panel.panel-cart > .panel-body.cart-item,
.panel.panel-cart > .panel-footer {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}
.panel.panel-cart > .panel-heading.cart-heading > .row,
.panel.panel-cart > .panel-body.cart-item > .row {
    margin-left: 0;
    margin-right: 0;
    align-items: center;
}
.panel.panel-cart > .panel-heading.cart-heading > .row > [class*="col-"],
.panel.panel-cart > .panel-body.cart-item > .row > [class*="col-"],
.panel.panel-cart > .panel-body.cart-item > .row > .col {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.panel.panel-cart > .panel-heading.cart-heading > .row > [class*="col-"]:first-child,
.panel.panel-cart > .panel-body.cart-item > .row > [class*="col-"]:first-child {
    padding-left: 0;
}

/* Cart item title block padding alignment */
.panel.panel-cart .cart-item-title {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    line-height: 1.35;
}

/* Mobile: stack columns with data-content labels */
@media (max-width: 767px) {
    .panel.panel-cart > .panel-heading.cart-heading { display: none; }
    .panel.panel-cart > .panel-body.cart-item > .row > [class*="col-"],
    .panel.panel-cart > .panel-body.cart-item > .row > .col {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 0.25rem 0;
    }
    .panel.panel-cart > .panel-body.cart-item .prod-actions {
        justify-content: flex-start;
        margin-top: 0.4rem;
    }
}

/* Footer with Continue Shopping / Empty Cart */
.panel.panel-cart > .panel-footer {
    padding: 0.875rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.panel.panel-cart > .panel-footer .btn.btn-default {
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.875rem !important;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}
.panel.panel-cart > .panel-footer .btn.btn-default:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

/* Promo code section — only target the specific .promo-code container,
   never bare .form-control etc. */
.section > .promo-code,
.promo-code-container .promo-code {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 1rem 1.25rem;
}

/* CHECKOUT button on the order form — scoped via #btnCompleteOrder /
   form id, not generic submit. */
#btnCompleteOrder,
#frmCheckout button#btnCompleteOrder,
form#orderfrm button[type="submit"][name="checkout"] {
    background: var(--sf-brand-600) !important;
    border-color: var(--sf-brand-600) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 0.625rem !important;
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
}
#btnCompleteOrder:hover,
#frmCheckout button#btnCompleteOrder:hover {
    background: var(--sf-brand-700) !important;
    border-color: var(--sf-brand-700) !important;
}

/* =============================================
   GLOBAL theme color guarantees — primary buttons always
   white text on brand red. Scoped to recognized button classes only.
   ============================================= */
.btn.btn-primary,
.btn-primary {
    background-color: var(--sf-brand-600) !important;
    border-color: var(--sf-brand-600) !important;
    color: #fff !important;
}
.btn.btn-primary:hover,
.btn-primary:hover {
    background-color: var(--sf-brand-700) !important;
    border-color: var(--sf-brand-700) !important;
    color: #fff !important;
}
/* Make sure any nested span / icon inside a primary button stays white */
.btn.btn-primary > *,
.btn-primary > *,
.btn.btn-primary i,
.btn-primary i,
.btn.btn-primary span,
.btn-primary span { color: inherit; }

/* =============================================
   Configure-product page — plan details card (Lagom-style: simple title +
   short description). Description is truncated server-side to ~220 chars.
   ============================================= */
.sf-plan-card.panel.panel-form.product-config-info {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.sf-plan-card .panel-body {
    padding: 1.25rem 1.5rem;
}
.sf-plan-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.sf-plan-desc {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 575px) {
    .sf-plan-card .panel-body { padding: 1rem 1.125rem; }
    .sf-plan-title { font-size: 1.125rem; }
}

/* =============================================
   Checkout form validation styles
   - Inline error messages under each invalid field
   - Top-of-form summary alert listing every error
   - Red border on invalid form-controls
   ============================================= */
.sf-validation-summary.alert {
    background: #fef2f2 !important;
    border: 1px solid var(--sf-brand-300) !important;
    color: var(--sf-brand-700) !important;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    margin: 0 0 1.25rem;
    list-style: none;
}
.sf-validation-summary strong {
    display: block;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--sf-brand-700);
}
.sf-validation-summary ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}
.sf-validation-summary ul li { color: var(--sf-brand-700); }

.sf-field-error {
    display: block;
    margin-top: 0.3rem;
    color: var(--sf-brand-600);
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 500;
}
.sf-has-error .form-control,
.sf-has-error input,
.sf-has-error select,
.sf-has-error textarea {
    border-color: var(--sf-brand-500) !important;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.1);
}
.sf-has-error .form-control:focus,
.sf-has-error input:focus,
.sf-has-error select:focus,
.sf-has-error textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}
.sf-has-error .control-label,
.sf-has-error label { color: var(--sf-brand-600); }

/* =============================================
   View-cart / checkout page — tighten spacing, polish design.
   ============================================= */
.page-viewcart .section,
body[data-page="viewcart"] .section { margin-bottom: 1rem; }
.page-viewcart .section-header,
body[data-page="viewcart"] .section-header { margin-bottom: 0.625rem; padding-bottom: 0.5rem; }
.page-viewcart .panel-form,
.page-viewcart .panel-cart,
body[data-page="viewcart"] .panel-form,
body[data-page="viewcart"] .panel-cart {
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.page-viewcart .panel-body,
body[data-page="viewcart"] .panel-body { padding: 1rem 1.25rem; }
.page-viewcart .form-group,
body[data-page="viewcart"] .form-group { margin-bottom: 0.75rem; }
.page-viewcart .form-control,
body[data-page="viewcart"] .form-control { padding: 0.5rem 0.75rem; height: auto; line-height: 1.4; font-size: 0.9rem; }
.page-viewcart .control-label,
body[data-page="viewcart"] .control-label { font-size: 0.825rem; font-weight: 500; margin-bottom: 0.3rem; color: #334155; }
.page-viewcart .row > [class*="col-"],
body[data-page="viewcart"] .row > [class*="col-"] { padding-bottom: 0; }

/* Cart item line — fix the "Dedicated IP Address: None" floating-in-center
   issue by tightening the addon row layout. */
.panel-cart .prod-addons,
.panel-cart .prod-addons-container {
    width: 100%;
    padding: 0;
}
.panel-cart .addon-item {
    margin: 0;
    padding: 0.5rem 0;
    border-top: 1px solid #f1f5f9;
    align-items: center;
    flex-wrap: wrap;
}
.panel-cart .addon-item .addon-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #475569;
    padding: 0;
}
.panel-cart .addon-item .addon-name .item-name {
    color: #64748b;
    font-weight: 500;
}
.panel-cart .addon-item .addon-name .item-value {
    color: #0f172a;
    font-weight: 500;
}
.panel-cart .addon-item .addon-price {
    text-align: right;
    font-size: 0.85rem;
    color: #475569;
    padding: 0;
}
.panel-cart .cart-item {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}
.panel-cart .cart-heading {
    background: #f8fafc;
    padding: 0.625rem 1.25rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
}

/* Billing-details panel-check — make the existing/new account cards tighter */
.billing-details-form .panel-check { margin-bottom: 0.75rem; }
.billing-details-form .panel-collapse .panel-body { padding: 1rem 1.25rem; }

/* Mailing list / TOS panels — tighter */
.panel-switch { margin-bottom: 0.5rem; }
.panel-switch .panel-body { padding: 0.625rem 1rem !important; }

/* Order Summary recurring rows — make sure hidden ones don't reserve space */
#orderSummary .summary-list .list-item[style*="display:none"],
#orderSummary .summary-list .list-item[style*="display: none"] {
    display: none !important;
}

/* ============================================================================
   RESPONSIVE SAFETY LAYER  —  added 2026-05-22
   Keeps the hosting pages, cart and checkout free of horizontal overflow on
   phones and tablets. Rules are universally safe or scoped to max-width media
   queries, so the desktop layout is unchanged.
   ============================================================================ */

/* Media never overflows its container */
img { max-width: 100%; height: auto; }

/* Hosting-page group heroes (shared / WordPress / VPS / reseller / email /
   SSL / starter / ultra / addon) use an inline two-column grid. Stack it and
   scale the headline + banner image down once the columns get cramped. */
@media (max-width: 860px) {
    .sf-grouphero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .sf-grouphero-grid h1 { font-size: 2.25rem !important; }
    .sf-grouphero-grid > div:last-child { height: 240px !important; }
}

/* Tablet and below */
@media (max-width: 768px) {
    /* Wide tables (cart line items, comparison grids) scroll horizontally
       instead of stretching the page wider than the viewport. */
    .main-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* The 100vw hero keeps a comfortable gutter on small screens. */
    .sf-product-hero { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}

/* Phone */
@media (max-width: 480px) {
    /* Scale the hero headline down so it never overflows tiny screens. */
    .sf-product-hero h1 { font-size: 1.9rem !important; }
    .sf-grouphero-grid h1 { font-size: 1.75rem !important; }
    .sf-grouphero-grid > div:last-child { height: 180px !important; }
}


