/* ============================================================
   Farmedia Modern — dashboard layout (left sidebar + top bar)
   Loaded after custom.css / saas-clean.css so it wins the cascade.
   Layout and colours only: no markup, ids, names or JS hooks that
   WHMCS relies on are changed by this file.
   Re-brand by editing the variables below.
   ============================================================ */

:root {
    --fm-blue: #2563eb;
    --fm-blue-dark: #1d4ed8;
    --fm-blue-deep: #1e40af;
    --fm-sky: #0ea5e9;
    --fm-green: #1fa35a;
    --fm-green-dark: #178a4a;
    --fm-ink: #4b5563;
    --fm-ink-strong: #374151;
    --fm-muted: #6b7280;
    --fm-line: #e5e7eb;
    --fm-soft: #f3f4f6;
    --fm-tint: #dbeafe;
    --fm-side-w: 208px;
    --fm-side-bg: linear-gradient(180deg, #1d6af0 0%, #2563eb 38%, #1e8fe8 78%, #12b4d6 100%);
    --fm-hero-bg: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #0ea5e9 100%);
}

html { scroll-behavior: smooth; }
body.fm-app {
    background: #fff;
    color: var(--fm-ink);
    font-family: 'Plus Jakarta Sans', 'Open Sans', system-ui, sans-serif;
    min-height: 100vh;
}

/* ---------- shell ---------- */
.fm-shell { display: flex; min-height: 100vh; }
.fm-main { flex: 1 1 auto; min-width: 0; margin-left: var(--fm-side-w); padding: 0 24px 24px; display: flex; flex-direction: column; }
body.fm-noside .fm-main { margin-left: 0; max-width: 1180px; width: 100%; margin-right: auto; margin-left: auto; }

/* ---------- sidebar ---------- */
.fm-side {
    position: fixed; z-index: 1040; left: 0; top: 0; bottom: 0; width: var(--fm-side-w);
    background: var(--fm-side-bg); color: #fff; padding: 20px 8px 24px;
    overflow-y: auto; display: flex; flex-direction: column;
}
.fm-brand { display: block; padding: 4px 8px 16px; text-decoration: none !important; }
.fm-brand-img { max-width: 100%; max-height: 54px; width: auto; filter: brightness(0) invert(1); }
.fm-brand-text { color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.fm-side-title { padding: 10px 14px 12px; font-weight: 700; font-size: 1rem; color: #fff; }
.fm-nav { list-style: none; margin: 0; padding: 0; }
.fm-nav li { margin: 0 0 2px; }
.fm-nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
    color: rgba(255,255,255,.95) !important; font-size: .95rem; font-weight: 500; text-decoration: none !important;
    letter-spacing: .01em; transition: background .15s;
}
.fm-nav a:hover { background: rgba(255,255,255,.14); }
.fm-nav a.active { background: var(--fm-blue-deep); box-shadow: 0 2px 8px rgba(15, 23, 42, .18); }
.fm-nav .fm-i { width: 20px; text-align: center; font-size: 1.05rem; opacity: .95; }
.fm-nav .fm-badge {
    margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; line-height: 1;
    min-width: 20px; padding: 4px 6px; border-radius: 5px; background: #ef4444; color: #fff; text-align: center;
}
.fm-nav .fm-badge-soft { background: rgba(255,255,255,.25); }
.fm-nav-group { padding: 14px 14px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.fm-scrim { display: none; }

/* ---------- top bar ---------- */
body.fm-app header.header.fm-top {
    position: static; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    padding: 28px 0 14px; min-height: 0; height: auto;
}
.fm-top-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fm-title { margin: 0; font-size: 1.85rem; font-weight: 700; color: var(--fm-ink); letter-spacing: -.01em; line-height: 1.2; }
.fm-burger { display: none; border: 0; background: var(--fm-soft); width: 40px; height: 40px; border-radius: 10px; color: var(--fm-ink-strong); font-size: 1.1rem; }
.fm-top-brand img { max-height: 44px; }
.fm-top-brand { font-weight: 800; font-size: 1.3rem; color: var(--fm-blue) !important; text-decoration: none !important; }
.fm-top-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.fm-icon-btn { position: relative; border: 0; background: transparent; color: var(--fm-ink); font-size: 1.2rem; width: 40px; height: 40px; border-radius: 50%; }
.fm-icon-btn:hover { background: var(--fm-soft); }
.fm-dot { position: absolute; top: 2px; right: 0; font-style: normal; font-size: .65rem; font-weight: 700; background: #ef4444; color: #fff; min-width: 17px; height: 17px; border-radius: 9px; line-height: 17px; text-align: center; padding: 0 4px; }
.fm-buy {
    display: inline-flex; align-items: center; gap: 9px; background: var(--fm-green); color: #fff !important; font-weight: 700;
    padding: 11px 18px; border-radius: 8px; font-size: .95rem; text-decoration: none !important; transition: background .15s;
}
.fm-buy:hover { background: var(--fm-green-dark); }
.fm-cart-count { font-style: normal; background: #fff; color: var(--fm-green-dark); border-radius: 10px; font-size: .72rem; line-height: 1; padding: 3px 6px; }
.fm-cart-count.fm-cart-empty { display: none; }
.fm-user-toggle { display: flex; align-items: center; gap: 12px; color: var(--fm-ink-strong) !important; font-weight: 700; text-decoration: none !important; }
.fm-avatar { width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 4px solid var(--fm-blue-dark); color: var(--fm-blue-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.fm-user-name { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-user-caret { font-size: .7rem; color: var(--fm-ink); }
.fm-user-menu { border: 1px solid var(--fm-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .12); padding: 6px; min-width: 220px; }
.fm-user-menu .dropdown-item { border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.fm-login-link { font-weight: 700; color: var(--fm-blue) !important; text-decoration: none !important; }
.fm-login-alt { border: 1px solid var(--fm-blue); padding: 8px 16px; border-radius: 8px; }

/* ---------- breadcrumb ---------- */
body.fm-app .master-breadcrumb.fm-crumb { background: transparent; border: 0; padding: 0 0 20px; margin: 0; }
body.fm-app .fm-crumb .container { max-width: none; padding: 0; }
body.fm-app .fm-crumb .breadcrumb { display: inline-flex; flex-wrap: wrap; margin: 0; padding: 6px 16px; background: var(--fm-soft); border-radius: 999px; font-size: .8rem; }
body.fm-app .fm-crumb .breadcrumb-item a { color: var(--fm-blue); }
body.fm-app .fm-crumb .breadcrumb-item.active { color: var(--fm-ink); }
body.fm-app .fm-crumb .breadcrumb-item + .breadcrumb-item::before { color: #9ca3af; }

/* ---------- main body ---------- */
body.fm-app section#main-body { background: transparent; padding: 0; flex: 1 0 auto; }
body.fm-app .fm-main #main-body > .container { max-width: none; width: 100%; padding: 0; }
body.fm-app .fm-main #main-body > .container > .row { margin-left: -10px; margin-right: -10px; }
body.fm-app .fm-main #main-body > .container > .row > [class*="col-"] { padding-left: 10px; padding-right: 10px; }
body.fm-app .primary-content > .card:first-child { margin-top: 0; }

/* page sidebars (My Products / View / Actions ...) */
body.fm-app .sidebar .card-sidebar { border: 1px solid var(--fm-line); border-radius: 10px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); overflow: hidden; background: #fff; }
body.fm-app .sidebar .card-sidebar .card-header { background: #fff; border-bottom: 1px solid var(--fm-line); padding: 14px 16px; }
body.fm-app .sidebar .card-sidebar .card-title { font-size: .92rem; font-weight: 700; color: var(--fm-ink-strong); }
body.fm-app .sidebar .card-sidebar .list-group-item { border: 0; border-bottom: 1px solid var(--fm-line); padding: 12px 16px; font-size: .9rem; color: var(--fm-ink); background: #fff; }
body.fm-app .sidebar .card-sidebar .list-group-item:last-child { border-bottom: 0; }
body.fm-app .sidebar .card-sidebar .list-group-item.active,
body.fm-app .sidebar .card-sidebar .list-group-item:hover { background: #eaf2ff; color: var(--fm-blue); font-weight: 600; }
body.fm-app .sidebar .card-sidebar .badge { background: var(--fm-tint); color: var(--fm-blue); border-radius: 6px; font-size: .75rem; min-width: 28px; padding: 5px 6px; font-weight: 700; }
body.fm-app .sidebar .card-sidebar .card-body { font-size: .92rem; line-height: 1.6; padding: 18px 16px; }

/* generic cards, tables, forms */
body.fm-app .card { border: 1px solid var(--fm-line); border-radius: 10px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
body.fm-app .primary-content .card-header { background: #fff; border-bottom: 1px solid var(--fm-line); }
body.fm-app .primary-content > .card, body.fm-app .primary-content > .table-container { background: #fff; }
body.fm-app .table-container { border: 1px solid var(--fm-line); border-radius: 10px; padding: 22px 18px 14px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
body.fm-app .table-container .dataTables_info, body.fm-app .table-container .dataTables_length { color: var(--fm-ink); font-size: .9rem; }
body.fm-app .table-container table.table thead th { background: #e5e7eb; color: var(--fm-ink-strong); font-weight: 700; border: 0; padding: 14px 12px; font-size: .92rem; }
body.fm-app .table-container table.table thead th:first-child { border-radius: 6px 0 0 6px; }
body.fm-app .table-container table.table thead th:last-child { border-radius: 0 6px 6px 0; }
body.fm-app .table-container table.table tbody td { padding: 16px 12px; vertical-align: middle; border-top: 1px solid var(--fm-line); color: var(--fm-ink-strong); font-size: .93rem; }
body.fm-app .table-container table.table tbody tr:hover td { background: #f8fafc; }
body.fm-app .table-container .dataTables_filter input { border: 1px solid #cbd5e1; border-radius: 6px; padding: 9px 12px 9px 38px; width: 320px; max-width: 100%; }
body.fm-app .pagination .page-item.active .page-link { background: var(--fm-blue); border-color: var(--fm-blue); color: #fff; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0; }
body.fm-app .pagination .page-link { border: 0; background: transparent; color: #9ca3af; }
body.fm-app .pagination .page-item:not(.active):not(.disabled) .page-link { color: var(--fm-blue); }
body.fm-app .label.status, body.fm-app .badge.status, body.fm-app .status {
    border-radius: 999px; font-size: .72rem; font-weight: 600; padding: 4px 12px; background: #f3f4f6; color: #6b7280;
}
body.fm-app .status-active, body.fm-app .status-paid, body.fm-app .label-success { background: #dcfce7 !important; color: #15803d !important; }
body.fm-app .status-unpaid, body.fm-app .status-overdue, body.fm-app .status-terminated, body.fm-app .status-open { background: #fee2e2 !important; color: #b91c1c !important; }
body.fm-app .status-pending, body.fm-app .status-suspended, body.fm-app .status-payment-pending { background: #fef3c7 !important; color: #b45309 !important; }
body.fm-app .btn-primary, body.fm-app .btn-default.btn-primary { background: var(--fm-blue); border-color: var(--fm-blue); }
body.fm-app .btn-primary:hover { background: var(--fm-blue-dark); border-color: var(--fm-blue-dark); }
body.fm-app .btn-success { background: var(--fm-green); border-color: var(--fm-green); }
body.fm-app .btn-success:hover { background: var(--fm-green-dark); border-color: var(--fm-green-dark); }

/* ---------- dashboard: stat tiles ---------- */
.fm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.fm-stat { display: block; background: #fff; border: 1px solid var(--fm-line); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 18px rgba(37, 99, 235, .10); text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.fm-stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 99, 235, .18); }
.fm-stat-body { position: relative; padding: 22px 18px 16px; min-height: 100px; overflow: hidden; }
.fm-stat-body strong { display: block; font-size: 2.3rem; line-height: 1.1; font-weight: 700; color: var(--fm-blue); }
.fm-stat-body span { color: var(--fm-blue); font-size: .95rem; }
.fm-stat-art { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 5.2rem; color: #e5e7eb; }
.fm-stat-foot { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, var(--fm-blue) 0%, #1d8bef 100%); color: #fff; font-weight: 700; padding: 13px 16px; font-size: 1rem; }

/* ---------- dashboard: hero + promo ---------- */
.fm-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) 283px; gap: 16px; margin-bottom: 24px; }
.fm-hero { position: relative; background: var(--fm-hero-bg); border-radius: 20px; padding: 44px 28px 28px; color: #fff; text-align: center; overflow: hidden; box-shadow: 0 14px 34px rgba(37, 99, 235, .25); }
.fm-hero::before, .fm-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.fm-hero::before { width: 360px; height: 360px; left: -120px; top: -140px; }
.fm-hero::after { width: 300px; height: 300px; right: -90px; top: -110px; }
.fm-hero > * { position: relative; z-index: 1; }
.fm-hero h2 { color: #fff; font-size: 2rem; font-weight: 800; margin: 0 0 10px; }
.fm-hero p { max-width: 640px; margin: 0 auto 26px; color: rgba(255,255,255,.95); font-size: 1rem; }
.fm-hero-input { max-width: 580px; margin: 0 auto; display: flex; background: #fff; border-radius: 10px; padding: 4px; box-shadow: 0 0 0 6px rgba(255,255,255,.28); }
.fm-hero-input input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; padding: 14px 16px; font-size: 1.05rem; color: var(--fm-ink-strong); }
.fm-hero-btn { border: 0; background: #1672e6; color: #fff; font-weight: 700; font-size: 1.05rem; padding: 0 34px; border-radius: 7px; cursor: pointer; }
.fm-hero-btn:hover { background: var(--fm-blue-dark); }
.fm-hero-btn-alt { background: var(--fm-green); margin-left: 4px; }
.fm-hero-btn-alt:hover { background: var(--fm-green-dark); }
.fm-hero .domainchecker-homepage-captcha, .fm-hero .recaptcha-container { margin-top: 12px; }
.fm-tlds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.fm-tld { position: relative; background: #fff; border-radius: 14px; padding: 30px 12px 14px; color: var(--fm-ink-strong); box-shadow: 0 8px 20px rgba(15, 23, 42, .14); }
.fm-tld-badge { position: absolute; right: 0; top: 0; background: #fbbf24; color: #78350f; font-size: .72rem; font-weight: 700; padding: 6px 12px; border-radius: 0 14px 0 12px; }
.fm-tld-badge.fm-tld-new { background: #34d399; color: #064e3b; }
.fm-tld-badge.fm-tld-hot { background: #fb7185; color: #fff; }
.fm-tld-ext { font-size: 2.1rem; font-weight: 700; color: #374151; letter-spacing: -.02em; line-height: 1.1; overflow-wrap: anywhere; }
.fm-tld-price { margin-top: 14px; font-weight: 700; font-size: 1.15rem; color: var(--fm-ink-strong); }
.fm-tld-per { font-size: .78rem; color: var(--fm-muted); text-transform: uppercase; margin-bottom: 12px; }
.fm-tld-buy { display: block; background: #2bb673; color: #fff !important; font-weight: 700; border-radius: 8px; padding: 10px 0; text-decoration: none !important; }
.fm-tld-buy:hover { background: var(--fm-green-dark); }

.fm-promo { background: #fff; border: 1px solid var(--fm-line); border-radius: 16px; box-shadow: 0 6px 18px rgba(15, 23, 42, .08); display: flex; flex-direction: column; overflow: hidden; }
.fm-promo-slides { flex: 1 1 auto; }
.fm-promo-slide { display: none; height: 100%; flex-direction: column; }
.fm-promo-slide.is-active { display: flex; }
.fm-promo-art { position: relative; height: 128px; background: var(--fm-hero-bg); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.fm-promo-art i { font-size: 2.4rem; }
.fm-promo-art span { font-size: .8rem; font-weight: 600; background: rgba(255,255,255,.2); padding: 3px 12px; border-radius: 999px; }
.fm-promo-slide h3 { margin: 18px 20px 8px; font-size: 1.15rem; font-weight: 700; color: var(--fm-blue-deep); line-height: 1.4; }
.fm-promo-slide p { margin: 0 20px 14px; color: var(--fm-ink); font-size: .9rem; line-height: 1.6; flex: 1 1 auto; overflow-wrap: anywhere; }
.fm-promo-cta { align-self: flex-start; margin: 0 20px 14px; background: var(--fm-green); color: #fff !important; font-weight: 700; padding: 9px 26px; border-radius: 8px; text-decoration: none !important; }
.fm-promo-nav { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 16px; }
.fm-promo-nav button { border: 0; background: var(--fm-soft); width: 38px; height: 38px; border-radius: 8px; color: var(--fm-ink); }
.fm-promo-count { font-size: .85rem; color: var(--fm-muted); }
.fm-promo-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--fm-muted); padding: 30px; }
.fm-promo-empty i { font-size: 2.2rem; margin-bottom: 8px; }

/* ---------- dashboard: bottom cards ---------- */
.fm-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.fm-card { position: relative; background: #fff; border: 1px solid var(--fm-line); border-radius: 14px; box-shadow: 0 6px 18px rgba(15, 23, 42, .07); display: flex; flex-direction: column; overflow: hidden; }
.fm-card-tag { align-self: flex-start; font-size: .78rem; color: var(--fm-blue); padding: 8px 18px; border: 1px solid var(--fm-line); border-top: 0; border-left: 0; border-radius: 0 0 12px 0; background: #fff; }
.fm-card-body { padding: 18px 24px 20px; flex: 1 1 auto; }
.fm-card:not(:has(.fm-card-tag)) .fm-card-body { padding-top: 26px; }
.fm-card-body h3 { font-size: 1.5rem; font-weight: 700; color: var(--fm-ink-strong); margin: 0 0 12px; }
.fm-list { list-style: none; margin: 0; padding: 0; }
.fm-list li { padding: 7px 0; font-size: .95rem; }
.fm-list a { color: var(--fm-ink-strong); text-decoration: none; }
.fm-list a:hover { color: var(--fm-blue); }
.fm-list-bullets li { list-style: disc; margin-left: 18px; padding: 3px 0; }
.fm-list-services li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--fm-soft); }
.fm-list-services li:last-child { border-bottom: 0; }
.fm-list-services a { display: flex; flex-direction: column; min-width: 0; }
.fm-list-services strong { font-weight: 600; }
.fm-list-services span { font-size: .82rem; color: var(--fm-muted); overflow-wrap: anywhere; }
.fm-list-services em { font-style: normal; font-size: .8rem; color: var(--fm-muted); white-space: nowrap; }
.fm-muted { color: var(--fm-muted); }
.fm-card-foot { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, var(--fm-blue) 0%, #1d8bef 100%); color: #fff !important; font-weight: 700; padding: 15px 28px; text-decoration: none !important; }

/* client-home panels that WHMCS and addon modules add (kept, restyled) */
body.fm-app .client-home-cards .card { margin-bottom: 16px; }
body.fm-app .client-home-cards .card-title { font-size: 1.05rem; font-weight: 700; color: var(--fm-ink-strong); }

/* ---------- footer ---------- */
body.fm-app footer.fm-footer { background: transparent; border: 0; padding: 28px 0 0; margin-top: auto; color: var(--fm-muted); }
.fm-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fm-footer-social { display: flex; gap: 8px; padding: 0; }
.fm-footer-social li { margin: 0; }
.fm-footer-social a { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: #374151; color: #fff !important; align-items: center; justify-content: center; }
.fm-footer-links .nav-link { color: var(--fm-muted); font-size: .88rem; padding: .25rem .75rem; }
.fm-footer-locale { background: var(--fm-soft); color: var(--fm-ink); border-radius: 8px; }
body.fm-app footer.fm-footer .copyright { font-size: .85rem; color: var(--fm-muted); }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
    .fm-tlds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fm-hero-row { grid-template-columns: minmax(0, 1fr); }
    .fm-promo-slide.is-active { flex-direction: row; flex-wrap: wrap; }
    .fm-promo-art { width: 100%; }
}
@media (max-width: 991.98px) {
    .fm-side { transform: translateX(-100%); transition: transform .22s ease; box-shadow: none; }
    body.fm-menu-open .fm-side { transform: none; box-shadow: 0 0 40px rgba(15, 23, 42, .4); }
    .fm-scrim { display: block; position: fixed; inset: 0; z-index: 1030; background: rgba(15, 23, 42, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
    body.fm-menu-open .fm-scrim { opacity: 1; pointer-events: auto; }
    .fm-main { margin-left: 0; padding: 0 16px 20px; }
    .fm-burger { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
    body.fm-app header.header.fm-top { padding-top: 18px; }
    .fm-title { font-size: 1.4rem; }
    .fm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fm-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
    .fm-user-name, .fm-user-caret, .fm-buy span { display: none; }
    .fm-buy { padding: 11px 13px; }
    .fm-top-right { gap: 8px; }
    .fm-hero { padding: 30px 16px 20px; border-radius: 16px; }
    .fm-hero h2 { font-size: 1.45rem; }
    .fm-hero-input { flex-wrap: wrap; }
    .fm-hero-input input { flex-basis: 100%; }
    .fm-hero-btn { padding: 12px 18px; flex: 1 1 0; }
    .fm-tlds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .fm-tld-ext { font-size: 1.7rem; }
    body.fm-app .table-container { padding: 14px 10px; }
    body.fm-app .table-container .dataTables_filter input { width: 100%; }
}
@media (max-width: 479.98px) {
    .fm-stat-body strong { font-size: 1.8rem; }
    .fm-stat-art { font-size: 3.6rem; }
    .fm-stat-foot { padding: 11px 12px; font-size: .9rem; }
}

/* ---------- responsive safety net: nothing may push the page wider than the screen ---------- */
body.fm-app { overflow-x: hidden; }
.fm-main, .primary-content, #main-body, #main-body .row > [class*="col-"] { min-width: 0; }
.fm-main img, .fm-main video, .fm-main iframe, .fm-main canvas, .fm-main svg { max-width: 100%; }
.fm-main img { height: auto; }
.fm-main pre, .fm-main code { white-space: pre-wrap; overflow-wrap: anywhere; }
.fm-main .table-container, .fm-main .table-responsive, .fm-main .tab-content > .tab-pane > .table-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fm-main .table-container table.table { width: 100% !important; }
.fm-main .btn-group, .fm-main .btn-toolbar { flex-wrap: wrap; }
.fm-main .btn-group > .btn { flex: 0 1 auto; white-space: normal; }
.fm-main .form-inline, .fm-main .input-group { flex-wrap: wrap; }
.fm-main .input-group > .form-control { min-width: 0; }
.fm-main .modal-dialog { max-width: calc(100vw - 16px); }
.fm-main .dataTables_wrapper .dataTables_filter, .fm-main .dataTables_wrapper .dataTables_length { max-width: 100%; }
.fm-main h1, .fm-main h2, .fm-main h3, .fm-main h4, .fm-main .list-group-item, .fm-main .card-body, .fm-main label, .fm-main p { overflow-wrap: break-word; word-break: normal; }
.fm-main .table-container table.table td, .fm-main .table-container table.table th { overflow-wrap: normal; word-break: normal; }
.fm-main .table-container table.table td a { overflow-wrap: break-word; }
@media (max-width: 767.98px) {
    .fm-main .table-container table.table td, .fm-main .table-container table.table th { padding: 12px 8px; font-size: .86rem; }
    .fm-main .table-container .dataTables_wrapper .dataTables_paginate { float: none; text-align: center; margin-top: 10px; }
    .fm-main .table-container .dataTables_filter { float: none; text-align: left; margin-bottom: 10px; }
    .fm-main .table-container .dataTables_filter label { display: block; }
    .fm-main .table-container .dataTables_filter input { width: 100%; margin-left: 0; }
    .fm-main .card-body, .fm-main .card-header { padding: 14px; }
    .fm-main .sidebar { margin-bottom: 4px; }
}
.fm-top-left { flex: 1 1 auto; }
.fm-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479.98px) { .fm-title { font-size: 1.2rem; } .fm-avatar { width: 40px; height: 40px; border-width: 3px; } }
@media (max-width: 767.98px) {
    .fm-main .table-container table.table td, .fm-main .table-container table.table th { padding: 10px 6px; font-size: .8rem; }
    .fm-main .table-container table.table th { white-space: nowrap; }
    .fm-main .table-container table.table td.text-center, .fm-main .table-container table.table td:first-child { text-align: left !important; }
    .fm-main .table-container table.table .label.status { padding: 3px 8px; }
}
@media (max-width: 767.98px) {
    /* a wide list scrolls sideways inside its own card instead of crushing its text one letter per line */
    .fm-main .table-container table.table { min-width: 540px; }
    .fm-main .table-container table.table td { min-width: 70px; }
    .fm-main .table-container table.table .ticket-subject { display: inline-block; min-width: 150px; }
}
.fm-tld-ext { font-size: clamp(1.1rem, 1.55vw, 2.1rem); overflow-wrap: normal; word-break: keep-all; white-space: nowrap; }
.fm-tld-price { font-size: clamp(.95rem, 1.2vw, 1.15rem); white-space: nowrap; }
@media (max-width: 1199.98px) { .fm-tld-ext { font-size: 1.9rem; } .fm-tld-price { font-size: 1.1rem; } }
@media (max-width: 767.98px) { .fm-tld-ext { font-size: 1.5rem; } }
.fm-hero { display: flex; flex-direction: column; justify-content: center; }

/* =====================================================================
   Typography + density pass — compact, like the reference (nothing oversized)
   ===================================================================== */
body.fm-app { font-size: 14px; line-height: 1.5; }
body.fm-app .fm-main h1, body.fm-app .fm-main h2, body.fm-app .fm-main h3 { letter-spacing: -.01em; }
.fm-title { font-size: 1.65rem; }
.fm-nav a { font-size: .9rem; padding: 9px 13px; }
.fm-side-title { font-size: .95rem; }
.fm-buy { font-size: .9rem; padding: 10px 16px; }
.fm-user-toggle { font-size: .9rem; }
.fm-avatar { width: 44px; height: 44px; border-width: 4px; }
body.fm-app .primary-content .card-title, body.fm-app .client-home-cards .card-title { font-size: 1rem; font-weight: 700; }
body.fm-app .primary-content h1, body.fm-app .primary-content .h1 { font-size: 1.5rem; }
body.fm-app .primary-content h2, body.fm-app .primary-content .h2 { font-size: 1.3rem; }
body.fm-app .primary-content h3, body.fm-app .primary-content .h3 { font-size: 1.1rem; }
body.fm-app .primary-content .form-control, body.fm-app .primary-content .custom-select { font-size: .9rem; }
body.fm-app .primary-content .btn { font-size: .88rem; }
body.fm-app .sidebar .card-sidebar .card-title { font-size: .88rem; }
body.fm-app .sidebar .card-sidebar .list-group-item { font-size: .86rem; padding: 10px 14px; }
body.fm-app .table-container table.table thead th, body.fm-app .table-container table.table tbody td { font-size: .86rem; }

/* dashboard blocks */
.fm-stat-body { padding: 18px 16px 12px; min-height: 92px; }
.fm-stat-body strong { font-size: 2rem; }
.fm-stat-body span { font-size: .88rem; }
.fm-stat-art { font-size: 4.4rem; }
.fm-stat-foot { font-size: .92rem; padding: 11px 16px; }
.fm-hero { padding: 34px 24px 24px; }
.fm-hero h2 { font-size: 1.65rem; }
.fm-hero p { font-size: .92rem; margin-bottom: 20px; }
.fm-hero-input input { font-size: .95rem; padding: 12px 14px; }
.fm-hero-btn { font-size: .95rem; padding: 0 26px; }
.fm-tlds { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-top: 26px; }
.fm-tld { padding: 26px 10px 12px; min-width: 0; }
.fm-tld-ext { font-size: 1.35rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.fm-tld-price { font-size: .95rem; margin-top: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.fm-tld-per { font-size: .7rem; margin-bottom: 10px; }
.fm-tld-buy { font-size: .85rem; padding: 8px 0; }
.fm-tld-badge { font-size: .65rem; padding: 4px 10px; }
.fm-promo-art { height: 104px; }
.fm-promo-art i { font-size: 2rem; }
.fm-promo-slide h3 { font-size: 1rem; margin: 14px 16px 6px; }
.fm-promo-slide p { font-size: .84rem; margin: 0 16px 12px; }
.fm-promo-cta { margin: 0 16px 12px; padding: 8px 22px; font-size: .86rem; }
.fm-card-body { padding: 14px 20px 16px; }
.fm-card:not(:has(.fm-card-tag)) .fm-card-body { padding-top: 18px; }
.fm-card-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.fm-list li { font-size: .88rem; padding: 5px 0; }
.fm-card-foot { padding: 12px 22px; font-size: .9rem; }
.fm-card-tag { font-size: .72rem; padding: 6px 14px; }

/* WHMCS / addon panels under the dashboard: compact cards */
body.fm-app .client-home-cards .card { margin-bottom: 14px; border-radius: 12px; }
body.fm-app .client-home-cards .card-header { padding: 12px 16px; }
body.fm-app .client-home-cards .card-body { padding: 14px 16px; min-height: 0; font-size: .86rem; }
body.fm-app .client-home-cards .card-body p { margin-bottom: .4rem; }
body.fm-app .client-home-cards .card-footer { padding: 6px 16px; min-height: 0; background: #fff; border-top: 1px solid var(--fm-line); font-size: .8rem; }
body.fm-app .client-home-cards .card-footer:empty, body.fm-app .client-home-cards .card-footer:blank { display: none; }
body.fm-app .client-home-cards .list-group-item { padding: 9px 16px; font-size: .86rem; }
body.fm-app .client-home-cards .btn-xs, body.fm-app .client-home-cards .btn-sm { font-size: .75rem; padding: 4px 10px; }
body.fm-app .client-home-cards .card-title i { font-size: 1rem; }

/* email-verification / network banners */
body.fm-app .verification-banner { padding: 8px 0; border-radius: 10px; margin-bottom: 14px; font-size: .86rem; }
body.fm-app .verification-banner .container { max-width: none; padding: 0 14px; }
body.fm-app .verification-banner i { font-size: 1.2rem; margin-right: 8px; }
body.fm-app .verification-banner .btn { font-size: .78rem; padding: 6px 10px; }
body.fm-app .network-issue-alert { font-size: .85rem; padding: 8px 0; border-radius: 10px; margin-bottom: 10px; }
body.fm-app .network-issue-alert .container { max-width: none; padding: 0 14px; }

/* footer: dark-footer rules of the old theme made these white-on-white */
body.fm-app footer.fm-footer, body.fm-app footer.fm-footer a, body.fm-app footer.fm-footer .nav-link { color: var(--fm-muted); }
body.fm-app footer.fm-footer .nav-link:hover, body.fm-app footer.fm-footer a:hover { color: var(--fm-blue); background: transparent; }
body.fm-app footer.fm-footer .fm-footer-social a { color: #fff; background: #374151; }
body.fm-app footer.fm-footer .fm-footer-locale, body.fm-app footer.fm-footer .btn { color: var(--fm-ink); background: var(--fm-soft); border-color: var(--fm-line); border-radius: 8px; }
body.fm-app footer.fm-footer .copyright { color: var(--fm-muted); border-top: 1px solid var(--fm-line); margin: 14px 0 0; padding-top: 14px; font-size: .8rem; text-align: left; }
.fm-footer-links .nav-link { font-size: .8rem; }

@media (max-width: 991.98px) { .fm-title { font-size: 1.3rem; } }
@media (max-width: 767.98px) {
    body.fm-app { font-size: 13.5px; }
    .fm-hero h2 { font-size: 1.3rem; }
    .fm-stat-body strong { font-size: 1.7rem; }
    .fm-tlds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   Login / Register / Forgot password - split screen
   (design only: the forms, field names and handlers are untouched)
   ===================================================================== */
body.fm-noside { background: #fff; }
body.fm-noside .fm-shell { display: flex; min-height: 100vh; }
.fm-auth-art {
    position: sticky; top: 0; height: 100vh; flex: 0 0 50%; max-width: 50%;
    background: linear-gradient(150deg, #1ea0f5 0%, #2563eb 46%, #1e6fe0 68%, #14b8a6 100%);
    color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 32px;
    overflow: hidden;
}
.fm-auth-art::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.06); left: -160px; top: -180px; }
.fm-auth-art::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.05); right: -140px; bottom: -120px; }
.fm-auth-art-in { position: relative; z-index: 1; max-width: 420px; }
.fm-auth-logo { display: inline-block; margin-bottom: 28px; text-decoration: none !important; }
.fm-auth-logo img { max-width: 200px; max-height: 70px; width: auto; filter: brightness(0) invert(1); }
.fm-auth-logo span { color: #fff; font-size: 1.8rem; font-weight: 800; }
.fm-auth-tagline { margin: 0; font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.95); }
.fm-auth-copy { position: absolute; z-index: 1; bottom: 28px; left: 0; right: 0; font-size: .85rem; color: rgba(255,255,255,.9); }

body.fm-noside .fm-main { flex: 1 1 50%; max-width: 50%; width: auto; margin: 0; padding: 0 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; }
body.fm-noside section#main-body { width: 100%; flex: 0 0 auto; }
body.fm-noside .fm-main #main-body > .container { max-width: 500px; padding: 40px 0; margin: 0 auto; }
body.fm-noside .fm-main #main-body > .container > .row { margin: 0; }
body.fm-noside .fm-main #main-body > .container > .row > .primary-content { padding: 0; }
body.fm-noside footer.fm-footer { display: none; }
body.fm-noside .providerLinkingFeedback:empty { display: none; }

/* strip the card chrome */
body.fm-noside .primary-content .card.mw-540, body.fm-noside .login-form .card.mw-540, body.fm-noside .primary-content > .row > .card {
    max-width: 100%; width: 100%; margin: 0 !important; border: 0; box-shadow: none; background: transparent; border-radius: 0;
}
body.fm-noside .primary-content .card-body { padding: 0 !important; background: transparent; }
body.fm-noside .primary-content .card-footer { background: transparent; border: 0; padding: 18px 0 0 !important; text-align: center; }
body.fm-noside .primary-content .card-footer small { font-size: .95rem; color: var(--fm-ink); }
body.fm-noside .primary-content .card-footer a { font-size: .95rem; font-weight: 600; color: var(--fm-sky) !important; }
body.fm-noside .primary-content h6.h3, body.fm-noside .primary-content .card-body > .mb-4 > .h3 { font-size: 1.75rem; font-weight: 700; color: var(--fm-ink); line-height: 1.25; margin-bottom: 6px; }
body.fm-noside .primary-content .text-muted { color: var(--fm-ink) !important; font-size: .95rem; }

/* filled inputs with the icon inside */
body.fm-noside .input-group-merge { background: #e9effb; border-radius: 6px; flex-wrap: nowrap; align-items: center; border: 0; }
body.fm-noside .input-group-merge .input-group-text { background: transparent; border: 0; color: var(--fm-sky); padding: 0 6px 0 16px; font-size: 1.1rem; }
body.fm-noside .input-group-merge .form-control { background: transparent; border: 0; box-shadow: none; height: 50px; font-size: .95rem; color: #111827; }
body.fm-noside .input-group-merge .btn-reveal-pw { background: transparent; border: 0; color: #4b5563; padding: 0 16px; }
body.fm-noside .input-group-merge:focus-within { box-shadow: 0 0 0 2px rgba(37, 99, 235, .35); }
body.fm-noside .form-group { margin-bottom: 16px; }
/* labels stay for screen readers; the placeholder and icon do the talking (as in the design) */
body.fm-noside .login-form label.form-control-label,
body.fm-noside .primary-content form > .form-group > label[for="inputEmail"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* "Forgot password?" sits under the password field */
body.fm-noside .login-form .form-group.mb-4 { display: flex; flex-direction: column; margin-bottom: 8px !important; }
body.fm-noside .login-form .form-group.mb-4 > .d-flex { order: 2; justify-content: flex-start !important; margin-top: 10px; }
body.fm-noside .login-form .form-group.mb-4 > .d-flex .mb-2 { margin: 0 !important; }
body.fm-noside .login-form .form-group.mb-4 > .input-group { order: 1; }
body.fm-noside .login-form a.small { font-size: .95rem !important; color: var(--fm-sky) !important; }
/* button: full width, remember-me above it */
body.fm-noside .login-form .card-body { display: flex; flex-direction: column; }
body.fm-noside .login-form .card-body > .text-right { order: 8; text-align: left !important; margin: 4px 0 14px; }
body.fm-noside .login-form .card-body > .float-left { order: 9; float: none !important; width: 100%; }
body.fm-noside .login-form .card-body > .farmedia-turnstile, body.fm-noside .login-form .card-body > .text-center { order: 7; margin: 14px 0 6px; }
body.fm-noside .primary-content .btn-primary { background: #0f7be8; border-color: #0f7be8; border-radius: 4px; font-weight: 700; font-size: .95rem; }
body.fm-noside .primary-content .btn-primary:hover { background: var(--fm-blue-dark); border-color: var(--fm-blue-dark); }
body.fm-noside .login-form .btn-primary, body.fm-noside #resetPasswordButton { display: block; width: 100%; padding: 13px 16px; }
body.fm-noside .form-group.text-center .btn { width: 100%; }
body.fm-noside .login-form .form-check-input { position: static; margin: 0 6px 0 0; }
body.fm-noside .login-form .text-right label { font-size: .88rem; color: var(--fm-ink); margin: 0; }
body.fm-noside .cf-turnstile { margin: 0 auto; }

/* register: wider column, same filled inputs, flat sections */
body.fm-page-clientregister .fm-main { justify-content: flex-start; }
body.fm-page-clientregister .fm-main #main-body > .container { max-width: 720px; padding: 40px 0 56px; }
body.fm-page-clientregister .primary-content .card { border: 0; box-shadow: none; background: transparent; margin-bottom: 8px; }
body.fm-page-clientregister .primary-content .card-title { font-size: 1.15rem; font-weight: 700; color: var(--fm-ink-strong); margin-bottom: 14px; }
body.fm-page-clientregister .primary-content .card-body { padding: 8px 0 !important; }
body.fm-page-clientregister .primary-content label, body.fm-page-clientregister .primary-content .form-control-label { font-size: .82rem; font-weight: 600; color: var(--fm-ink); margin-bottom: 4px; }
body.fm-noside .primary-content .form-control, body.fm-noside .primary-content .custom-select { background-color: #e9effb; border: 0; border-radius: 6px; height: 46px; font-size: .92rem; box-shadow: none; }
body.fm-noside .primary-content textarea.form-control { height: auto; }
body.fm-noside .primary-content .form-control:focus { box-shadow: 0 0 0 2px rgba(37, 99, 235, .35); background-color: #e9effb; }
body.fm-noside .primary-content .input-group-text { background: #e9effb; border: 0; }
body.fm-noside .primary-content .input-group-merge .form-control { height: 50px; background: transparent; }
body.fm-page-clientregister #frmCheckout input[type=submit].btn-primary { width: 100%; padding: 13px; margin-top: 8px; }
body.fm-noside .fm-auth-alt { text-align: center; margin: 14px 0 0; font-size: .95rem; }
body.fm-noside .fm-auth-alt a { color: var(--fm-sky); font-weight: 600; }

@media (max-width: 991.98px) {
    body.fm-noside .fm-shell { flex-direction: column; }
    .fm-auth-art { position: relative; height: auto; flex: 0 0 auto; max-width: 100%; padding: 28px 20px 26px; }
    .fm-auth-logo { margin-bottom: 10px; }
    .fm-auth-logo img { max-height: 48px; }
    .fm-auth-tagline { font-size: .9rem; }
    .fm-auth-copy { display: none; }
    body.fm-noside .fm-main { max-width: 100%; flex: 1 1 auto; min-height: 0; padding: 0 20px; justify-content: flex-start; }
    body.fm-noside .fm-main #main-body > .container { padding: 28px 0 36px; }
}
@media (max-width: 479.98px) {
    body.fm-noside .primary-content h6.h3 { font-size: 1.4rem; }
    .fm-auth-tagline br { display: none; }
}

/* auth pages: win over the old card / input-group rules */
body.fm-noside .primary-content .card, body.fm-noside .login-form .card { border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; }
body.fm-noside .input-group-merge .form-control, body.fm-noside .input-group-merge .form-control:focus { border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; outline: 0; }
body.fm-noside .input-group-merge .input-group-text, body.fm-noside .input-group-merge .input-group-prepend, body.fm-noside .input-group-merge .input-group-append { background: transparent !important; border: 0 !important; border-radius: 0 !important; }
body.fm-noside .input-group-merge .btn-reveal-pw { box-shadow: none !important; }
body.fm-noside .primary-content .card-footer { border-top: 0 !important; }

/* register form: filled inputs like the login */
body.fm-noside #registration .field, body.fm-noside #registration .form-control, body.fm-noside #registration select.field, body.fm-noside #registration .custom-select {
    background-color: #e9effb !important; border: 0 !important; border-radius: 6px !important; height: 46px; box-shadow: none !important; font-size: .9rem; color: #111827;
}
body.fm-noside #registration textarea.field { height: auto; }
body.fm-noside #registration .field:focus, body.fm-noside #registration .form-control:focus { box-shadow: 0 0 0 2px rgba(37, 99, 235, .35) !important; }
body.fm-noside #registration .field-icon i, body.fm-noside #registration .field-icon .fas { color: var(--fm-sky) !important; }
body.fm-noside #registration .btn-default { background: #e9effb; border: 0; color: var(--fm-blue-dark); border-radius: 6px; font-weight: 600; }
body.fm-noside #registration .progress { border-radius: 6px; }

/* ---- auth pages, round 2: full-height art panel, no stray sidebar, plain white page ---- */
body.fm-noside, body.fm-noside .fm-shell, body.fm-noside .fm-main, body.fm-noside section#main-body { background: #fff !important; background-image: none !important; }
body.fm-noside .sidebar, body.fm-noside .sidebar-secondary { display: none !important; }
body.fm-noside .fm-main #main-body > .container > .row > .primary-content { flex: 0 0 100%; max-width: 100%; }
.fm-auth-art { position: relative; top: auto; height: auto; min-height: 100vh; align-self: stretch; }
.fm-auth-art-in { position: sticky; top: calc(50vh - 120px); }
body.fm-noside .fm-main { min-height: 100vh; }
body.fm-noside .iti { width: 100%; }
body.fm-noside .primary-content .row { margin-left: -8px; margin-right: -8px; }
body.fm-noside .primary-content .row > [class*="col-"] { padding-left: 8px; padding-right: 8px; }
body.fm-noside .primary-content .form-control, body.fm-noside .primary-content select, body.fm-noside .primary-content input { max-width: 100%; }
@media (max-width: 991.98px) {
    .fm-auth-art { min-height: 0; align-self: auto; }
    .fm-auth-art-in { position: static; }
    body.fm-noside .fm-main { min-height: 0; }
}
@media (max-width: 575.98px) {
    body.fm-noside .fm-main { padding: 0 16px; }
    body.fm-noside .primary-content .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
    body.fm-page-clientregister .primary-content .card-title { font-size: 1.05rem; }
    body.fm-noside .login-form .card-footer { padding-top: 14px !important; }
}

/* =====================================================================
   Public home page (visitors) - same visual language as the dashboard
   ===================================================================== */

/* menu: small dots instead of big chevrons, tidy two-line labels */
body.fm-guest .fm-nav .fm-i.fa-angle-right::before { content: "\f111"; font-size: .4rem; }
body.fm-guest .fm-nav .fm-i.fa-angle-right { width: 20px; opacity: .8; }
body.fm-guest .fm-nav a { line-height: 1.35; padding: 8px 13px; font-size: .88rem; }
body.fm-guest .fm-nav a > span { min-width: 0; }
body.fm-guest .fm-nav-group { margin-top: 6px; }

/* domain search hero */
body.fm-app #frmDomainHomepage { margin: 0 0 24px; }
body.fm-app #frmDomainHomepage .home-domain-search {
    background: var(--fm-hero-bg) !important; border: 0; border-radius: 20px; box-shadow: 0 14px 34px rgba(37, 99, 235, .25);
    position: relative; overflow: hidden; padding: 0;
}
body.fm-app #frmDomainHomepage .home-domain-search::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.07); left: -120px; top: -140px; pointer-events: none; }
body.fm-app #frmDomainHomepage .home-domain-search::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.06); right: -90px; bottom: -120px; pointer-events: none; }
body.fm-app #frmDomainHomepage .home-domain-search .container { max-width: none; padding: 0; position: relative; z-index: 1; }
body.fm-app #frmDomainHomepage .home-domain-search .p-5 { padding: 40px 24px 28px !important; }
body.fm-app #frmDomainHomepage .home-domain-search h2 { color: #fff; font-size: 1.65rem; font-weight: 800; margin: 0 0 22px; }
body.fm-app #frmDomainHomepage .input-group-wrapper { max-width: 580px; margin: 0 auto; }
body.fm-app #frmDomainHomepage .input-group { background: #fff; border-radius: 10px; padding: 4px; box-shadow: 0 0 0 6px rgba(255,255,255,.28); flex-wrap: nowrap; }
body.fm-app #frmDomainHomepage .input-group .form-control { border: 0; background: transparent; box-shadow: none; height: 46px; font-size: .95rem; }
body.fm-app #frmDomainHomepage .input-group-append .btn { height: 46px; border-radius: 7px; font-weight: 700; font-size: .92rem; padding: 0 24px; margin-left: 4px; }
body.fm-app #frmDomainHomepage .input-group-append .btn-primary { background: #1672e6; border-color: #1672e6; }
body.fm-app #frmDomainHomepage .input-group-append .btn-success { background: var(--fm-green); border-color: var(--fm-green); }
body.fm-app #frmDomainHomepage .home-domain-search .btn-link { color: #fff !important; opacity: .9; float: none !important; display: block; text-align: center; margin-top: 18px; font-size: .85rem; text-decoration: underline; }
body.fm-app #frmDomainHomepage .home-domain-search .tld-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
body.fm-app #frmDomainHomepage .home-domain-search .tld-logos li { background: #fff; color: var(--fm-ink-strong); border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: 8px; }
body.fm-app #frmDomainHomepage .home-domain-search .tld-logos img { height: 22px; width: auto; }

/* section titles */
body.fm-page-homepage .primary-content > h2.text-center { font-size: 1.35rem; font-weight: 800; color: var(--fm-ink-strong); margin: 30px 0 16px !important; }

/* product cards: centred rows, same card language as the dashboard */
body.fm-page-homepage .card-columns.home { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; column-count: initial; margin: 0 0 8px; }
body.fm-page-homepage .card-columns.home .card, body.fm-page-homepage .card-columns.home > .card.mb-3 {
    flex: 1 1 260px; max-width: 360px; width: auto; margin: 0 !important; display: flex; flex-direction: column;
    border: 1px solid var(--fm-line); border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .07); transform: none; break-inside: avoid;
}
body.fm-page-homepage .card-columns.home .card:hover { box-shadow: 0 10px 24px rgba(37, 99, 235, .15); transform: translateY(-2px); }
body.fm-page-homepage .card-columns.home .card-body { display: flex; flex-direction: column; align-items: center; flex: 1 1 auto; padding: 24px 22px 22px !important; }
body.fm-page-homepage .card-columns.home .saas-card-icon { width: 64px; height: 64px; margin: 0 0 12px; border-radius: 16px; box-shadow: 0 4px 12px rgba(37, 99, 235, .12); }
body.fm-page-homepage .card-columns.home .pricing-card-title { font-size: 1.05rem; font-weight: 700; color: var(--fm-ink-strong); margin: 0 0 8px; }
body.fm-page-homepage .card-columns.home .card p { font-size: .86rem; line-height: 1.55; color: var(--fm-muted); margin: 0 0 16px; flex: 1 1 auto; }
body.fm-page-homepage .card-columns.home .btn, body.fm-page-homepage .card-columns.home .btn:focus, body.fm-page-homepage .card-columns.home .btn:active {
    width: 100%; margin: 0; background: #fff; color: var(--fm-blue); border: 1px solid #bfd3f8; border-radius: 8px; font-weight: 600; font-size: .88rem; padding: 10px 14px; box-shadow: none !important;
}
body.fm-page-homepage .card-columns.home .btn:hover { background: var(--fm-blue); color: #fff; border-color: var(--fm-blue); }
body.fm-page-homepage .card-columns.home .card::after, body.fm-page-homepage .card-columns.home .btn::after, body.fm-page-homepage .card-columns.home .btn::before { display: none !important; }

/* quick-link tiles */
body.fm-page-homepage .action-icon-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 6px !important; justify-content: center; }
body.fm-page-homepage .action-icon-btns > [class*="col"] { flex: 1 1 150px; max-width: none; width: auto; padding: 0 !important; margin: 0 !important; }
body.fm-page-homepage #main-body .action-icon-btns a {
    display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 18px 10px 16px; background: #fff; border: 1px solid var(--fm-line); border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .05); font-size: .86rem; font-weight: 600; color: var(--fm-ink-strong); text-align: center; text-decoration: none; border-top: 1px solid var(--fm-line);
}
body.fm-page-homepage #main-body .action-icon-btns a:hover { border-color: #bfd3f8; box-shadow: 0 8px 20px rgba(37, 99, 235, .12); transform: translateY(-2px); }
body.fm-page-homepage .action-icon-btns a .ico-container { width: 48px; height: 48px; margin: 0; border-radius: 12px; background: #eaf0fb; color: var(--fm-blue); display: flex; align-items: center; justify-content: center; }
body.fm-page-homepage .action-icon-btns a .ico-container i { font-size: 1.2rem; color: var(--fm-blue); margin: 0; }
body.fm-page-homepage .action-icon-btns a::before, body.fm-page-homepage .action-icon-btns a::after { display: none !important; }

@media (max-width: 767.98px) {
    body.fm-app #frmDomainHomepage .home-domain-search .p-5 { padding: 28px 16px 20px !important; }
    body.fm-app #frmDomainHomepage .home-domain-search h2 { font-size: 1.3rem; }
    body.fm-page-homepage .card-columns.home .card { flex-basis: 100%; max-width: 100%; }
    body.fm-page-homepage .action-icon-btns > [class*="col"] { flex-basis: calc(50% - 6px); }
}

/* home page, round 2 */
body.fm-page-homepage #main-body .card-columns.home .btn.btn-outline-primary, body.fm-page-homepage #main-body .card-columns.home .btn.btn-block {
    background: #fff !important; color: var(--fm-blue) !important; border: 1px solid #bfd3f8 !important; border-radius: 8px !important; font-weight: 600; font-size: .88rem; padding: 10px 14px; box-shadow: none !important;
}
body.fm-page-homepage #main-body .card-columns.home .btn.btn-outline-primary:hover { background: var(--fm-blue) !important; color: #fff !important; border-color: var(--fm-blue) !important; }
body.fm-app #frmDomainHomepage .row.d-sm-none { margin: 10px 0 0; }
body.fm-app #frmDomainHomepage .row.d-sm-none > [class*="col"] { padding: 0 4px; }
body.fm-app #frmDomainHomepage .row.d-sm-none .btn { height: 44px; border-radius: 8px; font-weight: 700; font-size: .92rem; }
body.fm-app #frmDomainHomepage .row.d-sm-none .btn-primary { background: #fff !important; color: var(--fm-blue) !important; border-color: #fff !important; }
body.fm-app #frmDomainHomepage .row.d-sm-none .btn-success { background: var(--fm-green); border-color: var(--fm-green); color: #fff; }
body.fm-app { overflow-x: clip; }
@media (max-width: 479.98px) { .fm-login-alt { display: none; } .fm-login-link { font-size: .9rem; } }

/* =====================================================================
   Order form (cart.php) - same card language as the dashboard
   Scoped to this theme: every rule starts with body.fm-app #order-standard_cart
   ===================================================================== */
body.fm-app #order-standard_cart { font-size: 14px; padding-bottom: 24px; }
body.fm-app #order-standard_cart .cart-body { padding-left: 10px; padding-right: 10px; }
body.fm-app #order-standard_cart .cart-sidebar { padding-left: 10px; padding-right: 10px; }
body.fm-app #order-standard_cart > .row { margin-left: -10px; margin-right: -10px; }

/* page header */
body.fm-app #order-standard_cart .header-lined { border: 0; margin: 0 0 18px; padding: 0; }
body.fm-app #order-standard_cart .header-lined h1, body.fm-app #order-standard_cart .font-size-36 { font-size: 1.55rem !important; font-weight: 800; line-height: 1.3; color: var(--fm-ink-strong); margin: 0 0 6px; letter-spacing: -.01em; }
body.fm-app #order-standard_cart .header-lined p { color: var(--fm-muted); font-size: .92rem; line-height: 1.6; margin: 0; max-width: 780px; }
body.fm-app #order-standard_cart .header-lined::after { display: none; }

/* category list */
body.fm-app #order-standard_cart .cart-sidebar .card-sidebar, body.fm-app #order-standard_cart .sidebar-collapsed .card { border: 1px solid var(--fm-line); border-radius: 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); overflow: hidden; }
body.fm-app #order-standard_cart .cart-sidebar .list-group-item { font-size: .86rem; padding: 11px 16px; border-bottom: 1px solid var(--fm-line); color: var(--fm-ink); }
body.fm-app #order-standard_cart .cart-sidebar .list-group-item.active, body.fm-app #order-standard_cart .cart-sidebar .list-group-item:hover { background: #eaf0fb; color: var(--fm-blue); font-weight: 600; border-color: var(--fm-line); }
body.fm-app #order-standard_cart .sidebar-collapsed { margin-bottom: 16px; }
body.fm-app #order-standard_cart .sidebar-collapsed .form-control, body.fm-app #order-standard_cart .sidebar-collapsed .custom-select { height: 44px; border-radius: 10px; background-color: #e9effb; border: 0; }

/* product cards */
body.fm-app #order-standard_cart .products { margin: 6px 0 0; }
body.fm-app #order-standard_cart .products .row-eq-height { margin-left: -8px; margin-right: -8px; }
body.fm-app #order-standard_cart .products .row-eq-height > [class*="col-"] { display: flex; padding: 0 8px; }
body.fm-app #order-standard_cart .products .product {
    width: 100%; display: flex; flex-direction: column; margin: 0 0 16px; padding: 0; overflow: hidden;
    background: #fff; border: 1px solid var(--fm-line); border-radius: 14px; box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
    transition: transform .15s, box-shadow .15s;
}
body.fm-app #order-standard_cart .products .product:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, .15); border-color: #cfe0fb; }
body.fm-app #order-standard_cart .products .product header {
    margin: 0; padding: 15px 20px 14px; background: linear-gradient(135deg, #eff6ff 0%, #e0efff 100%); border: 0; border-bottom: 1px solid #dbe7fb; border-radius: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
body.fm-app #order-standard_cart .products .product header span { font-size: 1.05rem; font-weight: 700; color: var(--fm-blue-deep); }
body.fm-app #order-standard_cart .products .product header .qty { float: none; font-size: .72rem; font-weight: 600; font-style: normal; background: #fff; color: var(--fm-blue); padding: 3px 10px; border-radius: 999px; }
body.fm-app #order-standard_cart .products .product div.product-desc { float: none; width: auto; flex: 1 1 auto; padding: 16px 20px 6px; font-size: .84rem; line-height: 1.6; color: var(--fm-ink); }
body.fm-app #order-standard_cart .products .product div.product-desc p { margin: 0 0 8px; color: var(--fm-ink); font-size: .84rem; line-height: 1.6; overflow-wrap: break-word; }
body.fm-app #order-standard_cart .products .product div.product-desc ul { list-style: none; margin: 0; padding: 0; }
body.fm-app #order-standard_cart .products .product div.product-desc li { padding: 4px 0 4px 22px; position: relative; border-bottom: 1px dashed #eef1f6; }
body.fm-app #order-standard_cart .products .product div.product-desc li::before { content: "\f00c"; font-family: "Font Awesome 6 Pro"; font-weight: 900; font-size: .7rem; color: var(--fm-green); position: absolute; left: 2px; top: 7px; }
body.fm-app #order-standard_cart .products .product span.feature-value { font-weight: 700; color: var(--fm-ink-strong); }
body.fm-app #order-standard_cart .products .product footer {
    float: none; width: auto; margin: 0; padding: 16px 20px 20px; font-size: .8rem; text-align: left; background: #fafbff; border-top: 1px solid var(--fm-line);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
body.fm-app #order-standard_cart .products .product div.product-pricing { margin: 0; color: var(--fm-muted); line-height: 1.5; min-width: 0; }
body.fm-app #order-standard_cart .products .product div.product-pricing span.price { font-size: 1.5rem; font-weight: 800; color: var(--fm-blue); letter-spacing: -.01em; }
body.fm-app #order-standard_cart .products .product div.product-pricing small { font-size: .72rem; color: var(--fm-muted); }
body.fm-app #order-standard_cart .products .product .btn-order-now, body.fm-app #order-standard_cart .products .product .btn-order-now:focus {
    background: var(--fm-blue) !important; border: 0 !important; color: #fff !important; border-radius: 10px !important; padding: 11px 20px !important; font-size: .9rem !important; font-weight: 700;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .25) !important; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: background .15s;
}
body.fm-app #order-standard_cart .products .product .btn-order-now:hover { background: var(--fm-blue-dark) !important; }

/* product cards — design refresh (CSS only; markup, links, ids and JS untouched) */
body.fm-app #order-standard_cart .products .product { position: relative; border-radius: 18px; border-color: #e3e9f4; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
body.fm-app #order-standard_cart .products .product::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--fm-green), #34c27a); z-index: 1; }
body.fm-app #order-standard_cart .products .product:hover { transform: translateY(-4px); border-color: #b7e8cd; box-shadow: 0 16px 34px rgba(31, 163, 90, .16); }
body.fm-app #order-standard_cart .products .product header { padding: 22px 24px 16px; background: #fff; border-bottom: 0; }
body.fm-app #order-standard_cart .products .product header span { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--fm-ink-strong); }
body.fm-app #order-standard_cart .products .product header .qty { background: #ecfdf3; color: var(--fm-green-dark); border: 1px solid #bbf0d3; }
body.fm-app #order-standard_cart .products .product div.product-desc { padding: 0 24px 18px; font-size: .9rem; line-height: 1.95; color: var(--fm-ink); }
body.fm-app #order-standard_cart .products .product div.product-desc p { margin: 0; font-size: .9rem; line-height: 1.95; color: var(--fm-ink); }
body.fm-app #order-standard_cart .products .product footer {
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 14px; padding: 20px 24px 24px; text-align: center;
    background: linear-gradient(180deg, #fff 0%, #f1fbf5 100%); border-top: 1px dashed #e3e9f4;
}
body.fm-app #order-standard_cart .products .product div.product-pricing { font-size: .9rem; color: var(--fm-muted); }
body.fm-app #order-standard_cart .products .product div.product-pricing span.price { font-size: 1.75rem; font-weight: 800; color: var(--fm-ink-strong); }
body.fm-app #order-standard_cart .products .product .btn-order-now, body.fm-app #order-standard_cart .products .product .btn-order-now:focus {
    justify-content: center; width: 100%; border-radius: 999px !important; padding: 13px 24px !important; font-size: 1rem !important;
    background: linear-gradient(135deg, #2cbf6e 0%, var(--fm-green-dark) 100%) !important; box-shadow: 0 10px 22px rgba(31, 163, 90, .32) !important;
    transition: transform .15s, box-shadow .15s, filter .15s;
}
body.fm-app #order-standard_cart .products .product .btn-order-now:hover { background: linear-gradient(135deg, #2cbf6e 0%, var(--fm-green-dark) 100%) !important; filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(31, 163, 90, .4) !important; }

/* other cart pages: calm, consistent surfaces (colours, radius, inputs - no layout changes) */
body.fm-app #order-standard_cart .sub-heading, body.fm-app #order-standard_cart .sub-heading-borderless { border-color: var(--fm-line); }
body.fm-app #order-standard_cart .sub-heading span, body.fm-app #order-standard_cart .sub-heading-borderless span { color: var(--fm-ink-strong); font-weight: 700; font-size: 1rem; background: #fff; }
body.fm-app #order-standard_cart .form-control, body.fm-app #order-standard_cart .field, body.fm-app #order-standard_cart select.field { border-radius: 8px; font-size: .9rem; }
body.fm-app #order-standard_cart .btn-primary, body.fm-app #order-standard_cart .btn-checkout { background: var(--fm-blue); border-color: var(--fm-blue); border-radius: 8px; font-weight: 700; }
body.fm-app #order-standard_cart .btn-primary:hover, body.fm-app #order-standard_cart .btn-checkout:hover { background: var(--fm-blue-dark); border-color: var(--fm-blue-dark); }
body.fm-app #order-standard_cart .btn-success { background: var(--fm-green); border-color: var(--fm-green); border-radius: 8px; font-weight: 700; }
body.fm-app #order-standard_cart .view-cart-items-header { background: #e5e7eb; color: var(--fm-ink-strong); border-radius: 8px 8px 0 0; font-weight: 700; font-size: .86rem; }
body.fm-app #order-standard_cart .view-cart-items, body.fm-app #order-standard_cart .order-summary, body.fm-app #order-standard_cart .panel, body.fm-app #order-standard_cart .domain-promo-box, body.fm-app #order-standard_cart .view-cart-tabs .tab-content { border-radius: 12px; border-color: var(--fm-line); }
body.fm-app #order-standard_cart .order-summary { background: #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, .07); overflow: hidden; }
body.fm-app #order-standard_cart .order-summary h2 { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #0ea5e9 100%); color: #fff; font-size: 1.05rem; font-weight: 700; padding: 14px 18px; margin: 0; }
body.fm-app #order-standard_cart .domain-checker-bg, body.fm-app #order-standard_cart .domain-checker-container { border-radius: 14px; }

@media (max-width: 767.98px) {
    body.fm-app #order-standard_cart .products .row-eq-height > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
    body.fm-app #order-standard_cart .header-lined h1, body.fm-app #order-standard_cart .font-size-36 { font-size: 1.3rem !important; }
    body.fm-app #order-standard_cart .products .product footer { flex-direction: column; align-items: stretch; text-align: center; }
    body.fm-app #order-standard_cart .products .product .btn-order-now { justify-content: center; width: 100%; }
}
body.fm-app #order-standard_cart .products .row-eq-height { display: flex; flex-wrap: nowrap; gap: 16px; margin-left: 0; margin-right: 0; }
body.fm-app #order-standard_cart .products .row-eq-height > [class*="col-"] { flex: 1 1 0; min-width: 0; max-width: none; width: auto; padding: 0; }
@media (max-width: 767.98px) {
    body.fm-app #order-standard_cart .products .row-eq-height { flex-direction: column; gap: 0; }
    body.fm-app #order-standard_cart .products .row-eq-height > [class*="col-"] { flex: 0 0 auto; width: 100%; }
}

/* visitor menu: folding groups */
.fm-nav-guest .fm-nav-fold details > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; cursor: pointer; color: rgba(255,255,255,.95); font-size: .9rem; font-weight: 600; }
.fm-nav-guest .fm-nav-fold details > summary::-webkit-details-marker { display: none; }
.fm-nav-guest .fm-nav-fold details > summary:hover { background: rgba(255,255,255,.14); }
.fm-nav-guest .fm-nav-fold details[open] > summary { background: rgba(255,255,255,.1); }
.fm-fold-caret { margin-left: auto; font-size: .65rem; opacity: .8; transition: transform .15s; }
.fm-nav-guest details[open] .fm-fold-caret { transform: rotate(180deg); }
.fm-nav-sub { list-style: none; margin: 2px 0 6px 22px; padding: 0 0 0 12px; border-left: 1px solid rgba(255,255,255,.25); }
.fm-nav-sub li { margin: 0; }
.fm-nav-sub a { display: block !important; padding: 7px 12px !important; font-size: .84rem !important; line-height: 1.35; border-radius: 8px !important; font-weight: 500; }
body.fm-guest .fm-nav a { font-size: .9rem; }

/* Turnstile block (sign in / register / forgot / contact): compact messages, widget keeps the full form width */
body.fm-app .farmedia-turnstile { display: block; width: 100%; min-width: 0; margin: 12px 0 8px; }
body.fm-app .farmedia-turnstile .cf-turnstile { display: block; width: 100%; min-height: 65px; margin: 0 auto; }
body.fm-app .farmedia-turnstile .alert { font-size: .8rem; line-height: 1.5; padding: 9px 14px; margin: 0 0 8px; border: 0; border-radius: 10px; box-shadow: none; }
body.fm-app .farmedia-turnstile .alert-danger { background: #fef2f2; color: #b91c1c; }
body.fm-app .farmedia-turnstile .alert-warning { background: #fffbeb; color: #92400e; }
body.fm-app .farmedia-turnstile .alert .btn { display: block; margin: 6px 0 0; padding: 5px 14px; font-size: .78rem; font-weight: 600; line-height: 1.4; background: #fff; color: #92400e; border: 1px solid #f5d9a8; border-radius: 8px; }
body.fm-app .farmedia-turnstile .alert .btn:hover { background: #fff7e6; }
body.fm-noside .login-form .card-body > .farmedia-turnstile { order: 7; width: 100%; }

/* account menu: always inside the screen, compact, with icons */
.fm-user { position: relative; }
body.fm-app .fm-user-menu {
    position: absolute !important; top: 100% !important; right: 0 !important; left: auto !important; transform: none !important;
    margin-top: 10px; width: 270px; max-width: calc(100vw - 24px); max-height: calc(100vh - 100px); overflow-y: auto;
    padding: 6px; border: 1px solid var(--fm-line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, .16); font-size: .86rem;
}
.fm-user-menu-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--fm-line); }
.fm-avatar-sm { width: 38px; height: 38px; border-width: 3px; font-size: .9rem; flex: 0 0 auto; }
.fm-user-menu-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fm-user-menu-who strong { font-size: .88rem; color: var(--fm-ink-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-user-menu-who small { font-size: .74rem; color: var(--fm-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.fm-app .fm-user-menu .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: .86rem; color: var(--fm-ink-strong); border-radius: 9px; white-space: normal; }
body.fm-app .fm-user-menu .dropdown-item i { color: var(--fm-blue); font-size: .95rem; flex: 0 0 18px; text-align: center; }
body.fm-app .fm-user-menu .dropdown-item:hover, body.fm-app .fm-user-menu .dropdown-item:focus { background: #eaf0fb; color: var(--fm-blue); }
body.fm-app .fm-user-menu .dropdown-item .fm-ic-out, body.fm-app .fm-user-menu .dropdown-item i.fm-ic-out { color: #dc2626; }
body.fm-app .fm-user-menu .dropdown-divider { margin: 4px 6px; border-color: var(--fm-line); }
@media (max-width: 575.98px) { body.fm-app .fm-user-menu { width: calc(100vw - 32px); right: -4px !important; } }

/* =====================================================================
   Balance / credit
   ===================================================================== */
.fm-wallet-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #eaf0fb; color: var(--fm-blue-dark) !important;
    font-weight: 700; font-size: .86rem; text-decoration: none !important; white-space: nowrap; max-width: 220px; transition: background .15s;
}
.fm-wallet-chip span { overflow: hidden; text-overflow: ellipsis; }
.fm-wallet-chip:hover { background: #dbe7fb; }
.fm-wallet-chip i { color: var(--fm-blue); }

.fm-balance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; }
.fm-bal { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--fm-line); border-radius: 14px; padding: 14px 18px; box-shadow: 0 6px 18px rgba(15, 23, 42, .06); min-width: 0; }
.fm-bal-ico { flex: 0 0 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; background: #dcfce7; color: #15803d; }
.fm-bal-due .fm-bal-ico { background: #eaf0fb; color: var(--fm-blue); }
.fm-bal-due.is-due .fm-bal-ico { background: #fee2e2; color: #b91c1c; }
.fm-bal-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.3; }
.fm-bal-txt small { font-size: .76rem; color: var(--fm-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.fm-bal-txt strong { font-size: 1.35rem; font-weight: 800; color: var(--fm-ink-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-bal-due.is-due .fm-bal-txt strong { color: #b91c1c; }
.fm-bal-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px; background: var(--fm-green); color: #fff !important; font-size: .84rem; font-weight: 700; text-decoration: none !important; white-space: nowrap; }
.fm-bal-btn:hover { background: var(--fm-green-dark); }
.fm-bal-btn-pay { background: #dc2626; }
.fm-bal-btn-pay:hover { background: #b91c1c; }
@media (max-width: 767.98px) {
    .fm-balance { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .fm-wallet-chip { padding: 8px 10px; max-width: 120px; }
    .fm-wallet-chip span { font-size: .78rem; }
}
@media (max-width: 479.98px) { .fm-bal { padding: 12px 14px; } .fm-bal-btn { padding: 8px 12px; } }

/* =====================================================================
   Content pages: one consistent look (lists, forms, tabs, alerts, modals)
   ===================================================================== */

/* list tables: grey header bar, every row its own soft card (as in the reference) */
body.fm-app .table-container table.table-list { border-collapse: separate; border-spacing: 0 8px; margin-top: 6px; }
body.fm-app .table-container table.table-list thead th { background: #e5e7eb; border: 0; }
body.fm-app .table-container table.table-list tbody tr { background: transparent; }
body.fm-app .table-container table.table-list tbody td { background: #fff; border: 0; border-top: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); }
body.fm-app .table-container table.table-list tbody td:first-child { border-left: 1px solid var(--fm-line); border-radius: 10px 0 0 10px; }
body.fm-app .table-container table.table-list tbody td:last-child { border-right: 1px solid var(--fm-line); border-radius: 0 10px 10px 0; }
body.fm-app .table-container table.table-list tbody tr:hover td { background: #f6f9ff; border-color: #cfe0fb; }
body.fm-app .table-container table.table-list tbody tr[onclick] { cursor: pointer; }
body.fm-app .table-container table.table-list tbody tr.child td, body.fm-app .table-container table.table-list tbody tr.child td:first-child { border-radius: 0 0 10px 10px; }

/* forms */
body.fm-app .primary-content .form-control, body.fm-app .primary-content .custom-select {
    border: 1px solid #d6deec; border-radius: 10px; background-color: #fff; height: 44px; padding: 0 14px; font-size: .9rem; color: var(--fm-ink-strong); box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
body.fm-app .primary-content textarea.form-control { height: auto; padding: 10px 14px; }
body.fm-app .primary-content .form-control:focus, body.fm-app .primary-content .custom-select:focus { border-color: var(--fm-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
body.fm-app .primary-content .form-control:disabled, body.fm-app .primary-content .form-control[readonly] { background: #f3f4f6; color: var(--fm-muted); }
body.fm-app .primary-content label, body.fm-app .primary-content .form-control-label { font-size: .84rem; font-weight: 600; color: var(--fm-ink); margin-bottom: 6px; }
body.fm-app .primary-content .form-group { margin-bottom: 16px; }
body.fm-app .primary-content .input-group-text { background: #f3f6fb; border: 1px solid #d6deec; color: var(--fm-muted); border-radius: 10px 0 0 10px; }
body.fm-app .primary-content .input-group > .form-control:not(:first-child) { border-radius: 0 10px 10px 0; }
body.fm-app .primary-content .input-group > .input-group-append .btn { border-radius: 0 10px 10px 0; }
body.fm-app .primary-content .btn { border-radius: 10px; font-weight: 600; }
body.fm-app .primary-content .btn-default, body.fm-app .primary-content .btn-outline-secondary { background: #fff; border: 1px solid #d6deec; color: var(--fm-ink-strong); }
body.fm-app .primary-content .btn-default:hover { background: #f3f6fb; border-color: #bfd0ec; }
body.fm-app .primary-content .btn-danger { border-radius: 10px; }
body.fm-app .primary-content .btn-sm, body.fm-app .primary-content .btn-xs { border-radius: 8px; }

/* cards */
body.fm-app .primary-content .card { border-radius: 14px; box-shadow: 0 4px 14px rgba(15, 23, 42, .05); overflow: hidden; }
body.fm-app .primary-content .card-header { background: #fafbff; border-bottom: 1px solid var(--fm-line); padding: 14px 20px; }
body.fm-app .primary-content .card-body { padding: 20px; }
body.fm-app .primary-content .card-footer { background: #fafbff; border-top: 1px solid var(--fm-line); }
body.fm-app .primary-content .card-title { font-size: 1.02rem; font-weight: 700; color: var(--fm-ink-strong); }
body.fm-app .primary-content .list-group-item { border-color: var(--fm-line); }

/* tabs and pills */
body.fm-app .primary-content .nav-tabs { border-bottom: 1px solid var(--fm-line); gap: 4px; flex-wrap: wrap; }
body.fm-app .primary-content .nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--fm-muted); font-weight: 600; font-size: .88rem; padding: 10px 14px; }
body.fm-app .primary-content .nav-tabs .nav-link.active { color: var(--fm-blue); border-bottom-color: var(--fm-blue); background: transparent; }
body.fm-app .primary-content .nav-pills .nav-link { border-radius: 999px; color: var(--fm-ink); font-weight: 600; font-size: .86rem; }
body.fm-app .primary-content .nav-pills .nav-link.active { background: var(--fm-blue); color: #fff; }

/* alerts, badges, modals, dropdowns */
body.fm-app .primary-content .alert { border: 0; border-radius: 12px; font-size: .88rem; padding: 12px 16px; }
body.fm-app .primary-content .alert-success { background: #ecfdf5; color: #047857; }
body.fm-app .primary-content .alert-danger, body.fm-app .primary-content .alert-error { background: #fef2f2; color: #b91c1c; }
body.fm-app .primary-content .alert-warning { background: #fffbeb; color: #92400e; }
body.fm-app .primary-content .alert-info { background: #eff6ff; color: #1d4ed8; }
body.fm-app .modal-content { border: 0; border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .25); overflow: hidden; }
body.fm-app .modal-header { border-bottom: 1px solid var(--fm-line); background: #fafbff; }
body.fm-app .modal-footer { border-top: 1px solid var(--fm-line); }
body.fm-app .dropdown-menu { border: 1px solid var(--fm-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .12); }
body.fm-app .popover { border: 1px solid var(--fm-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .14); }

/* service / domain detail tiles and invoice sheet */
body.fm-app .product-details, body.fm-app .product-status { border-radius: 14px; }
body.fm-app .product-status { background: linear-gradient(135deg, #eff6ff, #e0efff); border: 1px solid #dbe7fb; }
body.fm-app .tiles .tile { border: 1px solid var(--fm-line); border-radius: 14px; box-shadow: 0 4px 14px rgba(15, 23, 42, .05); }
body.fm-app .invoice-container, body.fm-app .invoice-col { border-radius: 14px; }
body.fm-app .ticket-reply, body.fm-app .view-ticket .reply { border-radius: 12px; }

@media (max-width: 767.98px) {
    body.fm-app .primary-content .card-body { padding: 16px; }
    body.fm-app .primary-content .card-header { padding: 12px 16px; }
    body.fm-app .primary-content .nav-tabs { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; }
    body.fm-app .primary-content .nav-tabs .nav-link { padding: 9px 12px; }
}

/* balance + list polish, round 2 */
@media (max-width: 575.98px) { .fm-wallet-chip { display: none; } }
.fm-bal { flex-wrap: wrap; }
.fm-bal-txt { flex: 1 1 140px; }
.fm-bal-txt strong { white-space: normal; overflow-wrap: anywhere; font-size: 1.25rem; }
@media (max-width: 575.98px) {
    .fm-bal-btn { flex: 1 1 100%; justify-content: center; }
}
body.fm-app .table-container table.table-list th, body.fm-app .table-container table.table-list td { text-align: left !important; }
body.fm-app .table-container table.table-list th.sorting, body.fm-app .table-container table.table-list th.sorting_asc, body.fm-app .table-container table.table-list th.sorting_desc { padding-right: 24px; }

/* =====================================================================
   Page menus (View / Actions / Shortcuts ...) on tablet and phone:
   they sit ABOVE the content as compact, swipeable pills - never underneath it
   ===================================================================== */
@media (max-width: 991.98px) {
    body.fm-app #main-body .col-lg-4.col-xl-3 { order: -1; margin-bottom: 4px; }
    body.fm-app .sidebar { margin-bottom: 0; }
    body.fm-app .sidebar .card-sidebar { margin: 0 0 10px !important; border-radius: 14px; }
    body.fm-app .sidebar .card-sidebar .card-header { padding: 10px 14px 0; background: transparent; border: 0; }
    body.fm-app .sidebar .card-sidebar .card-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--fm-muted); }
    body.fm-app .sidebar .card-sidebar .card-minimise { font-size: .7rem; color: var(--fm-muted); }
    body.fm-app .sidebar .card-sidebar .list-group { flex-direction: row !important; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 10px 14px 12px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
    body.fm-app .sidebar .card-sidebar .list-group-item {
        flex: 0 0 auto; width: auto; display: inline-flex; align-items: center; white-space: nowrap; background: #f3f6fb; border: 1px solid #e0e8f5 !important; border-radius: 999px !important;
        padding: 7px 14px; font-size: .82rem; font-weight: 600; color: var(--fm-ink-strong); margin: 0;
    }
    body.fm-app .sidebar .card-sidebar .list-group-item .sidebar-menu-item-wrapper { display: inline-flex; align-items: center; gap: 6px; }
    body.fm-app .sidebar .card-sidebar .list-group-item .sidebar-menu-item-icon-wrapper { margin: 0; }
    body.fm-app .sidebar .card-sidebar .list-group-item.active, body.fm-app .sidebar .card-sidebar .list-group-item:hover { background: var(--fm-blue); color: #fff; border-color: var(--fm-blue) !important; font-weight: 600; }
    body.fm-app .sidebar .card-sidebar .list-group-item .badge { margin-left: 6px; background: #fff; color: var(--fm-blue); }
    body.fm-app .sidebar .card-sidebar .list-group-item.active .badge { background: rgba(255,255,255,.9); }
    body.fm-app .sidebar .card-sidebar .card-body { padding: 10px 14px 14px; font-size: .86rem; }
    body.fm-app .sidebar .card-sidebar .card-footer { padding: 10px 14px; }
    /* the select-box variant WHMCS prints for phones */
    body.fm-app .sidebar .card.d-md-none .card-body select { height: 44px; }
}
@media (max-width: 991.98px) {
    body.fm-app .sidebar .card-sidebar .collapsable-card-body { display: block !important; height: auto !important; }
    body.fm-app .sidebar .card-sidebar .card-minimise { display: none !important; }
    body.fm-app .sidebar .card-sidebar .card-header { cursor: default; }
}

/* action button rows (Manage Nameservers, Renew ... ) as separate, even buttons */
body.fm-app .primary-content .btn-group.btn-group-sm { display: flex; flex-wrap: wrap; gap: 8px; }
body.fm-app .primary-content .btn-group.btn-group-sm > .btn, body.fm-app .primary-content .btn-group.btn-group-sm > .btn-group > .btn {
    border-radius: 10px !important; margin: 0 !important; background: #fff; border: 1px solid #d6deec; color: var(--fm-ink-strong); font-size: .82rem; padding: 8px 14px; font-weight: 600;
}
body.fm-app .primary-content .btn-group.btn-group-sm > .btn:hover, body.fm-app .primary-content .btn-group.btn-group-sm > .btn-group > .btn:hover { background: #eaf0fb; border-color: #bfd0ec; color: var(--fm-blue); }
body.fm-app .primary-content .btn-group.btn-group-sm > .btn-group { display: inline-flex; }

/* =====================================================================
   Detail pages: service / domain overview, headings, kb search
   ===================================================================== */
body.fm-app .primary-content h4, body.fm-app .primary-content .h4 { font-size: 1.02rem; font-weight: 700; }
body.fm-app .primary-content h5, body.fm-app .primary-content .h5 { font-size: .95rem; font-weight: 700; }
body.fm-app .primary-content h6, body.fm-app .primary-content .h6 { font-size: .88rem; font-weight: 700; }

body.fm-app .product-details { font-size: .9rem; color: var(--fm-ink); }
body.fm-app .product-details .product-status { background: linear-gradient(135deg, #eff6ff 0%, #e0efff 100%); border: 1px solid #dbe7fb; border-radius: 16px; padding: 24px 18px 18px; text-align: center; }
body.fm-app .product-details .product-icon .fa-stack { font-size: 1.9rem; margin-bottom: 6px; }
body.fm-app .product-details .product-icon .fa-stack .fa-circle { color: var(--fm-blue); }
body.fm-app .product-details .product-icon .fa-stack .fa-inverse { color: #fff; }
body.fm-app .product-details .product-icon h3 { font-size: 1.1rem; font-weight: 800; color: var(--fm-ink-strong); margin: 4px 0 2px; overflow-wrap: anywhere; }
body.fm-app .product-details .product-icon h4 { font-size: .8rem; font-weight: 600; color: var(--fm-muted); margin: 0; }
body.fm-app .product-details .product-status-text { display: inline-block; margin-top: 14px; padding: 5px 16px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: #e5e7eb; color: #4b5563; }
body.fm-app .product-details .product-status-active .product-status-text { background: #dcfce7; color: #15803d; }
body.fm-app .product-details .product-status-pending .product-status-text, body.fm-app .product-details .product-status-suspended .product-status-text { background: #fef3c7; color: #b45309; }
body.fm-app .product-details .product-status-terminated .product-status-text, body.fm-app .product-details .product-status-cancelled .product-status-text, body.fm-app .product-details .product-status-fraud .product-status-text { background: #fee2e2; color: #b91c1c; }
body.fm-app .product-details .product-actions-wrapper { margin-top: 4px; }
body.fm-app .product-details .product-actions-wrapper .btn { margin-top: 8px; padding: 10px 14px; }
body.fm-app .product-details .col-md-6.text-center h4 { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fm-muted); margin: 16px 0 2px; }
body.fm-app .product-details .col-md-6.text-center h4:first-child { margin-top: 4px; }
body.fm-app .product-details .col-md-6.text-center { font-size: .95rem; font-weight: 600; color: var(--fm-ink-strong); }
body.fm-app .product-details .tab-content, body.fm-app .tab-content .tab-pane > .card { border-radius: 14px; }
body.fm-app .product-details .row > [class*="col-sm-"] { padding-top: 4px; padding-bottom: 4px; }
body.fm-app .product-details .text-right { color: var(--fm-muted); font-weight: 600; }

/* search boxes (knowledgebase, domain checker, ...) keep rounded outer corners */
body.fm-app .primary-content .input-group > .form-control:first-child { border-radius: 10px 0 0 10px; }
body.fm-app .primary-content .input-group > .input-group-append > .btn:last-child, body.fm-app .primary-content .input-group > .btn:last-child { border-radius: 0 10px 10px 0; }

@media (max-width: 767.98px) {
    body.fm-app .product-details .col-md-6.text-center { text-align: center !important; margin-top: 14px; }
    body.fm-app .product-details .product-status { padding: 18px 14px 14px; }
}
body.fm-app .product-details .product-icon { background: transparent !important; padding: 0; }
body.fm-app .product-details .product-icon .fa-stack { width: 2em; }

/* =====================================================================
   Action toolbar (Manage Nameservers / Edit Contact / Renew ... ): icon-chip buttons
   ===================================================================== */
body.fm-app .primary-content .btn-group.btn-group-sm { gap: 10px; margin-bottom: 16px !important; }
body.fm-app .primary-content .btn-group.btn-group-sm > .btn, body.fm-app .primary-content .btn-group.btn-group-sm > .btn-group > .btn {
    display: inline-flex; align-items: center; gap: 0; min-height: 44px; padding: 7px 16px 7px 8px; border-radius: 12px !important;
    background: #fff; border: 1px solid #cfe0fb; color: var(--fm-blue-deep); font-size: .86rem; font-weight: 700;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .08); transition: background .15s, color .15s, box-shadow .15s, transform .15s;
}
body.fm-app .primary-content .btn-group.btn-group-sm .btn > i:first-child {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0 10px 0 0; border-radius: 9px;
    background: #eaf0fb; color: var(--fm-blue); font-size: .9rem; transition: background .15s, color .15s;
}
body.fm-app .primary-content .btn-group.btn-group-sm > .btn:hover, body.fm-app .primary-content .btn-group.btn-group-sm > .btn-group > .btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb 60%, #0ea5e9); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(37, 99, 235, .28); transform: translateY(-1px);
}
body.fm-app .primary-content .btn-group.btn-group-sm .btn:hover > i:first-child { background: rgba(255, 255, 255, .22); color: #fff; }
body.fm-app .primary-content .btn-group.btn-group-sm .dropdown-toggle { padding-left: 16px; }
body.fm-app .primary-content .btn-group.btn-group-sm .dropdown-toggle::after { margin-left: 8px; }
@media (max-width: 575.98px) {
    body.fm-app .primary-content .btn-group.btn-group-sm { gap: 8px; }
    body.fm-app .primary-content .btn-group.btn-group-sm > .btn { flex: 1 1 calc(50% - 8px); justify-content: flex-start; min-width: 0; padding-right: 10px; font-size: .8rem; }
    body.fm-app .primary-content .btn-group.btn-group-sm > .btn-group { flex: 1 1 calc(50% - 8px); }
    body.fm-app .primary-content .btn-group.btn-group-sm > .btn-group > .btn { width: 100%; }
    body.fm-app .primary-content .btn-group.btn-group-sm .btn > i:first-child { width: 26px; height: 26px; margin-right: 7px; }
}
body.fm-app .primary-content .btn-group.btn-group-sm { align-items: stretch; }
body.fm-app .primary-content .btn-group.btn-group-sm > .btn, body.fm-app .primary-content .btn-group.btn-group-sm > .btn-group > .btn { line-height: 1.25; height: auto; min-height: 46px; }
body.fm-app .primary-content .btn-group.btn-group-sm > .btn-group { display: flex; }
body.fm-app .primary-content .btn-group.btn-group-sm > .btn, body.fm-app .primary-content .btn-group.btn-group-sm > .btn-group > .btn { height: 48px !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
@media (max-width: 575.98px) { body.fm-app .primary-content .btn-group.btn-group-sm > .btn, body.fm-app .primary-content .btn-group.btn-group-sm > .btn-group > .btn { height: auto !important; min-height: 46px !important; padding-top: 6px !important; padding-bottom: 6px !important; } }

/* =====================================================================
   Tablet / phone: "Actions" and "Shortcuts" become a button area above the content
   (same icon-chip buttons as the action toolbar; "View" filters stay as swipeable pills)
   ===================================================================== */
@media (max-width: 991.98px) {
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"], body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] {
        background: transparent; border: 0; box-shadow: none; overflow: visible; margin-bottom: 6px !important;
    }
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .card-header, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .card-header { padding: 4px 2px 6px; }
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .list-group, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .list-group {
        flex-wrap: wrap; overflow: visible; padding: 0 0 6px; gap: 10px;
    }
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .list-group-item, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .list-group-item {
        display: inline-flex; align-items: center; min-height: 46px; padding: 6px 16px 6px 8px; border-radius: 12px !important; background: #fff; border: 1px solid #cfe0fb !important;
        color: var(--fm-blue-deep); font-size: .86rem; font-weight: 700; white-space: normal; box-shadow: 0 2px 8px rgba(37, 99, 235, .08);
    }
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .list-group-item .sidebar-menu-item-icon-wrapper, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .list-group-item .sidebar-menu-item-icon-wrapper,
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .list-group-item:not(:has(.sidebar-menu-item-icon-wrapper))::before, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .list-group-item:not(:has(.sidebar-menu-item-icon-wrapper))::before {
        display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0 10px 0 0; border-radius: 9px; background: #eaf0fb; color: var(--fm-blue); font-size: .85rem; flex: 0 0 30px;
    }
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .list-group-item:not(:has(.sidebar-menu-item-icon-wrapper))::before, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .list-group-item:not(:has(.sidebar-menu-item-icon-wrapper))::before {
        content: "\f061"; font-family: "Font Awesome 6 Pro"; font-weight: 900;
    }
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .list-group-item .sidebar-menu-item-icon, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .list-group-item .sidebar-menu-item-icon { color: var(--fm-blue); }
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .list-group-item.active, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .list-group-item.active,
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .list-group-item:hover, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .list-group-item:hover {
        background: linear-gradient(135deg, #1d4ed8, #2563eb 60%, #0ea5e9); color: #fff; border-color: transparent !important; box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
    }
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .list-group-item:hover::before, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .list-group-item:hover::before,
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .list-group-item:hover .sidebar-menu-item-icon-wrapper, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .list-group-item:hover .sidebar-menu-item-icon-wrapper { background: rgba(255,255,255,.22); color: #fff; }
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .list-group-item:hover .sidebar-menu-item-icon, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .list-group-item:hover .sidebar-menu-item-icon { color: #fff; }
}
@media (max-width: 575.98px) {
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .list-group-item, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .list-group-item { flex: 1 1 calc(50% - 8px); font-size: .8rem; padding-right: 10px; min-width: 0; }
}
@media (max-width: 991.98px) {
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"], body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] { border: 0 !important; box-shadow: none !important; background: transparent !important; }
    body.fm-app .sidebar .card-sidebar[menuItemName="Actions"] .collapsable-card-body, body.fm-app .sidebar .card-sidebar[menuItemName="Shortcuts"] .collapsable-card-body { background: transparent; }
}

/* =====================================================================
   Tablet / phone: EVERY page menu made of links (status, quick actions, shortcuts, ...) is a wrapping button area
   (language independent: it does not depend on the menu's name)
   ===================================================================== */
@media (max-width: 991.98px) {
    body.fm-app .sidebar .card-sidebar:has(.list-group) { background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible; margin-bottom: 6px !important; }
    body.fm-app .sidebar .card-sidebar:has(.list-group) .card-header { padding: 4px 2px 6px; background: transparent; border: 0; }
    body.fm-app .sidebar .card-sidebar:has(.list-group) .collapsable-card-body { background: transparent; }
    body.fm-app .sidebar .card-sidebar .list-group { flex-direction: row !important; flex-wrap: wrap !important; overflow: visible !important; padding: 0 0 6px; gap: 10px; }
    body.fm-app .sidebar .card-sidebar .list-group-item {
        flex: 0 1 auto; display: inline-flex; align-items: center; min-height: 46px; padding: 6px 14px 6px 8px; border-radius: 12px !important; background: #fff; border: 1px solid #cfe0fb !important;
        color: var(--fm-blue-deep); font-size: .86rem; font-weight: 700; white-space: normal; box-shadow: 0 2px 8px rgba(37, 99, 235, .08); text-align: left;
    }
    body.fm-app .sidebar .card-sidebar .list-group-item .sidebar-menu-item-wrapper { display: flex; align-items: center; gap: 0; width: 100%; }
    body.fm-app .sidebar .card-sidebar .list-group-item .sidebar-menu-item-icon-wrapper {
        display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0 10px 0 0; border-radius: 9px; background: #eaf0fb; color: var(--fm-blue); flex: 0 0 30px;
    }
    body.fm-app .sidebar .card-sidebar .list-group-item .sidebar-menu-item-icon { color: var(--fm-blue); font-size: .85rem; }
    body.fm-app .sidebar .card-sidebar .list-group-item:not(:has(.sidebar-menu-item-icon-wrapper))::before {
        content: "\f061"; font-family: "Font Awesome 6 Pro"; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0 10px 0 0;
        border-radius: 9px; background: #eaf0fb; color: var(--fm-blue); font-size: .8rem; flex: 0 0 30px;
    }
    body.fm-app .sidebar .card-sidebar .list-group-item .sidebar-menu-item-label { flex: 1 1 auto; min-width: 0; }
    body.fm-app .sidebar .card-sidebar .list-group-item .sidebar-menu-item-badge { margin-left: 10px; }
    body.fm-app .sidebar .card-sidebar .list-group-item .sidebar-menu-item-badge .badge, body.fm-app .sidebar .card-sidebar .list-group-item > .badge { background: #eaf0fb; color: var(--fm-blue); border-radius: 8px; min-width: 26px; padding: 5px 7px; margin: 0 0 0 10px; }
    body.fm-app .sidebar .card-sidebar .list-group-item.active, body.fm-app .sidebar .card-sidebar .list-group-item:hover {
        background: linear-gradient(135deg, #1d4ed8, #2563eb 60%, #0ea5e9); color: #fff; border-color: transparent !important; box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
    }
    body.fm-app .sidebar .card-sidebar .list-group-item.active .sidebar-menu-item-icon-wrapper, body.fm-app .sidebar .card-sidebar .list-group-item:hover .sidebar-menu-item-icon-wrapper,
    body.fm-app .sidebar .card-sidebar .list-group-item.active:not(:has(.sidebar-menu-item-icon-wrapper))::before, body.fm-app .sidebar .card-sidebar .list-group-item:hover:not(:has(.sidebar-menu-item-icon-wrapper))::before { background: rgba(255, 255, 255, .22); color: #fff; }
    body.fm-app .sidebar .card-sidebar .list-group-item.active .sidebar-menu-item-icon, body.fm-app .sidebar .card-sidebar .list-group-item:hover .sidebar-menu-item-icon { color: #fff; }
    body.fm-app .sidebar .card-sidebar .list-group-item.active .badge, body.fm-app .sidebar .card-sidebar .list-group-item:hover .badge { background: rgba(255, 255, 255, .92); color: var(--fm-blue); }
}
@media (max-width: 575.98px) {
    body.fm-app .sidebar .card-sidebar .list-group-item { flex: 1 1 calc(50% - 8px); min-width: 0; font-size: .8rem; padding-right: 10px; }
}

/* =====================================================================
   Landing layout (visitors who are not logged in): top navigation, bright hero, dark footer
   Colour language borrowed from referensi storefront (bright cyan > blue, green call-to-action),
   kept on the Farmedia blue palette and logo.
   ===================================================================== */
body.fm-landing { --lp-ink: #0f2547; --lp-navy: #0b1f4a; --lp-cyan: #12b5f5; background: #fff; }
body.fm-landing .fm-main { margin-left: 0; padding: 0; max-width: none; }
body.fm-landing .fm-shell { display: block; }

/* top navigation */
.fm-lp-head { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid #e6edf7; box-shadow: 0 4px 18px rgba(15, 37, 71, .06); }
.fm-lp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; gap: 28px; position: relative; }
.fm-lp-logo { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none !important; }
.fm-lp-logo img { height: 42px; width: auto; }
.fm-lp-logo span { font-weight: 800; font-size: 1.3rem; color: var(--fm-blue); }
.fm-lp-nav { display: flex; align-items: center; flex: 1 1 auto; gap: 16px; min-width: 0; }
.fm-lp-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex: 1 1 auto; }
.fm-lp-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; background: transparent; border-radius: 10px; color: var(--lp-ink) !important; font-weight: 600; font-size: .92rem; text-decoration: none !important; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.fm-lp-link:hover, .fm-lp-dd:hover > .fm-lp-link, .fm-lp-dd.open > .fm-lp-link { background: #eaf3ff; color: var(--fm-blue) !important; }
.fm-lp-link i { font-size: .65rem; opacity: .7; transition: transform .15s; }
.fm-lp-dd.open > .fm-lp-link i { transform: rotate(180deg); }
.fm-lp-dd { position: relative; }
.fm-lp-sub { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: calc(100% + 6px); min-width: 250px; background: #fff; border: 1px solid #e6edf7; border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 37, 71, .14); display: none; z-index: 20; }
.fm-lp-dd:hover > .fm-lp-sub, .fm-lp-dd.open > .fm-lp-sub { display: block; }
.fm-lp-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.fm-lp-sub a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--lp-ink) !important; font-size: .88rem; font-weight: 500; text-decoration: none !important; }
.fm-lp-sub a:hover { background: #eaf3ff; color: var(--fm-blue) !important; }
.fm-lp-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.fm-lp-cart { position: relative; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--lp-ink) !important; font-size: 1.1rem; text-decoration: none !important; }
.fm-lp-cart:hover { background: #eaf3ff; color: var(--fm-blue) !important; }
.fm-lp-cart em { position: absolute; top: 2px; right: 0; font-style: normal; font-size: .64rem; font-weight: 700; background: #ef4444; color: #fff; min-width: 17px; height: 17px; line-height: 17px; text-align: center; border-radius: 9px; padding: 0 4px; }
.fm-lp-cart em.fm-cart-empty { display: none; }
.fm-lp-login { padding: 10px 14px; font-weight: 700; font-size: .92rem; color: var(--fm-blue) !important; text-decoration: none !important; border-radius: 10px; }
.fm-lp-login:hover { background: #eaf3ff; }
.fm-lp-signup { padding: 11px 22px; border-radius: 10px; background: var(--fm-green); color: #fff !important; font-weight: 700; font-size: .92rem; text-decoration: none !important; box-shadow: 0 8px 18px rgba(31, 163, 90, .28); transition: background .15s, transform .15s; }
.fm-lp-signup:hover { background: var(--fm-green-dark); transform: translateY(-1px); }
.fm-lp-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #eaf3ff; color: var(--fm-blue); font-size: 1.1rem; }

/* page body: centered container */
body.fm-landing section#main-body { padding: 28px 0 8px; }
body.fm-landing .fm-main #main-body > .container { max-width: 1200px; padding: 0 24px; }
body.fm-landing .fm-main #main-body > .container > .row { margin-left: -10px; margin-right: -10px; }
body.fm-landing .network-issue-alert .container, body.fm-landing .fm-crumb .container { max-width: 1200px; padding: 0 24px; margin: 0 auto; }
body.fm-landing .network-issue-alert { border-radius: 0; margin: 0; }
body.fm-landing .master-breadcrumb.fm-crumb { max-width: 1200px; margin: 0 auto; padding: 18px 24px 0; }
body.fm-landing.fm-page-homepage .master-breadcrumb.fm-crumb { display: none; }

/* hero (home page domain search) - full width, bright */
body.fm-landing #frmDomainHomepage { margin: 0; }
body.fm-landing #frmDomainHomepage .home-domain-search {
    border-radius: 0; box-shadow: none; position: relative; overflow: hidden;
    background: radial-gradient(900px 420px at 85% 0%, rgba(18, 181, 245, .55), transparent 60%), linear-gradient(135deg, #0aa5f0 0%, #2563eb 52%, #1d4ed8 100%) !important;
}
body.fm-landing #frmDomainHomepage .home-domain-search::before { width: 520px; height: 520px; left: -160px; top: -200px; background: rgba(255,255,255,.08); }
body.fm-landing #frmDomainHomepage .home-domain-search::after { width: 420px; height: 420px; right: -120px; bottom: -220px; background: rgba(255,255,255,.07); }
body.fm-landing #frmDomainHomepage .home-domain-search .container { max-width: 980px; }
body.fm-landing #frmDomainHomepage .home-domain-search .p-5 { padding: 76px 24px 60px !important; }
body.fm-landing #frmDomainHomepage .home-domain-search h2 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 14px; }
body.fm-landing #frmDomainHomepage .home-domain-search h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.7); margin: 16px auto 0; }
body.fm-landing #frmDomainHomepage .input-group-wrapper { max-width: 720px; margin-top: 30px; }
body.fm-landing #frmDomainHomepage .input-group { border-radius: 14px; padding: 6px; box-shadow: 0 0 0 8px rgba(255,255,255,.22), 0 24px 50px rgba(8, 36, 100, .35); }
body.fm-landing #frmDomainHomepage .input-group .form-control { height: 54px; font-size: 1.02rem; padding-left: 18px; }
body.fm-landing #frmDomainHomepage .input-group-append .btn { height: 54px; border-radius: 10px; font-size: 1rem; padding: 0 30px; }
.fm-hero-chips { list-style: none; margin: 34px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fm-hero-chips li { position: relative; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 9px 18px; font-size: .88rem; backdrop-filter: blur(4px); }
.fm-hero-chips li strong { font-weight: 800; font-size: .98rem; }
.fm-hero-chips li span { opacity: .95; }
.fm-hero-chips li em { font-style: normal; font-size: .62rem; font-weight: 800; background: #fbbf24; color: #78350f; padding: 2px 7px; border-radius: 999px; }

/* home page sections */
body.fm-landing.fm-page-homepage .primary-content > h2.text-center { font-size: 1.75rem; color: var(--lp-ink); margin: 52px 0 26px !important; }
body.fm-landing.fm-page-homepage .primary-content > h2.text-center::after { content: ""; display: block; width: 54px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #12b5f5, #2563eb); margin: 12px auto 0; }
body.fm-landing .card-columns.home .card { border-radius: 18px; }
body.fm-landing .card-columns.home .card:hover { border-color: #bcd7fb; }
body.fm-landing .card-columns.home .btn.btn-outline-primary { border-radius: 10px !important; }
body.fm-landing .action-icon-btns a { border-radius: 16px; }

/* public pages: calmer, roomy */
body.fm-landing .primary-content .card { border-radius: 16px; }
body.fm-landing .header-lined h1, body.fm-landing .primary-content > h1 { color: var(--lp-ink); }

/* footer */
body.fm-landing footer.fm-footer { background: var(--lp-navy); color: rgba(255,255,255,.75); margin-top: 56px; padding: 0; border: 0; }
body.fm-landing footer.fm-footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, #12b5f5, #2563eb 50%, #7c3aed); }
.fm-footer-cols { display: none; }
body.fm-landing .fm-footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; max-width: 1200px; margin: 0 auto; padding: 48px 24px 28px; }
.fm-fcol h4 { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.fm-fcol ul { list-style: none; margin: 0; padding: 0; }
.fm-fcol li { margin: 0 0 9px; }
.fm-fcol a { color: rgba(255,255,255,.72) !important; font-size: .9rem; text-decoration: none !important; }
.fm-fcol a:hover { color: #fff !important; }
.fm-fcol-brand p { margin: 14px 0 0; font-size: .9rem; color: rgba(255,255,255,.7); }
.fm-flogo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.fm-flogo { color: #fff !important; font-weight: 800; font-size: 1.2rem; text-decoration: none !important; }
body.fm-landing .fm-footer-row, body.fm-landing footer.fm-footer .copyright { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
body.fm-landing .fm-footer-row { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; margin-bottom: 0; }
body.fm-landing footer.fm-footer .copyright { border: 0; padding-bottom: 26px; padding-top: 14px; margin: 0 auto; color: rgba(255,255,255,.6); text-align: left; }
body.fm-landing footer.fm-footer, body.fm-landing footer.fm-footer a, body.fm-landing footer.fm-footer .nav-link { color: rgba(255,255,255,.72); }
body.fm-landing footer.fm-footer .nav-link:hover, body.fm-landing footer.fm-footer a:hover { color: #fff; }
body.fm-landing footer.fm-footer .fm-footer-locale, body.fm-landing footer.fm-footer .btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff; }
body.fm-landing .fm-footer-social a { background: rgba(255,255,255,.14) !important; }

/* tablet / phone */
@media (max-width: 1199.98px) {
    .fm-lp-wrap { height: 64px; padding: 0 16px; gap: 12px; }
    .fm-lp-logo img { height: 36px; }
    .fm-lp-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .fm-lp-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid #e6edf7; box-shadow: 0 18px 30px rgba(15, 37, 71, .12); padding: 8px 16px 18px; max-height: calc(100vh - 70px); overflow-y: auto; }
    .fm-lp-nav.open { display: flex; }
    .fm-lp-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .fm-lp-link { width: 100%; justify-content: space-between; padding: 13px 12px; }
    .fm-lp-sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; background: transparent; }
    .fm-lp-sub::before { display: none; }
    .fm-lp-dd:hover > .fm-lp-sub { display: none; }
    .fm-lp-dd.open > .fm-lp-sub { display: block; }
    .fm-lp-actions { padding-top: 12px; border-top: 1px solid #e6edf7; margin-top: 8px; }
    .fm-lp-signup { flex: 1 1 auto; text-align: center; }
    body.fm-landing .fm-main #main-body > .container, body.fm-landing .master-breadcrumb.fm-crumb { padding-left: 16px; padding-right: 16px; }
    body.fm-landing #frmDomainHomepage .home-domain-search .p-5 { padding: 48px 18px 40px !important; }
    body.fm-landing #frmDomainHomepage .home-domain-search h2 { font-size: 1.75rem; }
    body.fm-landing .fm-footer-cols { grid-template-columns: 1fr 1fr; padding: 36px 16px 20px; }
    .fm-fcol-brand { grid-column: 1 / -1; }
    body.fm-landing .fm-footer-row, body.fm-landing footer.fm-footer .copyright { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 575.98px) {
    body.fm-landing #frmDomainHomepage .home-domain-search h2 { font-size: 1.45rem; }
    body.fm-landing #frmDomainHomepage .input-group-wrapper { margin-top: 22px; }
    body.fm-landing #frmDomainHomepage .input-group .form-control { height: 50px; }
    .fm-hero-chips { gap: 8px; margin-top: 24px; }
    .fm-hero-chips li { padding: 7px 12px; font-size: .78rem; }
    body.fm-landing .fm-footer-cols { grid-template-columns: 1fr; }
    body.fm-landing.fm-page-homepage .primary-content > h2.text-center { font-size: 1.35rem; margin: 38px 0 18px !important; }
}
.fm-lp-logo img { height: 58px; margin: -8px 0; }
@media (max-width: 1199.98px) { .fm-lp-logo img { height: 48px; margin: -6px 0; } }

/* domain register / transfer search panel in the order form: same blue field as the hero */
body.fm-app #order-standard_cart .domain-checker-container .domain-checker-bg, body.fm-app #order-standard_cart .domain-checker-bg {
    position: relative; overflow: hidden; border: 0; border-radius: 20px; box-shadow: 0 14px 34px rgba(37, 99, 235, .25);
    background: radial-gradient(700px 320px at 88% 0%, rgba(18, 181, 245, .5), transparent 62%), linear-gradient(135deg, #0aa5f0 0%, #2563eb 52%, #1d4ed8 100%) !important;
}
body.fm-app #order-standard_cart .domain-checker-bg::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.07); left: -120px; top: -150px; pointer-events: none; }
body.fm-app #order-standard_cart .domain-checker-bg > * { position: relative; z-index: 1; }
body.fm-app #order-standard_cart .domain-checker-bg .input-group-box { background: #fff; border-radius: 14px; box-shadow: 0 0 0 6px rgba(255,255,255,.25); }
body.fm-app #order-standard_cart .domain-checker-bg .btn-primary, body.fm-app #order-standard_cart .domain-checker-bg .domain-check-availability { background: #1672e6; border-color: #1672e6; border-radius: 10px; font-weight: 700; }
body.fm-app #order-standard_cart .domain-checker-bg .btn-success { background: var(--fm-green); border-color: var(--fm-green); }
body.fm-app #order-standard_cart .domain-checker-bg, body.fm-app #order-standard_cart .domain-checker-bg p, body.fm-app #order-standard_cart .domain-checker-bg label { color: #fff; }

/* ==========================================================================
   Order pages on tablet / phone: nothing may touch or leave the screen edge.
   The row that wraps the form column and the order-summary column kept Bootstrap's negative side margin while its
   columns lost their padding (custom.css), so every line started 9px off-screen and the first letters were cut.
   ========================================================================== */
@media (max-width: 1199.98px) {
    body.fm-app #order-standard_cart .cart-body .row:has(> .secondary-cart-body) { margin-left: 0; margin-right: 0; }
    body.fm-app #order-standard_cart .cart-body { overflow-wrap: break-word; }
}
@media (max-width: 991.98px) {
    /* order summary under the form: full width instead of a 300px island */
    body.fm-app #order-standard_cart .secondary-cart-sidebar { float: none; width: 100%; max-width: none; margin: 20px 0 0; }
    body.fm-app #order-standard_cart .secondary-cart-body { float: none; width: 100%; }

    /* the three stacked "category / quick action / currency" boxes: compact, so the form is not pushed far down */
    body.fm-app #order-standard_cart .sidebar-collapsed .card { margin-bottom: 8px; }
    body.fm-app #order-standard_cart .sidebar-collapsed .card-header { padding: 9px 14px; }
    body.fm-app #order-standard_cart .sidebar-collapsed .card-header .panel-title, body.fm-app #order-standard_cart .sidebar-collapsed .card-header h3 { font-size: .88rem; margin: 0; }
    body.fm-app #order-standard_cart .sidebar-collapsed .card-body { padding: 8px 14px 12px; }
    body.fm-app #order-standard_cart .sidebar-collapsed { margin-bottom: 10px; }
}
@media (max-width: 575.98px) {
    /* big totals and long values wrap instead of pushing the page sideways */
    body.fm-app #order-standard_cart .total-due-today .amt, body.fm-app #order-standard_cart .order-summary .amt { font-size: 1.9rem; }
    body.fm-app #order-standard_cart .order-summary, body.fm-app #order-standard_cart .view-cart-items { overflow-wrap: anywhere; }
    body.fm-app #order-standard_cart select.form-control, body.fm-app #order-standard_cart .form-control { max-width: 100%; }
}

/* Sidebar panel footer (e.g. "3 Tagihan Jatuh Tempo": Bayar Semua + Pembelian Saldo): buttons side by side, same height, no stray floats */
body.fm-app .sidebar .card-sidebar .card-footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; padding: 12px 16px; background: #fafbff; border-top: 1px solid var(--fm-line); }
body.fm-app .sidebar .card-sidebar .card-footer::after { display: none; }
body.fm-app .sidebar .card-sidebar .card-footer .btn { float: none !important; flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 0 !important; padding: 8px 12px; font-size: .85rem; font-weight: 600; line-height: 1.2; white-space: nowrap; border-radius: 8px; }
body.fm-app .sidebar .card-sidebar .card-footer .btn i, body.fm-app .sidebar .card-sidebar .card-footer .btn svg { flex: none; }
body.fm-app .sidebar .card-sidebar .card-body { overflow-wrap: anywhere; }

/* Tables written in the WHMCS editor (announcements, knowledgebase articles) keep their grid in the client area:
   borders, padding, a lighter header row, striping, and horizontal scroll instead of pushing the page wider on a phone. */
body.fm-app .saas-article-body table,
body.fm-app .primary-content article table {
    display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; border-spacing: 0;
    margin: 1.1rem 0; font-size: .92rem; line-height: 1.5; background: #fff;
}
body.fm-app .saas-article-body table th, body.fm-app .saas-article-body table td,
body.fm-app .primary-content article table th, body.fm-app .primary-content article table td {
    border: 1px solid var(--fm-line); padding: .6rem .8rem; vertical-align: top; text-align: left; min-width: 90px;
}
body.fm-app .saas-article-body table thead th, body.fm-app .saas-article-body table th,
body.fm-app .primary-content article table thead th, body.fm-app .primary-content article table th {
    background: #f4f7fd; color: var(--fm-ink-strong); font-weight: 700;
}
body.fm-app .saas-article-body table tbody tr:nth-child(even) td, body.fm-app .primary-content article table tbody tr:nth-child(even) td { background: #fafbff; }
body.fm-app .saas-article-body table img, body.fm-app .primary-content article table img { max-width: 100%; height: auto; }

/* Affiliate pages (sign-up and the terms): Farmedia blue, dotted-map art, numbered steps */
body.fm-app .fm-aff-hero { text-align: center; max-width: 760px; margin: 4px auto 22px; }
body.fm-app .fm-aff-eyebrow { display: inline-block; font: 700 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--fm-blue); background: var(--fm-tint); padding: 7px 12px; border-radius: 999px; }
body.fm-app .fm-aff-hero h2 { margin: 14px 0 10px; font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: var(--fm-ink-strong); }
body.fm-app .fm-aff-lead { margin: 0 auto; color: var(--fm-ink); line-height: 1.7; }
body.fm-app .fm-aff-facts { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
body.fm-app .fm-aff-facts li { display: grid; gap: 2px; min-width: 150px; padding: 12px 18px; background: #fff; border: 1px solid var(--fm-line); border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
body.fm-app .fm-aff-facts strong { font-size: 1.25rem; font-weight: 800; color: var(--fm-blue); letter-spacing: -.02em; }
body.fm-app .fm-aff-facts span { font-size: .8rem; color: var(--fm-ink); }
body.fm-app .fm-aff-art { display: block; width: 100%; max-width: 960px; height: auto; margin: 6px auto 0; }
body.fm-app .fm-aff-steps { list-style: none; counter-reset: aff; margin: 0 auto 22px; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
body.fm-app .fm-aff-steps li { display: grid; gap: 4px; text-align: center; padding: 6px 8px; }
body.fm-app .fm-aff-steps strong { color: var(--fm-ink-strong); }
body.fm-app .fm-aff-steps span { font-size: .88rem; color: var(--fm-ink); line-height: 1.55; }
body.fm-app .fm-aff-why { list-style: none; margin: 0 auto 24px; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
body.fm-app .fm-aff-why li { display: grid; gap: 4px; padding: 16px; background: #fff; border: 1px solid var(--fm-line); border-radius: 14px; }
body.fm-app .fm-aff-why i { color: var(--fm-blue); font-size: 1.15rem; margin-bottom: 4px; }
body.fm-app .fm-aff-why strong { color: var(--fm-ink-strong); }
body.fm-app .fm-aff-why span { font-size: .88rem; color: var(--fm-ink); line-height: 1.55; }
body.fm-app .fm-aff-terms { max-width: 960px; margin: 28px auto; padding: 22px; background: #fff; border: 1px solid var(--fm-line); border-radius: 16px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
body.fm-app .fm-aff-terms-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--fm-line); }
body.fm-app .fm-aff-terms-head > i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--fm-tint); color: var(--fm-blue); font-size: 1.2rem; }
body.fm-app .fm-aff-terms-head h3 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--fm-ink-strong); }
body.fm-app .fm-aff-terms-head p { margin: 2px 0 0; font-size: .88rem; color: var(--fm-ink); }
body.fm-app .fm-aff-rules { margin: 0; padding-left: 1.3rem; display: grid; gap: 12px; color: var(--fm-ink); line-height: 1.65; font-size: .92rem; }
body.fm-app .fm-aff-rules li::marker { color: var(--fm-blue); font-weight: 800; }
body.fm-app .fm-aff-rules strong { color: var(--fm-ink-strong); }
body.fm-app .fm-aff-activate { max-width: 960px; margin: 0 auto 8px; text-align: center; }
body.fm-app .fm-aff-agree { display: flex; gap: 10px; align-items: flex-start; justify-content: center; margin: 0 0 14px; font-size: .92rem; color: var(--fm-ink-strong); text-align: left; }
body.fm-app .fm-aff-agree input { margin-top: .25rem; }
@media (max-width: 767.98px) {
    body.fm-app .fm-aff-steps { grid-template-columns: repeat(2, 1fr); }
    body.fm-app .fm-aff-why { grid-template-columns: 1fr; }
    body.fm-app .fm-aff-terms { padding: 16px; }
}
@media (max-width: 479.98px) {
    body.fm-app .fm-aff-steps { grid-template-columns: 1fr; }
    body.fm-app .fm-aff-facts li { min-width: 130px; flex: 1 1 130px; }
}
@media (max-width: 767.98px) {
    body.fm-app .fm-aff-steps li::before { counter-increment: aff; content: counter(aff); justify-self: center; display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 4px; border-radius: 50%; background: linear-gradient(135deg, #0aa8f5, #0055ff); color: #fff; font-weight: 800; font-size: .8rem; }
}

/* Affiliate dashboard cards (registered affiliates): stats, link + coupon, balance, commission table, withdrawal + bank form */
body.fm-app .fm-aff-h { font-size: 1.15rem; font-weight: 800; color: var(--fm-ink-strong); margin: 4px 0 2px; }
body.fm-app .fm-aff-sub, body.fm-app .fm-aff-muted { color: var(--fm-ink); font-size: .9rem; line-height: 1.55; }
body.fm-app .fm-aff-card { border: 1px solid var(--fm-line); border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
body.fm-app .fm-aff-card-title { font-size: 1.05rem; font-weight: 800; color: var(--fm-ink-strong); margin: 0 0 6px; }
body.fm-app .fm-aff-gap { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--fm-line); }
body.fm-app .fm-aff-copy .form-control { font-size: .88rem; background: #f6f8fc; }
body.fm-app .fm-aff-coupons { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
body.fm-app .fm-aff-coupons li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; padding: 8px 12px; background: var(--fm-tint); border-radius: 10px; }
body.fm-app .fm-aff-coupons li form { margin-left: auto; }
body.fm-app .fm-aff-coupons strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--fm-blue); }
body.fm-app .fm-aff-coupons span { font-size: .82rem; color: var(--fm-ink); }
body.fm-app .fm-aff-couponform { display: flex; flex-wrap: wrap; gap: 8px; }
body.fm-app .fm-aff-couponform .form-control { flex: 1 1 180px; min-width: 0; }
body.fm-app .fm-aff-rates th { background: #f4f7fd; }
body.fm-app .fm-aff-rates .fm-aff-grp td { background: #fafbff; font-weight: 700; color: var(--fm-ink-strong); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
body.fm-app .fm-aff-bank .form-group { margin-bottom: .85rem; }
body.fm-app .fm-aff-bank label { font-size: .9rem; }
body.fm-app .fm-aff-couponform .form-control::placeholder { text-transform: none; }
body.fm-app .fm-aff-coupon-table th { background: #f4f7fd; font-weight: 700; }
body.fm-app .fm-aff-coupon-table td { vertical-align: middle; }
body.fm-app .fm-aff-addcoupon label { font-weight: 600; color: var(--fm-ink-strong); }
body.fm-app .fm-aff-addcoupon .form-control::placeholder { text-transform: none; }

/* Affiliate "Link to Us": warning, product-group banner lists with open/close rows */
body.fm-app .fm-aff-link { max-width: 960px; margin: 28px auto 8px; }
body.fm-app .fm-aff-linkart { display: block; width: 100%; max-width: 560px; height: auto; margin: 6px auto 18px; }
body.fm-app .fm-aff-warn { color: #c81e1e; font-size: .92rem; line-height: 1.6; text-align: center; max-width: 760px; margin: 0 auto 14px; }
body.fm-app .fm-aff-ban-group { font-size: 1rem; font-weight: 800; text-align: center; color: var(--fm-ink-strong); margin: 22px 0 10px; }
body.fm-app .fm-aff-ban-list { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
body.fm-app .fm-aff-ban { background: #fff; border: 1px solid var(--fm-line); border-radius: 12px; overflow: hidden; min-width: 0; }
body.fm-app .fm-aff-ban-preview img { max-width: 100% !important; height: auto !important; }
body.fm-app .fm-aff-ban > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-size: .92rem; color: var(--fm-ink-strong); }
body.fm-app .fm-aff-ban > summary::-webkit-details-marker { display: none; }
body.fm-app .fm-aff-ban > summary::after { content: "+"; font-size: 1.3rem; font-weight: 700; line-height: 1; color: var(--fm-blue); }
body.fm-app .fm-aff-ban[open] > summary { background: #f4f7fd; }
body.fm-app .fm-aff-ban[open] > summary::after { content: "\2212"; }
body.fm-app .fm-aff-ban-body { padding: 14px 16px 16px; border-top: 1px solid var(--fm-line); }
body.fm-app .fm-aff-ban-preview { padding: 12px; margin-bottom: 12px; background: #f3f4f6; border-radius: 10px; overflow-x: auto; text-align: center; }
body.fm-app .fm-aff-ban-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; background: #f6f8fc; }

/* =====================================================================
   Tiket (viewticket) di HP/tablet: kartu informasi (Requestor, Divisi, Tanggal, Status...) satu kolom yang rapi,
   dan baris CC yang hanya jadi cetakan (disembunyikan) tidak lagi tampil sebagai kartu kosong
   ===================================================================== */
@media (max-width: 991.98px) {
    body.fm-app .sidebar .card-sidebar .list-group:has(> div.list-group-item) { flex-direction: column !important; flex-wrap: nowrap !important; gap: 8px; }
    body.fm-app .sidebar .card-sidebar div.list-group-item {
        display: block; flex: 0 0 auto; width: 100%; min-height: 0; padding: 11px 14px; font-size: .88rem; font-weight: 600;
        line-height: 1.45; text-align: left; white-space: normal; overflow-wrap: anywhere; word-break: normal;
    }
    body.fm-app .sidebar .card-sidebar div.list-group-item::before { content: none !important; display: none !important; }
    body.fm-app .sidebar .card-sidebar div.list-group-item > i { margin-right: 4px; }
    body.fm-app .sidebar .card-sidebar div.list-group-item .badge,
    body.fm-app .sidebar .card-sidebar div.list-group-item > .badge { float: none !important; display: inline-block; margin: 0 0 0 8px; vertical-align: middle; }
    body.fm-app .sidebar .card-sidebar div.list-group-item:hover { background: #fff; color: var(--fm-blue-deep); box-shadow: 0 2px 8px rgba(37, 99, 235, .08); border-color: #cfe0fb !important; }
}
/* cetakan baris CC (disembunyikan sampai ada alamat baru) tetap tersembunyi, apa pun aturan tampilannya */
body.fm-app #sidebarTicketCc [style*="display: none"], body.fm-app #sidebarTicketCc [style*="display:none"],
body.fm-app #ccCloneRow[style*="display: none"], body.fm-app #ccCloneRow[style*="display:none"] { display: none !important; }
body.fm-app #sidebarTicketCc .list-group-item.ticket-cc-email::before, body.fm-app #sidebarTicketCc .ticket-cc-email::before { content: none !important; display: none !important; }
@media (max-width: 991.98px) {
    body.fm-app #sidebarTicketCc .list-group { flex-direction: column !important; flex-wrap: nowrap !important; gap: 6px; }
    body.fm-app #sidebarTicketCc .ticket-cc-email { width: 100%; min-height: 44px; background: #fff; }
}

/* =====================================================================
   "Tiket Anda sekarang" dan menu lain yang labelnya berisi beberapa baris (judul + status + waktu) di HP/tablet:
   satu kartu selebar layar, teks turun baris (tidak terpotong). Menu berlabel teks biasa tetap dua kolom.
   ===================================================================== */
@media (max-width: 991.98px) {
    body.fm-app .sidebar .card-sidebar a.list-group-item:has(.sidebar-menu-item-label :is(small, br, span, strong, b, em, div, p)) {
        flex: 1 1 100%; width: 100%; max-width: 100%; min-width: 0; align-items: flex-start; padding: 10px 12px 10px 8px;
    }
    body.fm-app .sidebar .card-sidebar a.list-group-item:has(.sidebar-menu-item-label :is(small, br, span, strong, b, em, div, p)) .sidebar-menu-item-wrapper { align-items: flex-start; min-width: 0; }
    body.fm-app .sidebar .card-sidebar a.list-group-item:has(.sidebar-menu-item-label :is(small, br, span, strong, b, em, div, p)) .sidebar-menu-item-icon-wrapper { margin-top: 2px; }
}
@media (max-width: 991.98px) {
    body.fm-app .sidebar .card-sidebar .list-group-item .sidebar-menu-item-label,
    body.fm-app .sidebar .card-sidebar .list-group-item .sidebar-menu-item-label * { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word; word-break: normal; min-width: 0; max-width: 100%; }
    body.fm-app .sidebar .card-sidebar .list-group-item .sidebar-menu-item-label small, body.fm-app .sidebar .card-sidebar .list-group-item .sidebar-menu-item-label .text-muted { display: block; margin-top: 2px; font-weight: 500; line-height: 1.4; }
}

/* Penarikan komisi: dokumen pendukung */
body.fm-app .fm-aff-docs { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--fm-line); border-radius: 12px; background: #f9fbff; }
body.fm-app .fm-aff-doc-state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; padding: 8px 10px; border-radius: 10px; font-size: .84rem; background: #fff; border: 1px solid var(--fm-line); }
body.fm-app .fm-aff-doc-state span { color: #64748b; overflow-wrap: anywhere; }
body.fm-app .fm-aff-doc-state--approved { border-color: #a7e3c0; background: #effbf4; color: #15803d; }
body.fm-app .fm-aff-doc-state--rejected { border-color: #f5b5b5; background: #fff3f3; color: #b91c1c; }
body.fm-app .fm-aff-doc-state--pending { border-color: #fde3a1; background: #fffaeb; color: #a16207; }
body.fm-app .fm-aff-docs input[type="file"] { max-width: 100%; }

/* =====================================================================
   Tiket: panel "CC Recipients" - baris alamat email (teks di kiri, ikon hapus merah bulat di kanan), kartu berbingkai biru,
   field tambah email menyatu dengan tombolnya. Baris cetakan (kosong, untuk alamat baru) tidak pernah tampil. Aman di semua lebar layar.
   ===================================================================== */
body.fm-app #ccCloneRow, body.fm-app #sidebarTicketCc .ticket-cc-email:has(.email:empty) { display: none !important; }
body.fm-app #sidebarTicketCc .list-group { display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important; gap: 8px !important; padding: 10px 12px 2px !important; overflow: visible !important; }
body.fm-app #sidebarTicketCc .ticket-cc-email, body.fm-app #sidebarTicketCc div.list-group-item.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;
    width: 100% !important; max-width: 100% !important; min-width: 0 !important; min-height: 50px !important; margin: 0 !important; padding: 8px 8px 8px 14px !important;
    background: #fff !important; border: 1px solid #cfe0fb !important; border-radius: 12px !important; box-shadow: 0 2px 8px rgba(37, 99, 235, .08) !important; text-align: left !important;
}
body.fm-app #sidebarTicketCc .ticket-cc-email::before, body.fm-app #sidebarTicketCc .ticket-cc-email::after { content: none !important; display: none !important; }
body.fm-app #sidebarTicketCc .ticket-cc-email .email, body.fm-app #sidebarTicketCc .ticket-cc-email > span:not(.badge) {
    display: block !important; flex: 1 1 auto !important; min-width: 0 !important; max-width: 100% !important; font-size: .9rem !important; font-weight: 600 !important; line-height: 1.35 !important;
    color: var(--fm-blue-deep, #1e3a8a) !important; white-space: normal !important; overflow-wrap: anywhere !important; word-break: break-word !important;
}
body.fm-app #sidebarTicketCc .ticket-cc-email .btn, body.fm-app #sidebarTicketCc .ticket-cc-email .delete-cc-email {
    flex: 0 0 38px !important; width: 38px !important; height: 38px !important; min-width: 38px !important; min-height: 38px !important; max-height: 38px !important; margin: 0 !important; padding: 0 !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important; border: 0 !important; border-radius: 50% !important; background: transparent !important;
    color: #dc2626 !important; box-shadow: none !important; font-size: 1.15rem !important; line-height: 1 !important;
}
body.fm-app #sidebarTicketCc .ticket-cc-email .btn:hover, body.fm-app #sidebarTicketCc .ticket-cc-email .btn:focus { background: #fef2f2 !important; color: #b91c1c !important; }
body.fm-app #sidebarTicketCc .ticket-cc-email .btn i { color: inherit !important; margin: 0 !important; }
body.fm-app #sidebarTicketCc .card-footer, body.fm-app #sidebarTicketCc .panel-footer { padding: 10px 12px 14px !important; }
body.fm-app #sidebarTicketCc #frmAddCcEmail .input-group { flex-wrap: nowrap !important; width: 100% !important; }
body.fm-app #sidebarTicketCc #frmAddCcEmail .form-control { min-width: 0 !important; flex: 1 1 auto !important; }
body.fm-app #divCcEmailFeedback.hidden, body.fm-app #divCcEmailFeedback:empty { display: none !important; }
body.fm-app #divCcEmailFeedback { margin: 10px 0 0 !important; padding: 8px 12px !important; font-size: .85rem !important; border-radius: 10px !important; }

/* Ikon keranjang di bar atas: membuka halaman keranjang; lencana jumlah hanya bila ada isi */
.fm-top-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: #334155 !important; text-decoration: none !important; flex: none; }
.fm-top-cart:hover { background: #eaf3ff; color: var(--fm-blue, #0b6bff) !important; }
.fm-top-cart i { font-size: 1.1rem; }
.fm-top-cart em { position: absolute; top: 1px; right: -1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ef4444; color: #fff; font-style: normal; font-size: .66rem; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box; }
.fm-top-cart em.fm-cart-empty { display: none; }
@media (max-width: 575px) { .fm-top-cart { width: 38px; height: 38px; } }

/* =====================================================================
   Cart / configure / checkout - design refresh (CSS only)
   Same language as the product cards: soft rounded surfaces, green primary action.
   No display/visibility is set on anything the order-form JS toggles (.w-hidden etc.),
   no markup, ids, names or links are touched.
   ===================================================================== */

/* --- section titles (Configure / Checkout) --- */
body.fm-app #order-standard_cart .sub-heading { border-top: 1px solid #e3e9f4; margin-top: 26px; margin-bottom: 28px; }
body.fm-app #order-standard_cart .sub-heading span,
body.fm-app #order-standard_cart .sub-heading-borderless span { top: -15px; padding: 5px 16px; font-size: .92rem; font-weight: 800; letter-spacing: .01em; color: var(--fm-green-dark); background: #ecfdf3; border: 1px solid #bbf0d3; border-radius: 999px; }

/* --- cart items (viewcart) --- */
body.fm-app #order-standard_cart .view-cart-items-header { padding: 13px 20px; background: #f1fbf5; color: var(--fm-green-dark); border: 1px solid #d4f1e0; border-bottom: 0; border-radius: 16px 16px 0 0; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
body.fm-app #order-standard_cart .view-cart-items { background: #fff; border: 1px solid #e3e9f4; border-radius: 0 0 16px 16px; box-shadow: 0 8px 24px rgba(15, 23, 42, .05); overflow: hidden; }
body.fm-app #order-standard_cart .view-cart-items .item { padding: 18px 20px; margin: 0; border-bottom: 1px solid #eef2f8; transition: background-color .15s; }
body.fm-app #order-standard_cart .view-cart-items .item:last-child { border-bottom: 0; }
body.fm-app #order-standard_cart .view-cart-items .item:hover { background: #fafdfb; }
body.fm-app #order-standard_cart .view-cart-items .item-title { font-size: 1.12rem; font-weight: 800; color: var(--fm-ink-strong); letter-spacing: -.01em; }
body.fm-app #order-standard_cart .view-cart-items .item-group { font-size: .84rem; font-weight: 600; color: var(--fm-muted); }
body.fm-app #order-standard_cart .view-cart-items .item-domain { color: var(--fm-green-dark); font-weight: 600; overflow-wrap: anywhere; }
body.fm-app #order-standard_cart .view-cart-items .item-price { font-weight: 800; color: var(--fm-ink-strong); }
body.fm-app #order-standard_cart .view-cart-items .item-price .cycle { display: block; font-size: .78rem; font-weight: 600; color: var(--fm-muted); }
body.fm-app #order-standard_cart .view-cart-items .item .form-control-qty,
body.fm-app #order-standard_cart .view-cart-items .item-qty .form-control { border-radius: 10px; text-align: center; }
body.fm-app #order-standard_cart .btn-remove-from-cart { color: #9ca3af; transition: color .15s, transform .15s; }
body.fm-app #order-standard_cart .btn-remove-from-cart:hover { color: #dc2626; transform: scale(1.12); }
body.fm-app #order-standard_cart .view-cart-items .btn-link { color: var(--fm-green-dark); font-weight: 600; }
body.fm-app #order-standard_cart .view-cart-items .btn-link:hover { color: var(--fm-green); }

/* --- promo / tabs --- */
body.fm-app #order-standard_cart .view-cart-tabs .nav-tabs { border-bottom: 0; gap: 8px; margin-top: 18px; }
body.fm-app #order-standard_cart .view-cart-tabs .nav-tabs .nav-link { border: 0; border-radius: 999px; padding: 8px 18px; font-size: .85rem; font-weight: 700; color: var(--fm-blue); background: #eaf0fb; }
body.fm-app #order-standard_cart .view-cart-tabs .nav-tabs .nav-link.active { background: var(--fm-blue); color: #fff; }
body.fm-app #order-standard_cart .view-cart-tabs .tab-content { background: #fff; border: 1px solid #e3e9f4; border-radius: 16px; padding: 18px; margin-top: 10px; }
body.fm-app #order-standard_cart .view-cart-tabs .input-group .form-control,
body.fm-app #order-standard_cart .view-cart-tabs .input-group .btn { height: 44px; }

/* --- order summary --- */
body.fm-app #order-standard_cart .order-summary { border-radius: 18px; border: 1px solid #e3e9f4; box-shadow: 0 12px 30px rgba(15, 23, 42, .08); }
body.fm-app #order-standard_cart .order-summary h2 { padding: 16px 20px; font-size: 1.05rem; font-weight: 800; letter-spacing: .01em; }
body.fm-app #order-standard_cart .order-summary .summary-container { padding: 14px 18px 8px; font-size: .9rem; color: var(--fm-ink); }
body.fm-app #order-standard_cart .order-summary .subtotal { border-bottom: 1px dashed #e3e9f4; padding-bottom: 10px; }
body.fm-app #order-standard_cart .order-summary .total-due-today { color: var(--fm-ink-strong); }
body.fm-app #order-standard_cart .order-summary .total-due-today .amt { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--fm-green-dark); }
body.fm-app #order-standard_cart .order-summary .recurring-charges { font-size: .8rem; }
body.fm-app #order-standard_cart .order-summary .text-center { padding: 0 18px 18px; }

/* --- primary actions: green pill like the product Order Now --- */
body.fm-app #order-standard_cart .btn-checkout,
body.fm-app #order-standard_cart #btnCompleteProductConfig,
body.fm-app #order-standard_cart #btnCompleteOrder,
body.fm-app #order-standard_cart .btn-lg.btn-primary {
    background: linear-gradient(135deg, #2cbf6e 0%, var(--fm-green-dark) 100%); border: 0; color: #fff; border-radius: 999px;
    padding: 13px 28px; font-size: 1rem; font-weight: 800; box-shadow: 0 10px 22px rgba(31, 163, 90, .3); transition: transform .15s, box-shadow .15s, filter .15s;
}
body.fm-app #order-standard_cart .btn-checkout:hover,
body.fm-app #order-standard_cart #btnCompleteProductConfig:hover,
body.fm-app #order-standard_cart #btnCompleteOrder:hover,
body.fm-app #order-standard_cart .btn-lg.btn-primary:hover { background: linear-gradient(135deg, #2cbf6e 0%, var(--fm-green-dark) 100%); filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(31, 163, 90, .38); color: #fff; }
body.fm-app #order-standard_cart .btn-checkout.disabled,
body.fm-app #order-standard_cart .btn-lg.btn-primary.disabled,
body.fm-app #order-standard_cart .btn-lg.btn-primary:disabled { filter: grayscale(.6); opacity: .55; box-shadow: none; transform: none; }
body.fm-app #order-standard_cart .order-summary .btn-checkout { display: block; width: 100%; }
body.fm-app #order-standard_cart .btn-continue-shopping { color: var(--fm-blue); font-weight: 700; }

/* --- forms (configure + checkout) --- */
body.fm-app #order-standard_cart .field,
body.fm-app #order-standard_cart .form-control,
body.fm-app #order-standard_cart select.field,
body.fm-app #order-standard_cart .custom-select { min-height: 46px; border-radius: 12px; border: 1px solid #dbe3ef; background-color: #fff; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
body.fm-app #order-standard_cart .field:focus,
body.fm-app #order-standard_cart .form-control:focus,
body.fm-app #order-standard_cart .custom-select:focus { border-color: var(--fm-green); box-shadow: 0 0 0 4px rgba(31, 163, 90, .14); outline: 0; }
body.fm-app #order-standard_cart .field-icon i,
body.fm-app #order-standard_cart .field-icon .fas,
body.fm-app #order-standard_cart .field-icon .far { color: var(--fm-green); }
body.fm-app #order-standard_cart .field-help-text,
body.fm-app #order-standard_cart .field-error-msg { font-size: .8rem; }
body.fm-app #order-standard_cart .product-info,
body.fm-app #order-standard_cart .product-configurable-options { overflow-wrap: anywhere; }
body.fm-app #order-standard_cart .product-info { background: #f1fbf5; border: 1px solid #d4f1e0; border-radius: 14px; padding: 14px 18px; }
body.fm-app #order-standard_cart .product-info .product-title { font-size: 1.1rem; font-weight: 800; color: var(--fm-ink-strong); }

/* --- payment method / radios --- */
body.fm-app #order-standard_cart .radio-inline { margin: 0 6px 8px 0; padding: 9px 16px; background: #fff; border: 1px solid #dbe3ef; border-radius: 999px; font-weight: 600; font-size: .88rem; }
body.fm-app #order-standard_cart .radio-inline:hover { border-color: var(--fm-green); background: #f1fbf5; }

/* --- addon cards --- */
body.fm-app #order-standard_cart .panel-addon { border: 1px solid #e3e9f4; border-radius: 16px; box-shadow: 0 6px 18px rgba(15, 23, 42, .05); overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
body.fm-app #order-standard_cart .panel-addon:hover { transform: translateY(-3px); border-color: #b7e8cd; box-shadow: 0 14px 28px rgba(31, 163, 90, .14); }
body.fm-app #order-standard_cart .panel-addon .panel-body { border-radius: 0; }
body.fm-app #order-standard_cart .panel-addon .panel-price { background: #f1fbf5; color: var(--fm-green-dark); font-weight: 700; padding: 8px; }
body.fm-app #order-standard_cart .panel-addon .panel-add,
body.fm-app #order-standard_cart .panel-addon-selected .panel-add { background: linear-gradient(135deg, #2cbf6e 0%, var(--fm-green-dark) 100%); border-radius: 0; padding: 9px; font-weight: 700; }
body.fm-app #order-standard_cart .panel-addon-selected { border-color: var(--fm-green); box-shadow: 0 0 0 3px rgba(31, 163, 90, .14); }

/* --- empty cart + alerts --- */
body.fm-app #order-standard_cart .view-cart-empty { padding: 36px 20px; text-align: center; background: #f1fbf5; border: 1px dashed #b7e8cd; border-radius: 16px; color: var(--fm-ink); }
body.fm-app #order-standard_cart .alert { border-radius: 14px; }

/* --- responsive --- */
@media (max-width: 767.98px) {
    body.fm-app #order-standard_cart .view-cart-items .item { padding: 16px; }
    body.fm-app #order-standard_cart .view-cart-items-header { padding: 11px 16px; border-radius: 14px 14px 0 0; }
    body.fm-app #order-standard_cart .view-cart-items { border-radius: 0 0 14px 14px; }
    body.fm-app #order-standard_cart .order-summary .total-due-today .amt { font-size: 1.8rem; }
    body.fm-app #order-standard_cart .btn-checkout,
    body.fm-app #order-standard_cart #btnCompleteProductConfig,
    body.fm-app #order-standard_cart #btnCompleteOrder,
    body.fm-app #order-standard_cart .btn-lg.btn-primary { display: block; width: 100%; padding: 13px 20px; }
    body.fm-app #order-standard_cart .view-cart-tabs .nav-tabs { flex-wrap: wrap; }
    body.fm-app #order-standard_cart .radio-inline { display: block; margin-right: 0; border-radius: 14px; }
    body.fm-app #order-standard_cart .sub-heading span { max-width: 92%; white-space: normal; }
}

/* Judul halaman di HP/tablet: tidak lagi dipotong "Me…". Boleh turun ke 2 baris, tombol di kanan dirapatkan agar judul mendapat ruang. */
@media (max-width: 991.98px) {
    body.fm-app header.header.fm-top { gap: 10px; align-items: center; }
    .fm-top-left { flex: 1 1 0; min-width: 0; gap: 10px; }
    .fm-title { white-space: normal; text-overflow: clip; overflow: visible; overflow-wrap: anywhere; line-height: 1.18;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
    .fm-top-right { gap: 4px; }
    .fm-top-right .fm-icon-btn { width: 36px; height: 36px; }
}
@media (max-width: 575.98px) {
    .fm-title { font-size: 1.12rem; }
    .fm-top-cart { width: 36px; height: 36px; }
    .fm-avatar { width: 36px; height: 36px; }
    .fm-buy { padding: 9px 11px; }
}
@media (max-width: 399.98px) {
    /* layar sangat sempit: keranjang sudah ada di samping, tombol Buy Now disembunyikan agar judul muat */
    .fm-buy { display: none; }
}

/* Buy Now di menu samping (HP/tablet): kartu putih bulat dengan ikon tas hijau, di atas "Main Menu". Di desktop tetap tombol di header. */
.fm-side-buy { display: none; }
@media (max-width: 991.98px) {
    .fm-side-buy { display: flex; align-items: center; gap: 12px; margin: 0 4px 14px; padding: 12px 14px; border-radius: 16px; background: #fff;
        color: #0f172a !important; text-decoration: none !important; box-shadow: 0 8px 20px -10px rgba(15, 23, 42, .45); transition: transform .15s, box-shadow .15s; }
    .fm-side-buy:hover, .fm-side-buy:focus { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(15, 23, 42, .5); }
    .fm-side-buy-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(31, 163, 90, .12); color: var(--fm-green); font-size: 1.35rem; }
    .fm-side-buy-txt { flex: 1 1 auto; min-width: 0; font-weight: 800; font-size: 1rem; line-height: 1.2; }
    .fm-side-buy-txt small { display: block; margin-top: 2px; font-weight: 500; font-size: .74rem; color: #64748b; }
    .fm-side-buy-go { flex: none; color: var(--fm-green); font-size: .8rem; }
    /* tombol di header dipindah ke menu samping pada layar ini */
    .fm-top-right .fm-buy { display: none; }
}

/* ==========================================================================
   Affiliates (affiliates.tpl): same look as the client-area dashboard
   (.fm-stat tiles with gradient foot, .fm-bal rows with round icons, white cards)
   ========================================================================== */
body.fm-app .fm-aff-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
body.fm-app .fm-aff-head .fm-aff-h { font-size: 1.35rem; letter-spacing: -.01em; margin: 0 0 2px; }
body.fm-app .fm-aff-head .fm-aff-sub { margin: 0; }
body.fm-app .fm-aff-head--section { margin-top: 18px; }
body.fm-app .fm-aff-live { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
body.fm-app .fm-aff-live i { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: fmAffPulse 1.8s infinite; }
@keyframes fmAffPulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

/* stat tiles: three in a row (dashboard has four) */
body.fm-app .fm-aff-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; }
body.fm-app .fm-aff-stat { cursor: default; }
body.fm-app .fm-aff-stat:hover { transform: none; box-shadow: 0 6px 18px rgba(37, 99, 235, .10); }
body.fm-app .fm-aff-stat .fm-stat-body span { display: block; margin-top: 2px; color: var(--fm-muted); font-size: .86rem; }
body.fm-app .fm-aff-stat .fm-stat-foot i { opacity: .9; }
body.fm-app .fm-aff-stat--sky .fm-stat-body strong { color: #0284c7; }
body.fm-app .fm-aff-stat--sky .fm-stat-foot { background: linear-gradient(90deg, #0284c7 0%, #0ea5e9 100%); }
body.fm-app .fm-aff-stat--green .fm-stat-body strong { color: var(--fm-green-dark); }
body.fm-app .fm-aff-stat--green .fm-stat-foot { background: linear-gradient(90deg, var(--fm-green-dark) 0%, #22c55e 100%); }

/* cards */
body.fm-app .fm-aff-row .fm-aff-card { border-radius: 16px; box-shadow: 0 6px 18px rgba(15, 23, 42, .06); }
body.fm-app .fm-aff-row .fm-aff-card > .card-body { padding: 20px 22px; }
body.fm-app .fm-aff-card-title { display: flex; align-items: center; gap: 10px; }
body.fm-app .fm-aff-ico { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--fm-tint); color: var(--fm-blue); font-size: .9rem; }
body.fm-app .fm-aff-card-title + .fm-aff-muted { margin-top: 2px; }
body.fm-app .fm-aff-copy { flex-wrap: nowrap; }
body.fm-app .fm-aff-copy .form-control { height: 44px; border-radius: 10px 0 0 10px; border-color: var(--fm-line); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84rem; }
body.fm-app .fm-aff-copy .btn { height: 44px; padding: 0 16px; border-radius: 0 10px 10px 0; font-weight: 700; white-space: nowrap; }

/* balance rows */
body.fm-app .fm-aff-bals { display: grid; gap: 10px; margin-top: 12px; }
body.fm-app .fm-aff-bal { padding: 12px 14px; box-shadow: none; border-radius: 12px; }
body.fm-app .fm-aff-bal .fm-bal-ico { flex-basis: 42px; height: 42px; }
body.fm-app .fm-aff-bal .fm-bal-txt strong { font-size: 1.2rem; }
body.fm-app .fm-aff-bal--pending .fm-bal-ico { background: #fef3c7; color: #b45309; }
body.fm-app .fm-aff-bal--available { border-color: #bbf7d0; background: linear-gradient(90deg, #f0fdf4 0%, #fff 70%); }
body.fm-app .fm-aff-bal--available .fm-bal-txt strong { color: #15803d; }
body.fm-app .fm-aff-bal--withdrawn .fm-bal-ico { background: #eaf0fb; color: var(--fm-blue); }

/* product commission table and referral list */
body.fm-app .fm-aff-rates { border-radius: 12px; overflow: hidden; }
body.fm-app .fm-aff-rates td strong { color: var(--fm-green-dark); }
body.fm-app .fm-aff-table .table-container { border: 1px solid var(--fm-line); border-radius: 16px; box-shadow: 0 6px 18px rgba(15, 23, 42, .06); background: #fff; }
body.fm-app .fm-aff-table .table-list thead th { background: #f4f7fd; color: var(--fm-ink-strong); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

/* withdrawal button: brand gradient instead of the old red */
body.fm-app .fm-aff-withdraw { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border: 0; border-radius: 12px; background: linear-gradient(90deg, var(--fm-blue) 0%, #1d8bef 100%); font-weight: 700; box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .7); }
body.fm-app .fm-aff-withdraw:hover { background: linear-gradient(90deg, var(--fm-blue-dark) 0%, var(--fm-blue) 100%); }
body.fm-app .fm-aff-withdraw.disabled, body.fm-app .fm-aff-withdraw:disabled { background: #e5e7eb; color: #6b7280; box-shadow: none; opacity: 1; }

@media (max-width: 991.98px) {
    body.fm-app .fm-aff-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    body.fm-app .fm-aff-stat .fm-stat-art { font-size: 3.4rem; }
}
@media (max-width: 767.98px) {
    body.fm-app .fm-aff-stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    body.fm-app .fm-aff-stat .fm-stat-body { min-height: 0; padding: 14px 16px 12px; }
    body.fm-app .fm-aff-row .fm-aff-card > .card-body { padding: 16px; }
    body.fm-app .fm-aff-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { body.fm-app .fm-aff-live i { animation: none; } }

/* =====================================================================
   List tables, SaaS style (domains, services, invoices, tickets, quotes, e-mails ...)
   One clean card per table: soft header, thin row dividers, calm hover, pill statuses.
   Style only: the markup, columns, sorting, search and paging stay exactly as WHMCS renders them.
   ===================================================================== */
body.fm-app .table-container { border: 1px solid #e8ecf3; border-radius: 16px; padding: 18px 18px 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .04); }

/* toolbar: "Menampilkan ...", page size, search */
body.fm-app .table-container .dataTables_info { color: #64748b; font-size: .84rem; padding-top: 10px; }
body.fm-app .table-container .dataTables_length { color: #64748b; font-size: .84rem; }
body.fm-app .table-container .dataTables_length select { border: 1px solid #e2e8f0; border-radius: 8px; height: 34px; padding: 0 8px; background: #fff; }
body.fm-app .table-container .dataTables_filter input {
    border: 1px solid #e2e8f0; border-radius: 10px; height: 40px; padding: 0 14px 0 38px; background-color: #f8fafc; font-size: .88rem; color: #334155;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
body.fm-app .table-container .dataTables_filter input:focus { outline: 0; border-color: #93b4f5; background-color: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }

/* the table itself: one surface, no per-row cards */
body.fm-app .table-container table.table-list,
body.fm-app .table-container table.table { border-collapse: separate; border-spacing: 0; margin: 12px 0 4px; width: 100% !important; border: 1px solid #eef1f6; border-radius: 12px; }
body.fm-app .table-container table.table-list thead th,
body.fm-app .table-container table.table thead th {
    background: #f8fafc; color: #64748b; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    padding: 12px 16px; border: 0; border-bottom: 1px solid #eef1f6; white-space: nowrap; vertical-align: middle;
}
body.fm-app .table-container table.table thead th:first-child { border-radius: 12px 0 0 0; }
body.fm-app .table-container table.table thead th:last-child { border-radius: 0 12px 0 0; }
body.fm-app .table-container table.table-list tbody tr { background: #fff; }
body.fm-app .table-container table.table-list tbody td,
body.fm-app .table-container table.table tbody td {
    background: #fff; border: 0; border-bottom: 1px solid #f1f4f8; border-radius: 0 !important; padding: 14px 16px; vertical-align: middle;
    color: #475569; font-size: .88rem; line-height: 1.45; transition: background-color .12s ease; font-variant-numeric: tabular-nums;
}
body.fm-app .table-container table.table tbody tr:last-child td { border-bottom: 0; }
body.fm-app .table-container table.table tbody tr:last-child td:first-child { border-radius: 0 0 0 12px !important; }
body.fm-app .table-container table.table tbody tr:last-child td:last-child { border-radius: 0 0 12px 0 !important; }
body.fm-app .table-container table.table-list tbody tr:hover td,
body.fm-app .table-container table.table tbody tr:hover td { background: #f8fbff; border-color: #f1f4f8; }

/* sort arrows: small and quiet until the column is sorted */
body.fm-app .table-container table.dataTable thead .sorting:before, body.fm-app .table-container table.dataTable thead .sorting:after,
body.fm-app .table-container table.dataTable thead .sorting_asc:before, body.fm-app .table-container table.dataTable thead .sorting_asc:after,
body.fm-app .table-container table.dataTable thead .sorting_desc:before, body.fm-app .table-container table.dataTable thead .sorting_desc:after { opacity: .25; font-size: .7rem; }
body.fm-app .table-container table.dataTable thead .sorting_asc:before, body.fm-app .table-container table.dataTable thead .sorting_desc:after { opacity: .8; color: var(--fm-blue); }
body.fm-app .table-container table.dataTable thead th.sorting_asc, body.fm-app .table-container table.dataTable thead th.sorting_desc { color: #334155; }

/* cell content */
body.fm-app .table-container table.table tbody td a:not(.btn) { color: #1e293b; font-weight: 600; text-decoration: none; }
body.fm-app .table-container table.table tbody td a:not(.btn):hover { color: var(--fm-blue); }
body.fm-app .table-container table.table tbody td strong { color: #1e293b; font-weight: 600; }
body.fm-app .table-container table.table tbody td small { display: inline-flex; align-items: center; gap: 2px; margin-top: 3px; font-size: .74rem; color: #64748b; }
body.fm-app .table-container table.table tbody td small .fa-check { color: #16a34a !important; }
body.fm-app .table-container table.table tbody td small .fa-times { color: #dc2626 !important; }
body.fm-app .table-container table.table tbody td small.text-muted { display: block; }
body.fm-app .table-container table.table tbody td.ssl-info img { width: 20px !important; height: auto; opacity: .9; }
body.fm-app .table-container table.table tbody td input[type="checkbox"], body.fm-app .table-container table.table thead th input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--fm-blue); cursor: pointer; vertical-align: middle;
}
body.fm-app .table-container table.table .width-fixed-20 { width: 44px; }

/* statuses: pill with a dot */
body.fm-app .table-container .label.status {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
}
body.fm-app .table-container .label.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
body.fm-app .status-cancelled, body.fm-app .status-expired, body.fm-app .status-closed, body.fm-app .status-refunded, body.fm-app .status-collections { background: #f1f5f9 !important; color: #64748b !important; }
body.fm-app .status-transferred-away, body.fm-app .status-pending-transfer, body.fm-app .status-pending-registration, body.fm-app .status-answered, body.fm-app .status-customer-reply { background: #e0f2fe !important; color: #0369a1 !important; }
body.fm-app .status-grace, body.fm-app .status-redemption, body.fm-app .status-in-progress, body.fm-app .status-on-hold { background: #fef3c7 !important; color: #b45309 !important; }
body.fm-app .status-fraud, body.fm-app .status-draft { background: #fee2e2 !important; color: #b91c1c !important; }

/* paging */
body.fm-app .table-container .dataTables_paginate { padding-top: 8px; }
body.fm-app .table-container .pagination .page-link { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; margin: 0 2px; font-size: .84rem; font-weight: 600; }
body.fm-app .table-container .pagination .page-item.active .page-link { border-radius: 10px; width: auto; min-width: 34px; height: 34px; box-shadow: 0 4px 10px rgba(37, 99, 235, .25); }
body.fm-app .table-container .pagination .page-item:not(.active):not(.disabled) .page-link:hover { background: #eff6ff; }

/* the left "Rincian Status" filter list: counts as soft pills */
body.fm-app .sidebar .card-sidebar .list-group-item .badge { background: #eff6ff; color: var(--fm-blue); font-weight: 700; border-radius: 999px; min-width: 28px; padding: 4px 9px; }
body.fm-app .sidebar .card-sidebar .list-group-item.active .badge { background: var(--fm-blue); color: #fff; }

/* responsive rows (DataTables "child" rows on narrow screens) */
body.fm-app .table-container table.table tbody tr.child td { background: #fafcff; padding: 10px 16px; }
body.fm-app .table-container table.table tbody tr.child ul.dtr-details li { border-bottom: 1px dashed #e8ecf3; padding: 6px 0; }
@media (max-width: 767.98px) {
    body.fm-app .table-container { padding: 14px 12px 10px; border-radius: 14px; }
    body.fm-app .table-container table.table thead th { padding: 10px 12px; }
    body.fm-app .table-container table.table tbody td { padding: 12px; font-size: .86rem; }
}

/* the earlier "every row its own card" rules used :first-child / :last-child (more specific): neutralise their side borders */
body.fm-app .table-container table.table-list tbody td:first-child, body.fm-app .table-container table.table-list tbody td:last-child { border-left: 0; border-right: 0; }
body.fm-app .table-container table.table-list tbody tr:hover td:first-child, body.fm-app .table-container table.table-list tbody tr:hover td:last-child { border-color: #f1f4f8; }
