/* ═══════════════════════════════════════════════════════════════════
   MagicBill Client Area — client.css
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --cl-primary: #4f8ef7;
    --cl-primary-hover: #3a7de8;
    --cl-sidebar-bg: #16293f;
    --cl-sidebar-hover: rgba(255,255,255,0.06);
    --cl-sidebar-active-bg: rgba(79,142,247,0.15);
    --cl-sidebar-active-color: #4f8ef7;
    --cl-topbar-height: 56px;
    --cl-sidebar-width: 260px;
    --cl-body-bg: #f1f5f9;
    --cl-card-bg: #fff;
    --cl-border: #e2e8f0;
    --cl-text: #334155;
    --cl-text-muted: #94a3b8;
}

body { background: var(--cl-body-bg); font-size: 16px; color: var(--cl-text); }

/* ── Login Page ─────────────────────────────────────────────────── */
.cl-login-body { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); }
.cl-login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.cl-login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.cl-login-header { margin-bottom: 28px; }
.cl-login-logo { display: flex; align-items: center; gap: 12px; }
.cl-login-company { font-size: 21px; font-weight: 600; color: #1e293b; }
.cl-login-subtitle { font-size: 15px; color: #94a3b8; }
.cl-input-icon { position: relative; }
.cl-input-icon > i {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 16px;
}
.cl-input-with-icon { padding-left: 40px !important; }
.cl-forgot-link { font-size: 16px; color: var(--cl-primary); text-decoration: none; }
.cl-forgot-link:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────────────── */
.cl-wrapper { display: flex; min-height: 100vh; }

/* ── Sidebar ────────────────────────────────────────────────────── */
.cl-sidebar {
    width: var(--cl-sidebar-width);
    background: var(--cl-sidebar-bg);
    min-height: 100vh;
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 1040;
    transition: transform 0.25s ease;
}
.cl-sidebar-logo {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.cl-sidebar-logo:hover { text-decoration: none; }
.cl-sidebar-logo-tile { display: inline-flex; max-width: 100%; background: rgba(255,255,255,0.07); padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.10); }
.cl-sidebar-logo-img { max-width: 100%; max-height: 58px; width: auto; height: auto; object-fit: contain; display: block; }
.cl-logo-text { color: #fff; font-size: 15px; font-weight: 500; }
.cl-logo-ver  { color: rgba(255,255,255,0.35); font-size: 15px; }

.cl-sidebar-nav { flex: 1; padding: 8px 0; overflow-y: auto; }
.cl-nav-section {
    color: rgba(255,255,255,0.5);
    font-size: 18px; font-weight: 600; letter-spacing: 0.01em;
    padding: 16px 20px 6px;
}
.cl-nav-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    color: rgba(255,255,255,0.6);
    font-size: 16px; text-decoration: none;
    transition: all 0.15s;
    border-right: 2px solid transparent;
}
.cl-nav-item:hover { background: var(--cl-sidebar-hover); color: #fff; }
.cl-nav-item.active {
    background: var(--cl-sidebar-active-bg);
    color: var(--cl-sidebar-active-color);
    border-right-color: var(--cl-sidebar-active-color);
}
.cl-nav-item i { font-size: 22px; width: 26px; flex-shrink: 0; }
.cl-nav-badge {
    margin-left: auto;
    font-size: 11px; padding: 1px 6px;
    border-radius: 10px;
    background: #e24b4a; color: #fff;
    line-height: 1.6;
}
.cl-nav-badge.amber { background: #BA7517; }
.cl-nav-badge.neutral { background: #64748b; }

/* Collapsible sidebar group (e.g. Domain submenu) */
.cl-nav-group { border: none; }
.cl-nav-group > summary { list-style: none; cursor: pointer; }
.cl-nav-group > summary::-webkit-details-marker { display: none; }
.cl-nav-group > summary::marker { content: ''; }
.cl-nav-parent .cl-nav-caret { margin-left: auto; font-size: 14px; width: auto; transition: transform .2s; }
.cl-nav-group[open] > summary .cl-nav-caret { transform: rotate(180deg); }
.cl-nav-sub { display: flex; flex-direction: column; padding: 2px 0 4px; }
.cl-nav-sub-item {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 16px 7px 50px;
    color: rgba(255,255,255,0.55);
    font-size: 16px; text-decoration: none;
    transition: all 0.15s;
    border-right: 2px solid transparent;
}
.cl-nav-sub-item:hover { background: var(--cl-sidebar-hover); color: #fff; }
.cl-nav-sub-item.active {
    background: var(--cl-sidebar-active-bg);
    color: var(--cl-sidebar-active-color);
    border-right-color: var(--cl-sidebar-active-color);
}
.cl-nav-sub-item i { font-size: 17px; width: 20px; flex-shrink: 0; }
.cl-nav-subhead {
    color: rgba(255,255,255,0.4);
    font-size: 15px; font-weight: 700; letter-spacing: .02em;
    padding: 12px 16px 4px 24px;
}
.cl-nav-sub > .cl-nav-subhead:first-child { padding-top: 4px; }

.cl-sidebar-user {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 10px;
}
.cl-sidebar-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--cl-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 600;
    flex-shrink: 0;
}
.cl-sidebar-avatar-img {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.15);
}
.cl-sidebar-username { color: rgba(255,255,255,0.8); font-size: 16px; font-weight: 500; }
.cl-sidebar-email   { color: rgba(255,255,255,0.4); font-size: 15px; }

/* ── Main ───────────────────────────────────────────────────────── */
.cl-main {
    margin-left: var(--cl-sidebar-width);
    flex: 1;
    min-width: 0;
    display: flex; flex-direction: column;
    min-height: 100vh;
}

/* ── Topbar ──────────────────────────────────────────────────────── */
.cl-topbar {
    height: var(--cl-topbar-height);
    background: #1e3a5f;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center;
    padding: 0 24px; gap: 12px;
    position: sticky; top: 0; z-index: 1030;
}
.cl-topbar-title { font-size: 17px; font-weight: 500; flex: 1; min-width: 0; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Links ────────────────────────────────────────────────────── */
.cl-content a { text-decoration: none; color: var(--cl-primary); }
.cl-content a:hover { color: #3b7ae0; }
.cl-hamburger {
    display: none;
    background: none; border: none;
    font-size: 20px; cursor: pointer; color: #e2e8f0;
    padding: 0; margin-right: 4px;
}

/* ── Topbar buttons ──────────────────────────────────────────── */
.cl-topbar-btn {
    height: 36px; min-width: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #e2e8f0;
    font-size: 16px;
    transition: all 0.15s;
    text-decoration: none;
}
.cl-topbar-btn:hover { background: rgba(255,255,255,0.16); color: #fff; border-color: rgba(255,255,255,0.32); }
.cl-notif-badge { position:absolute; top:-4px; right:-4px; background:#ef4444; color:#fff; font-size: 11px; font-weight:700; min-width:18px; height:18px; border-radius:9px; display:flex; align-items:center; justify-content:center; padding:0 5px; line-height:1; }
.cl-notif-menu { min-width:340px; max-width:380px; padding:6px; border-radius:12px; border:1px solid #e2e8f0; }
.cl-notif-head { font-size:16px; font-weight:700; letter-spacing:.04em; color:#94a3b8; padding:8px 12px 6px; display:flex; align-items:center; gap:6px; }
.cl-notif-item { display:flex; align-items:flex-start; gap:11px; padding:11px 12px; border-radius:9px; text-decoration:none; color:#334155; transition:background .15s; }
.cl-notif-item:hover { background:#f1f5f9; color:#334155; }
.cl-notif-ic { flex-shrink:0; width:34px; height:34px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; font-size:17px; }
.cl-notif-ic.info { background:#eef2f7; color:#64748b; }
.cl-notif-ic.warn { background:#fde8e8; color:#c0392b; }
.cl-notif-ic.success { background:#e6f4ea; color:#1e9e75; }
.cl-notif-text { font-size:16px; line-height:1.35; }
.cl-notif-empty { display:flex; flex-direction:column; align-items:center; gap:8px; padding:24px 12px; color:#94a3b8; font-size:16px; text-align:center; }
.cl-notif-empty i { font-size:30px; }

/* ── Profile toggle ──────────────────────────────────────────── */
.cl-profile-toggle { display: flex; align-items: center; }
.cl-profile-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--cl-border);
    transition: border-color 0.15s;
}
.cl-profile-toggle:hover .cl-profile-avatar { border-color: var(--cl-primary); }
.cl-profile-initials {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--cl-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 600;
}

/* ── Content ─────────────────────────────────────────────────────── */
.cl-content { padding: 24px; flex: 1; min-width: 0; overflow-x: hidden; }
.cl-page-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.cl-page-title { font-size: 20px; font-weight: 500; margin: 0; }

/* ── Cards (reuse mb-card / mb-stat-card design) ─────────────────── */
.cl-card {
    background: var(--cl-card-bg);
    border-radius: 10px;
    border: 1px solid var(--cl-border);
}
.cl-card-raised {
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.07);
}
.cl-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--cl-border);
    display: flex; align-items: center; justify-content: space-between;
}
.cl-card-title { font-size: 16px; font-weight: 500; color: #555; margin: 0; }
.cl-card-body  { padding: 18px; }

.cl-stat-card {
    background: var(--cl-card-bg);
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid var(--cl-border);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
a.cl-stat-card {
    display: block; color: inherit; text-decoration: none; cursor: pointer;
}
a.cl-stat-card:hover {
    border-color: var(--cl-primary);
    box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 12px 24px rgba(79,142,247,0.14);
    transform: translateY(-2px);
}
.cl-stat-icon {
    width: 58px; height: 58px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin-bottom: 12px;
}
.cl-stat-icon.blue   { background: #e3f0fd; color: #1558a0; }
.cl-stat-icon.green  { background: #e6f4ea; color: #276a3a; }
.cl-stat-icon.amber  { background: #fff3e0; color: #8a5700; }
.cl-stat-icon.red    { background: #fde8e8; color: #9b2020; }
.cl-stat-label { font-size: 16px; color: #94a3b8; margin-bottom: 4px; }
.cl-stat-value { font-size: 26px; font-weight: 600; line-height: 1; }

/* ── Tables ──────────────────────────────────────────────────────── */
.cl-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.cl-table th {
    padding: 11px 14px;
    font-weight: 500; font-size: 16px;
    color: #94a3b8; text-align: left;
    border-bottom: 1px solid var(--cl-border);
    white-space: nowrap;
}
.cl-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.cl-table tr:last-child td { border-bottom: none; }
.cl-table tr:hover td { background: #f8fafc; }

/* ── Badges (reuse from style.css naming) ───────────────────────── */
.cl-badge {
    display: inline-block;
    font-size: 15px; font-weight: 500;
    padding: 4px 10px;
    border-radius: 10px;
    white-space: nowrap;
}
.cl-badge-success  { background: #e6f4ea; color: #276a3a; }
.cl-badge-warning  { background: #fff3e0; color: #8a5700; }
.cl-badge-danger   { background: #fde8e8; color: #9b2020; }
.cl-badge-info     { background: #e3f0fd; color: #1558a0; }
.cl-badge-secondary{ background: #f1f5f9; color: #64748b; }

/* ── Buttons (extend mb-btn) ─────────────────────────────────────── */
.cl-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 18px;
    border-radius: 7px;
    font-size: 16px; font-weight: 500;
    border: none; cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.cl-btn-primary   { background: var(--cl-primary); color: #fff; }
.cl-btn-primary:hover { background: var(--cl-primary-hover); color: #fff; }
.cl-btn-secondary { background: #f1f5f9; color: #475569; border: 1px solid var(--cl-border); }
.cl-btn-secondary:hover { background: #e2e8f0; color: #334155; }
.cl-btn-danger    { background: #e24b4a; color: #fff; }
.cl-btn-danger:hover    { background: #c93b3a; color: #fff; }
.cl-btn-sm { padding: 6px 13px; font-size: 15px; }

/* ── Forms ────────────────────────────────────────────────────────── */
.cl-form-control {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 16px;
    transition: border 0.15s;
    outline: none;
    background: #fff;
}
.cl-form-control:focus { border-color: var(--cl-primary); box-shadow: 0 0 0 3px rgba(79,142,247,0.1); }
.cl-form-label { font-size: 16px; font-weight: 500; color: #475569; margin-bottom: 5px; display: block; }

/* ── Quick Links Grid ────────────────────────────────────────────── */
.cl-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.cl-quick-link {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    padding: 20px 12px;
    background: var(--cl-card-bg);
    border: 1px solid var(--cl-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--cl-text);
    transition: all 0.15s;
    text-align: center;
}
.cl-quick-link:hover {
    border-color: var(--cl-primary);
    box-shadow: 0 2px 8px rgba(79,142,247,0.1);
    color: var(--cl-primary);
}
.cl-quick-link i { font-size: 24px; color: var(--cl-primary); }
.cl-quick-link span { font-size: 16px; font-weight: 500; }

/* ── Empty state ─────────────────────────────────────────────────── */
.cl-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--cl-text-muted);
}
.cl-empty i { font-size: 40px; display: block; margin-bottom: 12px; }
.cl-empty p { font-size: 16px; margin: 0; }

/* ── Page Heading ────────────────────────────────────────────────── */
.cl-page-heading {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px;
}
.cl-page-title {
    font-size: 20px; font-weight: 600; color: var(--cl-text); margin: 0;
    display: flex; align-items: center; gap: 8px;
}
.cl-page-title i { color: var(--cl-primary); font-size: 20px; }
.cl-count-badge {
    background: var(--cl-primary); color: #fff;
    font-size: 11px; font-weight: 600;
    padding: 2px 10px; border-radius: 20px;
}

/* ── Service Compact Rows + Sidebar ──────────────────────────────── */
.cl-svc-layout {
    display: grid; grid-template-columns: 1fr 230px; gap: 16px;
}
.cl-svc-list {
    background: var(--cl-card-bg);
    border: 1px solid var(--cl-border);
    border-radius: 10px; overflow: hidden;
}

/* Grid columns for header + rows */
.cl-svc-header, .cl-svc-row {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 155px 28px;
    align-items: center;
    padding: 0 16px 0 19px;
}

/* Header */
.cl-svc-header {
    padding-top: 12px; padding-bottom: 12px;
    background: #1e3a5f;
    border-bottom: 2px solid #16304f;
    border-left: 3px solid transparent;  /* match rows' 3px border-left for exact column alignment */
    font-size: 16px; font-weight: 600; color: #fff;
    letter-spacing: 0.2px;
}

/* Rows */
.cl-svc-row {
    padding-top: 14px; padding-bottom: 14px;
    text-decoration: none; color: inherit;
    border-bottom: 1px solid #eef1f6;
    transition: background 0.15s;
}
.cl-svc-row:nth-child(even) { background: #fafbfd; }
.cl-svc-row:last-child { border-bottom: none; }
.cl-svc-row:hover { background: #eef4ff; color: inherit; text-decoration: none; }

/* Column alignment */
.cl-svc-col-cycle,
.cl-svc-col-due    { text-align: center; }
.cl-svc-col-amount { text-align: center; }
.cl-svc-col-status { text-align: center; }
.cl-svc-col-arrow  { text-align: center; }

/* Row content styles */
.cl-svc-row-name {
    font-size: 16px; font-weight: 500; color: var(--cl-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: block;
}
.cl-svc-row-domain {
    font-size: 16px; color: var(--cl-text-muted); display: block;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cl-svc-row .cl-svc-col-cycle  { font-size: 16px; color: #64748b; }
.cl-svc-row .cl-svc-col-amount { font-size: 16px; font-weight: 600; color: var(--cl-text); }
.cl-svc-row .cl-svc-col-due    { font-size: 16px; color: #64748b; }

/* Bigger centered badges */
.cl-svc-col-status .badge {
    font-size: 16px; padding: 0 16px; border-radius: 8px;
    font-weight: 500; display: inline-flex; align-items: center;
    justify-content: center; line-height: 1; min-width: 100px; height: 34px;
}

/* Manage button */
.cl-svc-col-manage { text-align: center; flex-shrink: 0; }
a.cl-svc-manage-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; border-radius: 8px; font-size: 16px; font-weight: 500;
    background: #eef4ff; color: #3d6399; white-space: nowrap;
    transition: background 0.15s, color 0.15s; text-decoration: none;
}
a.cl-svc-manage-btn:hover { background: var(--cl-primary); color: #fff; }

/* Arrow */
.cl-svc-col-arrow a { color: inherit; text-decoration: none; }
.cl-svc-col-arrow i { font-size: 18px; color: #c5cdd8; transition: transform 0.2s, color 0.2s; }
.cl-svc-col-arrow a:hover i { transform: translateX(3px); color: var(--cl-primary); }

/* Client Product Descriptions */
.cl-cpd-desc {
    display: block; font-size: 16px; color: #8b9dc3;
    cursor: pointer; margin-top: 2px; font-style: italic;
    transition: color 0.15s;
}
.cl-cpd-desc:hover { color: var(--cl-primary); }
.cl-cpd-desc i { font-size: 14px; margin-right: 2px; }
.cl-cpd-desc .bi-chat-quote { color: #4f8ef7; }
.cl-cpd-input {
    width: 100%; border: 1px solid var(--cl-primary);
    border-radius: 6px; padding: 4px 8px; font-size: 16px;
    outline: none; background: #fff; color: var(--cl-text);
}

/* ── Sidebar cards ────────────────────────────────────────────── */
.cl-svc-sidebar { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 72px; align-self: start; }
.cl-svc-sb-card {
    background: var(--cl-card-bg); border: 1px solid var(--cl-border);
    border-radius: 10px; padding: 16px;
}
.cl-svc-sb-title {
    font-size: 16px; font-weight: 600; color: var(--cl-text-muted);
    letter-spacing: 0.2px; margin-bottom: 12px;
}
.cl-svc-sb-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 16px; color: var(--cl-text); padding: 3px 0;
}
.cl-svc-dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; margin-right: 6px; vertical-align: middle;
}
.cl-svc-sb-total {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 16px; color: var(--cl-text);
    border-top: 1px solid var(--cl-border); margin-top: 8px; padding-top: 10px;
}

/* Cost card */
.cl-svc-sb-cost { background: linear-gradient(135deg, #e3f0fd 0%, #eff6ff 100%); border-color: #bfdbfe; }
.cl-svc-sb-big { font-size: 24px; font-weight: 600; color: #1558a0; margin-bottom: 2px; }
.cl-svc-sb-sub { font-size: 16px; color: #5b8ec9; }

/* Unpaid card */
.cl-svc-sb-unpaid { background: linear-gradient(135deg, #fff3e0 0%, #fffbf0 100%); border-color: #fdd28a; }
.cl-svc-sb-unpaid .cl-svc-sb-title { color: #8a5700; }
.cl-tkt-tips { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 9px; }
.cl-tkt-tips li { font-size: 16px; line-height: 1.45; color: var(--cl-text); }
.cl-svc-sb-unpaid .cl-svc-sb-row { color: #7a4d00; }
.cl-svc-sb-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 16px; font-weight: 500; color: #8a5700;
    text-decoration: none; margin-top: 8px;
}
.cl-svc-sb-link:hover { color: #6b3d00; text-decoration: underline; }

/* ── Product Details ──────────────────────────────────────────────── */
.cl-pd-hero {
    background: #1e3a5f; border: 1px solid #1e3a5f;
    border-radius: 12px; padding: 20px 24px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; margin-bottom: 20px;
}
.cl-pd-hero-info { display: flex; flex-direction: column; gap: 4px; }
.cl-pd-group { font-size: 16px; color: #93c5fd; font-weight: 500; }
.cl-pd-title { font-size: 22px; font-weight: 600; color: #fff; margin: 0; }
.cl-pd-domain { font-size: 16px; color: #cbd5e1; display: flex; align-items: center; gap: 5px; }
.cl-pd-desc { font-size: 16px; color: #cbd5e1; font-style: italic; }
.cl-pd-hero-status .badge { font-size: 16px; padding: 6px 18px; border-radius: 8px; }

/* Sidebar action buttons (renew / register / transfer / support) — cl-pd-action style */
.cl-dom-actions { display: flex; flex-direction: column; gap: 8px; }
.cl-dom-actions .cl-pd-action { flex: none; width: 100%; justify-content: flex-start; }
.cl-svc-sb-cost .cl-btn { width: 100%; font-size: 16px; justify-content: center; }

/* Domains list: registrar column removed → 6-column grid, headers above their data */
.cl-dom-head, .cl-dom-row {
    grid-template-columns: minmax(0, 2.6fr) 1fr 1fr 1fr 155px 28px;
}
.cl-dom-head {
    border-left: 3px solid transparent;  /* match rows' border-left for exact column alignment */
}
.cl-dom-head .cl-svc-col-amount,
.cl-dom-row .cl-svc-col-amount { text-align: center; }
.cl-dom-head .cl-svc-col-manage { text-align: center; }

/* Invoices list — 7 columns: #, date, due, total, status, action, arrow */
.cl-inv-head, .cl-inv-row {
    grid-template-columns: minmax(0, 1.6fr) 1.1fr 1.1fr 1.1fr 1.2fr 140px 28px;
}
.cl-inv-head {
    border-left: 3px solid transparent;  /* match rows' border-left for exact column alignment */
}
.cl-inv-head .cl-svc-col-amount,
.cl-inv-row .cl-svc-col-amount { text-align: center; }
.cl-inv-head .cl-svc-col-manage,
.cl-inv-row .cl-svc-col-manage { text-align: center; }
/* "Pay" action accent for unpaid/overdue invoices */
a.cl-svc-manage-btn.cl-inv-pay-btn { background: #fff7ed; color: #b45309; }
a.cl-svc-manage-btn.cl-inv-pay-btn:hover { background: #f59e0b; color: #fff; }

/* Support tickets list — 6 columns: subject, priority, last reply, status, action, arrow */
.cl-tkt-head, .cl-tkt-row {
    grid-template-columns: minmax(0, 2.6fr) 1fr 1.3fr 1.2fr 130px 28px;
}
.cl-tkt-head {
    border-left: 3px solid transparent;  /* match rows' border-left for exact column alignment */
}
.cl-tkt-head .cl-svc-col-cycle,
.cl-tkt-row  .cl-svc-col-cycle { text-align: center; }
.cl-tkt-head .cl-svc-col-manage,
.cl-tkt-row  .cl-svc-col-manage { text-align: center; }
.cl-tkt-tid {
    display: inline-flex; align-items: center; gap: 2px;
    font-size: 15px; font-weight: 600; color: #8b9dc3;
    margin-right: 6px;
}
.cl-tkt-tid i { font-size: 13px; }
.cl-tkt-prio {
    display: inline-block; font-size: 15px; font-weight: 600;
    padding: 2px 11px; border-radius: 20px; white-space: nowrap;
}
.cl-tkt-prio-low    { background: #eef2f7; color: #64748b; }
.cl-tkt-prio-medium { background: #e8f0fe; color: #1d4ed8; }
.cl-tkt-prio-high   { background: #fdecec; color: #c0392b; }
.cl-tkt-cta-btn { width: 100%; justify-content: center; }
/* "Reply to reopen" notice on a closed ticket (viewticket.php) */
.cl-ticket-reopen-note {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fff8ed; border: 1px solid #fcd9a8; border-radius: 8px;
    padding: 12px 14px; margin-bottom: 16px;
    font-size: 16px; color: #8a5a00; line-height: 1.5;
}
.cl-ticket-reopen-note i { font-size: 18px; color: #d97706; margin-top: 1px; flex-shrink: 0; }
/* Ticket conversation thread (viewticket.php) */
.cl-tkt-thread { display: flex; flex-direction: column; gap: 14px; }
.cl-tkt-msg {
    display: flex; gap: 12px; padding: 16px;
    border-radius: 12px; border: 1px solid var(--cl-border); background: #fff;
}
.cl-tkt-msg-staff { background: #f4f9ff; border-color: #cfe0f5; }
.cl-tkt-ava {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 600; color: #fff; text-transform: uppercase;
}
.cl-tkt-ava-client { background: var(--cl-primary); }
.cl-tkt-ava-staff  { background: #1558a0; }
.cl-tkt-msg-body { flex: 1; min-width: 0; }
.cl-tkt-msg-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cl-tkt-msg-name { font-size: 16px; font-weight: 600; color: var(--cl-text); }
.cl-tkt-msg-role { font-size: 15px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: #e0eafc; color: #1558a0; }
.cl-tkt-msg-time { font-size: 15px; color: var(--cl-text-muted); margin-left: auto; }
.cl-tkt-msg-text { font-size: 16px; line-height: 1.7; color: var(--cl-text); white-space: pre-wrap; word-break: break-word; }
/* Markdown-rendered messages: HTML handles spacing, not pre-wrap */
.cl-tkt-msg-md { white-space: normal; }
.cl-tkt-msg-md .md-h { font-weight: 700; margin: 10px 0 6px; }
.cl-tkt-msg-md h1.md-h { font-size: 20px; } .cl-tkt-msg-md h2.md-h { font-size: 18px; } .cl-tkt-msg-md h3.md-h { font-size: 17px; }
.cl-tkt-msg-md .md-list { margin: 6px 0 6px 4px; padding-left: 20px; }
.cl-tkt-msg-md .md-list li { margin: 2px 0; }
.cl-tkt-msg-md .md-quote { border-left: 3px solid #cbd5e1; background: #f8fafc; margin: 8px 0; padding: 8px 12px; color: #475569; }
.cl-tkt-msg-md .md-code { background: #1e293b; color: #e2e8f0; border-radius: 6px; padding: 10px 12px; margin: 8px 0; overflow-x: auto; font-size: 15px; line-height: 1.5; }
.cl-tkt-msg-md .md-code code { background: none; color: inherit; padding: 0; }
.cl-tkt-msg-md .md-inline-code { background: #eef2f7; color: #be185d; border-radius: 4px; padding: 1px 5px; font-size: 15px; }
.cl-tkt-msg-md a { color: #2563eb; }
@media (max-width: 575px) { .cl-tkt-msg-time { margin-left: 0; width: 100%; } }
/* Ticket attachments */
.cl-tkt-att { margin-top: 10px; padding-top: 8px; border-top: 1px solid #e2e8f0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cl-tkt-att-icon { color: var(--cl-text-muted); }
.cl-tkt-att-file { font-size: 15px; text-decoration: none; padding: 3px 8px; background: #f1f5f9; border-radius: 4px; border: 1px solid #e2e8f0; color: var(--cl-text); }
.cl-tkt-att-file:hover { border-color: var(--cl-primary); color: var(--cl-primary); }
.cl-tkt-att-img { display: inline-block; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; line-height: 0; cursor: zoom-in; transition: border-color .15s, transform .15s; }
.cl-tkt-att-img img { width: 92px; height: 92px; object-fit: cover; display: block; }
.cl-tkt-att-img:hover { border-color: var(--cl-primary); transform: translateY(-1px); }
/* Image lightbox */
.cl-lightbox { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(15,23,42,0.9); align-items: center; justify-content: center; padding: 30px; }
.cl-lightbox.open { display: flex; }
.cl-lightbox-inner { max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cl-lightbox-inner img { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); object-fit: contain; }
.cl-lightbox-cap { color: #e2e8f0; font-size: 15px; text-align: center; word-break: break-word; }
.cl-lightbox-close, .cl-lightbox-dl {
    position: absolute; top: 18px; background: rgba(255,255,255,0.12); border: none;
    color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 20px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none;
}
.cl-lightbox-close { right: 22px; }
.cl-lightbox-dl { right: 74px; font-size: 18px; }
.cl-lightbox-close:hover, .cl-lightbox-dl:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* Credit history list — 3 columns: description, date, amount */
.cl-cr-head, .cl-cr-row {
    grid-template-columns: minmax(0, 2.2fr) 1.2fr 1fr;
}
.cl-cr-head {
    border-left: 3px solid transparent;  /* match rows' border-left for exact column alignment */
}

/* Filter pills */
.cl-dom-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cl-dom-filter {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 16px; padding: 7px 15px; border-radius: 20px; cursor: pointer;
    background: var(--cl-card-bg); color: var(--cl-text-muted);
    border: 1px solid var(--cl-border); transition: all .15s;
}
.cl-dom-filter span {
    font-size: 16px; font-weight: 600; background: #eef2f7; color: #64748b;
    padding: 1px 9px; border-radius: 10px; line-height: 1.6;
}
.cl-dom-filter:hover { border-color: #93b4d8; color: var(--cl-text); }
.cl-dom-filter.active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.cl-dom-filter.active span { background: rgba(255,255,255,.22); color: #fff; }

/* "excl. VAT" note next to renewal total */
.cl-renew-vat { font-size: 16px; font-weight: 400; color: var(--cl-text-muted); margin-left: 4px; }

/* Toolbar: search + per-page */
.cl-dom-toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.cl-dom-search {
    position: relative; flex: 1; min-width: 200px;
}
.cl-dom-search i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 16px; pointer-events: none;
}
.cl-dom-search input {
    width: 100%; font-size: 16px; padding: 9px 12px 9px 38px;
    border: 1px solid var(--cl-border); border-radius: 8px; outline: none;
    background: var(--cl-card-bg); color: var(--cl-text);
}
.cl-dom-search input:focus { border-color: var(--cl-primary); }
.cl-dom-perpage { display: flex; align-items: center; gap: 8px; }
.cl-dom-perpage label { font-size: 16px; color: var(--cl-text-muted); white-space: nowrap; }
.cl-dom-perpage select { font-size: 16px; padding: 8px 10px; width: auto; }

/* No results */
.cl-dom-noresults {
    padding: 28px 16px; text-align: center; font-size: 16px; color: var(--cl-text-muted);
}
.cl-dom-noresults i { font-size: 22px; display: block; margin-bottom: 8px; color: #cbd5e1; }

/* Pagination */
.cl-dom-pagination {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; margin-top: 16px;
}
.cl-dom-page-info { font-size: 16px; color: var(--cl-text-muted); text-align: center; }
.cl-dom-pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.cl-dom-pgbtn {
    min-width: 38px; height: 38px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 500; border-radius: 8px; cursor: pointer;
    background: var(--cl-card-bg); color: var(--cl-text);
    border: 1px solid var(--cl-border); transition: all .15s;
}
.cl-dom-pgbtn:hover:not(:disabled):not(.active) { background: #eef4ff; border-color: #bfdbfe; }
.cl-dom-pgbtn.active { background: var(--cl-primary); color: #fff; border-color: var(--cl-primary); }
.cl-dom-pgbtn:disabled { opacity: .45; cursor: default; }
.cl-dom-pgdots { padding: 0 4px; color: var(--cl-text-muted); font-size: 16px; }

/* ── Domain management ─────────────────────────────────────────────── */
/* Domain status badge — vertically centred via line-height = height (reliable) */
.cl-dom-badge,
.cl-svc-col-status .cl-dom-badge,
.cl-pd-hero-status .cl-dom-badge {
    display: inline-block; box-sizing: border-box;
    font-size: 16px; font-weight: 700;
    height: 34px; line-height: 30px;
    padding: 0 18px; border-radius: 8px;
    min-width: 110px; text-align: center;
    vertical-align: middle; white-space: nowrap;
}

/* Buttons rendered as <a> inside .cl-content get the link colour (line 146) —
   restore their proper button text colour with higher specificity */
.cl-content a.cl-btn-primary,
.cl-content a.cl-btn-danger  { color: #fff; }
.cl-content a.cl-btn-primary:hover,
.cl-content a.cl-btn-danger:hover { color: #fff; }
.cl-content a.cl-btn-secondary { color: #475569; }
.cl-content a.cl-btn-secondary:hover { color: #334155; }
.cl-dom-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.cl-dom-card {
    background: var(--cl-card-bg); border: 1px solid var(--cl-border);
    border-radius: 10px; padding: 18px 20px;
}
.cl-dom-card-full { grid-column: 1 / -1; }
.cl-dom-card-title {
    font-size: 17px; font-weight: 600; color: var(--cl-text);
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.cl-dom-card-title i { color: var(--cl-primary); font-size: 18px; }
.cl-dom-help { font-size: 16px; color: var(--cl-text-muted); margin: 0 0 14px; line-height: 1.45; }

/* Info rows (zebra) */
.cl-dom-info { display: flex; flex-direction: column; }
.cl-dom-info-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding: 9px 12px; font-size: 16px; border-radius: 6px;
}
.cl-dom-info-row:nth-child(odd)  { background: #f8fafc; }
.cl-dom-info-row span { color: var(--cl-text-muted); }
.cl-dom-info-row b { color: var(--cl-text); font-weight: 600; }

/* Nameservers */
.cl-dom-ns { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 520px; }
.cl-dom-ns-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; align-items: start; }
.cl-dom-ns-col { display: flex; flex-direction: column; gap: 10px; }
.cl-dom-ns-row { display: flex; align-items: center; gap: 10px; }
.cl-dom-ns-row label {
    flex-shrink: 0; width: 44px; font-size: 16px; font-weight: 600; color: var(--cl-text-muted);
}
.cl-dom-ns-row input { flex: 1; font-size: 16px; }
.cl-dom-ns-loading { font-size: 16px; color: var(--cl-text-muted); margin-top: 10px; }
.cl-dom-ns-foot { margin-top: 14px; }

/* Private nameservers */
.cl-dom-pns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; max-width: 760px; align-items: center; }
.cl-dom-pns-row { display: flex; align-items: center; gap: 10px; }
.cl-dom-pns-row label { width: 120px; flex-shrink: 0; font-size: 16px; color: var(--cl-text-muted); }
.cl-dom-pns-row input, .cl-dom-pns-row select { flex: 1; font-size: 16px; }
.cl-dom-pns-foot { margin-top: 16px; }
@media (max-width: 575px) { .cl-dom-pns { grid-template-columns: 1fr; } }

/* Private nameservers — existing list */
.cl-dom-pns-list-wrap { margin-bottom: 20px; }
.cl-dom-pns-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cl-dom-pns-list-head span { font-size: 16px; font-weight: 600; color: #1e3a5f; }
.cl-dom-pns-refresh { background: none; border: 1px solid var(--cl-border); border-radius: 7px; padding: 5px 10px; cursor: pointer; color: var(--cl-text-muted); font-size: 16px; line-height: 1; }
.cl-dom-pns-refresh:hover { border-color: var(--cl-primary); color: var(--cl-primary); }
.cl-dom-pns-loading { font-size: 16px; color: var(--cl-text-muted); }
.cl-dom-pns-list { display: flex; flex-direction: column; gap: 8px; }
.cl-dom-pns-empty { font-size: 16px; color: var(--cl-text-muted); padding: 6px 0; }
.cl-dom-pns-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--cl-border); border-radius: 10px; padding: 10px 14px; flex-wrap: wrap; }
.cl-dom-pns-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl-dom-pns-item-host { font-size: 16px; font-weight: 500; color: var(--cl-text); word-break: break-all; }
.cl-dom-pns-item-ip { font-size: 16px; color: var(--cl-text-muted); }
.cl-dom-pns-item-acts { display: flex; gap: 8px; flex-shrink: 0; }
.cl-dom-pns-mini { font-size: 16px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--cl-border); background: var(--cl-card-bg); color: var(--cl-text); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cl-dom-pns-mini:hover { border-color: var(--cl-primary); color: var(--cl-primary); }
.cl-dom-pns-mini-danger:hover { border-color: #e24b4a; color: #dc2626; }
.cl-dom-pns-status { font-size: 16px; }
.cl-dom-pns-status-ok { color: #16a34a; font-weight: 500; }
.cl-dom-pns-status-warn { color: #b45309; }
.cl-dom-pns-status-err { color: #dc2626; }
.cl-dom-pns-check-box { border: 1px solid var(--cl-border); border-radius: 10px; padding: 14px 16px; margin-bottom: 20px; background: #f8fafc; }
.cl-dom-pns-check-title { font-size: 16px; font-weight: 600; color: #1e3a5f; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.cl-dom-pns-check-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cl-dom-pns-check-row input { flex: 1; min-width: 200px; font-size: 16px; }
.cl-dom-pns-check-box .cl-dom-pns-status { margin-top: 10px; display: block; }

/* Collapsible private nameservers card */
.cl-dom-card-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.cl-dom-card-toggle:hover .cl-dom-card-title { color: var(--cl-primary); }
.cl-dom-chevron { transition: transform .2s ease; color: var(--cl-text-muted); font-size: 16px; }
.cl-dom-chevron-up { transform: rotate(180deg); }
.cl-dom-collapse-body { padding-top: 14px; }

/* Contact information (WHOIS) */
.cl-dom-contacts { display: flex; flex-direction: column; gap: 16px; }
.cl-dom-ct-sec { border: 1px solid var(--cl-border); border-radius: 10px; padding: 14px 16px; }
.cl-dom-ct-h { font-size: 16px; font-weight: 600; color: #1e3a5f; margin-bottom: 12px; }
.cl-dom-ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.cl-dom-ct-field { display: flex; flex-direction: column; gap: 4px; }
.cl-dom-ct-field label { font-size: 16px; color: var(--cl-text-muted); }
.cl-dom-ct-field input { font-size: 16px; }
.cl-dom-ct-field input.cl-locked { background: #f1f5f9; color: #64748b; cursor: not-allowed; }
.cl-dom-ct-field select { font-size: 16px; }
.cl-ct-geo-slot { display: block; }
.cl-ct-country-row { display: flex; align-items: center; gap: 8px; }
.cl-ct-country-row select { flex: 1 1 auto; min-width: 0; }
.cl-ct-flag { flex: 0 0 auto; width: 1.6em; height: 1.2em; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); background-size: cover; background-position: center; }
.cl-dom-ct-lockhint { color: var(--cl-text-muted); font-weight: 400; }
.cl-dom-ct-loading { font-size: 16px; color: var(--cl-text-muted); margin-top: 6px; }
.cl-dom-ct-foot { margin-top: 16px; }
@media (max-width: 575px) { .cl-dom-ct-grid { grid-template-columns: 1fr; } }

/* Lock pill */
.cl-dom-lock-state { margin-bottom: 12px; }
.cl-dom-lock-pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 16px; font-weight: 600; padding: 7px 16px; border-radius: 8px;
}
.cl-dom-lock-on  { background: #dcfce7; color: #15803d; }
.cl-dom-lock-off { background: #fee2e2; color: #b91c1c; }
.cl-dom-lock-loading { background: #f1f5f9; color: #64748b; }
.cl-dom-lock-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* EPP box */
.cl-dom-epp-box {
    display: flex; align-items: center; gap: 10px; margin-top: 14px;
    background: #f8fafc; border: 1px solid var(--cl-border); border-radius: 8px; padding: 12px 14px;
}
.cl-dom-epp-box code { font-size: 16px; color: var(--cl-text); word-break: break-all; flex: 1; }
.cl-dom-copy {
    background: none; border: 1px solid var(--cl-border); border-radius: 6px;
    width: 36px; height: 36px; cursor: pointer; color: var(--cl-text-muted);
    font-size: 16px; flex-shrink: 0; transition: background .15s, color .15s;
}
.cl-dom-copy:hover { background: var(--cl-primary); color: #fff; border-color: var(--cl-primary); }

/* Switch */
.cl-dom-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.cl-dom-switch input { display: none; }
.cl-dom-slider {
    position: relative; width: 48px; height: 26px; background: #cbd5e1;
    border-radius: 26px; transition: background .2s; flex-shrink: 0;
}
.cl-dom-slider::before {
    content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
    background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.cl-dom-switch input:checked + .cl-dom-slider { background: #22c55e; }
.cl-dom-switch input:checked + .cl-dom-slider::before { transform: translateX(22px); }
.cl-dom-switch-label { font-size: 16px; font-weight: 600; color: var(--cl-text); }

/* Inline messages */
.cl-dom-msg { display: none; margin-top: 12px; font-size: 16px; padding: 9px 14px; border-radius: 8px; }
.cl-dom-msg-success { background: #dcfce7; color: #15803d; }
.cl-dom-msg-error   { background: #fee2e2; color: #b91c1c; }
.cl-dom-msg-warn    { background: #fef3c7; color: #92400e; }
.cl-dom-msg-info    { background: #e0f2fe; color: #075985; }

@media (max-width: 767px) {
    .cl-dom-grid { grid-template-columns: 1fr; }
    .cl-dom-ns { grid-template-columns: 1fr; }
    .cl-dom-ns-2col { grid-template-columns: 1fr; }
    /* Flatten the two NS columns into one stream and move Save below NS5 */
    .cl-dom-ns-col { display: contents; }
    .cl-dom-ns-foot { order: 99; margin-top: 6px; }
}

/* ── Renewal (modal + single card) ─────────────────────────────────── */
.cl-renew-list { display: flex; flex-direction: column; gap: 8px; }
.cl-renew-row {
    display: grid; grid-template-columns: 1fr auto 190px; align-items: center; gap: 12px;
    padding: 10px 12px; border: 1px solid var(--cl-border); border-radius: 8px;
}
.cl-renew-row:nth-child(odd) { background: #f8fafc; }
.cl-renew-check { display: flex; align-items: center; gap: 9px; cursor: pointer; margin: 0; min-width: 0; }
.cl-renew-check input { width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.cl-renew-dom { font-size: 16px; font-weight: 600; color: var(--cl-text); word-break: break-all; }
.cl-renew-exp { font-size: 16px; color: var(--cl-text-muted); white-space: nowrap; }
.cl-renew-period { font-size: 16px; }
.cl-renew-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cl-renew-total { font-size: 17px; color: var(--cl-text); margin-right: auto; }
.cl-renew-total strong { color: var(--cl-primary); }

.cl-dom-renew-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-dom-renew-pick select { font-size: 16px; flex: 1; min-width: 200px; }

@media (max-width: 575px) {
    .cl-renew-row { grid-template-columns: 1fr; gap: 8px; }
    .cl-renew-exp { white-space: normal; }
}

/* Enforce 16px minimum on action buttons within the domain feature */
.cl-dom-card .cl-btn-sm,
.cl-dom-renew-pick .cl-btn-sm,
.cl-renew-foot .cl-btn-sm { font-size: 16px; }

.cl-pd-layout { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.cl-pd-main { display: flex; flex-direction: column; gap: 16px; }

/* Info grid - 2 columns */
.cl-pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.cl-pd-field {}
.cl-pd-label { display: block; font-size: 16px; color: var(--cl-text-muted); margin-bottom: 2px; }
.cl-pd-value { display: block; font-size: 16px; font-weight: 500; color: var(--cl-text); word-break: break-word; }

/* Password eye button */
.cl-pd-eye {
    background: none; border: 1px solid var(--cl-border); border-radius: 6px;
    padding: 2px 8px; cursor: pointer; margin-left: 8px; font-size: 16px;
    color: var(--cl-text-muted); vertical-align: middle;
}
.cl-pd-eye:hover { color: var(--cl-primary); border-color: var(--cl-primary); }
.cl-pd-copy {
    background: none; border: 1px solid #e2e8f0; border-radius: 6px;
    padding: 3px 8px; cursor: pointer; color: #94a3b8; font-size: 16px;
    transition: all 0.15s; line-height: 1;
}
.cl-pd-copy:hover { color: var(--cl-primary); border-color: var(--cl-primary); }
.cl-pd-copy.copied { color: #22c55e; border-color: #22c55e; }

/* Big product icon */
.cl-pd-bigicon {
    width: 200px; border-radius: 50%; flex-shrink: 0; aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex; align-items: center; justify-content: center;
    justify-self: center;
}
.cl-pd-bigicon i { font-size: 100px; color: #fff; }
.cl-pd-inforow { display: grid; grid-template-columns: 240px 1fr 1fr; gap: 24px; align-items: center; }
.cl-pd-infocol { min-width: 0; display: flex; flex-direction: column; gap: 18px; }

/* Collapsible toggle */
.cl-pd-toggle { cursor: pointer; user-select: none; }
.cl-pd-toggle:hover { opacity: 0.9; }
.cl-pd-chevron { font-size: 18px; color: inherit; opacity: 0.7; transition: transform 0.2s; }
.cl-pd-toggle.open .cl-pd-chevron { transform: rotate(180deg); }

/* Card headers — unified blue with left accent */
.cl-pd-header-blue, .cl-pd-header-amber, .cl-pd-header-green,
.cl-pd-header-purple, .cl-pd-header-cyan, .cl-pd-header-rose {
    background: linear-gradient(135deg, #f0f5ff, #e0eafc);
    border-bottom: 2px solid #c3d5f0;
    border-left: 4px solid #4f8ef7;
}
.cl-pd-header-blue .cl-card-title, .cl-pd-header-amber .cl-card-title,
.cl-pd-header-green .cl-card-title, .cl-pd-header-purple .cl-card-title,
.cl-pd-header-cyan .cl-card-title, .cl-pd-header-rose .cl-card-title {
    color: #2956a8;
}
.cl-pd-header-navy {
    background: #1e3a5f;
    border-bottom: 2px solid #1e3a5f;
    border-left: 4px solid #1e3a5f;
}
.cl-pd-header-navy .cl-card-title { color: #fff; }
.cl-pd-header-navy > i, .cl-pd-header-navy .bi { color: #fff; }

/* Mini cards for config/custom fields */
.cl-pd-minicards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.cl-pd-minicard {
    border-radius: 10px; padding: 12px 14px;
    display: flex; flex-direction: column; gap: 4px;
}
.cl-pd-minicard:nth-child(6n+1) { background: #eef4ff; border: 1px solid #c7d2fe; }
.cl-pd-minicard:nth-child(6n+2) { background: #e6f4ea; border: 1px solid #a7f3d0; }
.cl-pd-minicard:nth-child(6n+3) { background: #fff3e0; border: 1px solid #fde68a; }
.cl-pd-minicard:nth-child(6n+4) { background: #fce4ec; border: 1px solid #f5c0d0; }
.cl-pd-minicard:nth-child(6n+5) { background: #e8eaf6; border: 1px solid #c5cae9; }
.cl-pd-minicard:nth-child(6n+6) { background: #e0f7fa; border: 1px solid #b2ebf2; }
.cl-pd-minicard-label { font-size: 16px; color: #64748b; }
.cl-pd-minicard-value { font-size: 16px; font-weight: 600; color: #1e293b; }

/* Progress bars */
.cl-pd-bar { height: 10px; background: #e2e8f0; border-radius: 6px; overflow: hidden; }
.cl-pd-bar-fill { height: 100%; border-radius: 6px; transition: width 0.3s; }

/* Sidebar actions */
.cl-pd-sidebar { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 72px; align-self: start; }
.cl-pd-action {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-radius: 10px; font-size: 16px; font-weight: 500;
    background: var(--cl-card-bg); border: 1px solid var(--cl-border);
    color: var(--cl-text); text-decoration: none;
    transition: all 0.15s; cursor: pointer;
}
a.cl-pd-action:link, a.cl-pd-action:visited, a.cl-pd-action:active { color: var(--cl-text); text-decoration: none; }
.cl-pd-action:hover { border-color: var(--cl-primary); color: var(--cl-primary); background: #f0f5ff; text-decoration: none; }
.cl-pd-action i { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.cl-pd-action-primary { background: var(--cl-primary); color: #fff; border-color: var(--cl-primary); }
.cl-pd-action-primary:hover { background: var(--cl-primary-hover); color: #fff; }
.cl-pd-action-danger { color: #e24b4a; border-color: #fca5a5; }
.cl-pd-action-danger:hover { background: #fef2f2; color: #dc2626; border-color: #e24b4a; }
.cl-pd-action-success { color: #16a34a; border-color: #86efac; }
.cl-pd-action-success:hover { background: #f0fdf4; color: #15803d; border-color: #16a34a; }
.cl-pd-action-warning { color: #d97706; border-color: #fcd34d; }
.cl-pd-action-warning:hover { background: #fffbeb; color: #b45309; border-color: #d97706; }
.cl-pd-action-panel { background: #eff6ff; color: #2563eb; border-color: #93c5fd; }
.cl-pd-action-panel:hover { background: #dbeafe; color: #1d4ed8; border-color: #2563eb; }
.cl-pd-action-info { color: #0891b2; border-color: #67e8f9; }
.cl-pd-action-info:hover { background: #ecfeff; color: #0e7490; border-color: #0891b2; }
.cl-pd-action-secondary { color: #64748b; border-color: #cbd5e1; }
.cl-pd-action-secondary:hover { background: #f8fafc; color: #475569; border-color: #64748b; }

/* Responsive */
@media (max-width: 991px) { .cl-pd-layout { grid-template-columns: 1fr; } }
@media (max-width: 575px) {
    .cl-pd-hero { flex-direction: column; align-items: flex-start; padding: 16px; }
    .cl-pd-grid { grid-template-columns: 1fr; gap: 12px; }
    .cl-pd-title { font-size: 20px; }
    .cl-pd-sidebar { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .cl-pd-action { flex: 1 1 calc(50% - 4px); justify-content: center; padding: 10px 12px; }
    .cl-pd-bigicon { width: 140px; }
    .cl-pd-bigicon i { font-size: 70px; }
    .cl-pd-inforow { grid-template-columns: 1fr; justify-items: center; gap: 20px; }
    .cl-pd-infocol { gap: 14px; width: 100%; }
    .cl-pd-infocol .cl-pd-field { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--cl-border); }
    .cl-pd-infocol .cl-pd-field:last-child { border-bottom: none; }
    .cl-pd-minicards { grid-template-columns: 1fr; }
}

/* ── Overlay (mobile) ────────────────────────────────────────────── */
.cl-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1039;
}
.cl-overlay.show { display: block; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .cl-sidebar { transform: translateX(-100%); }
    .cl-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    }
    .cl-main { margin-left: 0; }
    .cl-hamburger { display: flex; align-items: center; }
}
@media (max-width: 767px) {
    .d-flex { flex-wrap: wrap !important; }
    div[style*="width:"][style*="px"] { max-width: 100% !important; box-sizing: border-box !important; }
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns:1fr 1fr"],
    [style*="grid-template-columns: 2fr 1fr"],
    [style*="grid-template-columns:2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    table { display: block; overflow-x: auto; }
    .cl-form-control, select, textarea { font-size: 16px !important; }
    .cl-svc-layout { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .cl-content { padding: 10px; }
    .cl-content [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
    .cl-content img { max-width: 100%; height: auto; }
    .cl-topbar { padding: 0 10px; }
    .cl-login-card { padding: 28px 20px; max-width: 100% !important; }
    .cl-quick-links { grid-template-columns: repeat(2, 1fr); }
    .row.g-3 > .col-6 { width: 100% !important; flex: 0 0 100% !important; }
    .cl-svc-header { display: none; }
    .cl-svc-row { display: flex; flex-wrap: wrap; align-items: center; padding: 12px 14px; gap: 6px 12px; }
    .cl-svc-col-main { flex: 1 1 100%; min-width: 0; }
    .cl-svc-col-cycle, .cl-svc-col-due, .cl-svc-col-arrow { display: none; }
    .cl-svc-col-amount { font-size: 16px; }
    .cl-svc-col-status { margin-left: auto; }
    .cl-svc-col-manage { margin-left: auto; }
    .cl-svc-row-name { font-size: 16px; white-space: normal; }
}

/* ── Very small screens ── */
@media (max-width: 400px) {
    .cl-content { padding: 8px; }
    .cl-stat-card { padding: 8px 10px; gap: 8px; overflow: hidden; }
    .cl-stat-value { font-size: 18px !important; }
    .cl-stat-label { font-size: 16px !important; }
}

/* Responsive 3-up stat grids (usage cards) — collapse on tablet/mobile */
.cl-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 991px) { .cl-grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .cl-grid3 { grid-template-columns: 1fr; } }

/* ── Announcements (modern list cards + detail) ───────────────────── */
.cl-ann-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.cl-ann-card {
  display: block; background: var(--cl-card-bg, #fff);
  border: 1px solid var(--cl-border, #e2e8f0);
  border-left: 3px solid var(--cl-primary, #4f8ef7);
  border-radius: 10px; padding: 18px 20px;
  text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.cl-ann-card:hover { box-shadow: 0 6px 18px rgba(15,23,42,.08); transform: translateY(-1px); }
.cl-ann-card-date {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; color: var(--cl-text-muted, #94a3b8); margin-bottom: 6px;
}
.cl-ann-card-title {
  font-size: 19px; font-weight: 600; color: var(--cl-text, #334155);
  margin: 0 0 8px; line-height: 1.35;
  transition: color .15s ease;
}
.cl-ann-card:hover .cl-ann-card-title { color: var(--cl-primary, #4f8ef7); }
.cl-ann-card-excerpt { font-size: 16px; color: #475569; line-height: 1.7; margin: 0 0 12px; }
.cl-ann-card-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 7px 14px;
  background: #eff6ff; color: var(--cl-primary, #4f8ef7);
  border: 1px solid #bfdbfe; border-radius: 8px;
  font-size: 15px; font-weight: 600;
  transition: background .15s ease, border-color .15s ease, gap .15s ease;
}
.cl-ann-card:hover .cl-ann-card-more { gap: 9px; background: #dbeafe; border-color: #93c5fd; }

/* Publication calendar (announcements sidebar) */
.cl-ann-cal { user-select: none; }
.cl-ann-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cl-ann-cal-title { font-size: 15px; font-weight: 600; color: var(--cl-text, #334155); }
.cl-ann-cal-nav {
  border: 1px solid var(--cl-border, #e2e8f0); background: #fff; color: #475569;
  width: 28px; height: 28px; border-radius: 7px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
  transition: background .15s, border-color .15s;
}
.cl-ann-cal-nav:hover { background: #f1f5f9; border-color: #cbd5e1; }
.cl-ann-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cl-ann-cal-dow { text-align: center; font-size: 13px; font-weight: 600; color: var(--cl-text-muted, #94a3b8); padding-bottom: 4px; }
.cl-ann-cal-cell {
  position: relative; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #64748b; border-radius: 7px;
}
.cl-ann-cal-cell.empty { visibility: hidden; }
.cl-ann-cal-cell.today { outline: 1px solid #cbd5e1; }
.cl-ann-cal-cell.has { background: #eff6ff; color: #1d4ed8; font-weight: 600; cursor: pointer; transition: background .15s; }
.cl-ann-cal-cell.has:hover { background: #dbeafe; }
.cl-ann-cal-cell.sel { background: var(--cl-primary, #4f8ef7); color: #fff; }
.cl-ann-cal-dot { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: #2563eb; }
.cl-ann-cal-cell.sel .cl-ann-cal-dot { background: #fff; }

/* Active date filter chip */
.cl-ann-datechip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px; padding: 7px 12px;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px;
  color: #1d4ed8; font-size: 15px; font-weight: 500;
}
.cl-ann-datechip > i { font-size: 16px; }
.cl-ann-datechip-x {
  border: 0; background: transparent; color: #1d4ed8; cursor: pointer;
  display: inline-flex; align-items: center; padding: 2px; border-radius: 5px; font-size: 14px;
}
.cl-ann-datechip-x:hover { background: #dbeafe; }
/* Detail body */
.cl-ann-body { font-size: 16px; line-height: 1.8; color: var(--cl-text, #334155); }
.cl-ann-body img { max-width: 100%; height: auto; }
.cl-ann-body a { color: var(--cl-primary, #4f8ef7); }
/* Elements produced by the announcements editor toolbar */
.cl-ann-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.cl-ann-body table th, .cl-ann-body table td { border: 1px solid #e2e8f0; padding: 8px 12px; text-align: left; }
.cl-ann-body table th { background: #f8fafc; font-weight: 600; }
.cl-ann-body table tr:nth-child(even) td { background: #fafbfc; }
.cl-ann-body hr { border: 0; border-top: 1px solid #e2e8f0; margin: 16px 0; }
.cl-ann-body pre { background: #1e293b; color: #e2e8f0; border-radius: 8px; padding: 12px 14px; margin: 12px 0; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.cl-ann-body pre code { background: none; color: inherit; padding: 0; }
.cl-ann-body code { background: #eef2f7; color: #be185d; border-radius: 4px; padding: 1px 5px; font-size: 15px; }
.cl-ann-body blockquote { border-left: 3px solid #cbd5e1; background: #f8fafc; margin: 12px 0; padding: 10px 14px; color: #475569; }
.cl-ann-body h2 { font-size: 22px; font-weight: 700; margin: 18px 0 8px; }
.cl-ann-body h3 { font-size: 19px; font-weight: 700; margin: 14px 0 6px; }
.cl-ann-share {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--cl-border, #e2e8f0);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.cl-ann-fbcom { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--cl-border, #e2e8f0); }

/* ── Knowledge base (modern categories + articles) ────────────────── */
.cl-kb-cats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 575px) { .cl-kb-cats { grid-template-columns: 1fr; } }
.cl-kb-cat {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--cl-card-bg, #fff); border: 1px solid var(--cl-border, #e2e8f0);
  border-radius: 10px; padding: 18px; text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.cl-kb-cat:hover { box-shadow: 0 6px 18px rgba(15,23,42,.08); transform: translateY(-1px); border-color: var(--cl-primary, #4f8ef7); }
.cl-kb-cat-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,142,247,.12); color: var(--cl-primary, #4f8ef7); font-size: 22px;
}
.cl-kb-cat-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cl-kb-cat-name { font-size: 17px; font-weight: 600; color: var(--cl-text, #334155); }
.cl-kb-cat-desc { font-size: 16px; color: #64748b; line-height: 1.5; }
.cl-kb-cat-count { font-size: 16px; color: var(--cl-primary, #4f8ef7); font-weight: 500; }

.cl-kb-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cl-kb-article {
  display: flex; align-items: center; gap: 12px;
  background: var(--cl-card-bg, #fff); border: 1px solid var(--cl-border, #e2e8f0);
  border-left: 3px solid var(--cl-primary, #4f8ef7);
  border-radius: 10px; padding: 14px 16px; text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.cl-kb-article:hover { box-shadow: 0 4px 14px rgba(15,23,42,.07); transform: translateY(-1px); }
.cl-kb-article-icon { flex: 0 0 auto; color: var(--cl-primary, #4f8ef7); font-size: 20px; }
.cl-kb-article-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl-kb-article-title { font-size: 16px; font-weight: 500; color: var(--cl-text, #334155); }
.cl-kb-article-cat { font-size: 16px; color: var(--cl-text-muted, #94a3b8); display: inline-flex; align-items: center; gap: 5px; }
.cl-kb-article-views { flex: 0 0 auto; font-size: 16px; color: var(--cl-text-muted, #94a3b8); display: inline-flex; align-items: center; gap: 5px; }
.cl-kb-article-arrow { flex: 0 0 auto; color: #cbd5e1; font-size: 18px; }

.cl-kb-pop { display: flex; flex-direction: column; }
.cl-kb-pop-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  font-size: 16px; color: var(--cl-text, #334155); text-decoration: none;
  border-bottom: 1px solid #f1f5f9; line-height: 1.35;
}
.cl-kb-pop-item:last-child { border-bottom: 0; }
.cl-kb-pop-item:hover { color: var(--cl-primary, #4f8ef7); }
.cl-kb-pop-item .bi { flex: 0 0 auto; color: var(--cl-primary, #4f8ef7); font-size: 14px; }

.cl-kb-body { font-size: 16px; line-height: 1.8; color: var(--cl-text, #334155); }
.cl-kb-body img { max-width: 100%; height: auto; }
.cl-kb-body a { color: var(--cl-primary, #4f8ef7); }
/* Elements produced by the KB editor toolbar */
.cl-kb-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.cl-kb-body table th, .cl-kb-body table td { border: 1px solid #e2e8f0; padding: 8px 12px; text-align: left; }
.cl-kb-body table th { background: #f8fafc; font-weight: 600; }
.cl-kb-body table tr:nth-child(even) td { background: #fafbfc; }
.cl-kb-body hr { border: 0; border-top: 1px solid #e2e8f0; margin: 16px 0; }
.cl-kb-body pre { background: #1e293b; color: #e2e8f0; border-radius: 8px; padding: 12px 14px; margin: 12px 0; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.cl-kb-body pre code { background: none; color: inherit; padding: 0; }
.cl-kb-body code { background: #eef2f7; color: #be185d; border-radius: 4px; padding: 1px 5px; font-size: 15px; }
.cl-kb-body blockquote { border-left: 3px solid #cbd5e1; background: #f8fafc; margin: 12px 0; padding: 10px 14px; color: #475569; }
.cl-kb-body h2 { font-size: 22px; font-weight: 700; margin: 18px 0 8px; }
.cl-kb-body h3 { font-size: 19px; font-weight: 700; margin: 14px 0 6px; }

/* ── Knowledge base: breadcrumb + section headers (hierarchy) ──────── */
.cl-kb-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 16px; margin-bottom: 14px; color: var(--cl-text-muted, #94a3b8);
}
.cl-kb-breadcrumb a { color: var(--cl-primary, #4f8ef7); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.cl-kb-breadcrumb a:hover { text-decoration: underline; }
.cl-kb-bc-sep { font-size: 12px; color: #cbd5e1; }
.cl-kb-bc-current { color: var(--cl-text, #334155); font-weight: 500; }
.cl-kb-subhead {
  display: flex; align-items: center; gap: 7px;
  font-size: 16px; font-weight: 600; color: var(--cl-text, #334155);
  margin: 4px 0 12px;
}
.cl-kb-subhead .bi { color: var(--cl-primary, #4f8ef7); }
.cl-kb-subhead + .cl-kb-cats, .cl-kb-subhead + .cl-kb-list { margin-top: 0; }
.cl-kb-cats + .cl-kb-subhead { margin-top: 8px; }

/* Zoomable content images (open in lightbox on click) */
.cl-ann-body img.cl-zoomable, .cl-kb-body img.cl-zoomable { cursor: zoom-in; transition: opacity .15s ease; }
.cl-ann-body img.cl-zoomable:hover, .cl-kb-body img.cl-zoomable:hover { opacity: .9; }

/* ── Downloads (file rows) ────────────────────────────────────────── */
.cl-dl-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cl-dl-file {
  display: flex; align-items: center; gap: 14px;
  background: var(--cl-card-bg, #fff); border: 1px solid var(--cl-border, #e2e8f0);
  border-left: 3px solid var(--cl-primary, #4f8ef7);
  border-radius: 10px; padding: 14px 16px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.cl-dl-file:hover { box-shadow: 0 4px 14px rgba(15,23,42,.07); transform: translateY(-1px); }
.cl-dl-file-icon {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,142,247,.12); color: var(--cl-primary, #4f8ef7); font-size: 20px;
}
.cl-dl-file-main { flex: 1 1 auto; min-width: 0; }
.cl-dl-file-title { font-size: 16px; font-weight: 500; color: var(--cl-text, #334155); }
.cl-dl-file-desc { font-size: 16px; color: #64748b; line-height: 1.5; margin-top: 3px; }
.cl-dl-file-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 5px; font-size: 16px; color: var(--cl-text-muted, #94a3b8); }
.cl-dl-file-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cl-dl-file-btn { flex: 0 0 auto; }
@media (max-width: 575px) {
  .cl-dl-file { flex-wrap: wrap; }
  .cl-dl-file-btn { width: 100%; justify-content: center; }
}

/* ── Network issues (status rows) ─────────────────────────────────── */
.cl-ni-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cl-ni-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--cl-card-bg, #fff); border: 1px solid var(--cl-border, #e2e8f0);
  border-radius: 10px; padding: 14px 16px; text-decoration: none; color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.cl-ni-row:hover { box-shadow: 0 4px 14px rgba(15,23,42,.07); transform: translateY(-1px); }
.cl-ni-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cl-ni-title { font-size: 16px; font-weight: 500; color: var(--cl-text, #334155); }
.cl-ni-meta { font-size: 16px; color: var(--cl-text-muted, #94a3b8); display: flex; flex-wrap: wrap; gap: 12px; }
.cl-ni-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cl-ni-date { flex: 0 0 auto; font-size: 16px; color: var(--cl-text-muted, #94a3b8); display: inline-flex; align-items: center; gap: 5px; }
.cl-ni-status { flex: 0 0 auto; }
.cl-ni-arrow { flex: 0 0 auto; color: #cbd5e1; font-size: 18px; }
.cl-ni-body { font-size: 16px; line-height: 1.8; color: var(--cl-text, #334155); }
/* Elements produced by the network issues editor toolbar */
.cl-ni-body img { max-width: 100%; height: auto; }
.cl-ni-body table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.cl-ni-body table th, .cl-ni-body table td { border: 1px solid #e2e8f0; padding: 8px 12px; text-align: left; }
.cl-ni-body table th { background: #f8fafc; font-weight: 600; }
.cl-ni-body table tr:nth-child(even) td { background: #fafbfc; }
.cl-ni-body hr { border: 0; border-top: 1px solid #e2e8f0; margin: 16px 0; }
.cl-ni-body pre { background: #1e293b; color: #e2e8f0; border-radius: 8px; padding: 12px 14px; margin: 12px 0; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.cl-ni-body pre code { background: none; color: inherit; padding: 0; }
.cl-ni-body code { background: #eef2f7; color: #be185d; border-radius: 4px; padding: 1px 5px; font-size: 15px; }
.cl-ni-body blockquote { border-left: 3px solid #cbd5e1; background: #f8fafc; margin: 12px 0; padding: 10px 14px; color: #475569; }
.cl-ni-body h2 { font-size: 22px; font-weight: 700; margin: 18px 0 8px; }
.cl-ni-body h3 { font-size: 19px; font-weight: 700; margin: 14px 0 6px; }
@media (max-width: 640px) {
  .cl-ni-row { flex-wrap: wrap; }
  .cl-ni-date, .cl-ni-status { margin-top: 2px; }
  .cl-ni-arrow { display: none; }
}

/* ── Enforce 16px minimum: network badges + admin-pasted body text ── */
.cl-ni-badge {
  font-size: 16px; font-weight: 500; padding: 5px 14px;
  border-radius: 8px; line-height: 1.4; display: inline-flex;
  align-items: center; justify-content: center;
}
/* Admin-authored bodies often carry inline font-size:small — force readable ≥16px */
.cl-ni-body, .cl-ni-body p, .cl-ni-body span, .cl-ni-body div, .cl-ni-body li, .cl-ni-body td, .cl-ni-body a,
.cl-ann-body, .cl-ann-body p, .cl-ann-body span, .cl-ann-body div, .cl-ann-body li, .cl-ann-body td, .cl-ann-body a,
.cl-kb-body, .cl-kb-body p, .cl-kb-body span, .cl-kb-body div, .cl-kb-body li, .cl-kb-body td, .cl-kb-body a {
  font-size: 16px !important;
}

/* ── Contact page (info + map) ────────────────────────────────────── */
.cl-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; align-items: stretch; }
@media (max-width: 860px) { .cl-contact-grid { grid-template-columns: 1fr; } }
.cl-contact-info .cl-card-body { padding: 18px 20px; }
.cl-contact-title { font-size: 18px; font-weight: 600; color: var(--cl-text, #334155); display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cl-contact-title .bi { color: var(--cl-primary, #4f8ef7); }
.cl-contact-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.cl-contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cl-contact-ico {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,142,247,.12); color: var(--cl-primary, #4f8ef7); font-size: 20px;
}
.cl-contact-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cl-contact-label { font-size: 16px; color: var(--cl-text-muted, #94a3b8); }
.cl-contact-value { font-size: 16px; font-weight: 500; color: var(--cl-text, #334155); line-height: 1.5; }
.cl-contact-value a { color: var(--cl-primary, #4f8ef7); text-decoration: none; }
.cl-contact-value a:hover { text-decoration: underline; }
.cl-contact-map { padding: 0; overflow: hidden; min-height: 320px; display: flex; }
.cl-contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.cl-contact-form { margin-bottom: 18px; width: 100%; max-width: 100%; }

/* Read-only contact fields (logged-in: name/email from account) */
.cl-contact-form input[readonly] { background: #f1f5f9; color: #64748b; cursor: default; }

/* ── Affiliate big-icon stat cards (WHMCS-style) ── */
.cl-aff-stat {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 22px; border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.05); height: 100%;
}
.cl-aff-stat-ico { font-size: 46px; line-height: 1; flex-shrink: 0; }
.cl-aff-stat-body { min-width: 0; }
.cl-aff-stat-num { font-size: 30px; font-weight: 700; line-height: 1.1; color: #1e293b; }
.cl-aff-stat-lbl { font-size: 16px; color: #64748b; margin-top: 2px; }
.cl-aff-stat.beige { background: #fdf6e3; } .cl-aff-stat.beige .cl-aff-stat-ico { color: #b08a3e; }
.cl-aff-stat.blue  { background: #e8f2fb; } .cl-aff-stat.blue  .cl-aff-stat-ico { color: #2f7bc4; }
.cl-aff-stat.green { background: #e9f6ec; } .cl-aff-stat.green .cl-aff-stat-ico { color: #3a9d5d; }
.cl-aff-stat.rose  { background: #fdecec; } .cl-aff-stat.rose  .cl-aff-stat-ico { color: #c0574f; }
@media (max-width: 575px) {
    .cl-aff-stat { padding: 14px 16px; gap: 12px; }
    .cl-aff-stat-ico { font-size: 34px; }
    .cl-aff-stat-num { font-size: 22px; }
}
