/* *****************************************************

    ** Nexus Modern — Custom Stylesheet **

    Full visual redesign layer on top of the stock Nexus theme.
    Loaded last in the cascade (includes/head.tpl), so every rule
    here overrides the compiled theme.css. Purely cosmetic: no
    .tpl markup, JS, form names, ids or data-attributes are
    touched, so all WHMCS behaviour stays exactly the same.

    Brand colors live in :root below — change --primary-* to
    re-brand everything (also flows into the nexus_cart orderform).

***************************************************** */


:root {
    --white: #fff;

    /* Neutral (cool slate) */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    --neutral-950: #020617;

    /* Brand blue */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --primary-950: #172554;

    --primary: var(--primary-600);
    --primary-lifted: var(--primary-700);
    --primary-accented: var(--primary-800);

    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    --success: #16a34a;
    --success-lifted: #15803d;
    --success-accented: #166534;

    --info: var(--primary-600);
    --info-lifted: var(--primary-700);
    --info-accented: var(--primary-800);

    --notice: #7c3aed;
    --notice-lifted: #6d28d9;
    --notice-accented: #5b21b6;

    --warning: #f59e0b;
    --warning-lifted: #d97706;
    --warning-accented: #b45309;

    --error: #dc2626;
    --error-lifted: #b91c1c;
    --error-accented: #991b1b;

    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    --border-muted: #e6eaf0;
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: #f5f7fb;
    --bg-accented: var(--neutral-200);
    --bg-inverted: #0b1220;

    --yellow-200: #fef08a;
    --yellow-300: #fde047;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --emerald-300: #6ee7b7;
    --pink-400: #f472b6;

    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    --rounding-sm: 0.5rem;
    --rounding-md: 0.75rem;
    --rounding-lg: 1rem;
    --rounding-xl: 1.25rem;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 16px -4px rgba(15, 23, 42, 0.10), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.18), 0 4px 10px rgba(15, 23, 42, 0.05);
    --shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.15);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

    --letter-spacing: -0.005em;
    --disabled-opacity: 45%;
}

/* =====================================================
   Base & typography
   ===================================================== */

html, body, .btn, .form-control, .custom-select, .navbar, .dropdown-menu,
.popover, .tooltip, .modal, input, select, textarea, button,
.popover-user-notifications {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    color: var(--text);
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    transition: color 0.15s ease;
}
a:hover {
    color: var(--primary-lifted);
}

.text-muted {
    color: var(--text-lifted) !important;
}

::selection {
    background-color: var(--primary-100);
    color: var(--primary-900);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--primary);
}

hr {
    border-top-color: var(--border-muted);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background-color: var(--neutral-300);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--neutral-400); }

/* =====================================================
   Page shell
   ===================================================== */

section#main-body {
    padding: 8px 0 48px;
    background-color: var(--bg-lifted);
    background-image: radial-gradient(1200px 400px at 50% -200px, rgba(37, 99, 235, 0.07), transparent 70%);
    background-repeat: no-repeat;
}

section#main-content,
.main-content {
    margin-bottom: 24px;
}

/* =====================================================
   Topbar (logged-in strip)
   ===================================================== */

header.header .topbar {
    padding: 4px 0;
    background-color: var(--bg-inverted);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

header.header .topbar .btn,
header.header .topbar .active-client .btn {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    border-radius: var(--rounding-sm);
    padding: 0.35rem 0.6rem;
}

header.header .topbar .btn:hover,
header.header .topbar .active-client .btn:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
}

header.header .topbar .active-client .input-group-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

header.header .topbar .active-client .btn.btn-active-client span {
    border-bottom: 0;
    color: #fff;
    font-weight: 600;
}

/* =====================================================
   Header / main navigation
   ===================================================== */

header.header {
    position: relative;
    z-index: 1020;
    background-color: #fff;
    border-bottom: 1px solid var(--border-muted);
}

header.header .navbar {
    min-height: 0;
}

header.header .navbar.navbar-light {
    min-height: 68px;
}

header.header .navbar .container {
    justify-content: space-between;
}

header.header .logo-img {
    max-height: 44px;
    width: auto;
}

/* Search pill */
header.header .search {
    width: 300px;
    background-color: var(--bg-muted);
    border: 1px solid var(--border-muted);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

header.header .search .form-control,
header.header .search .btn {
    background-color: transparent;
    min-height: 0;
    font-size: 14px;
}

header.header .search .btn {
    color: var(--text-muted);
    padding-left: 14px;
}

header.header .search .btn:hover {
    background-color: transparent;
    color: var(--primary);
}

header.header .search:focus-within {
    background-color: #fff;
    border-color: var(--primary-300);
    box-shadow: var(--shadow-focus);
}

/* Toolbar icon buttons (cart / menu) */
header.header .navbar-nav {
    margin-top: 0;
    margin-bottom: 0;
}

header.header .toolbar {
    gap: 8px;
    align-items: center;
}

header.header .toolbar .nav-item.ml-2 {
    margin-left: 0 !important;
}

header.header .toolbar .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 16px;
    color: var(--text-accented);
    background-color: #fff;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    box-shadow: var(--shadow-xs);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

header.header .toolbar .nav-link:hover,
header.header .toolbar .nav-link:focus {
    color: var(--primary);
    background-color: var(--primary-50);
    border-color: var(--primary-200);
}

header.header .toolbar .nav-link .badge {
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 20px;
    color: #fff;
    background-color: var(--primary);
    border: 2px solid #fff;
    border-radius: 999px;
}

/* Desktop nav row */
header.header .navbar-nav a {
    font-size: 14.5px;
    font-weight: 500;
}

header.header #mainNavbar .navbar-nav > li > a {
    color: var(--text-accented);
    border-radius: var(--rounding-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}

header.header #mainNavbar .navbar-nav > li > a:hover,
header.header #mainNavbar .navbar-nav > li.show > a {
    color: var(--text);
    background-color: var(--bg-lifted);
    text-decoration: none;
}

header.header #mainNavbar .navbar-nav > li > a i {
    color: var(--text-muted);
}

header.header .dropdown-toggle::after {
    margin-left: 0.4em;
    vertical-align: 0.15em;
    border-top-width: 0.28em;
    border-right-width: 0.28em;
    border-left-width: 0.28em;
    opacity: 0.55;
}

/* Floating dropdown panels */
.dropdown-menu {
    padding: 6px;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
}

.dropdown-item {
    border-radius: var(--rounding-sm);
    color: var(--text-accented);
    transition: background-color 0.12s ease, color 0.12s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--text);
    background-color: var(--bg-lifted);
}

.dropdown-item.active,
.dropdown-item:active {
    color: var(--primary-700);
    background-color: var(--primary-50);
}

.dropdown-divider {
    margin: 6px 0;
    border-top-color: var(--border-muted);
}

header.header .dropdown-menu li.dropdown-item {
    padding: 0;
    background: transparent;
}

header.header .dropdown-menu a.dropdown-item {
    padding: 8px 12px !important;
    font-size: 14px;
}

header.header .dropdown-menu a.dropdown-item i {
    width: 18px;
    color: var(--text-muted);
}

/* Desktop (xl+) */
@media (min-width: 1200px) {
    header.header .main-navbar-wrapper {
        border-top: 1px solid var(--border-muted);
    }

    header.header #mainNavbar {
        padding: 6px 0;
    }

    header.header #nav {
        gap: 2px;
    }

    header.header #mainNavbar .navbar-nav > li > a {
        display: block;
        padding: 8px 14px;
    }

    header.header #mainNavbar .navbar-nav.ml-auto {
        gap: 2px;
    }
}

/* Mobile / tablet (< xl) */
@media (max-width: 1199.98px) {
    header.header .main-navbar-wrapper {
        min-height: 0;
    }

    header.header #mainNavbar {
        margin: 4px 0 14px;
        padding: 10px;
        background-color: #fff;
        border: 1px solid var(--border-muted);
        border-radius: var(--rounding-lg);
        box-shadow: var(--shadow-md);
    }

    header.header #mainNavbar .search {
        width: 100%;
        margin-bottom: 8px !important;
    }

    header.header #nav,
    header.header #mainNavbar .navbar-nav {
        gap: 0;
    }

    header.header #mainNavbar .navbar-nav.ml-auto {
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid var(--border-muted);
    }

    header.header #mainNavbar .navbar-nav > li > a {
        display: flex;
        align-items: center;
        padding: 11px 12px;
        font-size: 15px;
    }

    header.header #mainNavbar .navbar-nav > li > a.dropdown-toggle::after {
        margin-left: auto;
    }

    header.header #mainNavbar .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin: 2px 0 6px;
        padding: 4px 0 4px 12px;
        border: 0;
        border-left: 2px solid var(--border-muted);
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }
}

@media (max-width: 575.98px) {
    header.header .logo-img {
        max-height: 36px;
        max-width: 170px;
    }

    header.header .navbar.navbar-light {
        min-height: 60px;
    }

    header.header .navbar .container {
        justify-content: space-between !important;
    }
}

/* =====================================================
   Breadcrumb — blended into the page, no grey bar
   ===================================================== */

.master-breadcrumb {
    background-color: var(--bg-lifted);
    border: 0;
}

.master-breadcrumb .breadcrumb {
    padding: 18px 0 6px;
    background-color: transparent;
    font-size: 13px;
    font-weight: 500;
}

.master-breadcrumb .breadcrumb a {
    color: var(--text-lifted);
}

.master-breadcrumb .breadcrumb a:hover {
    color: var(--primary);
    text-decoration: none;
}

.master-breadcrumb .breadcrumb .breadcrumb-item.active {
    color: var(--text);
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

/* =====================================================
   Cards
   ===================================================== */

.card {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-muted);
}

.card-header:first-child {
    border-radius: var(--rounding-lg) var(--rounding-lg) 0 0;
}

.card-footer {
    background-color: var(--bg-muted);
    border-top: 1px solid var(--border-muted);
}

.card-footer:last-child {
    border-radius: 0 0 var(--rounding-lg) var(--rounding-lg);
}

.primary-content .card {
    border-radius: var(--rounding-lg);
    transition: box-shadow 0.2s var(--ease);
}

.primary-content .card-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body .primary-content .card {
    margin-bottom: 20px;
}

@media (max-width: 575.98px) {
    body .primary-content .card .card-body {
        padding: 20px;
    }
}

/* Kill the coloured top stripe ("card-accent-*") everywhere — very WHMCS */
.primary-content [class*="card-accent-"],
.client-home-cards [class*="card-accent-"] {
    border-top: 1px solid var(--border-muted);
}

/* =====================================================
   Sidebar
   ===================================================== */

.sidebar .card-sidebar {
    margin-bottom: 16px !important;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.sidebar .card-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-muted);
}

.sidebar .card-title,
.sidebar .card-sidebar .panel-title {
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.sidebar .card-minimise {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 3px;
}

.sidebar .list-group {
    padding: 6px;
}

.sidebar .list-group-item {
    margin: 1px 0;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-accented);
    border-radius: var(--rounding-sm) !important;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item:focus {
    color: var(--text);
    background-color: var(--bg-lifted);
}

.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover,
.sidebar .list-group-item.active:focus {
    color: var(--primary-700);
    background-color: var(--primary-50);
    font-weight: 600;
}

.sidebar .list-group-item .sidebar-menu-item-icon,
.sidebar .list-group-item > i {
    width: 18px;
    color: var(--text-muted);
}

.sidebar .list-group-item.active .sidebar-menu-item-icon,
.sidebar .list-group-item.active > i {
    color: var(--primary);
}

.sidebar .sidebar-menu-item-icon-wrapper {
    margin-right: 0.55rem;
}

body .sidebar .list-group-item .badge,
.sidebar .list-group-item .badge {
    width: auto;
    min-width: 24px;
    padding: 3px 8px;
    color: var(--text-accented);
    background-color: var(--bg-lifted);
    border: 1px solid var(--border-muted);
}

.sidebar .list-group-item.active .badge {
    color: var(--primary-700);
    background-color: #fff;
    border-color: var(--primary-200);
}

.sidebar .card-footer {
    background-color: var(--bg-muted);
}

body .sidebar .btn-default {
    border: 1px solid var(--border);
}

body .sidebar .btn-success {
    background: var(--primary);
    border-color: var(--primary);
}

body .sidebar .btn-success:hover {
    background: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

/* =====================================================
   Buttons
   ===================================================== */

.btn {
    font-weight: 600;
    border-radius: var(--rounding-sm);
    letter-spacing: -0.005em;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-lg {
    border-radius: var(--rounding-md);
}

.btn-primary,
.btn-primary:disabled,
.btn-primary.disabled {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--rounding-sm);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
    color: #fff;
    background: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: var(--shadow-focus);
}

.btn-default,
.btn-secondary,
.btn-light {
    color: var(--text);
    background-color: #fff;
    border-color: var(--border);
    border-radius: var(--rounding-sm);
    box-shadow: var(--shadow-xs);
}

.btn-default:hover,
.btn-default:focus,
.btn-secondary:hover,
.btn-light:hover {
    color: var(--text);
    background-color: var(--bg-lifted);
    border-color: var(--border);
}

.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
    color: var(--text);
    background-color: var(--bg-accented);
    border-color: var(--border);
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    border-radius: var(--rounding-sm);
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--success-lifted);
    border-color: var(--success-lifted);
}

.btn-danger {
    background-color: var(--error);
    border-color: var(--error);
    border-radius: var(--rounding-sm);
}

.btn-danger:hover {
    background-color: var(--error-lifted);
    border-color: var(--error-lifted);
}

.btn-outline-primary,
body #main-body .btn-outline-primary {
    color: var(--primary);
    background-color: #fff;
    border: 1px solid var(--primary-200);
    border-radius: var(--rounding-sm);
}

.btn-outline-primary:hover,
body #main-body .btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
}

.btn-link:hover {
    color: var(--primary-lifted);
}

.btn.btn-success.open-modal.twofa-config-link.enable:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

body .primary-content .btn-success.btn-lg[name='enable'] {
    background: var(--primary);
    border-color: var(--primary);
}

body .primary-content .btn-success.btn-lg[name='enable']:hover {
    background: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

body .primary-content .btn-success.btn-lg[name='enable']:focus,
.btn.btn-success.open-modal.twofa-config-link.enable:focus {
    box-shadow: var(--shadow-focus);
}

body form.using-password-strength .btn-primary:disabled {
    background-color: var(--primary-300);
    border-color: var(--primary-300);
}

/* =====================================================
   Forms
   ===================================================== */

label,
.form-control-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-accented);
}

.form-control,
.custom-select {
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--rounding-sm);
    box-shadow: var(--shadow-xs);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:not(.form-control-sm):not(.form-control-lg):not(textarea),
.custom-select:not(.custom-select-sm) {
    min-height: 42px;
}

.input-group-xs > .form-control,
.input-group-xs > .custom-select,
.input-group-sm > .form-control,
.input-group-sm > .custom-select {
    min-height: 0 !important;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--primary-400);
    box-shadow: var(--shadow-focus);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: var(--bg-muted);
}

.input-group-text {
    color: var(--text-muted);
    background-color: var(--bg-muted);
    border-color: var(--border);
    border-radius: var(--rounding-sm);
}

.input-group:focus-within .input-group-text {
    color: var(--primary);
}

.input-group > .form-control:focus {
    z-index: 3;
}

.input-group .btn-reveal-pw {
    border-radius: 0 var(--rounding-sm) var(--rounding-sm) 0;
    color: var(--text-muted);
    background-color: var(--bg-muted);
    border-color: var(--border);
    box-shadow: none;
}

.input-group .btn-reveal-pw:hover,
.input-group .btn-reveal-pw:active {
    color: var(--primary);
    background-color: var(--bg-muted);
    border-color: var(--border);
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary);
    border-color: var(--primary);
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success {
    background: var(--primary);
}

/* =====================================================
   Alerts
   ===================================================== */

.alert {
    padding: 14px 16px;
    font-size: 14px;
    border-radius: var(--rounding-md);
    border-width: 1px;
}

.alert-success {
    color: #166534;
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

.alert-info {
    color: var(--primary-800);
    background-color: var(--primary-50);
    border-color: var(--primary-200);
}

.alert-warning {
    color: #92400e;
    background-color: #fffbeb;
    border-color: #fde68a;
}

.alert-danger {
    color: #991b1b;
    background-color: #fef2f2;
    border-color: #fecaca;
}

.alert a:not(.btn) {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* =====================================================
   Badges & status chips (soft-tinted, SaaS style)
   ===================================================== */

.badge,
.label {
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
}

.label.status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.2;
}

.label.status-active, .label.status-open, .label.status-completed,
.label.status-paid, .label.status-accepted, .label.status-delivered {
    color: #15803d !important;
    background-color: #dcfce7;
}

.label.status-pending, .label.status-pending-transfer, .label.status-customer-reply,
.label.status-inprogress, .label.status-grace, .label.status-redemption,
.label.status-pending-registration, .label.status-payment-pending,
.label.status-onhold, .label.status-refunded {
    color: #b45309 !important;
    background-color: #fef3c7;
}

.label.status-suspended, .label.status-unpaid, .label.status-fraud,
.label.status-lost, .label.status-dead, .label.status-collections {
    color: #b91c1c !important;
    background-color: #fee2e2;
}

.label.status-answered {
    color: var(--primary-700) !important;
    background-color: var(--primary-100);
}

.label.status-closed, .label.status-cancelled, .label.status-terminated,
.label.status-expired, .label.status-transferred-away {
    color: var(--neutral-600) !important;
    background-color: var(--neutral-100);
}

.badge-dark {
    background-color: var(--neutral-900);
}

.badge-primary,
.badge-info {
    background-color: var(--primary);
}

/* =====================================================
   Tables
   ===================================================== */

.table {
    color: var(--text);
}

.table thead th,
table.table-list thead th {
    padding: 12px 14px;
    color: var(--text-lifted);
    background-color: var(--bg-muted);
    border-top: 0;
    border-bottom: 1px solid var(--border-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table td,
.table th {
    border-top-color: var(--border-muted);
}

table.table-list tbody td {
    padding: 14px;
    font-size: 14px;
}

.dataTables_wrapper table.table-list,
body .dataTables_wrapper table.table-list {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    overflow: hidden;
}

.dataTables_wrapper table.table-list thead th.sorting_asc,
.dataTables_wrapper table.table-list thead th.sorting_desc {
    color: var(--text);
    background-color: var(--bg-lifted);
}

.table-list > tbody > tr > td {
    border-color: var(--border-muted);
}

.table-list > tbody > tr:hover > td {
    background-color: #f8faff;
}

body .dataTables_wrapper .dataTables_filter label .form-control {
    border-radius: 999px;
    min-height: 40px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length {
    color: var(--text-lifted);
    font-size: 13px;
}

@media (max-width: 600px) {
    body .dataTables_wrapper .dataTables_filter label .form-control {
        width: 100%;
    }
}

/* Pagination */
.pagination .page-link,
.pagination > li > a,
.pagination > li > span {
    margin: 0 2px;
    min-width: 36px;
    text-align: center;
    color: var(--text-accented);
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-sm) !important;
}

.pagination .page-link:hover {
    color: var(--text);
    background-color: var(--bg-lifted);
}

.pagination > .active > a,
.pagination > .active > a:focus,
.pagination > .active > a:hover,
.pagination > .active > span,
.page-item.active .page-link {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

/* =====================================================
   Tabs (underline style)
   ===================================================== */

.nav-tabs {
    border-bottom: 1px solid var(--border-muted);
}

.nav-tabs .nav-link {
    color: var(--text-lifted);
    font-weight: 600;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    margin-bottom: -1px;
}

.nav-tabs .nav-link:hover {
    color: var(--text);
    border-bottom-color: var(--border);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--primary);
    background-color: transparent;
    border-bottom-color: var(--primary);
}

.nav-pills .nav-link {
    border-radius: var(--rounding-sm);
    font-weight: 600;
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
}

/* =====================================================
   Client dashboard — stat tiles
   ===================================================== */

.tiles {
    margin-bottom: 20px !important;
}

.tiles .row.no-gutters {
    margin: -6px;
}

.tiles .row.no-gutters > [class*="col-"] {
    padding: 6px;
}

.tiles .row > div:nth-child(n) > .tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    background-color: #fff;
    border: 1px solid var(--border-muted) !important;
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease;
}

.tiles .tile:hover {
    background-color: #fff;
    transform: translateY(-2px);
    border-color: var(--primary-200) !important;
    box-shadow: var(--shadow-md);
}

.tiles .tile .title {
    order: 1;
    padding-right: 48px;
    color: var(--text-lifted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.tiles .tile .stat {
    order: 2;
    margin-top: 10px;
    color: var(--text);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.tiles .tile .highlight {
    display: none;
}

.tiles .tile i,
.tiles .tile:hover i {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 17px;
    text-align: center;
    border-radius: var(--rounding-md);
}

.tiles .row > div:nth-child(1) .tile i { color: var(--primary); background-color: var(--primary-50); }
.tiles .row > div:nth-child(2) .tile i { color: #16a34a; background-color: #f0fdf4; }
.tiles .row > div:nth-child(3) .tile i { color: #e11d48; background-color: #fff1f2; }
.tiles .row > div:nth-child(4) .tile i { color: #d97706; background-color: #fffbeb; }

@media (max-width: 575.98px) {
    .tiles .row > div:nth-child(n) > .tile {
        padding: 16px;
    }

    .tiles .tile .stat {
        font-size: 26px;
    }

    .tiles .tile i,
    .tiles .tile:hover i {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 14px;
        top: 12px;
        right: 12px;
    }

    .tiles .tile .title {
        padding-right: 36px;
        font-size: 11px;
    }
}

/* =====================================================
   Client dashboard — panels
   ===================================================== */

.client-home-cards .card,
body .primary-content .client-home-cards .card {
    font-size: 14px;
    border: 1px solid var(--border-muted);
    overflow: hidden;
}

.client-home-cards .card-header,
body .primary-content .client-home-cards .card .card-header {
    padding: 14px 18px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-muted);
}

.client-home-cards .card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 30px;
}

.client-home-cards .card-title > i {
    margin-right: 4px;
    color: var(--primary);
}

body .primary-content .client-home-cards .card .card-header .btn {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-accented);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--rounding-sm);
}

body .primary-content .client-home-cards .card .card-header .btn:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.client-home-cards .list-group,
body .primary-content .client-home-cards .list-group {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.client-home-cards .list-group .list-group-item,
body .primary-content .client-home-cards .card .list-group .list-group-item {
    padding: 11px 18px;
    border-bottom: 1px solid var(--border-muted);
    border-radius: 0;
    color: var(--text-accented);
}

.client-home-cards .list-group .list-group-item-action:hover {
    color: var(--text);
    background-color: var(--bg-muted);
}

.client-home-cards .card-body p {
    padding: 14px 18px;
}

.client-home-cards small {
    color: var(--text-lifted);
}

body .primary-content .client-home-cards .card .card-footer {
    background: var(--bg-muted);
    border-top: 1px solid var(--border-muted);
    border-radius: 0;
}

body .primary-content .client-home-cards .card .card-footer:empty {
    display: none;
}

body .primary-content .client-home-cards .card .card-footer .btn-view-more {
    color: var(--primary);
    font-weight: 600;
}

body .primary-content .client-home-cards .card .btn-success {
    background: var(--primary);
    border-color: var(--primary);
}

body .primary-content .client-home-cards .card .btn-success:hover {
    background: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

/* =====================================================
   Public homepage — domain search hero
   ===================================================== */

#frmDomainHomepage .home-domain-search {
    position: relative;
    color: #fff;
    background-color: var(--primary-950) !important;
    background-image:
        radial-gradient(800px 300px at 15% 0%, rgba(96, 165, 250, 0.35), transparent 60%),
        radial-gradient(700px 300px at 90% 100%, rgba(124, 58, 237, 0.30), transparent 60%),
        linear-gradient(135deg, #0b1220 0%, #172554 55%, #1e3a8a 100%);
}

#frmDomainHomepage .home-domain-search .p-5 {
    padding: 72px 0 56px !important;
}

#frmDomainHomepage .home-domain-search h2 {
    color: #fff;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

#frmDomainHomepage .input-group-wrapper,
body #frmDomainHomepage .input-group-wrapper {
    max-width: 760px;
    margin: 28px auto 20px;
    padding: 8px;
    background-color: #fff;
    border: 0;
    border-radius: var(--rounding-lg);
    box-shadow: 0 30px 60px -20px rgba(2, 6, 23, 0.6);
}

#frmDomainHomepage .input-group-wrapper .form-control {
    min-height: 48px;
    font-size: 16px;
    box-shadow: none;
}

body #frmDomainHomepage .btn {
    min-height: 48px;
    padding-left: 22px;
    padding-right: 22px;
    border-radius: var(--rounding-md) !important;
}

body #frmDomainHomepage .btn-primary:hover,
body #frmDomainHomepage .btn-primary:focus {
    background: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

body #frmDomainHomepage #btnTransfer,
body #frmDomainHomepage #btnTransfer2 {
    color: var(--text);
    background: var(--bg-lifted);
    border-color: var(--bg-lifted);
}

body #frmDomainHomepage #btnTransfer:hover,
body #frmDomainHomepage #btnTransfer:focus,
body #frmDomainHomepage #btnTransfer2:hover {
    color: var(--text);
    background: var(--bg-accented);
    border-color: var(--bg-accented);
}

#frmDomainHomepage .home-domain-search .tld-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

#frmDomainHomepage .home-domain-search .tld-logos li {
    float: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
}

#frmDomainHomepage .home-domain-search .tld-logos img {
    width: 44px;
}

#frmDomainHomepage .home-domain-search .btn-link {
    float: none !important;
    display: table;
    margin: 16px auto 0;
    min-height: 0;
    color: rgba(255, 255, 255, 0.85);
}

#frmDomainHomepage .home-domain-search .btn-link:hover {
    color: #fff;
}

@media (max-width: 575.98px) {
    #frmDomainHomepage .home-domain-search .p-5 {
        padding: 44px 0 36px !important;
    }

    #frmDomainHomepage .home-domain-search h2 {
        font-size: 28px;
    }

    #frmDomainHomepage .input-group-wrapper {
        margin-top: 20px;
    }

    #frmDomainHomepage .row.d-sm-none .btn {
        margin-bottom: 8px;
    }
}

/* =====================================================
   Public homepage — product groups & quick links
   ===================================================== */

#main-body h2.text-center {
    margin-top: 40px !important;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.card-columns.home .card {
    border-radius: var(--rounding-lg);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease;
}

.card-columns.home .card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

.card-columns.home .pricing-card-title {
    font-size: 19px;
    font-weight: 700;
}

.card-columns.home .card p {
    color: var(--text-lifted);
}

body #main-body .action-icon-btns a {
    margin-bottom: 14px;
    padding: 24px 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-accented);
    background-color: #fff;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease, color 0.2s ease;
}

body #main-body .action-icon-btns a:hover {
    color: var(--text);
    transform: translateY(-3px);
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

.action-icon-btns a .ico-container,
.action-icon-btns a:hover .ico-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    font-size: 22px;
    line-height: 1;
    background-color: var(--primary-50);
    border-radius: var(--rounding-lg);
    transition: background-color 0.2s ease;
}

.action-icon-btns a .ico-container i {
    color: var(--primary);
}

.action-icon-btns a:hover .ico-container {
    background-color: var(--primary-100);
}

/* =====================================================
   Auth pages (login / register / password reset)
   ===================================================== */

.login-form .card,
.primary-content .card.mw-540 {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-form .card .h3 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.login-form #login {
    min-width: 140px;
    min-height: 44px;
}

.login-form .card-footer {
    padding-top: 16px;
    padding-bottom: 16px;
    text-align: center;
    background-color: var(--bg-muted);
}

.input-group-merge .input-group-text {
    background-color: #fff;
    border-right: 0;
}

.input-group-merge .input-group-prepend + .form-control {
    border-left: 0;
}

@media (max-width: 575.98px) {
    .login-form .card .card-body {
        padding: 28px 20px !important;
    }
}

/* =====================================================
   Modals & popovers
   ===================================================== */

.modal-content {
    border: 0;
    border-radius: var(--rounding-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal .modal-header {
    padding: 18px 22px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-muted);
}

.modal .modal-title {
    font-weight: 700;
}

.modal-footer {
    background-color: var(--bg-muted);
    border-top: 1px solid var(--border-muted);
}

.modal-backdrop.show {
    opacity: 0.55;
    background-color: #0b1220;
}

.popover {
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-md);
    box-shadow: var(--shadow-lg);
}

.popover-user-notifications {
    border-radius: var(--rounding-md);
    border-color: var(--border-muted);
}

.tooltip-inner {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    background-color: var(--neutral-900);
    border-radius: var(--rounding-sm);
}

.modal-localisation .modal-content {
    background-color: #0b1220;
}

.modal-localisation .modal-footer {
    background-color: transparent;
}

.modal-localisation .item-selector .item {
    padding: 6px;
    border-color: rgba(255, 255, 255, 0.15);
    border-radius: var(--rounding-sm);
}

.modal-localisation .item-selector .item.active,
.modal-localisation .item-selector .item:hover {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

/* =====================================================
   List groups & misc
   ===================================================== */

.list-group-item {
    border-color: var(--border-muted);
}

.list-group-item.active {
    color: var(--primary-700);
    background-color: var(--primary-50);
    border-color: var(--primary-100);
}

.progress {
    height: 8px;
    background-color: var(--bg-accented);
    border-radius: 999px;
}

.progress-bar {
    background-color: var(--primary);
    border-radius: 999px;
}

.network-issue-alert {
    border-radius: 0;
}

/* =====================================================
   Footer
   ===================================================== */

footer.footer {
    padding: 40px 0 28px;
    color: rgba(255, 255, 255, 0.6);
    background-color: var(--bg-inverted);
    background-image: radial-gradient(900px 260px at 50% 0%, rgba(37, 99, 235, 0.18), transparent 70%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

footer.footer .nav-link {
    padding: 6px 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    border-radius: var(--rounding-sm);
}

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

footer.footer .btn,
footer.footer .btn-outline-light {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

footer.footer .btn:hover,
footer.footer .btn-outline-light:hover {
    color: var(--text);
    background-color: #fff;
    border-color: #fff;
}

footer.footer .copyright {
    margin: 28px 0 0;
    padding-top: 20px;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

@media (max-width: 991.98px) {
    footer.footer .list-inline {
        margin-bottom: 12px;
    }

    footer.footer .nav-link {
        padding: 6px 10px;
    }
}

/* =====================================================
   Mobile spacing
   ===================================================== */

@media (max-width: 991.98px) {
    section#main-body {
        padding-bottom: 32px;
    }

    .sidebar {
        margin-bottom: 4px;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: 14.5px;
    }

    .primary-content .card-title {
        font-size: 18px;
    }

    .master-breadcrumb .breadcrumb {
        padding-top: 14px;
        font-size: 12.5px;
    }

    .btn-return-to-admin {
        font-size: 12px;
    }
}

/* =====================================================
   Refinements v2 — precision pass (design only)
   ===================================================== */

/* Typography: less cramped headings, better word spacing */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    letter-spacing: -0.015em;
    word-spacing: 0.04em;
    line-height: 1.25;
}

#frmDomainHomepage .home-domain-search h2 {
    font-size: clamp(30px, 4.2vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

#main-body h2.text-center {
    margin-top: 48px !important;
    margin-bottom: 28px !important;
    font-size: clamp(22px, 2.6vw, 28px);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* Hero: subtle dot grid on top of the existing gradients */
#frmDomainHomepage .home-domain-search {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.5px),
        radial-gradient(800px 300px at 15% 0%, rgba(96, 165, 250, 0.35), transparent 60%),
        radial-gradient(700px 300px at 90% 100%, rgba(124, 58, 237, 0.30), transparent 60%),
        linear-gradient(135deg, #0b1220 0%, #172554 55%, #1e3a8a 100%);
    background-size: 22px 22px, auto, auto, auto;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}

#frmDomainHomepage .input-group-wrapper,
body #frmDomainHomepage .input-group-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 30px 60px -20px rgba(2, 6, 23, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.08);
}

#frmDomainHomepage .input-group-wrapper .input-group {
    align-items: stretch;
}

#frmDomainHomepage .input-group-append {
    gap: 8px;
    margin-left: 8px;
}

/* Product groups: equal-height responsive flex grid, last row centered
   (works for any number of groups: 4 -> 4 across, 5/6 -> 3 across) */
.card-columns.home {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    column-count: auto;
    margin-bottom: 8px;
}

.card-columns.home .card {
    display: flex;
    flex: 1 1 calc(33.333% - 14px);
    flex-direction: column;
    width: auto;
    min-width: 0;
    max-width: calc(33.333% - 14px);
    margin-bottom: 0;
}

.card-columns.home > .card.mb-3 {
    margin-bottom: 0;
}

.card-columns.home .card:first-child:nth-last-child(4),
.card-columns.home .card:first-child:nth-last-child(4) ~ .card {
    flex-basis: calc(25% - 15px);
    max-width: calc(25% - 15px);
}

@media (max-width: 991.98px) {
    .card-columns.home .card,
    .card-columns.home .card:first-child:nth-last-child(4),
    .card-columns.home .card:first-child:nth-last-child(4) ~ .card {
        flex-basis: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 575.98px) {
    .card-columns.home .card,
    .card-columns.home .card:first-child:nth-last-child(4),
    .card-columns.home .card:first-child:nth-last-child(4) ~ .card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.card-columns.home .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 28px 24px 24px !important;
}

.card-columns.home .card-body p {
    flex: 1 1 auto;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
}

.card-columns.home .card-body .btn {
    margin-top: auto;
    min-height: 42px;
    font-weight: 600;
    border-radius: var(--rounding-md);
}

.card-columns.home .pricing-card-title {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.3;
}

/* Quick-link tiles: equal height, tighter rhythm */
body #main-body .action-icon-btns > [class*="col"] {
    display: flex;
}

body #main-body .action-icon-btns a {
    display: block;
    flex: 1 1 auto;
    margin-bottom: 16px;
    padding: 22px 12px 18px;
    line-height: 1.35;
    text-align: center;
}

.action-icon-btns a .ico-container {
    transition: background-color 0.2s ease, transform 0.2s var(--ease);
}

.action-icon-btns a:hover .ico-container {
    transform: scale(1.06);
}

/* Footer: calmer, aligned with the header container */
footer.footer .nav-link,
footer.footer a {
    transition: color 0.15s ease, opacity 0.15s ease;
}

@media (max-width: 575.98px) {
    .card-columns.home {
        gap: 14px;
    }

    #frmDomainHomepage .input-group-wrapper,
    body #frmDomainHomepage .input-group-wrapper {
        margin-left: 4px;
        margin-right: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-columns.home .card,
    body #main-body .action-icon-btns a,
    .action-icon-btns a .ico-container {
        transition: none;
        transform: none !important;
    }
}

/* =====================================================
   Refinements v3 — modern layer (design only)
   ===================================================== */

:root {
    --grad-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    --ring: 0 0 0 1px rgba(15, 23, 42, 0.06);
}

html { scroll-behavior: smooth; }

/* ---------- Header: sticky frosted glass ---------- */
header.header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 24px -16px rgba(15, 23, 42, 0.18);
}

header.header .navbar.navbar-light {
    min-height: 64px;
}

header.header #mainNavbar .navbar-nav > li > a {
    border-radius: 999px;
}

header.header #mainNavbar .navbar-nav > li > a:hover,
header.header #mainNavbar .navbar-nav > li.show > a {
    color: var(--primary-700);
    background-color: var(--primary-50);
}

@keyframes nm-pop {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

@media (min-width: 1200px) {
    header.header .dropdown-menu.show {
        animation: nm-pop 0.16s var(--ease);
        margin-top: 8px;
    }
}

/* Long mobile menu scrolls instead of overflowing the viewport */
@media (max-width: 1199.98px) {
    header.header #mainNavbar {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ---------- Buttons ---------- */
body .btn {
    font-weight: 600;
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease),
                background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body .btn-primary {
    background-image: var(--grad-primary);
    border-color: var(--primary-700);
    box-shadow: 0 1px 2px rgba(29, 78, 216, 0.3), 0 6px 14px -6px rgba(37, 99, 235, 0.55);
}

body .btn-primary:hover,
body .btn-primary:focus {
    background-image: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.3), 0 10px 20px -8px rgba(37, 99, 235, 0.6);
}

body .btn-primary:active {
    transform: translateY(0);
}

body .btn-outline-primary:hover {
    transform: translateY(-1px);
}

body .btn:disabled,
body .btn.disabled {
    transform: none;
    box-shadow: none;
}

/* ---------- Hero: aurora glow ---------- */
#frmDomainHomepage .home-domain-search {
    overflow: hidden;
    isolation: isolate;
}

#frmDomainHomepage .home-domain-search::before,
#frmDomainHomepage .home-domain-search::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
}

#frmDomainHomepage .home-domain-search::before {
    top: -260px;
    left: 8%;
    background: #3b82f6;
    animation: nm-float 14s ease-in-out infinite alternate;
}

#frmDomainHomepage .home-domain-search::after {
    right: 4%;
    bottom: -300px;
    background: #7c3aed;
    animation: nm-float 18s ease-in-out infinite alternate-reverse;
}

@keyframes nm-float {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(40px, 24px, 0) scale(1.12); }
}

#frmDomainHomepage .home-domain-search h2 {
    background: linear-gradient(180deg, #fff 30%, #c7d7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#frmDomainHomepage .input-group-wrapper .form-control:focus {
    box-shadow: none;
}

#frmDomainHomepage .input-group-wrapper:focus-within {
    box-shadow: 0 30px 60px -20px rgba(2, 6, 23, 0.6), 0 0 0 6px rgba(96, 165, 250, 0.35);
}

/* ---------- Cards: ring + lift ---------- */
.card {
    box-shadow: var(--ring), var(--shadow-xs);
}

.card-columns.home .card,
body #main-body .action-icon-btns a {
    box-shadow: var(--ring), var(--shadow-sm);
}

.card-columns.home .card:hover,
body #main-body .action-icon-btns a:hover {
    box-shadow: var(--ring), var(--shadow-lg);
}

.client-home-cards .card {
    overflow: hidden;
}

.client-home-cards .card-header {
    padding: 16px 20px;
}

.client-home-cards .card-title {
    font-size: 16px;
}

/* ---------- Tables ---------- */
table.table-list,
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
}

table.table-list thead th,
table.dataTable thead th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-lifted);
    background-color: var(--bg-muted);
    border-top: 0;
    border-bottom: 1px solid var(--border-muted);
}

table.table-list tbody td,
table.dataTable tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-top: 1px solid var(--border-muted);
}

table.table-list tbody tr,
table.dataTable tbody tr {
    transition: background-color 0.12s ease;
}

table.table-list tbody tr:hover,
table.dataTable tbody tr:hover {
    background-color: var(--primary-50);
}

/* ---------- Status labels as soft pills ---------- */
.label,
.badge {
    font-weight: 600;
}

.label.status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    letter-spacing: 0.01em;
}

/* ---------- Forms ---------- */
.form-control,
.custom-select {
    min-height: 44px;
    border-radius: var(--rounding-md);
    border-color: var(--neutral-300);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control:hover,
.custom-select:hover {
    border-color: var(--neutral-400);
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--primary-400);
    box-shadow: var(--shadow-focus);
}

textarea.form-control {
    min-height: 120px;
}

label {
    font-weight: 600;
    color: var(--text-accented);
}

.alert {
    border: 1px solid transparent;
    border-radius: var(--rounding-md);
    box-shadow: var(--shadow-xs);
}

/* ---------- Footer ---------- */
footer.footer {
    margin-top: 0;
    padding: 36px 0 28px;
    background:
        radial-gradient(700px 240px at 10% 0%, rgba(59, 130, 246, 0.18), transparent 70%),
        linear-gradient(180deg, #0b1220 0%, #060b16 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer.footer .nav-link {
    padding: 6px 14px 6px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

footer.footer .nav-link:hover {
    color: #fff;
}

footer.footer .copyright {
    margin-top: 20px;
    padding-top: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer.footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

footer.footer .btn-outline-light:hover {
    color: var(--neutral-900);
    background-color: #fff;
}

/* ---------- Responsive polish ---------- */
img, video, iframe {
    max-width: 100%;
}

@media (max-width: 991.98px) {
    .table-responsive,
    .table-container {
        -webkit-overflow-scrolling: touch;
    }

    body .primary-content .card .card-body {
        padding: 22px;
    }
}

@media (max-width: 767.98px) {
    #frmDomainHomepage .home-domain-search .p-5 {
        padding: 52px 0 40px !important;
    }

    #frmDomainHomepage .home-domain-search::before,
    #frmDomainHomepage .home-domain-search::after {
        width: 320px;
        height: 320px;
        filter: blur(60px);
    }

    #main-body h2.text-center {
        margin-top: 36px !important;
        margin-bottom: 20px !important;
    }

    footer.footer {
        text-align: center;
    }

    footer.footer .nav {
        justify-content: center;
    }

    footer.footer .list-inline {
        margin-bottom: 8px;
    }
}

@media (max-width: 575.98px) {
    body .btn {
        min-height: 44px;
    }

    .form-control,
    .custom-select {
        font-size: 16px;
    }

    body #main-body .action-icon-btns a {
        padding: 18px 8px 14px;
        font-size: 13px;
    }

    .action-icon-btns a .ico-container {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    #frmDomainHomepage .home-domain-search::before,
    #frmDomainHomepage .home-domain-search::after,
    header.header .dropdown-menu.show {
        animation: none;
    }

    body .btn,
    body .btn:hover {
        transform: none !important;
    }
}


/* =====================================================
   Cloud effects (design only) — drifting clouds in the hero,
   a cloud bank under it and a cloud edge on the footer.
   Pure CSS/SVG: no markup, JS or functionality is touched.
   ===================================================== */

#frmDomainHomepage .home-domain-search {
    overflow: hidden;
    isolation: isolate;
}

/* Cloud bank under the hero. A positioned element so it paints above the aurora glow. */
#frmDomainHomepage .home-domain-search .p-5::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 96px;
    pointer-events: none;
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDQwIDEyMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PGVsbGlwc2UgY3g9IjIwIiBjeT0iNzUuNiIgcng9IjcwLjAiIHJ5PSI1OC4wIiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIwLjIyIi8+PGVsbGlwc2UgY3g9IjExNSIgY3k9IjY2LjIiIHJ4PSI4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iNDMuOCIgZmlsbD0iI2Y1ZjdmYiIvPjxlbGxpcHNlIGN4PSI3MDUiIGN5PSI5NC4yIiByeD0iNzAuNCIgcnk9IjUwLjQiIGZpbGw9IiNmNWY3ZmIiLz48ZWxsaXBzZSBjeD0iODAwIiBjeT0iODYuOSIgcng9Ijg0LjIiIHJ5PSIzOC45IiBmaWxsPSIjZjVmN2ZiIi8+PGVsbGlwc2UgY3g9Ijg5NSIgY3k9Ijc5LjYiIHJ4PSI2MC4wIiByeT0iNDUuNSIgZmlsbD0iI2Y1ZjdmYiIvPjxlbGxpcHNlIGN4PSI5OTAiIGN5PSI5Mi40IiByeD0iNzMuOCIgcnk9IjM0LjAiIGZpbGw9IiNmNWY3ZmIiLz48ZWxsaXBzZSBjeD0iMTA4NSIgY3k9Ijg1LjEiIHJ4PSI4Ny42IiByeT0iNDAuNSIgZmlsbD0iI2Y1ZjdmYiIvPjxlbGxpcHNlIGN4PSIxMTgwIiBjeT0iNzcuOCIgcng9IjYzLjUiIHJ5PSI0Ny4xIiBmaWxsPSIjZjVmN2ZiIi8+PGVsbGlwc2UgY3g9IjEyNzUiIGN5PSI5MC41IiByeD0iNzcuMyIgcnk9IjM1LjYiIGZpbGw9IiNmNWY3ZmIiLz48ZWxsaXBzZSBjeD0iMTM3MCIgY3k9IjgzLjMiIHJ4PSI5MS4xIiByeT0iNDIuMiIgZmlsbD0iI2Y1ZjdmYiIvPjxlbGxpcHNlIGN4PSIxNDY1IiBjeT0iOTYuMCIgcng9IjY2LjkiIHJ5PSI0OC43IiBmaWxsPSIjZjVmN2ZiIi8+PHJlY3QgeD0iMCIgeT0iMTAwIiB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSIyMCIgZmlsbD0iI2Y1ZjdmYiIvPjwvc3ZnPg==") center bottom / 100% 100% no-repeat;
}

#frmDomainHomepage .home-domain-search > .container::before,
#frmDomainHomepage .home-domain-search > .container::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    pointer-events: none;
    background-repeat: repeat-x;
    background-size: 50% 100%;
    will-change: transform;
}

/* far layer: small, slow, faint */
#frmDomainHomepage .home-domain-search > .container::before {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNjAwIDQwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PGRlZnM+PHJhZGlhbEdyYWRpZW50IGlkPSJnIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjk1Ii8+PHN0b3Agb2Zmc2V0PSIuNiIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGVsbGlwc2UgY3g9IjE5Mi41IiBjeT0iOTYuNSIgcng9IjM0LjYiIHJ5PSIyMi4zIiBmaWxsPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjU1Ii8+PGVsbGlwc2UgY3g9IjIzMC4zIiBjeT0iODIuMSIgcng9IjQ5LjEiIHJ5PSIzMS43IiBmaWxsPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjU1Ii8+PGVsbGlwc2UgY3g9IjI3Ni4yIiBjeT0iNzcuMCIgcng9IjU4LjYiIHJ5PSIzNy44IiBmaWxsPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjU1Ii8+PGVsbGlwc2UgY3g9IjMxNi43IiBjeT0iODcuMSIgcng9IjQ1LjgiIHJ5PSIyOS41IiBmaWxsPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjU1Ii8+PGVsbGlwc2UgY3g9IjM1MS44IiBjeT0iOTcuMiIgcng9IjMyLjQiIHJ5PSIyMC45IiBmaW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IjAuNCIvPjxlbGxpcHNlIGN4PSI0NzUuMCIgY3k9IjMwNC4zIiByeD0iMjMuMSIgcnk9IjE0LjkiIGZpbGw9InVybCgjZykiIG9wYWNpdHk9IjAuMzUiLz48ZWxsaXBzZSBjeD0iNTAwLjIiIGN5PSIyOTQuNyIgcng9IjMyLjciIHJ5PSIyMS4xIiBmaWxsPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjM1Ii8+PGVsbGlwc2UgY3g9IjUzMC44IiBjeT0iMjkxLjQiIHJ4PSIzOS4xIiByeT0iMjUuMiIgZmlsbD0idXJsKCNnKSIgb3BhY2l0eT0iMC4zNSIvPjxlbGxpcHNlIGN4PSI1NTcuOCIgY3k9IjI5OC4xIiByeD0iMzAuNSIgcnk9IjE5LjciIGZpbGw9InVybCgjZykiIG9wYWNpdHk9IjAuMzUiLz48ZWxsaXBzZSBjeD0iNTgxLjIiIGN5PSIzMDQuOCIgcng9IjIxLjYiIHJ5PSIxMy45IiBmaWxsPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjM1Ii8+PGVsbGlwc2UgY3g9IjUyOS4wIiBjeT0iMzA2LjciIHJ4PSIzNS4zIiByeT0iMjIuOCIgZmlsbD0idXJsKCNnKSIgb3BhY2l0eT0iMC4zNSIvPjwvc3ZnPg==");
    opacity: 0.36;
    animation: farmedia-cloud-drift 160s linear infinite;
}

/* near layer: big, soft, a little faster */
#frmDomainHomepage .home-domain-search > .container::after {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNjAwIDQwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PGRlZnM+PHJhZGlhbEdyYWRpZW50IGlkPSJnIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjk1Ii8+PHN0b3Agb2Zmc2V0PSIuNiIgc3RvcC1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nKSIgb3BhY2l0eT0iMC42Ii8+PC9zdmc+");
    opacity: 0.28;
    animation: farmedia-cloud-drift 95s linear infinite;
}

#frmDomainHomepage .home-domain-search .p-5 {
    padding-bottom: 104px !important;
}

@keyframes farmedia-cloud-drift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes farmedia-cloud-drift-sm {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-1200px, 0, 0); }
}

/* Footer: cloud-shaped top edge */
footer.footer {
    position: relative;
    padding-top: 64px;
}

footer.footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 34px;
    pointer-events: none;
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDQwIDYwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIj48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTQ0MCIgaGVpZ2h0PSI4IiBmaWxsPSIjZjVmN2ZiIi8+PGVsbGlwc2UgY3g9IjI1IiBjeT0iNC4wIiByeD0iNDQuOCIgcnk9IjIxLjQiIGZpbGw9IiNmNWY3ZmIiLz48ZWxsaXBzZSBjeD0iOTUiIGN5PSI0LjUiIHJ4PSI0Ni41IiByeT0iMjMuMSIgZmlsbD0iI2Y1ZjdmYiIvPjxlbGxpcHNlIGN4PSIxNjUiIGN5PSI0LjkiIHJ4PSI0OC4yIiByeT0iMjQuOCIgZmlsbD0iI2Y1ZjdmYiIvPjxlbGxpcHNlIGN4PSIyMzUiIGN5PSI1LjQiIHJ4PSI0OS44IiByeT0iMjYuNSIgZmlsbD0iI2Y1ZjdmYiIvPjxlbGxpcHNlIGN4PSIzMDUiIGN5PSI1LjgiIHJ4PSI1MS41IiByeT0iMjguMiIgZmlsbD0iI2Y1ZjdmYiIvPjxlbGxpcHNlIGN4PSIzNzUiIGN5PSI2LjM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eD0iNTEuNSIgcnk9IjI4LjIiIGZpbGw9IiNmNWY3ZmIiLz48ZWxsaXBzZSBjeD0iMTI4NSIgY3k9IjYuMyIgcng9IjUzLjIiIHJ5PSIyOS44IiBmaWxsPSIjZjVmN2ZiIi8+PGVsbGlwc2UgY3g9IjEzNTUiIGN5PSI2LjgiIHJ4PSI1NC45IiByeT0iMzEuNSIgZmlsbD0iI2Y1ZjdmYiIvPjxlbGxpcHNlIGN4PSIxNDI1IiBjeT0iNy4yIiByeD0iNTYuNiIgcnk9IjMzLjIiIGZpbGw9IiNmNWY3ZmIiLz48L3N2Zz4=") center top / 100% 100% no-repeat;
}

footer.footer > .container {
    position: relative;
}

@media (max-width: 575.98px) {
    #frmDomainHomepage .home-domain-search .p-5::before {
        height: 56px;
    }

    #frmDomainHomepage .home-domain-search .p-5 {
        padding-bottom: 68px !important;
    }

    #frmDomainHomepage .home-domain-search > .container::after {
        display: none;
    }

    /* keep the cloud aspect ratio on narrow screens: fixed-width tile instead of 50% */
    #frmDomainHomepage .home-domain-search > .container::before {
        width: 2400px;
        background-size: 1200px 100%;
        animation-name: farmedia-cloud-drift-sm;
        animation-duration: 120s;
    }

    footer.footer {
        padding-top: 52px;
    }

    footer.footer::before {
        height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #frmDomainHomepage .home-domain-search > .container::before,
    #frmDomainHomepage .home-domain-search > .container::after {
        animation: none;
    }
}

/* =====================================================
   Order form (standard_cart) — domain register / transfer + shared cart UI
   Design only. The order form's own stylesheet loads AFTER this file, so every
   selector is prefixed with `body #order-standard_cart` to win the cascade.
   Rules never set `display` on elements the order-form JS shows/hides
   (.w-hidden toggles), so search, add-to-cart and filters keep working.
   ===================================================== */

body #order-standard_cart {
    padding-bottom: 56px;
    font-size: 15px;
}

/* ---------- Page title ---------- */
body #order-standard_cart .header-lined {
    margin: 0 0 6px;
    padding: 0;
    border-bottom: 0;
}

body #order-standard_cart .header-lined h1 {
    font-size: clamp(26px, 3.4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

body #order-standard_cart .cart-body > p {
    max-width: 640px;
    margin-bottom: 4px;
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--text-lifted);
}

/* ---------- Sidebar ---------- */
body #order-standard_cart .cart-sidebar .card-sidebar {
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
}

body #order-standard_cart .cart-sidebar .card-header {
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border-muted);
}

body #order-standard_cart .cart-sidebar .panel-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

body #order-standard_cart .cart-sidebar .list-group-item {
    padding: 11px 16px;
    font-size: 14px;
    color: var(--text-accented);
    background: transparent;
    border: 0;
    border-top: 1px solid #f1f5f9;
    border-radius: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

body #order-standard_cart .cart-sidebar .list-group-item:first-child {
    border-top: 0;
}

body #order-standard_cart .cart-sidebar a.list-group-item:hover {
    color: var(--primary-700);
    background: var(--primary-50);
}

body #order-standard_cart .cart-sidebar .list-group-item.active {
    font-weight: 600;
    color: var(--primary-700);
    background: var(--primary-50);
    box-shadow: inset 3px 0 0 var(--primary);
}

/* ---------- Domain search hero ---------- */
body #order-standard_cart .domain-checker-container {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 22px 0 8px;
    color: #fff;
    background-color: #0b1220;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.5px),
        radial-gradient(520px 260px at 12% 0%, rgba(96, 165, 250, 0.42), transparent 62%),
        radial-gradient(520px 260px at 92% 100%, rgba(124, 58, 237, 0.36), transparent 62%),
        linear-gradient(135deg, #0b1220 0%, #172554 55%, #1e3a8a 100%);
    background-size: 22px 22px, auto, auto, auto;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    border-radius: var(--rounding-xl);
    box-shadow: var(--shadow-lg);
}

/* drifting clouds */
body #order-standard_cart .domain-checker-container::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    pointer-events: none;
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNjAwIDQwMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PGRlZnM+PHJhZGlhbEdyYWRpZW50IGlkPSJnIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNmZmYiIHN0b3Atb3BhY2l0eT0iLjk1Ii8+PHN0b3Agb2Zmc2V0PSIuNiIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIuNiIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2ZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+PC9yYWRpYWxHcmFkaWVudD48L2RlZnM+PGVsbGlwc2UgY3g9IjE5Mi41IiBjeT0iOTYuNSIgcng9IjM0LjYiIHJ5PSIyMi4zIiBmaWxsPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjU1Ii8+PGVsbGlwc2UgY3g9IjIzMC4zIiBjeT0iODIuMSIgcng9IjQ5LjEiIHJ5PSIzMS43IiBmaWxsPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjU1Ii8+PGVsbGlwc2UgY3g9IjI3Ni4yIiBjeT0iNzcuMCIgcng9IjU4LjYiIHJ5PSIzNy44IiBmaWxsPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjU1Ii8+PGVsbGlwc2UgY3g9IjMxNi43IiBjeT0iODcuMSIgcng9IjQ1LjgiIHJ5PSIyOS41IiBmaWxsPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjU1Ii8+PGVsbGlwc2UgY3g9IjM1MS44IiBjeT0iOTcuMiIgcng9IjMyLjQiIHJ5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iIG9wYWNpdHk9IjAuNCIvPjxlbGxpcHNlIGN4PSI0NzUuMCIgY3k9IjMwNC4zIiByeD0iMjMuMSIgcnk9IjE0LjkiIGZpbGw9InVybCgjZykiIG9wYWNpdHk9IjAuMzUiLz48ZWxsaXBzZSBjeD0iNTAwLjIiIGN5PSIyOTQuNyIgcng9IjMyLjciIHJ5PSIyMS4xIiBmaWxsPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjM1Ii8+PGVsbGlwc2UgY3g9IjUzMC44IiBjeT0iMjkxLjQiIHJ4PSIzOS4xIiByeT0iMjUuMiIgZmlsbD0idXJsKCNnKSIgb3BhY2l0eT0iMC4zNSIvPjxlbGxpcHNlIGN4PSI1NTcuOCIgY3k9IjI5OC4xIiByeD0iMzAuNSIgcnk9IjE5LjciIGZpbGw9InVybCgjZykiIG9wYWNpdHk9IjAuMzUiLz48ZWxsaXBzZSBjeD0iNTgxLjIiIGN5PSIzMDQuOCIgcng9IjIxLjYiIHJ5PSIxMy45IiBmaWxsPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjM1Ii8+PGVsbGlwc2UgY3g9IjUyOS4wIiBjeT0iMzA2LjciIHJ4PSIzNS4zIiByeT0iMjIuOCIgZmlsbD0idXJsKCNnKSIgb3BhY2l0eT0iMC4zNSIvPjwvc3ZnPg==") 0 6% / 50% auto repeat-x;
    opacity: 0.4;
    animation: farmedia-cloud-drift 150s linear infinite;
    will-change: transform;
}

/* cloud bank melting into the page */
body #order-standard_cart .domain-checker-container::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 64px;
    pointer-events: none;
    background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNDQwIDEyMCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+PGVsbGlwc2UgY3g9IjIwIiBjeT0iNzUuNiIgcng9IjcwLjAi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eat;
}

body #order-standard_cart .domain-checker-bg {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 68px 0 92px;
    background-image: none;
}

body #order-standard_cart .domain-checker-container .input-group-box {
    padding: 8px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 60px -20px rgba(2, 6, 23, 0.65), 0 0 0 6px rgba(255, 255, 255, 0.1);
}

body #order-standard_cart .domain-checker-container .input-group-box .form-control {
    min-height: 52px;
    padding-left: 16px;
    font-size: 16px;
    color: var(--text);
    background: transparent;
    border: 0;
    box-shadow: none;
}

body #order-standard_cart .domain-checker-container .input-group-box .form-control::placeholder {
    color: var(--neutral-400);
}

body #order-standard_cart .domain-check-availability {
    width: auto;
    min-width: 124px;
    height: 52px;
    font-weight: 700;
    border-radius: 12px !important;
}

body #order-standard_cart .domain-checker-container.domain-checker-advanced textarea {
    width: 100%;
    max-width: 100%;
    border: 0;
    box-shadow: none;
}

@media (max-width: 767.98px) {
    body #order-standard_cart .domain-checker-bg {
        padding: 44px 0 70px;
    }

    body #order-standard_cart .domain-checker-container::after {
        height: 40px;
    }

    body #order-standard_cart .domain-check-availability {
        width: 100%;
    }
}

/* ---------- Search results ---------- */
body #order-standard_cart #DomainSearchResults {
    margin-top: 22px;
}

body #order-standard_cart #DomainSearchResults .primary-domain-header {
    padding: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 0;
}

body #order-standard_cart .domain-checker-result-headline {
    margin: 0 0 20px;
    padding: 22px 24px;
    font-size: 15px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-sm);
}

body #order-standard_cart .domain-checker-available {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--success);
}

body #order-standard_cart .domain-checker-unavailable,
body #order-standard_cart .domain-checker-invalid {
    font-weight: 600;
    color: #dc2626;
}

body #order-standard_cart .domain-price .price {
    margin-right: 14px;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* ---------- Spotlight TLD cards ---------- */
body #order-standard_cart .spotlight-tld {
    min-height: 120px;
    height: auto;
    padding: 18px 8px 14px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s ease;
}

body #order-standard_cart .spotlight-tld:hover {
    transform: translateY(-3px);
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

body #order-standard_cart .spotlight-tld .price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-lifted);
}

body #order-standard_cart .spotlight-tld .btn:not(.domain-contact-support) {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 999px;
}

body #order-standard_cart .spotlight-tld .btn:not(.domain-contact-support):hover {
    background: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

body #order-standard_cart .spotlight-tld .btn.unavailable,
body #order-standard_cart .spotlight-tld .btn.invalid {
    margin: 10px 0 0;
    color: var(--neutral-400);
    background: var(--neutral-100);
    border-color: var(--neutral-200);
}

body #order-standard_cart .spotlight-tld-hot,
body #order-standard_cart .spotlight-tld-new,
body #order-standard_cart .spotlight-tld-sale {
    top: 10px;
    right: 10px;
    width: auto;
    padding: 3px 9px;
    font-size: 10px;
    letter-spacing: 0.04em;
    border-radius: 999px;
    transform: none;
}

/* ---------- Suggested domains ---------- */
body #order-standard_cart .suggested-domains {
    margin-top: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
}

body #order-standard_cart .suggested-domains .card-header,
body #order-standard_cart .suggested-domains .panel-heading {
    padding: 14px 18px;
    font-weight: 700;
    background: #fff;
    border-bottom: 1px solid var(--border-muted);
}

body #order-standard_cart .suggested-domains .list-group-item {
    padding: 14px 18px;
    background: transparent;
    border: 0;
    border-top: 1px solid #f1f5f9;
    border-radius: 0;
}

body #order-standard_cart .suggested-domains .list-group-item:first-child {
    border-top: 0;
}

body #order-standard_cart .suggested-domains .actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

body #order-standard_cart .suggested-domains .price {
    padding: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

body #order-standard_cart .suggested-domains .btn:not(.domain-contact-support) {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 999px;
}

body #order-standard_cart .suggested-domains .btn:not(.domain-contact-support):hover {
    background: var(--primary-lifted);
    border-color: var(--primary-lifted);
}

body #order-standard_cart .suggested-domains .promo.hot,
body #order-standard_cart .suggested-domains .promo.sale,
body #order-standard_cart .suggested-domains .promo.new {
    padding: 2px 9px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 999px;
}

/* ---------- Featured TLDs ---------- */
body #order-standard_cart .domain-pricing .featured-tld {
    padding: 18px 12px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

body #order-standard_cart .domain-pricing .featured-tld:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

body #order-standard_cart .domain-pricing .featured-tld .price {
    font-weight: 700;
    color: var(--text);
}

/* ---------- TLD price list ---------- */
body #order-standard_cart .domain-pricing {
    margin-top: 28px;
}

body #order-standard_cart .domain-pricing h4 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

body #order-standard_cart .tld-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

body #order-standard_cart .domain-pricing .tld-filters a.badge {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-accented);
    background: #fff;
    border: 1px solid var(--border-muted);
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body #order-standard_cart .domain-pricing .tld-filters a.badge:hover {
    color: var(--primary-700);
    border-color: var(--primary-200);
}

body #order-standard_cart .domain-pricing .tld-filters a.badge.badge-success,
body #order-standard_cart .domain-pricing .tld-filters a.badge.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

body #order-standard_cart .domain-pricing > .bg-white {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-sm);
}

body #order-standard_cart .domain-pricing .tld-pricing-header {
    background: var(--neutral-50);
    border-bottom: 1px solid var(--border-muted);
}

body #order-standard_cart .domain-pricing .tld-pricing-header .tld-column,
body #order-standard_cart .domain-pricing .tld-pricing-header .col-xs-2,
body #order-standard_cart .domain-pricing .tld-pricing-header .col-sm-2,
body #order-standard_cart .domain-pricing .tld-pricing-header .col-xs-4,
body #order-standard_cart .domain-pricing .tld-pricing-header .col-sm-4,
body #order-standard_cart .domain-pricing .tld-pricing-header .col-4 {
    height: auto;
    padding: 14px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-lifted);
    background: transparent;
    border: 0;
    border-radius: 0;
}

body #order-standard_cart .domain-pricing .tld-pricing-header div:nth-child(odd) {
    background: transparent;
}

body #order-standard_cart .domain-pricing .tld-row {
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

body #order-standard_cart .domain-pricing .tld-row:last-child {
    border-bottom: 0;
}

body #order-standard_cart .domain-pricing .tld-row:hover {
    background: var(--primary-50);
}

body #order-standard_cart .domain-pricing .tld-row strong {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--primary-700);
}

body #order-standard_cart .domain-pricing .two-row-center {
    margin: 6px 0;
    line-height: 28px;
    border-right: 1px solid #eef2f7;
}

body #order-standard_cart .domain-pricing .tld-row small {
    font-size: 12px;
    font-weight: 500;
    color: var(--neutral-400);
}

body #order-standard_cart .domain-pricing .tld-sale-group {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    border-radius: 999px;
}

body #order-standard_cart .domain-pricing .tld-sale-group-hot { background: #ef4444; }
body #order-standard_cart .domain-pricing .tld-sale-group-new { background: #16a34a; }
body #order-standard_cart .domain-pricing .tld-sale-group-sale { background: #d97706; }

@media (max-width: 767.98px) {
    body #order-standard_cart .domain-pricing .tld-pricing-header .tld-column {
        display: none;
    }

    body #order-standard_cart .domain-pricing .two-row-center {
        margin: 2px 0 0;
        padding-top: 8px;
        border-right: 0;
    }

    body #order-standard_cart .domain-pricing .tld-row {
        padding: 6px 0 10px;
    }
}

/* ---------- Promo boxes ---------- */
body #order-standard_cart .domain-promo-box {
    position: relative;
    height: calc(100% - 40px);
    margin: 28px 0 12px;
    padding: 24px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border-muted);
    border-radius: var(--rounding-lg);
    box-shadow: var(--shadow-xs);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

body #order-standard_cart .domain-promo-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

body #order-standard_cart .domain-promo-box i {
    display: grid;
    place-items: center;
    float: right;
    width: 56px;
    height: 56px;
    margin: 0 0 8px 12px;
    font-size: 24px;
    color: var(--primary);
    background: var(--primary-50);
    border-radius: var(--rounding-md);
}

body #order-standard_cart .domain-promo-box h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

body #order-standard_cart .domain-promo-box p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-lifted);
}

body #order-standard_cart .domain-promo-box p.font-bold {
    margin-top: 4px;
    font-weight: 600;
    color: var(--primary-700) !important;
}

body #order-standard_cart .domain-promo-box .small {
    margin-top: 14px;
    font-size: 12px;
    color: var(--neutral-400);
}

body #order-standard_cart .domain-promo-box .btn {
    margin-top: 6px;
    padding: 9px 20px;
    font-weight: 600;
    border-radius: var(--rounding-md);
}

body #order-standard_cart .domain-promo-box .btn-warning {
    color: #fff;
    background: var(--neutral-800);
    border-color: var(--neutral-800);
}

body #order-standard_cart .domain-promo-box .btn-warning:hover {
    background: var(--neutral-900);
    border-color: var(--neutral-900);
}

body #order-standard_cart .domain-suggestions-warning {
    font-size: 12px;
    color: var(--neutral-400);
}

@media (max-width: 767.98px) {
    body #order-standard_cart .suggested-domains .actions {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        margin-top: 8px;
    }

    body #order-standard_cart .suggested-domains .price {
        display: block;
        text-align: center;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    body #order-standard_cart .domain-checker-container::before {
        animation: none;
    }

    body #order-standard_cart .spotlight-tld,
    body #order-standard_cart .domain-pricing .featured-tld,
    body #order-standard_cart .domain-promo-box {
        transition: none;
        transform: none !important;
    }
}

/* =====================================================
   Cloud scene + breadcrumb (design only)
   Animated cloud artwork shared with the farmedia.cloud website
   (img/cloud-floating.gif, img/cloud-server.gif, img/clouds-*.svg).
   No markup, JS or functionality is touched.
   ===================================================== */

/* ---------- Hero: floating cloud + cloud-server artwork ---------- */
#frmDomainHomepage .home-domain-search .p-5 > * {
    position: relative;
    z-index: 2;
}

#frmDomainHomepage .home-domain-search h2::before,
#frmDomainHomepage .home-domain-search h2::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 18px 28px rgba(2, 6, 23, 0.35));
    will-change: transform;
}

#frmDomainHomepage .home-domain-search h2::before {
    left: -110px;
    top: -34px;
    width: 300px;
    height: 220px;
    background-image: url("../img/cloud-brand.svg");
}

#frmDomainHomepage .home-domain-search h2::after {
    right: -120px;
    top: -26px;
    width: 300px;
    height: 230px;
    background-image: url("../img/cloud-brand-mark.svg");
}

@keyframes nm-bob {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, -12px, 0); }
}

/* the artwork needs the wide layout; below that the drifting SVG clouds carry the scene */
@media (max-width: 1199.98px) {
    #frmDomainHomepage .home-domain-search h2::before,
    #frmDomainHomepage .home-domain-search h2::after {
        display: none;
    }
}

/* ---------- Breadcrumb ---------- */
/* The home page only ever shows "Home" above its hero, so the bar is left out there. */
body:has(#frmDomainHomepage) .master-breadcrumb {
    display: none;
}

/* On every other page the bar becomes a slim sky strip with clouds drifting through it. */
.master-breadcrumb {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(180deg, #d6e6ff 0%, #eaf1ff 55%, var(--bg-lifted) 100%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}

.master-breadcrumb::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    pointer-events: none;
    background: url("../img/clouds-near.svg") repeat-x center / 50% 100%;
    opacity: 1;
    animation: farmedia-cloud-drift 150s linear infinite;
    will-change: transform;
}

.master-breadcrumb .breadcrumb {
    margin: 0;
    padding: 12px 0;
    flex-wrap: wrap;
    font-size: 13px;
    line-height: 1.4;
}

.master-breadcrumb .breadcrumb .breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.master-breadcrumb .breadcrumb a {
    color: var(--primary-700);
    font-weight: 600;
}

.master-breadcrumb .breadcrumb .breadcrumb-item.active {
    color: var(--neutral-700);
    font-weight: 600;
}

.master-breadcrumb .breadcrumb .breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
}

.master-breadcrumb .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 10px;
    color: var(--primary-400);
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .master-breadcrumb::before {
        width: 2400px;
        background-size: 1200px 100%;
        animation-name: farmedia-cloud-drift-sm;
        animation-duration: 120s;
    }

    .master-breadcrumb .breadcrumb {
        padding: 10px 0;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #frmDomainHomepage .home-domain-search h2::before,
    #frmDomainHomepage .home-domain-search h2::after,
    .master-breadcrumb::before {
        animation: none;
    }
}

/* >>> SKY LAYER */
/* =====================================================
   Sky layer v4 — modern SaaS look (design only)
   A frosted-glass header with a moving light line, a richer night-sky hero with twinkling stars and animated GIF clouds,
   glass cards with gradient hairlines and cloud-icon chips, gradient buttons, softer forms and a cloud login.
   Artwork (img/): cloud-floating.gif, cloud-server.gif, cloud-icon.gif, datacenter-core.gif, clouds-far.svg.
   Everything below is CSS: no markup, script or behaviour of the theme is touched. Remove this block to go back.
   ===================================================== */

:root {
    --sky-grad: linear-gradient(135deg, #3b82f6 0%, #2563eb 48%, #5b5bf0 100%);
    --sky-grad-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(109, 93, 246, 0.1));
    --sky-line: linear-gradient(90deg, rgba(96, 165, 250, 0), #60a5fa, #8b5cf6, #22d3ee, rgba(34, 211, 238, 0));
    --sky-glow: 0 10px 28px -10px rgba(37, 99, 235, 0.55);
    --sky-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 28px -14px rgba(15, 23, 42, 0.16);
    --sky-card-hover: 0 2px 4px rgba(15, 23, 42, 0.05), 0 26px 50px -22px rgba(37, 99, 235, 0.4);
    --sky-r: 18px;
}

@keyframes sky-sheen { to { background-position: -300% 0; } }
@keyframes sky-twinkle { from { opacity: 0.5; } to { opacity: 1; } }
@keyframes sky-halo {
    from { box-shadow: 0 30px 60px -20px rgba(2, 6, 23, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.08), 0 0 70px 4px rgba(59, 130, 246, 0.38); }
    to   { box-shadow: 0 30px 60px -20px rgba(2, 6, 23, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.1), 0 0 70px 4px rgba(139, 92, 246, 0.42); }
}
@keyframes sky-bob-soft {
    from { transform: translate3d(0, 0, 0) rotate(-1.5deg); }
    to   { transform: translate3d(0, -9px, 0) rotate(1.5deg); }
}

/* ---------- Page: an ambient sky behind everything ---------- */
body:has(#main-body) {
    /* html has its own (dark) background for the overscroll under the footer, so the body paints its own; isolating the body makes
       the cloud layer below sit above that background and under the content. Not a containing block: the sticky header still sticks. */
    isolation: isolate;
    /* theme.css fixes html and body at height:100% with the dark inverted colour, so on a long page the body's own light background
       stopped at one screen height and the dark html showed below it. Let the body grow with its content. */
    height: auto;
    min-height: 100%;
    background-color: var(--bg-lifted);
    background-image:
        radial-gradient(1100px 520px at 10% -8%, rgba(59, 130, 246, 0.14), transparent 62%),
        radial-gradient(900px 480px at 94% -6%, rgba(124, 58, 237, 0.1), transparent 60%);
    background-repeat: no-repeat;
}

/* The page shell paints the same colour as the body; made see-through so the sky behind it shows. Its own soft gradient stays. */
body:has(#main-body) #main-body { background-color: transparent; }

/* Soft clouds drifting across the upper part of every page. Fixed, so they never add to the page width or scroll with it. */
body:has(#main-body)::before {
    content: "";
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 200%;
    height: min(62vh, 560px);
    pointer-events: none;
    background: url("../img/clouds-far.svg") repeat-x 0 0 / 50% 100%;
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(180deg, #000 25%, transparent);
    mask-image: linear-gradient(180deg, #000 25%, transparent);
    animation: farmedia-cloud-drift 240s linear infinite;
    will-change: transform;
}

/* ---------- Header: one frosted bar with a moving line of light ---------- */
header.header {
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.74);
    -webkit-backdrop-filter: saturate(190%) blur(20px);
    backdrop-filter: saturate(190%) blur(20px);
    border-bottom: 0;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05), 0 14px 34px -20px rgba(37, 99, 235, 0.3);
}

header.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    pointer-events: none;
    background: var(--sky-line);
    background-size: 300% 100%;
    animation: sky-sheen 9s linear infinite;
}

header.header .navbar,
header.header .navbar.navbar-light,
header.header .main-navbar-wrapper {
    background: transparent;
    border: 0;
}

header.header .navbar.navbar-light { min-height: 60px; }
header.header .main-navbar-wrapper { padding-top: 0; padding-bottom: 8px; }

header.header #mainNavbar .navbar-nav > li > a {
    padding: 8px 16px;
    font-weight: 600;
    letter-spacing: -0.005em;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

header.header #mainNavbar .navbar-nav > li > a:hover,
header.header #mainNavbar .navbar-nav > li.show > a {
    background: var(--sky-grad-soft);
    color: var(--primary-700);
}

header.header .input-group.search {
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

header.header .input-group.search:focus-within {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

header.header .cart-btn {
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

header.header .cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -12px rgba(37, 99, 235, 0.5);
}

header.header .cart-btn .badge {
    background: var(--sky-grad);
    border: 0;
    box-shadow: 0 4px 10px -3px rgba(37, 99, 235, 0.7);
}

.dropdown-menu {
    padding: 8px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 56px -22px rgba(15, 23, 42, 0.42), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.dropdown-item { border-radius: 10px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--sky-grad-soft); color: var(--primary-700); }

/* ---------- Home hero: night sky, stars, GIF clouds ---------- */
#frmDomainHomepage .home-domain-search .p-5 {
    padding: 96px 0 124px !important;   /* not positioned on purpose: the cloud bank and the stars span the whole hero */
}

#frmDomainHomepage .home-domain-search h2 {
    font-size: clamp(32px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.035em;
    filter: drop-shadow(0 8px 24px rgba(37, 99, 235, 0.45));
}

/* stars: one layer over the whole hero (the hero is the positioned box) */
#frmDomainHomepage .home-domain-search .p-5::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.6px 1.6px at 6% 26%, rgba(255, 255, 255, 0.95) 98%, transparent),
        radial-gradient(1.2px 1.2px at 12% 64%, rgba(191, 219, 254, 0.9) 98%, transparent),
        radial-gradient(2px 2px at 19% 14%, rgba(255, 255, 255, 0.95) 98%, transparent),
        radial-gradient(1.2px 1.2px at 27% 78%, rgba(255, 255, 255, 0.8) 98%, transparent),
        radial-gradient(1.6px 1.6px at 34% 10%, rgba(196, 181, 253, 0.95) 98%, transparent),
        radial-gradient(1.2px 1.2px at 44% 44%, rgba(255, 255, 255, 0.7) 98%, transparent),
        radial-gradient(2px 2px at 53% 8%, rgba(255, 255, 255, 0.95) 98%, transparent),
        radial-gradient(1.2px 1.2px at 61% 70%, rgba(191, 219, 254, 0.85) 98%, transparent),
        radial-gradient(1.6px 1.6px at 69% 18%, rgba(255, 255, 255, 0.9) 98%, transparent),
        radial-gradient(1.2px 1.2px at 77% 52%, rgba(255, 255, 255, 0.75) 98%, transparent),
        radial-gradient(2px 2px at 85% 12%, rgba(196, 181, 253, 0.95) 98%, transparent),
        radial-gradient(1.2px 1.2px at 91% 66%, rgba(255, 255, 255, 0.85) 98%, transparent),
        radial-gradient(1.6px 1.6px at 96% 30%, rgba(255, 255, 255, 0.9) 98%, transparent);
    animation: sky-twinkle 3.8s ease-in-out infinite alternate;
}

#frmDomainHomepage .input-group-wrapper,
body #frmDomainHomepage .input-group-wrapper {
    border-color: rgba(255, 255, 255, 0.4);
    animation: sky-halo 6s ease-in-out infinite alternate;
}

#frmDomainHomepage .home-domain-search h2::before,
#frmDomainHomepage .home-domain-search h2::after {
    filter: drop-shadow(0 22px 34px rgba(2, 6, 23, 0.45));
}

/* the GIF clouds stay on tablets and phones, smaller and tucked above the title */
@media (max-width: 1199.98px) {
    #frmDomainHomepage .home-domain-search h2::before,
    #frmDomainHomepage .home-domain-search h2::after {
        display: block;
        top: -104px;
        width: 132px;
        height: 96px;
    }

    #frmDomainHomepage .home-domain-search h2::before { left: -4px; }
    #frmDomainHomepage .home-domain-search h2::after { right: -4px; }

    #frmDomainHomepage .home-domain-search .p-5 { padding: 128px 0 112px !important; }
}

@media (max-width: 575.98px) {
    #frmDomainHomepage .home-domain-search h2::before,
    #frmDomainHomepage .home-domain-search h2::after { width: 104px; height: 76px; top: -96px; }
}

/* ---------- Buttons: gradient with a light sweep ---------- */
:where(.btn-primary) { position: relative; }   /* zero specificity: any rule that places a button elsewhere still wins */

.btn-primary {
    background-image: var(--sky-grad);
    border-color: transparent;
    box-shadow: var(--sky-glow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-primary:hover:not(:disabled):not(.disabled) {
    transform: translateY(-1px);
    filter: brightness(1.07) saturate(1.05);
    box-shadow: 0 16px 34px -14px rgba(37, 99, 235, 0.7);
}

.btn-primary:disabled, .btn-primary.disabled { box-shadow: none; filter: none; }

/* the light sweep; a dropdown button keeps its own caret, which lives on ::after */
.btn-primary:not(.dropdown-toggle)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -50%;
    width: 36%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    transform: skewX(-20deg) translateX(-140%);
    transition: transform 0.7s ease;
}

.btn-primary:not(.dropdown-toggle):hover::after { transform: skewX(-20deg) translateX(520%); }

.btn-outline-primary {
    border-width: 1.5px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

/* ---------- Home: product cards with a cloud chip, gradient hairline and lift ---------- */
.card-columns.home .card {
    position: relative;
    border: 0;
    border-radius: var(--sky-r);
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--sky-card);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease;
}

.card-columns.home .card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(160deg, rgba(96, 165, 250, 0.6), rgba(124, 58, 237, 0.2) 42%, rgba(226, 232, 240, 0.7));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.card-columns.home .card:hover {
    transform: translateY(-7px);
    box-shadow: var(--sky-card-hover);
}

.card-columns.home .card-body::before,
.card-columns.home .card .card-body::before,
.card-columns.home article::before {
    display: none !important;
    content: none !important;
    background: none !important;
}

.saas-card-icon {
    display: block !important;
    width: 96px !important;
    height: 96px !important;
    margin: -6px auto 14px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 12px 20px rgba(37, 99, 235, 0.22));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.card-columns.home .card:hover .saas-card-icon {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(0 16px 28px rgba(37, 99, 235, 0.35));
}

.card-columns.home .card.card-product-vps .saas-card-icon {
    filter: drop-shadow(0 12px 20px rgba(99, 102, 241, 0.25));
}

.card-columns.home .card.card-product-vps:hover .saas-card-icon {
    filter: drop-shadow(0 16px 28px rgba(99, 102, 241, 0.42));
}

.card-columns.home .card.card-product-cpanel .saas-card-icon {
    filter: drop-shadow(0 12px 20px rgba(234, 88, 12, 0.25));
}

.card-columns.home .card.card-product-cpanel:hover .saas-card-icon {
    filter: drop-shadow(0 16px 28px rgba(234, 88, 12, 0.42));
}

.card-columns.home .card.card-domain-register .saas-card-icon {
    filter: drop-shadow(0 12px 20px rgba(5, 150, 105, 0.22));
}

.card-columns.home .card.card-domain-register:hover .saas-card-icon {
    filter: drop-shadow(0 16px 28px rgba(5, 150, 105, 0.35));
}

.card-columns.home .card.card-domain-transfer .saas-card-icon {
    filter: drop-shadow(0 12px 20px rgba(168, 85, 247, 0.22));
}

.card-columns.home .card.card-domain-transfer:hover .saas-card-icon {
    filter: drop-shadow(0 16px 28px rgba(168, 85, 247, 0.35));
}

/* the button label must stay readable on the gradient: older `body #main-body .btn-outline-primary` rules are more specific than a bare selector */
body #main-body .card-columns.home .card:hover .btn-outline-primary,
body #main-body .card-columns.home .card:hover .btn-outline-primary:hover,
body #main-body .card-columns.home .card:hover .btn-outline-primary:focus,
body #main-body .card-columns.home .card:hover .btn-outline-primary:active {
    background-color: var(--primary);
    background-image: var(--sky-grad);
    border-color: transparent;
    color: #fff !important;
    box-shadow: var(--sky-glow);
}

/* quick-link tiles */
.action-icon-btns a {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--sky-card);
    transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.26s ease;
}

.action-icon-btns a:hover {
    transform: translateY(-6px);
    box-shadow: var(--sky-card-hover);
}

.action-icon-btns .ico-container {
    background: var(--sky-grad-soft);
    transition: transform 0.3s ease, background 0.3s ease;
}

.action-icon-btns a:hover .ico-container {
    background: var(--sky-grad);
    transform: rotate(-6deg) scale(1.08);
}

.action-icon-btns a:hover .ico-container i { color: #fff; }

/* ---------- Client area: tiles, panels, sidebar, tables, forms ---------- */
.tiles .tile {
    border-radius: var(--sky-r);
    box-shadow: var(--sky-card);
    transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.26s ease;
}

.tiles .tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--sky-card-hover);
}

.tiles .tile .stat {
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--primary-600) 120%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.client-home-cards .card,
.card-sidebar {
    position: relative;
    border-radius: var(--sky-r);
    box-shadow: var(--sky-card);
}

.client-home-cards .card[class*="card-accent-"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--sky-r) var(--sky-r) 0 0;
    background: linear-gradient(90deg, var(--card-acc, var(--primary-500)), transparent 85%);
    pointer-events: none;
}

.card-accent-gold { --card-acc: #f59e0b; }
.card-accent-green, .card-accent-lime, .card-accent-emerald { --card-acc: #10b981; }
.card-accent-red, .card-accent-pomegranate { --card-acc: #ef4444; }
.card-accent-blue, .card-accent-midnight-blue { --card-acc: #3b82f6; }
.card-accent-orange { --card-acc: #f97316; }
.card-accent-pink, .card-accent-magenta { --card-acc: #ec4899; }
.card-accent-purple, .card-accent-amethyst { --card-acc: #8b5cf6; }
.card-accent-teal, .card-accent-turquoise { --card-acc: #14b8a6; }

.client-home-cards .card[class*="card-accent-"] .card-title > i { color: var(--card-acc); }

.card-sidebar .list-group-item.active,
.card-sidebar .list-group-item-action.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.13), rgba(37, 99, 235, 0.03));
    color: var(--primary-700);
    box-shadow: inset 3px 0 0 var(--primary-500);
}

.table-list tbody tr { transition: background-color 0.15s ease; }
.table-list tbody tr:hover { background-color: rgba(37, 99, 235, 0.045); }

.form-control, .custom-select {
    border-radius: 12px;
    border-color: rgba(148, 163, 184, 0.5);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-control:focus, .custom-select:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.modal-content {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 40px 90px -30px rgba(15, 23, 42, 0.55);
}

/* ---------- Breadcrumb strip: a little GIF cloud floating at the end ---------- */
.master-breadcrumb::after {
    content: "";
    position: absolute;
    top: 50%;
    right: max(14px, calc(50% - 560px));
    width: 46px;
    height: 46px;
    margin-top: -23px;
    pointer-events: none;
    background: url("../img/cloud-brand-mark.svg") center / contain no-repeat;
    filter: drop-shadow(0 8px 10px rgba(37, 99, 235, 0.25));
}

/* ---------- Login: glass card under a floating cloud, a data-centre rack beside it ---------- */
body:has(.login-form) #main-body {
    position: relative;
    padding-top: 36px;
    padding-bottom: 96px;
}

body .login-form .card.mw-540,
.login-form .card {
    position: relative;
    overflow: visible;
    margin-top: 72px !important;
    border: 0;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 44px 90px -34px rgba(37, 99, 235, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.7), var(--sky-card);
}

.login-form .card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -62px;
    width: 104px;
    height: 104px;
    margin-left: -52px;
    pointer-events: none;
    background: url("../img/cloud-brand-mark.svg") center / contain no-repeat;
    filter: drop-shadow(0 14px 20px rgba(37, 99, 235, 0.3));
}

.login-form .card .h3 {
    background: linear-gradient(135deg, var(--neutral-900), var(--primary-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body:has(.login-form) #main-body::before,
body:has(.login-form) #main-body::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: none;
}

@media (min-width: 1200px) {
    body:has(.login-form) #main-body::before,
    body:has(.login-form) #main-body::after { display: block; }

    body:has(.login-form) #main-body::before {
        left: 7%;
        top: 130px;
        width: 190px;
        height: 190px;
        background-image: url("../img/cloud-brand-mark.svg");
        filter: drop-shadow(0 22px 28px rgba(37, 99, 235, 0.32));
    }

    body:has(.login-form) #main-body::after {
        right: 5%;
        bottom: 80px;
        width: 260px;
        height: 180px;
        background-image: url("../img/cloud-brand.svg");
        filter: drop-shadow(0 20px 26px rgba(37, 99, 235, 0.25));
    }
}

/* ---------- Footer: twinkling stars over the night ---------- */
footer.footer { position: relative; }

footer.footer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1.4px 1.4px at 8% 30%, rgba(255, 255, 255, 0.85) 98%, transparent),
        radial-gradient(1.2px 1.2px at 21% 72%, rgba(191, 219, 254, 0.8) 98%, transparent),
        radial-gradient(1.8px 1.8px at 37% 22%, rgba(255, 255, 255, 0.85) 98%, transparent),
        radial-gradient(1.2px 1.2px at 52% 66%, rgba(255, 255, 255, 0.7) 98%, transparent),
        radial-gradient(1.6px 1.6px at 66% 28%, rgba(196, 181, 253, 0.9) 98%, transparent),
        radial-gradient(1.2px 1.2px at 79% 74%, rgba(255, 255, 255, 0.75) 98%, transparent),
        radial-gradient(1.6px 1.6px at 92% 24%, rgba(255, 255, 255, 0.85) 98%, transparent),
        radial-gradient(520px 200px at 14% 0%, rgba(59, 130, 246, 0.16), transparent 70%),
        radial-gradient(460px 180px at 88% 100%, rgba(124, 58, 237, 0.14), transparent 70%);
    animation: sky-twinkle 4.6s ease-in-out infinite alternate;
}

footer.footer > .container { position: relative; z-index: 1; }

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
    body:has(#main-body)::before,
    header.header::after,
    #frmDomainHomepage .home-domain-search .p-5::after,
    #frmDomainHomepage .input-group-wrapper,
    .master-breadcrumb::after,
    .login-form .card::before,
    body:has(.login-form) #main-body::before,
    body:has(.login-form) #main-body::after,
    footer.footer::after {
        animation: none;
    }

    .btn-primary:not(.dropdown-toggle)::after { display: none; }
}

@media print {
    body:has(#main-body)::before,
    header.header::after,
    .master-breadcrumb::after,
    footer.footer::after { display: none !important; }
}
/* <<< SKY LAYER */

/* ==========================================================================
   Modern SaaS Announcements & Changelog Post Styling
   ========================================================================== */
.saas-announcements-hero {
    padding: 0.5rem 0 1rem;
}

.saas-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    margin-bottom: 0.75rem;
}

.saas-hero-title {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    color: #0f172a !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.25;
}

.saas-hero-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0;
    max-width: 680px;
    line-height: 1.6;
}

.saas-announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.saas-post-card {
    position: relative;
    padding: 1.5rem 1.75rem;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.saas-post-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 30px -8px rgba(15, 23, 42, 0.1);
}

.saas-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.saas-post-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.saas-post-date {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.saas-post-time {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: #94a3b8;
}

.saas-post-tag {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.saas-post-edit-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
    text-decoration: none;
}

.saas-post-edit-btn:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
    text-decoration: none;
}

.saas-post-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.015em;
    margin-bottom: 0.65rem !important;
}

.saas-post-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.18s ease;
}

.saas-post-title a:hover {
    color: #2563eb !important;
}

.saas-post-excerpt {
    font-size: 0.925rem;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 1rem;
}

.saas-post-excerpt p {
    margin-bottom: 0.5rem;
}

.saas-post-excerpt p:last-child {
    margin-bottom: 0;
}

.saas-post-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.saas-post-readmore {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb !important;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.saas-post-readmore i {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.saas-post-card:hover .saas-post-readmore i,
.saas-post-readmore:hover i {
    transform: translateX(4px);
}

/* Single Announcement View */
.saas-back-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none !important;
    transition: color 0.15s ease, transform 0.15s ease;
}

.saas-back-link:hover {
    color: #2563eb;
    transform: translateX(-3px);
}

.saas-single-article {
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05) !important;
    background: #ffffff !important;
}

.saas-article-title {
    font-size: clamp(1.4rem, 2.5vw, 1.95rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.025em;
    color: #0f172a !important;
}

.saas-article-body {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
}

.saas-article-body p {
    margin-bottom: 1.25rem;
}

.saas-article-body h2,
.saas-article-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.saas-article-body ul,
.saas-article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.saas-article-body li {
    margin-bottom: 0.4rem;
}

.saas-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.saas-empty-card {
    border-radius: 1rem;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}

/* Pagination */
.saas-pagination-nav .pagination {
    gap: 0.35rem;
}

.saas-pagination-nav .page-link {
    border-radius: 0.5rem !important;
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.15s ease;
}

.saas-pagination-nav .page-link:hover {
    color: #2563eb;
    border-color: #bfdbfe;
    background: #eff6ff;
}

.saas-pagination-nav .page-item.active .page-link {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* Safety overrides to kill oversized legacy headers if anything renders fallback */
.announcements .announcement h1 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
}

.announcements .announcement article {
    border-left: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin-bottom: 0.75rem !important;
}

/* ==========================================================================
   Knowledgebase & Documentation SaaS Redesign
   ========================================================================== */

/* Search bar */
.kb-search {
    border-radius: 12px;
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.08);
}

.kb-search .form-control {
    border-radius: 12px 0 0 12px !important;
    border: 1px solid #e2e8f0;
    border-right: none;
    font-size: 1rem;
    padding-left: 1.25rem;
    color: var(--neutral-800);
}

.kb-search .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.kb-search .btn-primary {
    border-radius: 0 12px 12px 0 !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-weight: 600;
}

/* Category cards */
.card.kb-category {
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.card.kb-category:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 24px -8px rgba(37, 99, 235, 0.15) !important;
    border-color: #cbd5e1 !important;
}

.card.kb-category a.card-body {
    padding: 1.25rem 1.5rem !important;
    text-decoration: none !important;
}

.card.kb-category .h5 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--neutral-800) !important;
}

.card.kb-category .h5 i {
    color: var(--primary) !important;
    margin-right: 6px !important;
}

.card.kb-category p.text-muted small {
    color: var(--neutral-500) !important;
    font-size: 0.85rem !important;
    margin-top: 6px !important;
    display: block !important;
}

/* Popular / Article / Downloads Card Containers */
.card-kb-popular,
.card-kb-articles,
.card-kb-related {
    border-radius: 16px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04) !important;
    overflow: hidden !important;
}

/* Article List Item */
.kb-article-item,
.list-group-item.kb-article-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    padding: 1rem 1.25rem !important;
    border-color: #f1f5f9 !important;
    background-color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.kb-article-item:hover,
.list-group-item.kb-article-item:hover {
    background-color: rgba(37, 99, 235, 0.035) !important;
    text-decoration: none !important;
}

/* Icon Box */
.kb-article-icon-box {
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: rgba(37, 99, 235, 0.08) !important;
    color: var(--primary) !important;
    margin-top: 2px !important;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease !important;
}

.kb-article-item:hover .kb-article-icon-box {
    background: var(--primary) !important;
    color: #ffffff !important;
    transform: translateY(-1px) scale(1.05) !important;
}

/* Content Container */
.kb-article-content {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.kb-article-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.kb-article-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--neutral-800) !important;
    line-height: 1.4 !important;
    transition: color 0.18s ease !important;
}

.kb-article-item:hover .kb-article-title {
    color: var(--primary) !important;
}

/* FIX: Snippet / Excerpt Text Invisible & Collision Overrides */
.kb-article-item small,
.kb-article-item .kb-article-excerpt,
.list-group-item.kb-article-item small,
.list-group-item.kb-article-item .kb-article-excerpt,
.list-group small {
    display: block !important;
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    font-size: 0.825rem !important;
    line-height: 1.55 !important;
    color: #64748b !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    text-transform: none !important;
    word-break: break-word !important;
}

.kb-article-item:hover small,
.kb-article-item:hover .kb-article-excerpt {
    color: #475569 !important;
}

/* ---------- Polish: the "Lainnya" overflow menu and the back link (design only) ---------- */
/* Items the navbar script moves into "Lainnya" are plain top-level links, so they missed the padding the normal dropdown links get. */
header.header .collapsable-dropdown-menu {
    min-width: 210px;
    padding: 8px;
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 50px -22px rgba(37, 99, 235, 0.38), 0 2px 6px rgba(15, 23, 42, 0.05);
}

header.header .collapsable-dropdown-menu > li,
header.header .collapsable-dropdown-menu > li.dropdown-item {
    display: block;
    padding: 0;
    background: transparent;
}

header.header .collapsable-dropdown-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 11px;
    color: var(--text-accented);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    background: transparent;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

header.header .collapsable-dropdown-menu > li > a:hover,
header.header .collapsable-dropdown-menu > li > a:focus {
    color: var(--primary-700);
    background: var(--sky-grad-soft);
    transform: translateX(2px);
}

header.header .collapsable-dropdown-menu > li.active > a {
    color: var(--primary-700);
    background: var(--primary-50);
}

/* back link on single announcement / article pages */
.saas-back-link {
    gap: 8px;
    padding: 7px 14px 7px 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 16px -10px rgba(15, 23, 42, 0.25);
}

.saas-back-link i { margin: 0 !important; font-size: 0.8rem; }
.saas-back-link:hover { border-color: rgba(37, 99, 235, 0.4); background: #fff; }

/* >>> RESPONSIVE LAYER */
/* =====================================================
   Responsive + lightweight layer (design only)
   Fluid text, content that can never push the page wider than the screen, tables that scroll inside their own box, and a
   lighter paint path on phones and tablets (no live blur, no endless animation). Additive: delete this block to go back.
   ===================================================== */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* safety net: a decorative element that sticks out can never create a sideways scrollbar (clip, unlike hidden, keeps sticky working) */
body { overflow-x: clip; }

/* user-written content (tickets, announcements, KB, quotes) must fit */
.markdown-content img, .card-body img, .saas-single-article img, .message img { max-width: 100%; height: auto; }
.markdown-content pre, .card-body pre, .message pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.markdown-content table, .message table, .saas-single-article table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.message, .markdown-content, .saas-single-article .card-body, .alert, .list-group-item, .card-title, .breadcrumb, .page-title { overflow-wrap: break-word; }
iframe, embed, object { max-width: 100%; }

/* ---------- Tablets and below ---------- */
@media (max-width: 991.98px) {
    .table-container, .table-responsive { max-width: 100%; overflow-x: auto; }
    .table-container > .table, .table-responsive > .table { margin-bottom: 0; }

    /* tables without a wrapper in the markup (invoices, usage, DNS, forwarding, payment methods…) scroll inside themselves */
    #main-body .table:not(.dataTable):not(.table-list):not(.table-sm) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    body .primary-content .client-home-cards .card .card-body { padding: 0; }   /* its paragraphs already carry their own padding */
    .card-header.d-flex, .card-header .d-flex { flex-wrap: wrap; row-gap: 8px; }
    .ticket-actions { float: none !important; display: flex; flex-wrap: wrap; gap: 8px; }
    .nav-tabs, .nav-pills { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .nav-tabs::-webkit-scrollbar, .nav-pills::-webkit-scrollbar { display: none; }
    .nav-tabs .nav-link, .nav-pills .nav-link { white-space: nowrap; }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 767.98px) {
    body h1, body .h1 { font-size: clamp(1.5rem, 6.2vw, 2rem); line-height: 1.2; }
    body h2, body .h2 { font-size: clamp(1.3rem, 5.4vw, 1.7rem); line-height: 1.25; }
    body h3, body .h3 { font-size: clamp(1.12rem, 4.6vw, 1.4rem); line-height: 1.3; }
    body h4, body .h4 { font-size: clamp(1.02rem, 4.1vw, 1.2rem); }

    .modal-dialog { margin: 12px; max-width: calc(100% - 24px); }
    .modal-body, .modal-header, .modal-footer { padding-left: 16px; padding-right: 16px; }

    .form-inline .form-control, .form-inline .custom-select, .form-inline .btn, .form-inline .input-group { width: 100%; margin-bottom: 8px; }
    .input-group { flex-wrap: nowrap; }
    .btn-group:not(.btn-group-toggle) { flex-wrap: wrap; }
    .pagination { flex-wrap: wrap; justify-content: center; gap: 4px 0; }
    .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_length { float: none; text-align: left; margin-bottom: 10px; }
    .dataTables_wrapper .dataTables_filter { width: 100%; margin-top: 0; }
    .dataTables_wrapper .dataTables_filter label { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; }
    .dataTables_wrapper .dataTables_filter label .form-control { flex: 1 1 auto; width: auto; min-width: 0; margin-left: 0; }
    .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { float: none; text-align: center; margin-top: 10px; }

    .view-ticket .card-title, .ticket-reply .posted-by { display: block; }
    .ticket-reply .posted-by .requestor-badge { float: none !important; display: inline-block; margin-top: 6px; }
    .ticket-reply .message { padding: 14px !important; }
}

/* ---------- Phones ---------- */
@media (max-width: 575.98px) {
    .container, .container-fluid { padding-left: 16px; padding-right: 16px; }
    .card-body { padding: 18px; }
    .btn-lg { padding: 12px 18px; font-size: 16px; }
    .jumbotron { padding: 28px 20px; }
    .invoice-container, .invoice-box { padding: 16px; }
}

/* ---------- Light paint path on phones and tablets ---------- */
/* Live blur (backdrop-filter) and endless animations are what make a page feel heavy on mid-range devices. Looks stay; the cost goes. */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
    header.header,
    .card-columns.home .card,
    .login-form .card,
    .dropdown-menu,
    header.header .collapsable-dropdown-menu,
    .saas-back-link,
    .modal-content {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    header.header { background-color: rgba(255, 255, 255, 0.97); }
    .card-columns.home .card, .login-form .card { background: #fff; }

    /* the drifting cloud layer, the light line, the stars and the halo stop moving; the pictures stay */
    body:has(#main-body)::before { animation: none; will-change: auto; -webkit-mask-image: none; mask-image: none; opacity: 0.4; width: 100%; background-size: 100% 100%; }
    header.header::after { animation: none; }
    #frmDomainHomepage .home-domain-search .p-5::after,
    footer.footer::after,
    #frmDomainHomepage .home-domain-search input.form-control,
    #frmDomainHomepage .home-domain-search .input-group { animation: none; }
    .master-breadcrumb::before, .master-breadcrumb::after, footer.footer::before { animation: none; }
    * { will-change: auto !important; }

    /* big soft shadows are costly to paint while scrolling */
    .tiles .tile, .action-icon-btns a, .card-columns.home .card { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 18px -12px rgba(15, 23, 42, 0.18); }
}

/* touch screens have no hover: no lift/shine effects that would stick after a tap */
@media (hover: none) {
    .card-columns.home .card:hover, .action-icon-btns a:hover, .tiles .tile:hover, .btn-primary:hover:not(:disabled):not(.disabled) { transform: none; }
    .btn-primary:not(.dropdown-toggle)::after { display: none; }
}


/* ---------- Order form (cart / checkout) on tablets and phones ---------- */
/* Stock Nexus removes the cart body's side padding but keeps the row's negative margin, so on a phone the cart touched the screen edge. */
@media (max-width: 1199.98px) {
    body #order-standard_cart > .row { margin-left: 0; margin-right: 0; }
    body #order-standard_cart .products .row,
    body #order-standard_cart .secondary-cart-body .row { margin-left: 0; margin-right: 0; }
    body #order-standard_cart .products .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
    body #order-standard_cart .secondary-cart-body, body #order-standard_cart .secondary-cart-sidebar { padding-left: 0; padding-right: 0; }
    body #order-standard_cart .header-lined h1, body #order-standard_cart .header-lined p { overflow-wrap: break-word; }
}
@media (max-width: 767.98px) {
    body #order-standard_cart .secondary-cart-sidebar { width: 100%; max-width: none; margin-top: 20px; }
    body #order-standard_cart .products .product { margin-bottom: 18px; }
    body #order-standard_cart .view-cart-items .item .row > [class*="col-"] { margin-bottom: 6px; }
    body #order-standard_cart .view-cart-items .item .item-price { text-align: left; }
    body #order-standard_cart .btn-checkout, body #order-standard_cart .btn-continue-shopping { display: block; width: 100%; margin: 8px 0 0; }
    body #order-standard_cart .view-cart-tabs .input-group { flex-wrap: wrap; }
    body #order-standard_cart .view-cart-tabs .input-group .form-control { flex: 1 1 100%; border-radius: 10px; margin-bottom: 8px; }
    body #order-standard_cart .view-cart-tabs .input-group-append { width: 100%; margin: 0; }
    body #order-standard_cart .view-cart-tabs .input-group-append .btn { width: 100%; border-radius: 10px; }
}

/* order summary rows: label left, amount right, on every width (the Bootstrap 3 pull-* floats are not part of this theme) */
body #order-standard_cart .order-summary .subtotal,
body #order-standard_cart .order-summary .recurring-totals,
body #order-standard_cart .order-summary .bordered-totals > div,
body #order-standard_cart .order-summary .summary-container > .clearfix {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 2px 14px;
}
body #order-standard_cart .order-summary .pull-left { float: none; }
body #order-standard_cart .order-summary .pull-right { float: none; text-align: right; }
body #order-standard_cart .order-summary .summary-container { padding-left: 4px; padding-right: 4px; }

@media (max-width: 767.98px) {
    body #order-standard_cart .view-cart-items-header { padding: 10px 16px; }
    body #order-standard_cart .view-cart-items-header .hidden-xs { display: none; }
    body #order-standard_cart .view-cart-items .item { padding: 14px 16px; }
    body #order-standard_cart .view-cart-items .item .item-title { display: block; overflow-wrap: anywhere; }
    body #order-standard_cart .view-cart-items .item .item-domain { overflow-wrap: anywhere; }
    body #order-standard_cart .view-cart-tabs .nav-tabs { margin-bottom: 0; }
    body #order-standard_cart .view-cart-tabs .tab-pane { padding: 14px 16px; }
    body #order-standard_cart .order-summary { padding-bottom: 8px; }
    body #order-standard_cart .order-summary h2 { padding: 14px 16px 6px; font-size: 1.35rem; }
    body #order-standard_cart .order-summary .summary-container { padding: 6px 16px 14px; }
    body #order-standard_cart .total-due-today .amt { font-size: clamp(1.5rem, 8vw, 2rem); }
}

body #order-standard_cart .order-summary .pull-right { margin-left: auto; }

/* product / service detail rows: label and value read top-down, left-aligned, instead of a ragged right-aligned label */
@media (max-width: 767.98px) {
    .product-details .text-right, .product-details .text-left { text-align: left !important; }
    .product-details .col-md-6.text-center { text-align: left !important; }
    .product-details .col-md-6.text-center h4 { text-align: center; }
    .product-details .row > [class*="col-sm-"] { margin-bottom: 2px; }
    .product-details .btn-block + .btn-block { margin-top: 8px; }
}

/* phones: every button is a comfortable, centred tap target (the old rule only set a minimum height, so labels sat at the top) */
@media (max-width: 575.98px) {
    body .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-align: center; line-height: 1.25; }
    body .btn-block { display: flex; width: 100%; }
    body .btn-xs, body .btn-sm { font-size: 13.5px; padding: 8px 14px; }
    .alert .float-right { float: none !important; margin: 0 0 10px; }
    .card-footer { padding-left: 18px; padding-right: 18px; }
    .list-group-item { padding: 12px 16px; }
    .list-group-item .label.float-right, .list-group-item .badge.float-right { float: none !important; display: inline-block; margin-top: 6px; }
}
/* <<< RESPONSIVE LAYER */

/* >>> NAV SMOOTHNESS */
/* The header blurred whatever sat behind it (backdrop-filter) while a cloud layer and a light line moved there all the time, so every
   frame of a dropdown opening had to re-blur a moving picture. A solid frosted look costs nothing and opens instantly. Design only. */
header.header,
header.header .dropdown-menu,
header.header .collapsable-dropdown-menu,
.dropdown-menu {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

header.header { background-color: rgba(255, 255, 255, 0.97); }
header.header .dropdown-menu,
header.header .collapsable-dropdown-menu { background-color: #fff; }

/* the light line under the header: a still gradient instead of a background that repaints every frame */
header.header::after { animation: none; background-size: 100% 100%; opacity: 0.85; }

/* menus: lighter shadow, own compositor layer only while open, short fade */
header.header .dropdown-menu,
header.header .collapsable-dropdown-menu {
    box-shadow: 0 14px 30px -14px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(15, 23, 42, 0.05);
    contain: layout paint;
}
header.header .dropdown-menu.show { will-change: opacity, transform; animation-duration: 0.12s; }

/* menu entries react with colour only (no movement, no layout work) */
header.header .dropdown-menu a.dropdown-item,
header.header .collapsable-dropdown-menu > li > a { transition: background-color 0.1s ease, color 0.1s ease; transform: none; }
header.header .collapsable-dropdown-menu > li > a:hover,
header.header .collapsable-dropdown-menu > li > a:focus { transform: none; }

/* ---- fewer things moving at once ----
   Only transform/opacity animations stay (the compositor handles those without repainting). The animations that repainted a large area
   every frame are now still: the glowing box-shadow around the search box, the two blurred hero glows, and the footer stars. */
#frmDomainHomepage .input-group-wrapper,
body #frmDomainHomepage .input-group-wrapper { animation: none; box-shadow: 0 30px 60px -20px rgba(2, 6, 23, 0.6), 0 0 0 6px rgba(255, 255, 255, 0.09), 0 0 60px 2px rgba(99, 102, 241, 0.34); }
#frmDomainHomepage .home-domain-search::before,
#frmDomainHomepage .home-domain-search::after { animation: none; }
footer.footer::after { animation: none; }

/* ---- softer menus ---- */
@media (min-width: 1200px) {
    header.header .dropdown-menu.show {
        transform-origin: top center;
        animation: nav-soft-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
        animation-duration: 0.2s;
        margin-top: 10px;
    }
}
@keyframes nav-soft-in {
    from { opacity: 0; transform: translate3d(0, -6px, 0) scale(0.985); }
    to   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
header.header #mainNavbar .navbar-nav > li > a { transition: background-color 0.2s ease, color 0.2s ease; }
header.header .dropdown-menu a.dropdown-item,
header.header .collapsable-dropdown-menu > li > a { transition: background-color 0.18s ease, color 0.18s ease; }
header.header .dropdown-toggle::after { transition: transform 0.2s ease; }
header.header .show > .dropdown-toggle::after { transform: rotate(180deg); }
/* <<< NAV SMOOTHNESS */

/* >>> PRODUCT DETAILS: SERVER MODULE BUTTONS, TABS AND METRICS
   Server modules (cPanel, DirectAdmin, Plesk, ...) print their own login buttons into .module-client-area, often without a
   class, so the browser's default grey button showed. They now look like the theme's buttons whatever the module prints.
   The Metrics tab's table gets the same card look as the rest of the theme. Design only: no markup or behaviour changes. */
.module-client-area form { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; margin: 0.35rem 0; }
.module-client-area input[type="submit"]:not(.btn),
.module-client-area input[type="button"]:not(.btn),
.module-client-area button:not(.btn),
.module-client-area a:not(.btn):not(.dropdown-item) {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    min-height: 2.6rem; padding: 0.55rem 1.15rem;
    color: #fff; background: var(--primary); border: 1px solid var(--primary); border-radius: var(--rounding-sm);
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.module-client-area input[type="submit"]:not(.btn):hover,
.module-client-area input[type="button"]:not(.btn):hover,
.module-client-area button:not(.btn):hover,
.module-client-area a:not(.btn):not(.dropdown-item):hover { background: var(--primary-lifted); border-color: var(--primary-lifted); color: #fff; }
.module-client-area input[type="submit"]:not(.btn):active,
.module-client-area input[type="button"]:not(.btn):active,
.module-client-area button:not(.btn):active { transform: translateY(1px); }
.module-client-area input[type="submit"]:not(.btn):focus-visible,
.module-client-area input[type="button"]:not(.btn):focus-visible,
.module-client-area button:not(.btn):focus-visible { outline: 0; box-shadow: var(--shadow-focus); }
.module-client-area .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.6rem; }

/* tabs: icon and label centred, scroll sideways instead of wrapping on small screens */
.product-details .nav-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.product-details .nav-tabs::-webkit-scrollbar { display: none; }
.product-details .nav-tabs .nav-link { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; padding: 0.8rem 1rem; }
.product-details .nav-tabs .nav-link i { opacity: 0.8; }

/* metrics table */
#metrics { overflow-x: auto; }
#metrics > p { margin: 0 0 1rem; color: var(--text-lifted); font-size: 0.92rem; line-height: 1.55; text-align: left; }
#metrics table { width: 100%; min-width: 32rem; margin: 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border-muted); border-radius: var(--rounding-md); overflow: hidden; font-size: 0.92rem; }
#metrics table th { padding: 0.75rem 0.85rem; background: var(--bg-lifted, #f8fafc); border: 0; border-bottom: 1px solid var(--border-muted); color: var(--text-lifted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; white-space: nowrap; }
#metrics table td { padding: 0.75rem 0.85rem; background: transparent !important; border: 0; border-bottom: 1px solid var(--border-muted); color: var(--text); text-align: left; vertical-align: middle; font-variant-numeric: tabular-nums; }
#metrics table tr:last-child td { border-bottom: 0; }
#metrics table tr, #metrics .table-striped tbody tr:nth-of-type(odd) { background-color: transparent !important; }
#metrics table td:nth-child(2), #metrics table td:nth-child(3) { white-space: nowrap; }
#metrics table td:first-child { font-weight: 600; }
#metrics table td:nth-child(2) { font-weight: 600; }
#metrics table td:nth-child(3), #metrics table td:nth-child(4) { color: var(--text-lifted); }
#metrics table tbody tr:hover td, #metrics table tr:hover td { background: var(--primary-subtle, rgba(37, 99, 235, 0.04)) !important; }
@media (max-width: 575.98px) { #metrics table th, #metrics table td { padding: 0.65rem 0.75rem; } }
/* <<< PRODUCT DETAILS: SERVER MODULE BUTTONS, TABS AND METRICS */

/* >>> CLOUDFLARE TURNSTILE (includes/farmedia-turnstile.tpl) */
.farmedia-turnstile { display: grid; justify-items: center; gap: 0.6rem; width: 100%; margin: 0.75rem 0 1rem; clear: both; }
.farmedia-turnstile .cf-turnstile { width: 100%; max-width: 400px; min-height: 65px; }
.farmedia-turnstile__error { width: 100%; margin: 0; text-align: left; }
/* <<< CLOUDFLARE TURNSTILE */

/* >>> TOGGLE SWITCHES (mailing list on register, SSO in security, ...)
   bootstrap-switch sizes itself by measuring its labels when the page starts; when that measure comes back 0 (fonts still
   loading, or the switch built while hidden) the switch shows as an empty box. Here the switch is drawn from its on/off
   state alone: the active label plus a knob, whatever widths the plugin wrote. Clicking still toggles it as before. */
.bootstrap-switch { width: auto !important; height: auto; border: 1px solid var(--border); border-radius: 999px; background: #fff; box-shadow: var(--shadow-xs); line-height: 1; vertical-align: middle; }
.bootstrap-switch .bootstrap-switch-container { display: inline-flex !important; align-items: stretch; width: auto !important; margin-left: 0 !important; transform: none !important; }
.bootstrap-switch .bootstrap-switch-handle-on,
.bootstrap-switch .bootstrap-switch-handle-off,
.bootstrap-switch .bootstrap-switch-label { display: inline-flex !important; align-items: center; justify-content: center; width: auto !important; height: auto; padding: 0.45rem 0.9rem; font-size: 13px; font-weight: 600; line-height: 1.2; border-radius: 999px; }
.bootstrap-switch .bootstrap-switch-label { width: 2.1rem !important; min-height: 1.9rem; padding: 0; margin: 0.15rem; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15); }
.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-handle-off,
.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-handle-on { display: none !important; }
.bootstrap-switch.bootstrap-switch-on { border-color: var(--primary); background: var(--primary); }
.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-handle-on { color: #fff; background: transparent; }
.bootstrap-switch.bootstrap-switch-off { background: var(--bg-muted, #f1f5f9); }
.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-handle-off { order: 2; color: var(--text-lifted); background: transparent; }
.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-label { order: 1; }
.bootstrap-switch.bootstrap-switch-focused { box-shadow: var(--shadow-focus); }
.bootstrap-switch.bootstrap-switch-disabled { opacity: 0.6; cursor: not-allowed; }
/* <<< TOGGLE SWITCHES */

.farmedia-turnstile__retry { width: 100%; max-width: 400px; margin: 0; font-size: 13px; }

/* Keep long account names and logos within the mobile header. */
@media (max-width: 767.98px) {
    header.header .topbar .btn-active-client { max-width: 45vw; }
    header.header .topbar .btn-active-client span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    header.header .navbar-brand { max-width: calc(100% - 100px); overflow-wrap: anywhere; }
    header.header .navbar-brand img { max-width: 100%; height: auto; }
    .primary-content, .primary-content .card-body { min-width: 0; }
}
.farmedia-turnstile__retry .btn { margin-top: 0.4rem; }

/* >>> MOBILE MENU WITHOUT JANK (< xl)
   Bootstrap opened the menu by animating its height for 0.35 s while it sat in the page flow, so every frame pushed the whole page
   below it down and the browser laid everything out again (≈20 layouts per opening) — the stutter. Now the menu floats over the
   page under the header, opens at once, and only fades and slides in (compositor-only: no layout during the animation). */
@media (max-width: 1199.98px) {
    header.header .main-navbar-wrapper { position: relative; padding: 0; }
    header.header .main-navbar-wrapper > .container { position: static; }
    header.header #mainNavbar {
        position: absolute; top: 100%; left: 12px; right: 12px; z-index: 1050;
        margin: 6px 0 0; max-height: calc(100dvh - 120px);
        overscroll-behavior: contain; contain: layout paint;
    }
    header.header #mainNavbar.collapsing { display: none !important; height: auto !important; transition: none !important; }
    header.header #mainNavbar.show { animation: nm-menu-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) both; }
}
@keyframes nm-menu-in { from { opacity: 0; transform: translate3d(0, -6px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@media (prefers-reduced-motion: reduce) { header.header #mainNavbar.show { animation: none; } }
/* <<< MOBILE MENU WITHOUT JANK */

/* >>> TICKET SIDEBAR: CC RECIPIENTS (viewticket)
   The CC email input and "Tambah" button form a single, perfectly aligned inline control across all devices:
   - Identical fixed height (42px desktop, 44px tablets and phones) with border-box sizing
   - Seamless joint: input rounded on the left with flat right border, button rounded on the right with a clean divider
   - Never stacks vertically or wraps to a second line (flex-wrap: nowrap !important)
   - Completely overrides mobile .form-inline .form-control / .btn width: 100% and margin-bottom: 8px rules
   - Scoped to #frmAddCcEmail, #sidebarTicketCc, [menuItemName="Ticket CC"], and .ticket-cc-email */
#sidebarTicketCc .card-footer,
#sidebarTicketCc .panel-footer,
[menuItemName="Ticket CC"] .card-footer,
[menuItemName="Ticket CC"] .panel-footer {
    padding: 12px 14px !important;
}

#sidebarTicketCc .card-footer::after,
[menuItemName="Ticket CC"] .card-footer::after {
    content: "";
    display: table;
    clear: both;
}

#sidebarTicketCc .card-footer [class*="col-"],
#sidebarTicketCc .card-footer .float-left,
#sidebarTicketCc .card-footer .float-right,
#sidebarTicketCc .card-footer .pull-left,
#sidebarTicketCc .card-footer .pull-right,
[menuItemName="Ticket CC"] .card-footer [class*="col-"],
[menuItemName="Ticket CC"] .card-footer .float-left,
[menuItemName="Ticket CC"] .card-footer .float-right {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure the form takes full width of the card footer */
#sidebarTicketCc #frmAddCcEmail,
[menuItemName="Ticket CC"] #frmAddCcEmail,
.sidebar-secondary #frmAddCcEmail,
.sidebar #frmAddCcEmail,
#frmAddCcEmail {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Flex row container: always horizontal, no wrapping */
#sidebarTicketCc #frmAddCcEmail .input-group,
[menuItemName="Ticket CC"] #frmAddCcEmail .input-group,
.sidebar-secondary #frmAddCcEmail .input-group,
.sidebar #frmAddCcEmail .input-group,
#frmAddCcEmail .input-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* The text input: flexible width, left rounded, flat right border */
#sidebarTicketCc #frmAddCcEmail .form-control,
#sidebarTicketCc #frmAddCcEmail input[type="email"],
#sidebarTicketCc #frmAddCcEmail input[type="text"],
[menuItemName="Ticket CC"] #frmAddCcEmail .form-control,
[menuItemName="Ticket CC"] #frmAddCcEmail input[type="email"],
[menuItemName="Ticket CC"] #frmAddCcEmail input[type="text"],
.sidebar-secondary #frmAddCcEmail .form-control,
.sidebar #frmAddCcEmail .form-control,
#frmAddCcEmail .form-control,
#frmAddCcEmail input[type="email"],
#frmAddCcEmail input[type="text"] {
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 14px !important;
    font-size: 14px !important;
    line-height: 40px !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-right: none !important;
    border-radius: 8px 0 0 8px !important;
    box-shadow: none !important;
    vertical-align: middle !important;
    position: relative !important;
    z-index: 1 !important;
}

#sidebarTicketCc #frmAddCcEmail .form-control:focus,
#sidebarTicketCc #frmAddCcEmail input[type="email"]:focus,
#sidebarTicketCc #frmAddCcEmail input[type="text"]:focus,
[menuItemName="Ticket CC"] #frmAddCcEmail .form-control:focus,
#frmAddCcEmail .form-control:focus,
#frmAddCcEmail input:focus {
    z-index: 3 !important;
    border-color: var(--primary, #2563eb) !important;
    border-right: 1px solid var(--primary, #2563eb) !important;
    margin-right: -1px !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

/* Button wrapper (.input-group-append / .input-group-btn) */
#sidebarTicketCc #frmAddCcEmail .input-group-append,
#sidebarTicketCc #frmAddCcEmail .input-group-btn,
[menuItemName="Ticket CC"] #frmAddCcEmail .input-group-append,
[menuItemName="Ticket CC"] #frmAddCcEmail .input-group-btn,
.sidebar-secondary #frmAddCcEmail .input-group-append,
.sidebar-secondary #frmAddCcEmail .input-group-btn,
.sidebar #frmAddCcEmail .input-group-append,
.sidebar #frmAddCcEmail .input-group-btn,
#frmAddCcEmail .input-group-append,
#frmAddCcEmail .input-group-btn {
    display: flex !important;
    flex-direction: row !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    align-items: stretch !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Submit button ("Tambah"): fixed height matching input, right rounded, border on all sides except left */
#sidebarTicketCc #frmAddCcEmail .btn,
#sidebarTicketCc #frmAddCcEmail input[type="submit"],
#sidebarTicketCc #frmAddCcEmail button,
[menuItemName="Ticket CC"] #frmAddCcEmail .btn,
[menuItemName="Ticket CC"] #frmAddCcEmail input[type="submit"],
[menuItemName="Ticket CC"] #frmAddCcEmail button,
.sidebar-secondary #frmAddCcEmail .btn,
.sidebar-secondary #frmAddCcEmail input[type="submit"],
.sidebar-secondary #frmAddCcEmail button,
.sidebar #frmAddCcEmail .btn,
.sidebar #frmAddCcEmail input[type="submit"],
.sidebar #frmAddCcEmail button,
#frmAddCcEmail .btn,
#frmAddCcEmail input[type="submit"],
#frmAddCcEmail button {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 40px !important;
    white-space: nowrap !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 1px solid #e2e8f0 !important;
    border-radius: 0 8px 8px 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
    vertical-align: middle !important;
    cursor: pointer !important;
}

#sidebarTicketCc #frmAddCcEmail .btn:hover,
#sidebarTicketCc #frmAddCcEmail .btn:focus,
#sidebarTicketCc #frmAddCcEmail input[type="submit"]:hover,
#sidebarTicketCc #frmAddCcEmail input[type="submit"]:focus,
#sidebarTicketCc #frmAddCcEmail button:hover,
#sidebarTicketCc #frmAddCcEmail button:focus,
[menuItemName="Ticket CC"] #frmAddCcEmail .btn:hover,
#frmAddCcEmail .btn:hover,
#frmAddCcEmail .btn:focus {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: var(--primary, #2563eb) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Recipient rows */
#sidebarTicketCc .list-group-item.ticket-cc-email,
#sidebarTicketCc .ticket-cc-email.list-group-item,
#sidebarTicketCc .ticket-cc-email,
[menuItemName="Ticket CC"] .ticket-cc-email,
.ticket-cc-email {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 10px 14px !important;
}

#sidebarTicketCc .ticket-cc-email .email,
[menuItemName="Ticket CC"] .ticket-cc-email .email,
.ticket-cc-email .email {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
    font-size: 13.5px !important;
    color: #334155 !important;
}

#sidebarTicketCc .ticket-cc-email .btn,
[menuItemName="Ticket CC"] .ticket-cc-email .btn,
.ticket-cc-email .btn,
.ticket-cc-email .delete-cc-email {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12.5px !important;
    border-radius: 6px !important;
    border: 1px solid #e2e8f0 !important;
    background-color: #fff !important;
    color: #ef4444 !important;
    box-shadow: none !important;
}

#sidebarTicketCc .ticket-cc-email .btn:hover,
.ticket-cc-email .btn:hover,
.ticket-cc-email .delete-cc-email:hover {
    background-color: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

#sidebarTicketCc #divCcEmailFeedback,
[menuItemName="Ticket CC"] #divCcEmailFeedback,
#divCcEmailFeedback {
    margin: 10px 0 0 !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}

/* Tablet & Mobile responsive overrides */
@media (max-width: 991.98px) {
    #sidebarTicketCc,
    [menuItemName="Ticket CC"] {
        overflow: hidden !important;
    }
    #sidebarTicketCc .card-footer,
    #sidebarTicketCc .panel-footer,
    [menuItemName="Ticket CC"] .card-footer {
        padding: 12px 16px !important;
    }
}

@media (max-width: 767.98px) {
    #sidebarTicketCc #frmAddCcEmail .input-group,
    [menuItemName="Ticket CC"] #frmAddCcEmail .input-group,
    .sidebar-secondary #frmAddCcEmail .input-group,
    .sidebar #frmAddCcEmail .input-group,
    #frmAddCcEmail .input-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        margin: 0 !important;
    }

    #sidebarTicketCc #frmAddCcEmail .form-control,
    #sidebarTicketCc #frmAddCcEmail input[type="email"],
    #sidebarTicketCc #frmAddCcEmail input[type="text"],
    [menuItemName="Ticket CC"] #frmAddCcEmail .form-control,
    .sidebar-secondary #frmAddCcEmail .form-control,
    .sidebar #frmAddCcEmail .form-control,
    #frmAddCcEmail .form-control,
    #frmAddCcEmail input[type="email"],
    #frmAddCcEmail input[type="text"] {
        flex: 1 1 auto !important;
        width: 1% !important;
        min-width: 0 !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
        line-height: 42px !important;
        padding: 0 12px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        border-radius: 8px 0 0 8px !important;
    }

    #sidebarTicketCc #frmAddCcEmail .input-group-append,
    #sidebarTicketCc #frmAddCcEmail .input-group-btn,
    [menuItemName="Ticket CC"] #frmAddCcEmail .input-group-append,
    .sidebar-secondary #frmAddCcEmail .input-group-append,
    .sidebar #frmAddCcEmail .input-group-append,
    #frmAddCcEmail .input-group-append,
    #frmAddCcEmail .input-group-btn {
        display: flex !important;
        flex-direction: row !important;
        flex: 0 0 auto !important;
        width: auto !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        margin: 0 !important;
    }

    #sidebarTicketCc #frmAddCcEmail .btn,
    #sidebarTicketCc #frmAddCcEmail input[type="submit"],
    #sidebarTicketCc #frmAddCcEmail button,
    [menuItemName="Ticket CC"] #frmAddCcEmail .btn,
    .sidebar-secondary #frmAddCcEmail .btn,
    .sidebar #frmAddCcEmail .btn,
    #frmAddCcEmail .btn,
    #frmAddCcEmail input[type="submit"],
    #frmAddCcEmail button {
        flex: 0 0 auto !important;
        width: auto !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        padding: 0 14px !important;
        font-size: 14px !important;
        line-height: 42px !important;
        margin: 0 !important;
        margin-bottom: 0 !important;
        border-radius: 0 8px 8px 0 !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 359.98px) {
    #sidebarTicketCc .card-footer,
    [menuItemName="Ticket CC"] .card-footer {
        padding: 10px 12px !important;
    }
    #sidebarTicketCc #frmAddCcEmail .form-control,
    #frmAddCcEmail .form-control {
        padding: 0 8px !important;
    }
    #sidebarTicketCc #frmAddCcEmail .btn,
    #sidebarTicketCc #frmAddCcEmail input[type="submit"],
    #sidebarTicketCc #frmAddCcEmail button,
    #frmAddCcEmail .btn {
        padding: 0 10px !important;
    }
}
/* <<< TICKET SIDEBAR: CC RECIPIENTS */

/* >>> SMALL-SCREEN FIXES (both modern themes) */
/* stacked form labels read left to right (the stock markup right-aligns them even when they sit above their field) */
@media (max-width: 575.98px) {
    label.col-form-label.text-right,
    .col-form-label.text-right,
    label.control-label.text-right { text-align: left !important; }
}

/* fields at 16px so iOS Safari does not zoom the page on focus */
@media (max-width: 767.98px) {
    input.form-control, select.form-control, textarea.form-control, .custom-select { font-size: 16px; }
}

/* error pages (404, 500, rate limit): the two buttons never touch each other */
.buttons .btn { margin: 4px 6px; }

/* knowledge base: search box keeps a gap from the category card above it when the sidebar stacks */
@media (max-width: 991.98px) {
    .kb-search { margin-top: 16px; }
}
/* <<< SMALL-SCREEN FIXES */

/* >>> RETURN TO ADMIN BUTTON ("Login as Client" banner): always on top of the page and tappable; its tooltip never sits in the way */
.btn-return-to-admin {
    z-index: 2000 !important;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}
.btn-return-to-admin > *,
.btn-return-to-admin i,
.btn-return-to-admin span { pointer-events: none; }   /* the click always lands on the link itself */
.tooltip { pointer-events: none; }
@media (max-width: 767.98px) {
    .btn-return-to-admin { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
}
/* <<< RETURN TO ADMIN BUTTON */

/* >>> RETURN TO ADMIN: fixed on every width now that the button lives in footer.tpl */
@media (max-width: 767.98px) {
    .btn-return-to-admin {
        position: fixed !important;
        right: 12px;
        bottom: 12px;
        z-index: 2000 !important;
        min-width: 44px;
        min-height: 44px;
        padding: 10px 12px !important;
        color: #fff !important;
        background-color: rgba(17, 24, 39, 0.92) !important;
        border-radius: 999px !important;
        box-shadow: 0 8px 22px -8px rgba(15, 23, 42, 0.55);
    }
}
/* <<< RETURN TO ADMIN (mobile) */

/* >>> RETURN TO ADMIN: unified clean pill on every width (replaces the legacy rotated 90deg side-tab from theme.css, which overlapped dark hero sections and looked broken) */
.btn-return-to-admin {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: 16px !important;
    bottom: 16px !important;
    transform: none !important;
    z-index: 2000 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px !important;
    color: #fff !important;
    background-color: rgba(17, 24, 39, 0.92) !important;
    border: 0;
    border-radius: 999px !important;
    box-shadow: 0 10px 26px -10px rgba(15, 23, 42, 0.6);
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-return-to-admin:hover,
.btn-return-to-admin:focus {
    color: #fff !important;
    background-color: #111827 !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}
.btn-return-to-admin i { font-size: 13px; }
.btn-return-to-admin span { display: inline-block !important; white-space: nowrap; }
@media (max-width: 480px) {
    .btn-return-to-admin span { display: none !important; }   /* icon-only circle on very small phones so it never eats the whole corner */
    .btn-return-to-admin { padding: 10px !important; width: 44px; justify-content: center; }
}
/* <<< RETURN TO ADMIN (unified) */
