/* Jambogrid design system — translated from /tmp/jambogrid-design/project/styles.css
 * Light theme variant. Class prefix: jg-
 */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
    --jg-bg-deep:      oklch(0.985 0.003 255);
    --jg-bg-panel:     #ffffff;
    --jg-bg-elev:      oklch(0.965 0.004 255);
    --jg-bg-hover:     oklch(0.955 0.004 255);
    --jg-border:       oklch(0.905 0.005 255);
    --jg-border-soft:  oklch(0.935 0.005 255);
    --jg-text:         oklch(0.22 0.008 255);
    --jg-text-mid:     oklch(0.46 0.008 255);
    --jg-text-dim:     oklch(0.60 0.008 255);
    --jg-text-faint:   oklch(0.70 0.008 255);

    --jg-green:        oklch(0.78 0.16 148);
    --jg-green-dim:    oklch(0.78 0.16 148 / 0.16);
    --jg-amber:        oklch(0.82 0.15 78);
    --jg-amber-dim:    oklch(0.82 0.15 78 / 0.18);
    --jg-red:          oklch(0.70 0.19 25);
    --jg-red-dim:      oklch(0.70 0.19 25 / 0.18);
    --jg-blue:         oklch(0.74 0.13 245);
    --jg-blue-dim:     oklch(0.74 0.13 245 / 0.16);
    --jg-violet:       oklch(0.72 0.14 295);
    --jg-violet-dim:   oklch(0.72 0.14 295 / 0.16);

    --jg-brand:        oklch(0.86 0.18 142);
    --jg-brand-dim:    oklch(0.86 0.18 142 / 0.16);
    --jg-brand-ink:    oklch(0.22 0.05 142);

    --jg-radius-sm: 6px;
    --jg-radius:    10px;
    --jg-radius-lg: 14px;

    --jg-font: 'Geist', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --jg-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--jg-bg-deep);
    color: var(--jg-text);
    font-family: var(--jg-font);
    font-feature-settings: 'cv11', 'ss01';
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Safety net: any SVG without explicit dimensions stays a sane icon size.
 * Sparklines / charts override this with an explicit class. */
svg:not(.jg-spark) { width: 16px; height: 16px; flex-shrink: 0; vertical-align: middle; }
*, *::before, *::after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
.mono, .jg-mono { font-family: var(--jg-mono); letter-spacing: 0; }

/* App shell */
.jg-app {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 56px 1fr;
    overflow: hidden;
}

/* Sidebar */
.jg-sidebar {
    grid-row: 1 / -1;
    grid-column: 1;
    border-right: 1px solid var(--jg-border);
    background: var(--jg-bg-panel);
    display: flex;
    flex-direction: column;
    padding: 14px 12px;
    gap: 4px;
    overflow-y: auto;
}
.jg-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 8px 18px; font-weight: 600; font-size: 15px;
    letter-spacing: -0.01em;
}
.jg-logo-mark {
    width: 26px; height: 26px; border-radius: 7px;
    background: var(--jg-brand); color: var(--jg-brand-ink);
    display: grid; place-items: center;
    font-weight: 700; font-size: 14px; letter-spacing: -0.02em;
    position: relative; overflow: hidden;
}
.jg-logo-mark::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, transparent 49%, rgba(0,0,0,0.18) 49%, rgba(0,0,0,0.18) 51%, transparent 51%),
        linear-gradient(0deg,  transparent 49%, rgba(0,0,0,0.18) 49%, rgba(0,0,0,0.18) 51%, transparent 51%);
    background-size: 9px 9px;
    opacity: 0.6;
    pointer-events: none;
}
.jg-nav-group { margin-top: 12px; }
.jg-nav-label {
    font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--jg-text-faint); padding: 6px 10px; font-weight: 500;
}
.jg-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: var(--jg-radius-sm);
    font-size: 13.5px; color: var(--jg-text-mid);
    position: relative; cursor: pointer;
}
.jg-nav-item:hover { background: var(--jg-bg-elev); color: var(--jg-text); }
.jg-nav-item.active { background: var(--jg-bg-elev); color: var(--jg-text); }
.jg-nav-item.active::before {
    content: ''; position: absolute;
    left: -12px; top: 8px; bottom: 8px; width: 2px;
    background: var(--jg-brand); border-radius: 2px;
}
.jg-nav-item .ico { width: 16px; height: 16px; opacity: 0.8; flex-shrink: 0; }
.jg-nav-item .count {
    margin-left: auto; font-size: 11px; font-family: var(--jg-mono);
    color: var(--jg-text-dim); background: var(--jg-bg-elev);
    padding: 1px 6px; border-radius: 4px;
}
.jg-nav-item .count.count-hidden {
    display: none;
}
.jg-sidebar-footer {
    margin-top: auto; padding-top: 12px;
    border-top: 1px solid var(--jg-border-soft);
    display: flex; align-items: center; gap: 10px; font-size: 12.5px;
}
.jg-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--jg-violet), var(--jg-blue));
    display: grid; place-items: center; color: #fff;
    font-size: 11px; font-weight: 600; flex-shrink: 0;
}

/* Topbar */
.jg-topbar {
    grid-row: 1; grid-column: 2;
    border-bottom: 1px solid var(--jg-border);
    background: var(--jg-bg-panel);
    display: flex; align-items: center; gap: 14px;
    padding: 0 22px;
}
.jg-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--jg-text-mid); }
.jg-crumb .sep { opacity: 0.4; }
.jg-crumb .curr { color: var(--jg-text); font-weight: 500; }
.jg-search {
    margin-left: auto; display: flex; align-items: center; gap: 8px;
    background: var(--jg-bg-elev); border: 1px solid var(--jg-border-soft);
    padding: 6px 10px; border-radius: 8px; font-size: 12.5px;
    color: var(--jg-text-dim); width: 280px;
}
.jg-search input {
    border: 0; background: transparent; outline: none; flex: 1;
    font: inherit; color: var(--jg-text);
}
.jg-search .kbd {
    font-family: var(--jg-mono); font-size: 10.5px;
    padding: 1px 5px; background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border); border-radius: 3px;
    color: var(--jg-text-dim);
}
.jg-iconbtn {
    width: 32px; height: 32px; border-radius: 8px;
    display: grid; place-items: center;
    color: var(--jg-text-mid); cursor: pointer;
    background: transparent; border: 0; position: relative;
}
.jg-iconbtn:hover { background: var(--jg-bg-elev); color: var(--jg-text); }
.jg-iconbtn .dot {
    position: absolute; top: 6px; right: 6px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--jg-red); border: 2px solid var(--jg-bg-panel);
}

/* Content */
.jg-content {
    grid-row: 2; grid-column: 2;
    padding: 26px 28px;
    overflow: auto;
    background: var(--jg-bg-deep);
    min-width: 0;
}
.jg-content-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.jg-grid { display: grid; gap: 14px; }
.jg-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jg-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jg-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jg-grid.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.jg-grid.main-side { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.jg-grid.mt { margin-top: 14px; }

@media (max-width: 1280px) {
    .jg-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .jg-grid.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .jg-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jg-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jg-grid.main-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .jg-grid.cols-5,
    .jg-grid.cols-4,
    .jg-grid.cols-3,
    .jg-grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
    .jg-app { grid-template-columns: 1fr; }
    .jg-sidebar { display: none; }
}
.jg-page-h {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 22px; gap: 16px;
}
.jg-page-h h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.jg-page-h p { margin: 0; font-size: 13px; color: var(--jg-text-dim); }

/* Buttons */
.jg-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px; border-radius: 7px;
    font: 500 13px var(--jg-font);
    cursor: pointer; border: 1px solid transparent;
    transition: background 0.12s, transform 0.04s;
    white-space: nowrap; text-decoration: none;
}
.jg-btn:active { transform: translateY(0.5px); }
.jg-btn-full { width: 100%; justify-content: center; }
.jg-btn-primary { background: var(--jg-brand); color: var(--jg-brand-ink); font-weight: 600; }
.jg-btn-primary:hover { filter: brightness(1.08); }
.jg-btn-ghost { background: var(--jg-bg-panel); color: var(--jg-text); border-color: var(--jg-border); }
.jg-btn-ghost:hover { background: var(--jg-bg-elev); }
.jg-btn-quiet { background: transparent; color: var(--jg-text-mid); }
.jg-btn-quiet:hover { background: var(--jg-bg-elev); color: var(--jg-text); }
.jg-btn-danger { background: var(--jg-red-dim); color: var(--jg-red); }
.jg-btn-danger:hover { filter: brightness(1.04); }

/* Quick-action tile (portal dashboard, etc.) */
.jg-quickactions-grid {
    padding: 8px; display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
}
.jg-quickaction {
    padding: 14px 12px;
    border-radius: 8px;
    background: var(--jg-bg-elev);
    border: 1px solid var(--jg-border-soft);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.jg-quickaction:hover { background: var(--jg-bg-panel); border-color: var(--jg-border); }
.jg-quickaction .ico { display: inline-flex; width: 18px; height: 18px; flex-shrink: 0; }
.jg-quickaction span:last-child {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Stat card — used on dashboards. Keep value tight so long numbers don't push the layout. */
.jg-statcard { padding: 14px 16px; min-width: 0; }
.jg-statcard > * { min-width: 0; }
.jg-statcard .val {
    font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
    margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jg-stat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jg-statcard .label { font-size: 12px; color: var(--jg-text-mid); }
.jg-statcard-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jg-statcard .sub { font-size: 11.5px; color: var(--jg-text-mid); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Cards */
.jg-card {
    background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border-soft);
    border-radius: var(--jg-radius);
    overflow: hidden;
}
.jg-card-h {
    padding: 14px 16px;
    border-bottom: 1px solid var(--jg-border-soft);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; font-weight: 500;
}
.jg-card-h .sub { font-size: 11px; color: var(--jg-text-dim); margin-top: 2px; font-weight: 400; }
.jg-card-b { padding: 16px; }

/* Badges */
.jg-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 7px; border-radius: 5px;
    font-size: 11px; font-weight: 500; font-family: var(--jg-mono);
    text-transform: lowercase; letter-spacing: 0; line-height: 1.5;
}
.jg-badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.jg-badge.green   { background: var(--jg-green-dim);  color: var(--jg-green); }
.jg-badge.amber   { background: var(--jg-amber-dim);  color: var(--jg-amber); }
.jg-badge.red     { background: var(--jg-red-dim);    color: var(--jg-red); }
.jg-badge.blue    { background: var(--jg-blue-dim);   color: var(--jg-blue); }
.jg-badge.violet  { background: var(--jg-violet-dim); color: var(--jg-violet); }
.jg-badge.neutral { background: var(--jg-bg-elev);    color: var(--jg-text-mid); }

/* Tables */
.jg-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.jg-table th {
    text-align: left; font-weight: 500; font-size: 11.5px;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--jg-text-dim); padding: 10px 16px;
    background: var(--jg-bg-elev);
    border-bottom: 1px solid var(--jg-border-soft);
}
.jg-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--jg-border-soft);
    color: var(--jg-text); vertical-align: middle;
}
.jg-table tr:hover td { background: var(--jg-bg-elev); }
.jg-table td .muted { color: var(--jg-text-dim); font-size: 12px; }
.jg-table tr:last-child td { border-bottom: none; }
.jg-table td.right, .jg-table th.right { text-align: right; }
.jg-table input[type="checkbox"] { accent-color: var(--jg-brand); }

/* Filter bar */
.jg-filter-bar {
    display: flex; gap: 8px; margin-bottom: 14px;
    align-items: center; flex-wrap: wrap;
}
.jg-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 9px; border-radius: 7px;
    border: 1px dashed var(--jg-border);
    background: transparent;
    font: 12.5px var(--jg-font); color: var(--jg-text-mid);
    cursor: pointer; text-decoration: none;
}
.jg-chip:hover { border-style: solid; color: var(--jg-text); }
.jg-chip.active { border-style: solid; color: var(--jg-text); background: var(--jg-bg-elev); }
.jg-chip .v { color: var(--jg-text-faint); }
.jg-chip .ico { display: inline-flex; width: 12px; height: 12px; }

/* Table footer / pagination */
.jg-table-foot {
    display: flex; align-items: center;
    padding: 10px 16px;
    border-top: 1px solid var(--jg-border-soft);
    font-size: 12px; color: var(--jg-text-dim);
}
.jg-pager { margin-left: auto; display: flex; gap: 4px; }
.jg-pager .jg-btn { padding: 4px 10px; }

/* ── Form-page utilities (hosting/create and similar) ───────────────────── */

.jg-form-section { padding: 16px; }
.jg-form-section + .jg-form-section { border-top: 1px solid var(--jg-border-soft); }

.jg-form-footer {
    background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border-soft);
    border-radius: var(--jg-radius);
    padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.jg-form-footer .meta { font-size: 12.5px; color: var(--jg-text-mid); }
.jg-form-footer .actions { display: flex; gap: 8px; }

/* Section legend inside a card body — eyebrow on its own line, helper below */
.jg-section-label {
    display: flex; flex-direction: column; gap: 2px;
    margin-bottom: 12px;
}
.jg-section-label > span:first-child {
    font-size: 10.5px; font-weight: 600;
    color: var(--jg-text-faint);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.jg-section-label > span:last-child {
    font-size: 12px; color: var(--jg-text-mid);
}

/* ── Selectable cards (package / server picker) ─────────────────────────── */

.jg-pick {
    position: relative;
    padding: 16px; border-radius: var(--jg-radius);
    border: 1px solid var(--jg-border);
    background: var(--jg-bg-panel);
    cursor: pointer; display: block;
    transition: border-color .12s, background .12s, box-shadow .12s;
    min-width: 0;
}
.jg-pick:hover { border-color: var(--jg-text-faint); }
/* Real radio input — visually hidden but focusable */
.jg-pick input[type="radio"] {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}
.jg-pick:has(input[type="radio"]:checked) {
    border-color: var(--jg-brand);
    background: oklch(0.86 0.18 142 / 0.06);
}
.jg-pick:has(input[type="radio"]:focus-visible) {
    box-shadow: 0 0 0 3px oklch(0.86 0.18 142 / 0.25);
}
.jg-pick-radio {
    width: 16px; height: 16px; border-radius: 50%;
    border: 1.5px solid var(--jg-border);
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: border-color .12s;
}
.jg-pick:has(input[type="radio"]:checked) .jg-pick-radio { border-color: var(--jg-brand); }
.jg-pick:has(input[type="radio"]:checked) .jg-pick-radio::after {
    content: ''; width: 7px; height: 7px;
    border-radius: 50%; background: var(--jg-brand);
}

/* Package picker card layout */
.jg-pkg-card .pkg-head { display: flex; align-items: center; gap: 10px; }
.jg-pkg-card .pkg-title { flex: 1; min-width: 0; }
.jg-pkg-card .pkg-title .name {
    font-size: 14px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jg-pkg-card .pkg-title .whm-name {
    font-family: var(--jg-mono);
    font-size: 11px; color: var(--jg-text-dim); margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jg-pkg-card .price-row {
    margin-top: 12px;
    display: flex; align-items: baseline; gap: 4px;
}
.jg-pkg-card .price-row .price {
    font-family: var(--jg-mono);
    font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
}
.jg-pkg-card .price-row .cycle {
    font-size: 11px; color: var(--jg-text-dim);
}
.jg-pkg-card .specs {
    margin-top: 12px; display: grid; gap: 6px;
}
.jg-pkg-card .specs > div {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--jg-text-mid);
}
.jg-pkg-card .specs svg { color: var(--jg-green); flex-shrink: 0; }

/* Order-summary rail */
.jg-sum-rail { position: sticky; top: 20px; align-self: start; }
.jg-sum-section { padding: 14px 16px; }
.jg-sum-section + .jg-sum-section { border-top: 1px solid var(--jg-border-soft); }
.jg-sum-row {
    display: flex; justify-content: space-between;
    align-items: baseline; gap: 8px;
}
.jg-sum-row + .jg-sum-row { margin-top: 10px; }
.jg-sum-label { font-size: 12px; color: var(--jg-text-mid); }
.jg-sum-value { font-size: 13px; font-weight: 500; text-align: right; }
.jg-sum-total { font-size: 15px; font-weight: 600; color: var(--jg-text); }

/* ── Segmented cycle picker (radio-driven pill tabs) ───────────────────── */
.jg-cycle-tabs {
    display: inline-flex;
    background: var(--jg-bg-elev);
    border: 1px solid var(--jg-border-soft);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.jg-cycle-tab {
    position: relative;
    cursor: pointer;
    padding: 5px 12px;
    font-size: 12.5px;
    color: var(--jg-text-mid);
    border-radius: 5px;
    user-select: none;
    transition: background .12s, color .12s;
}
.jg-cycle-tab input[type="radio"] {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}
.jg-cycle-tab:hover { color: var(--jg-text); }
.jg-cycle-tab:has(input:checked) {
    background: var(--jg-bg-panel);
    color: var(--jg-text);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.jg-cycle-tab:has(input:focus-visible) {
    box-shadow: 0 0 0 2px oklch(0.86 0.18 142 / 0.35);
}

/* ── Password strength meter (inline in field label) ───────────────────── */
.jg-pw-strength {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 500;
    margin-left: 6px; vertical-align: middle;
}
.jg-pw-strength .bar {
    display: inline-block;
    width: 60px; height: 4px;
    background: var(--jg-bg-elev);
    border-radius: 2px; overflow: hidden;
}
.jg-pw-strength .fill {
    display: block; height: 100%;
    background: var(--jg-red);
    transition: width .15s, background .15s;
}
.jg-pw-strength[data-level="amber"] .fill { background: var(--jg-amber); }
.jg-pw-strength[data-level="green"] .fill { background: var(--jg-green); }
.jg-pw-strength[data-level="red"]   .label { color: var(--jg-red); }
.jg-pw-strength[data-level="amber"] .label { color: var(--jg-amber); }
.jg-pw-strength[data-level="green"] .label { color: var(--jg-green); }

/* Form fields */
.jg-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.jg-field-nomb { margin-bottom: 0; }
.jg-field-label { font-size: 12px; font-weight: 500; color: var(--jg-text-mid); }
.jg-field-error { font-size: 11.5px; color: var(--jg-red); margin-top: 2px; }
.jg-input, .jg-select, textarea.jg-input {
    background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border);
    color: var(--jg-text);
    padding: 8px 10px; border-radius: 7px;
    font: 13px var(--jg-font);
    outline: none; width: 100%;
}
.jg-input:focus, .jg-select:focus {
    border-color: var(--jg-brand);
    box-shadow: 0 0 0 3px oklch(0.86 0.18 142 / 0.15);
}
.jg-input.mono { font-family: var(--jg-mono); }
.jg-select-full { width: 100%; }
.jg-input.has-error, .jg-select.has-error {
    border-color: var(--jg-red);
    box-shadow: 0 0 0 3px var(--jg-red-dim);
}

/* Pill tabs */
.jg-pill-tabs {
    display: inline-flex;
    background: var(--jg-bg-elev);
    border: 1px solid var(--jg-border-soft);
    border-radius: 8px; padding: 3px; gap: 2px;
}
.jg-pill-tabs button, .jg-pill-tabs a {
    background: transparent; border: 0;
    padding: 5px 12px; font: 12.5px var(--jg-font);
    color: var(--jg-text-mid); border-radius: 5px;
    cursor: pointer; text-decoration: none;
}
.jg-pill-tabs button.active, .jg-pill-tabs a.active {
    background: var(--jg-bg-panel); color: var(--jg-text);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.jg-divider { height: 1px; background: var(--jg-border-soft); margin: 12px 0; border: 0; }

/* Status strip */
.jg-strip { width: 3px; height: 100%; position: absolute; left: 0; top: 0; }
.jg-strip-table td:first-child { padding: 0 !important; }
.jg-strip-table tr { position: relative; }
.jg-strip.green   { background: var(--jg-green); }
.jg-strip.red     { background: var(--jg-red); }
.jg-strip.amber   { background: var(--jg-amber); }
.jg-strip.blue    { background: var(--jg-blue); }
.jg-strip.gray    { background: var(--jg-border); }

/* Summary tiles (portal invoice list) */
.jg-summary-tile {
    text-decoration: none;
    transition: background 0.12s, border-color 0.12s, transform 0.12s;
}
.jg-summary-tile:hover {
    background: var(--jg-bg-elev);
    transform: translateY(-1px);
}
.jg-summary-tile.is-active {
    border-color: var(--jg-brand);
    background: oklch(0.86 0.18 142 / 0.04);
}
.jg-summary-tile .mono { color: var(--jg-text); }
.jg-summary-tile[data-empty="1"] .mono { color: var(--jg-text-dim); font-weight: 500; }
.jg-strip.green { background: var(--jg-green); }
.jg-strip.amber { background: var(--jg-amber); }
.jg-strip.red   { background: var(--jg-red); }
.jg-strip.blue  { background: var(--jg-blue); }
.jg-strip.gray  { background: var(--jg-border); }

/* Spark */
.jg-spark { display: block; height: 32px; width: 100%; }

/* Flash */
.jg-flash {
    padding: 10px 14px; border-radius: 8px; font-size: 13px;
    margin-bottom: 14px; border: 1px solid transparent;
}
.jg-flash.success { background: var(--jg-green-dim); color: var(--jg-green); border-color: var(--jg-green-dim); }
.jg-flash.error   { background: var(--jg-red-dim);   color: var(--jg-red);   border-color: var(--jg-red-dim); }

/* Scrollbars */
.jg-content::-webkit-scrollbar,
.jg-sidebar::-webkit-scrollbar { width: 6px; height: 6px; }
.jg-content::-webkit-scrollbar-thumb,
.jg-sidebar::-webkit-scrollbar-thumb { background: var(--jg-border); border-radius: 3px; }

/* KPI helpers */
.jg-kpi { padding: 16px 16px 8px; }
.jg-kpi-label { font-size: 12px; color: var(--jg-text-dim); }
.jg-kpi-val { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }

/* Resource bars */
.jg-resbar {
    display: grid; grid-template-columns: 32px 1fr 40px;
    align-items: center; gap: 10px; font-size: 11.5px; margin-bottom: 6px;
}
.jg-resbar .label { color: var(--jg-text-dim); }
.jg-resbar .track { height: 4px; background: var(--jg-bg-elev); border-radius: 2px; overflow: hidden; }
.jg-resbar .fill  { height: 100%; border-radius: 2px; }
.jg-resbar .pct { text-align: right; color: var(--jg-text-mid); font-family: var(--jg-mono); }

/* Renewal row */
.jg-renewal-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--jg-border-soft);
}
.jg-renewal-row:last-child { border-bottom: 0; }
.jg-renewal-mark { width: 3px; height: 28px; border-radius: 2px; flex-shrink: 0; }
.jg-renewal-mark.green { background: var(--jg-green); }
.jg-renewal-mark.amber { background: var(--jg-amber); }
.jg-renewal-mark.red   { background: var(--jg-red); }

/* ── Guest pages (login / setup) ─────────────────────────────────── */
.jg-guest {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, oklch(0.86 0.18 142 / 0.08), transparent),
        var(--jg-bg-deep);
}
.jg-guest-card {
    width: 100%;
    max-width: 420px;
    background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border-soft);
    border-radius: var(--jg-radius-lg);
    padding: 36px 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.04);
}
.jg-guest-head {
    text-align: center;
    margin-bottom: 28px;
}
.jg-guest-head .mark {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--jg-brand); color: var(--jg-brand-ink);
    display: inline-grid; place-items: center;
    font-weight: 700; font-size: 20px; letter-spacing: -0.02em;
    margin-bottom: 12px;
    position: relative; overflow: hidden;
}
.jg-guest-head .mark::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, transparent 49%, rgba(0,0,0,0.18) 49%, rgba(0,0,0,0.18) 51%, transparent 51%),
        linear-gradient(0deg,  transparent 49%, rgba(0,0,0,0.18) 49%, rgba(0,0,0,0.18) 51%, transparent 51%);
    background-size: 10px 10px;
    opacity: 0.5;
    pointer-events: none;
}
.jg-guest-head h1 {
    font-size: 19px; font-weight: 600; margin: 0;
    letter-spacing: -0.02em;
}
.jg-guest-head p {
    font-size: 13px; color: var(--jg-text-dim); margin: 6px 0 0;
}
.jg-guest-foot {
    text-align: center; margin-top: 20px;
    font-size: 12.5px; color: var(--jg-text-dim);
}
.jg-guest-foot a {
    color: var(--jg-brand-ink); font-weight: 500;
}
.jg-guest-foot a:hover { text-decoration: underline; }
.jg-guest .jg-field { margin-bottom: 14px; }
.jg-guest .jg-btn { width: 100%; justify-content: center; padding: 10px 14px; font-size: 13.5px; }
.jg-guest .jg-btn + .jg-btn { margin-top: 4px; }

/* ── Landing page ─────────────────────────────────────────────────── */
.jg-landing {
    background: var(--jg-bg-deep);
}

/* Top bar */
.jg-landing-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 56px;
    border-bottom: 1px solid var(--jg-border-soft);
    background: var(--jg-bg-panel);
    position: sticky; top: 0; z-index: 10;
}
.jg-landing-logo {
    font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
    color: var(--jg-text);
}
.jg-landing-logo span {
    color: var(--jg-brand);
}
.jg-landing-topbar-links {
    display: flex; align-items: center; gap: 8px;
}
.jg-landing-topbar-links a {
    font-size: 13px; color: var(--jg-text-mid); padding: 6px 12px;
    border-radius: 6px;
}
.jg-landing-topbar-links a:hover {
    background: var(--jg-bg-elev); color: var(--jg-text);
}
.jg-landing-topbar-links .jg-btn {
    font-size: 12.5px; padding: 6px 14px;
}

/* Section containers */
.jg-landing-section {
    padding: 60px 24px;
}
.jg-landing-section-alt {
    padding: 60px 24px;
    background: var(--jg-bg-panel);
    border-top: 1px solid var(--jg-border-soft);
    border-bottom: 1px solid var(--jg-border-soft);
}
.jg-landing-section-alt-top {
    padding: 60px 24px 40px;
    background: var(--jg-bg-panel);
    border-top: 1px solid var(--jg-border-soft);
}
.jg-landing-container {
    max-width: 960px; margin: 0 auto;
}
.jg-landing-section-label {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--jg-brand); font-weight: 600; margin-bottom: 10px;
}
.jg-landing-section-title {
    font-size: 26px; font-weight: 650; letter-spacing: -0.03em;
    margin: 0 0 12px;
}
.jg-landing-section-sub {
    font-size: 15px; color: var(--jg-text-dim); margin: 0 0 32px;
    line-height: 1.6; max-width: 560px;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.jg-hero-section {
    padding: 80px 24px 60px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, oklch(0.86 0.18 142 / 0.10), transparent),
        var(--jg-bg-panel);
    border-bottom: 1px solid var(--jg-border-soft);
}
.jg-hero-container {
    max-width: 720px; margin: 0 auto;
}
.jg-hero h1 {
    font-size: 40px; font-weight: 700; letter-spacing: -0.04em;
    margin: 0 0 14px; line-height: 1.15;
}
.jg-hero h1 span {
    color: var(--jg-brand);
}
.jg-hero p {
    font-size: 16px; color: var(--jg-text-dim); margin: 0 auto 36px;
    line-height: 1.6; max-width: 500px;
}

/* Hero search */
.jg-hero-search {
    display: flex; align-items: center;
    background: var(--jg-bg-deep);
    border: 2px solid var(--jg-border-soft);
    border-radius: 12px;
    overflow: hidden;
    max-width: 560px; margin: 0 auto;
    transition: border-color 0.15s;
}
.jg-hero-search:focus-within {
    border-color: var(--jg-brand);
    box-shadow: 0 0 0 4px oklch(0.86 0.18 142 / 0.12);
}
.jg-hero-search-icon {
    width: 20px; height: 20px; flex-shrink: 0;
    color: var(--jg-text-faint);
    margin-left: 18px;
}
.jg-hero-search input {
    flex: 1; border: 0; background: transparent;
    outline: none; font: inherit; font-size: 16px;
    padding: 14px 16px; color: var(--jg-text);
}
.jg-hero-search input::placeholder {
    color: var(--jg-text-faint);
}
.jg-hero-search .jg-btn {
    border-radius: 0; margin: 5px 5px 5px 0;
    padding: 12px 28px; font-size: 15px; font-weight: 600;
    flex-shrink: 0;
}
/* Loading spinner */
.jg-search-spinner {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 24px;
    font-size: 13px; color: var(--jg-text-dim);
}
.jg-search-spin-icon {
    width: 20px; height: 20px; flex-shrink: 0;
    animation: jg-spin 0.8s linear infinite;
}
@keyframes jg-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.jg-domain-search-hint {
    font-size: 12.5px; color: var(--jg-text-faint);
    margin-top: 14px; text-align: center;
}
.jg-hero-tlds {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 20px; flex-wrap: wrap;
}
.jg-hero-tld-chip {
    font-size: 12.5px; color: var(--jg-text-mid);
    background: var(--jg-bg-elev); border: 1px solid var(--jg-border-soft);
    padding: 5px 12px; border-radius: 20px;
}

/* ── Results section ──────────────────────────────────────────────── */
.jg-results-wrap {
    max-width: 660px; margin: 24px auto 0;
    border: 1px solid var(--jg-border-soft);
    border-radius: 12px; background: var(--jg-bg-panel);
    overflow: hidden;
}
.jg-results-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px;
    background: var(--jg-bg-deep);
    border-bottom: 1px solid var(--jg-border-soft);
    font-size: 12.5px; color: var(--jg-text-mid);
}
.jg-result-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--jg-border-soft);
}
.jg-result-row:last-child { border-bottom: 0; }
.jg-result-domain {
    font-family: var(--jg-mono); font-size: 14px; color: var(--jg-text);
    display: flex; align-items: center; gap: 8px;
}
.jg-result-price {
    font-size: 13.5px; font-weight: 600; color: var(--jg-text);
    margin-right: 12px;
}
.jg-result-actions {
    display: flex; align-items: center; gap: 8px;
}
.jg-results-empty {
    padding: 28px 18px; text-align: center;
    font-size: 13.5px; color: var(--jg-text-dim);
}

/* ── How it works ─────────────────────────────────────────────────── */
.jg-steps {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 8px;
}
.jg-step-card {
    text-align: center; padding: 28px 20px 24px;
    background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border-soft);
    border-radius: 12px;
    position: relative;
}
.jg-step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--jg-brand); color: var(--jg-brand-ink);
    display: inline-grid; place-items: center;
    font-weight: 700; font-size: 18px;
    margin-bottom: 16px;
}
.jg-step-card h3 {
    font-size: 15px; font-weight: 600; margin: 0 0 8px;
}
.jg-step-card p {
    font-size: 13px; color: var(--jg-text-dim); margin: 0;
    line-height: 1.55;
}
.jg-step-arrow {
    display: none; /* hidden on mobile, shown via pseudo on desktop in the grid gap */
}

/* ── TLD pricing ──────────────────────────────────────────────────── */
.jg-tld-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 12px; margin-top: 8px;
}
.jg-tld-card {
    text-align: center; padding: 20px 12px;
    background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border-soft);
    border-radius: 10px;
    transition: border-color 0.15s;
}
.jg-tld-card:hover { border-color: var(--jg-brand); }
.jg-tld-ext {
    font-family: var(--jg-mono); font-size: 16px; font-weight: 650;
    color: var(--jg-text); margin-bottom: 4px;
}
.jg-tld-price {
    font-size: 18px; font-weight: 700; color: var(--jg-brand);
}
.jg-tld-price sub {
    font-size: 11px; font-weight: 400; color: var(--jg-text-dim);
}

/* ── Hosting plans ────────────────────────────────────────────────── */
.jg-hosting-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-top: 8px;
}
.jg-hosting-plan {
    background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border-soft);
    border-radius: 12px; padding: 28px 22px;
    text-align: center;
    transition: border-color 0.15s;
}
.jg-hosting-plan:hover { border-color: var(--jg-brand); }
.jg-hosting-plan.featured {
    border-color: var(--jg-brand);
    box-shadow: 0 0 0 1px var(--jg-brand);
}
.jg-plan-badge {
    display: inline-block; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--jg-brand-ink); background: var(--jg-brand);
    padding: 3px 10px; border-radius: 12px; margin-bottom: 14px;
}
.jg-plan-name {
    font-size: 16px; font-weight: 650; margin-bottom: 8px;
}
.jg-plan-price {
    font-size: 28px; font-weight: 700; color: var(--jg-brand);
    margin-bottom: 4px;
}
.jg-plan-cycle {
    font-size: 12px; color: var(--jg-text-dim); margin-bottom: 20px;
}
.jg-plan-features {
    list-style: none; padding: 0; margin: 0 0 20px;
    font-size: 13px; color: var(--jg-text-mid); line-height: 2;
}
.jg-plan-features li::before {
    content: '✓ '; color: var(--jg-green); font-weight: 700;
}

/* ── Features / Why JamboGrid ─────────────────────────────────────── */
.jg-why-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px; margin-top: 8px;
}
.jg-why-card {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 22px; background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border-soft);
    border-radius: 10px;
}
.jg-why-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: oklch(0.86 0.18 142 / 0.15); color: var(--jg-brand);
    display: grid; place-items: center; flex-shrink: 0;
}
.jg-why-icon svg { width: 22px; height: 22px; }
.jg-why-body h3 {
    font-size: 14px; font-weight: 600; margin: 0 0 4px;
}
.jg-why-body p {
    font-size: 12.5px; color: var(--jg-text-dim); margin: 0;
    line-height: 1.55;
}

/* ── Final CTA ────────────────────────────────────────────────────── */
.jg-cta-section {
    padding: 60px 24px; text-align: center;
    background:
        radial-gradient(ellipse 60% 60% at 50% 100%, oklch(0.86 0.18 142 / 0.08), transparent),
        var(--jg-bg-panel);
    border-top: 1px solid var(--jg-border-soft);
}
.jg-cta-section h2 {
    font-size: 26px; font-weight: 650; margin: 0 0 10px;
    letter-spacing: -0.03em;
}
.jg-cta-section p {
    font-size: 14px; color: var(--jg-text-dim); margin: 0 auto 24px;
    max-width: 460px; line-height: 1.6;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.jg-landing-footer {
    padding: 32px 24px;
    border-top: 1px solid var(--jg-border-soft);
    background: var(--jg-bg-deep);
}
.jg-landing-footer-inner {
    max-width: 960px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.jg-landing-footer-links {
    display: flex; gap: 18px;
}
.jg-landing-footer-links a {
    font-size: 13px; color: var(--jg-text-dim);
}
.jg-landing-footer-links a:hover { color: var(--jg-text); }
.jg-landing-copy {
    font-size: 12px; color: var(--jg-text-faint);
}

/* ── Landing: Minimal design ───────────────────────────────────────── */
.jg-landing-minimal {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, oklch(0.86 0.18 142 / 0.06), transparent),
        var(--jg-bg-deep);
}
.jg-minimal-card {
    width: 100%; max-width: 480px;
    background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border-soft);
    border-radius: var(--jg-radius-lg);
    padding: 44px 40px 36px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.04);
}
.jg-minimal-brand { text-align: center; margin-bottom: 28px; }
.jg-minimal-mark {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--jg-brand); color: var(--jg-brand-ink);
    display: inline-grid; place-items: center;
    font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.jg-minimal-brand h1 {
    font-size: 22px; font-weight: 650; margin: 0 0 6px;
    letter-spacing: -0.03em;
}
.jg-minimal-brand p {
    font-size: 13px; color: var(--jg-text-dim); margin: 0;
}
.jg-minimal-search {
    display: flex; align-items: center;
    background: var(--jg-bg-deep);
    border: 1px solid var(--jg-border-soft);
    border-radius: 8px; overflow: hidden;
    transition: border-color 0.15s;
}
.jg-minimal-search:focus-within { border-color: var(--jg-brand); }
.jg-minimal-search-icon {
    width: 16px; height: 16px; flex-shrink: 0;
    color: var(--jg-text-faint); margin-left: 12px;
}
.jg-minimal-search input {
    flex: 1; border: 0; background: transparent;
    outline: none; font: inherit; font-size: 14px;
    padding: 10px 12px; color: var(--jg-text);
}
.jg-minimal-search input::placeholder { color: var(--jg-text-faint); }
.jg-minimal-search .jg-btn {
    border-radius: 0; margin: 3px 3px 3px 0;
    padding: 8px 18px; font-size: 13px; flex-shrink: 0;
}
.jg-minimal-hint {
    font-size: 11.5px; color: var(--jg-text-faint);
    margin-top: 8px; text-align: center;
}
.jg-minimal-results {
    margin-top: 12px;
    border: 1px solid var(--jg-border-soft);
    border-radius: 8px; overflow: hidden;
}
.jg-minimal-result-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--jg-border-soft);
    font-size: 13.5px;
}
.jg-minimal-result-row:last-child { border-bottom: 0; }
.jg-minimal-result-empty {
    padding: 18px 14px; text-align: center;
    font-size: 12.5px; color: var(--jg-text-dim);
}

.jg-minimal-features {
    display: flex; gap: 24px; justify-content: center;
    margin-top: 20px;
}
.jg-minimal-feature {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: var(--jg-text-dim);
}
.jg-minimal-feature-icon {
    width: 28px; height: 28px; border-radius: 6px;
    background: var(--jg-bg-panel); border: 1px solid var(--jg-border-soft);
    display: grid; place-items: center;
}
.jg-minimal-feature-icon svg {
    width: 14px; height: 14px;
    color: var(--jg-brand);
}
.jg-minimal-links {
    text-align: center; margin-top: 24px;
    font-size: 13px; color: var(--jg-text-dim);
}
.jg-minimal-links a { color: var(--jg-brand-ink); font-weight: 500; }
.jg-minimal-links a:hover { text-decoration: underline; }
.jg-minimal-links span { margin: 0 8px; color: var(--jg-text-faint); }

/* ── Landing: Bold design ─────────────────────────────────────────── */
.jg-landing-bold {
    background: var(--jg-bg-deep);
}

/* Hero */
.jg-bold-hero {
    padding: 80px 24px 40px;
    text-align: center;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, oklch(0.86 0.18 142 / 0.18), transparent),
        linear-gradient(180deg, var(--jg-bg-panel) 0%, var(--jg-bg-deep) 100%);
    border-bottom: 1px solid var(--jg-border-soft);
}
.jg-bold-hero-inner {
    max-width: 680px; margin: 0 auto;
}
.jg-bold-badge {
    display: inline-block; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--jg-brand-ink); background: var(--jg-brand);
    padding: 4px 14px; border-radius: 20px;
    margin-bottom: 24px;
}
.jg-bold-hero h1 {
    font-size: 52px; font-weight: 750; letter-spacing: -0.05em;
    margin: 0 0 18px; line-height: 1.05;
}
.jg-bold-hero h1 span {
    color: var(--jg-brand);
}
.jg-bold-hero p {
    font-size: 17px; color: var(--jg-text-dim); margin: 0 auto 36px;
    line-height: 1.6; max-width: 500px;
}
.jg-bold-search {
    display: flex; align-items: center; gap: 0;
    background: var(--jg-bg-panel);
    border: 2px solid var(--jg-border-soft);
    border-radius: 14px; overflow: hidden;
    max-width: 520px; margin: 0 auto;
    transition: border-color 0.15s;
}
.jg-bold-search:focus-within {
    border-color: var(--jg-brand);
    box-shadow: 0 0 0 6px oklch(0.86 0.18 142 / 0.15);
}
.jg-bold-search input {
    flex: 1; border: 0; background: transparent;
    outline: none; font: inherit; font-size: 17px;
    padding: 16px 20px; color: var(--jg-text);
}
.jg-bold-search input::placeholder { color: var(--jg-text-faint); }
.jg-bold-search .jg-btn {
    border-radius: 0; margin: 6px 6px 6px 0;
    padding: 14px 32px; font-size: 16px; font-weight: 650;
    flex-shrink: 0; display: flex; align-items: center; gap: 8px;
}
.jg-bold-search-svg { width: 16px; height: 16px; flex-shrink: 0; }
.jg-bold-tlds {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 18px; flex-wrap: wrap;
}
.jg-bold-tlds span {
    font-size: 13px; color: var(--jg-text-mid);
    background: var(--jg-bg-elev);
    padding: 5px 12px; border-radius: 6px;
    font-family: var(--jg-mono);
}
.jg-bold-hint {
    font-size: 13px; color: var(--jg-text-faint);
    margin-top: 16px; text-align: center;
}
.jg-bold-results {
    max-width: 540px; margin: 20px auto 0;
    border: 1px solid var(--jg-border-soft);
    border-radius: 12px; background: var(--jg-bg-panel);
    overflow: hidden;
}
.jg-bold-result-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; gap: 12px;
    border-bottom: 1px solid var(--jg-border-soft);
}
.jg-bold-result-row:last-child { border-bottom: 0; }
.jg-bold-result-domain {
    font-family: var(--jg-mono); font-size: 14px; color: var(--jg-text);
}
.jg-bold-result-empty {
    padding: 20px 18px; text-align: center;
    font-size: 13px; color: var(--jg-text-dim);
}

/* Stats */
.jg-bold-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    max-width: 720px; margin: 0 auto; gap: 0;
}
.jg-bold-stat {
    text-align: center; padding: 28px 16px;
    border-right: 1px solid var(--jg-border-soft);
}
.jg-bold-stat:last-child { border-right: 0; }
.jg-bold-stat-num {
    font-size: 28px; font-weight: 700; color: var(--jg-brand);
    letter-spacing: -0.03em;
}
.jg-bold-stat-label {
    font-size: 12px; color: var(--jg-text-dim); margin-top: 4px;
}

/* Sections */
.jg-bold-section {
    padding: 60px 24px;
    max-width: 800px; margin: 0 auto;
}
.jg-bold-section-alt {
    border-top: 1px solid var(--jg-border-soft);
    border-bottom: 1px solid var(--jg-border-soft);
}
.jg-bold-section-title {
    font-size: 24px; font-weight: 650; text-align: center;
    letter-spacing: -0.03em; margin: 0 0 32px;
}
.jg-bold-steps {
    display: flex; align-items: flex-start; gap: 16px;
}
.jg-bold-step {
    flex: 1; text-align: center;
    padding: 24px 16px;
    background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border-soft);
    border-radius: 12px;
}
.jg-bold-step-num {
    font-size: 13px; font-weight: 700; color: var(--jg-brand);
    letter-spacing: 0.06em; margin-bottom: 8px;
}
.jg-bold-step h3 {
    font-size: 15px; font-weight: 600; margin: 0 0 6px;
}
.jg-bold-step p {
    font-size: 12.5px; color: var(--jg-text-dim); margin: 0;
    line-height: 1.55;
}
.jg-bold-step-arrow {
    font-size: 22px; color: var(--jg-text-faint);
    padding-top: 40px; flex-shrink: 0;
}

/* Features */
.jg-bold-features {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.jg-bold-feature {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 22px;
    background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border-soft);
    border-radius: 10px;
}
.jg-bold-feature-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: oklch(0.86 0.18 142 / 0.15); color: var(--jg-brand);
    display: grid; place-items: center; flex-shrink: 0;
}
.jg-bold-feature-icon svg { width: 22px; height: 22px; }
.jg-bold-feature h3 {
    font-size: 14px; font-weight: 600; margin: 0 0 4px;
}
.jg-bold-feature p {
    font-size: 12.5px; color: var(--jg-text-dim); margin: 0;
    line-height: 1.55;
}

/* CTA */
.jg-bold-cta {
    padding: 60px 24px; text-align: center;
    background:
        radial-gradient(ellipse 60% 60% at 50% 100%, oklch(0.86 0.18 142 / 0.10), transparent),
        var(--jg-bg-panel);
    border-top: 1px solid var(--jg-border-soft);
}
.jg-bold-cta h2 {
    font-size: 26px; font-weight: 650; margin: 0 0 10px;
    letter-spacing: -0.03em;
}
.jg-bold-cta p {
    font-size: 14px; color: var(--jg-text-dim); margin: 0 auto 24px;
    max-width: 440px; line-height: 1.6;
}
.jg-bold-cta-links {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}

/* Footer */
.jg-bold-footer {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    padding: 24px; font-size: 12px;
    color: var(--jg-text-faint);
}
.jg-bold-footer a {
    color: var(--jg-text-dim);
}
.jg-bold-footer a:hover { color: var(--jg-text); }

/* Icon-leading input for guest pages */
.jg-input-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.jg-input-icon .ico {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    width: 17px; height: 17px;
    color: var(--jg-text-faint);
    pointer-events: none;
    transition: color 0.15s;
}
.jg-input-icon .jg-input {
    padding-left: 38px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: var(--jg-bg-elev);
    border-color: var(--jg-border-soft);
    border-radius: 9px;
    font-size: 13.5px;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.jg-input-icon .jg-input:focus {
    background: var(--jg-bg-panel);
    border-color: var(--jg-brand);
}
.jg-input-icon:has(.jg-input:focus) .ico {
    color: var(--jg-brand);
}
.jg-check-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: var(--jg-text-mid);
    user-select: none; cursor: pointer;
}
.jg-check-label input[type="checkbox"] { accent-color: var(--jg-brand); width: 15px; height: 15px; }
.jg-guest-check { margin-bottom: 20px; }
.jg-guest-submit { margin-top: 4px; }

/* ── Dashboard ───────────────────────────────────────────────────── */
.jg-kpi-head {
    display: flex; align-items: center; justify-content: space-between;
}
.jg-kpi-spark {
    height: 36px;
}
.jg-chart-body {
    padding: 18px 16px 8px; height: 220px; position: relative;
}
.jg-chart-foot {
    padding: 8px 16px 14px; display: flex; gap: 18px;
    font-size: 12px; color: var(--jg-text-dim);
}
.jg-chart-legend {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 2px; background: var(--jg-green); margin-right: 6px;
}
.jg-chart-summary {
    margin-left: auto; font-family: var(--jg-mono); color: var(--jg-text);
}
.jg-dash-empty {
    padding: 24px 16px; color: var(--jg-text-dim);
    font-size: 13px; text-align: center;
}
.jg-empty-left { text-align: left; padding: 8px 0; }

/* Detail value (client profile etc.) */
.jg-detail-val {
    font-size: 13px; color: var(--jg-text); margin-bottom: 12px;
    word-break: break-word;
}
.jg-dash-none {
    padding: 32px 16px; color: var(--jg-text-dim);
    font-size: 13px; text-align: center;
}

/* Renewal rows */
.jg-renewal-body {
    min-width: 0; flex: 1;
}
.jg-renewal-name {
    font-size: 13px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jg-renewal-meta {
    font-size: 11.5px; color: var(--jg-text-dim);
}
.jg-renewal-right {
    text-align: right;
}
.jg-renewal-amount {
    font-size: 12.5px; font-weight: 500; font-family: var(--jg-mono);
}
.jg-renewal-when {
    font-size: 11px;
}
.jg-renewal-when.green { color: var(--jg-green); }
.jg-renewal-when.amber { color: var(--jg-amber); }
.jg-renewal-when.red   { color: var(--jg-red); }

/* Server fleet */
.jg-server-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) { .jg-server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .jg-server-grid { grid-template-columns: minmax(0, 1fr); } }
.jg-server-cell {
    padding: 16px;
    border-right: 1px solid var(--jg-border-soft);
    border-bottom: 1px solid var(--jg-border-soft);
}
/* Clear border-right every 3rd cell */
.jg-server-cell:nth-child(3n) { border-right: none; }
.jg-server-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.jg-server-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}
.jg-server-dot.green  { background: var(--jg-green); color: var(--jg-green); }
.jg-server-dot.amber  { background: var(--jg-amber); color: var(--jg-amber); }
.jg-server-dot.red    { background: var(--jg-red);   color: var(--jg-red); }
.jg-server-name {
    font-size: 13px; font-weight: 500; font-family: var(--jg-mono);
}
.jg-server-hostname {
    font-size: 11.5px; color: var(--jg-text-dim); margin-left: auto;
}
.jg-server-meta {
    display: flex; gap: 16px; font-size: 11.5px; color: var(--jg-text-mid);
}
.jg-server-ip {
    margin-left: auto; font-family: var(--jg-mono); color: var(--jg-text-faint);
}

/* Sidebar footer */
.jg-sidebar-user { line-height: 1.25; min-width: 0; }
.jg-sidebar-user-name { font-weight: 500; }
.jg-sidebar-user-role { font-size: 11px; color: var(--jg-text-dim); }

/* Topbar */
.jg-search-icon { width: 14px; height: 14px; display: inline-flex; }

/* Card spacing */
.jg-card + .jg-card { margin-top: 14px; }

/* Revenue chart */
.jg-rev-chart { width: 100%; height: 100%; display: block; }

/* Small button variant */
.jg-btn-sm { font-size: 12px; padding: 2px 8px; }

/* KPI card extras */
.jg-kpi-badge { gap: 3px; }
.jg-kpi-badge-icon {
    width: 10px; height: 10px; display: inline-flex;
}

/* Server fleet badge bar in card header */
.jg-server-fleet-badges {
    display: flex; gap: 14px;
    font-size: 11.5px; color: var(--jg-text-dim); font-weight: 400;
}

/* Dashboard sparkline SVG — fill wrapper, no intrinsic height */
.jg-spark-svg { display: block; width: 100%; height: 100%; }

/* Text utilities */
.jg-text-red   { color: var(--jg-red); }
.jg-text-green { color: var(--jg-green); }
.jg-text-amber { color: var(--jg-amber); }
.jg-text-blue  { color: var(--jg-blue); }
.jg-text-dim   { color: var(--jg-text-dim); }
.jg-inherit-link { color: inherit; text-decoration: none; }
.jg-inherit-link:hover { text-decoration: underline; }

/* Compact inputs for inline/table use */
.jg-input-narrow   { width: 80px; }
.jg-input-narrow-l { width: 110px; }
.jg-input-narrow-xl { width: 130px; }

/* Inline form inside table cells */
.jg-cell-form {
    display: flex; align-items: center; gap: 4px;
}
.jg-cell-form .jg-select,
.jg-cell-form .jg-input {
    font-size: 12px; padding: 4px 6px;
}
.jg-cell-form .jg-select { width: auto; min-width: 110px; }
.jg-cell-form .jg-btn { flex-shrink: 0; }
.jg-cell-form .jg-input[type="date"] {
    width: auto; min-width: 130px;
}
.jg-cell-actions {
    display: flex; gap: 4px; flex-wrap: wrap;
}
.jg-btn-xs {
    font-size: 11px; padding: 3px 7px; border-radius: 5px;
}

/* Grid align-start for form layouts */
.jg-grid-start { align-items: start; }

/* Generic vertical stack */
.jg-stack { display: flex; flex-direction: column; gap: 14px; }
.jg-input-flex { flex: 1; }

/* Overview card section label */
.jg-ov-label {
    font-size: 11px; color: var(--jg-text-dim);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.jg-ov-value { margin-top: 6px; }
.jg-ov-title { font-weight: 500; }
.jg-ov-sub { font-size: 11px; color: var(--jg-text-dim); margin-top: 4px; }

/* Hosting page header */
.jg-hosting-title { display: flex; align-items: center; gap: 10px; }

/* Smaller badge */
.jg-badge-sm { font-size: 11px; }

/* Client row in overview */
.jg-client-row { display: flex; align-items: center; gap: 10px; }
.jg-client-name { font-weight: 500; }
.jg-client-email { font-size: 11px; color: var(--jg-text-dim); }

/* Suspended notice */
.jg-suspended-notice { font-size: 12.5px; color: var(--jg-red); }

/* ── Portal dashboard ────────────────────────────────────────────── */
.jg-portal-hero { margin-bottom: 22px; }
.jg-portal-hero h1 {
    margin: 0; font-size: 24px; font-weight: 600;
    letter-spacing: -0.025em;
}
.jg-portal-hero p {
    margin: 6px 0 0; font-size: 13.5px; color: var(--jg-text-mid);
}

/* Renewal banner */
.jg-renewal-banner {
    background: var(--jg-amber-dim); border: 1px solid var(--jg-amber-dim);
    border-radius: 10px; padding: 14px 16px;
    display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.jg-renewal-banner-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--jg-amber-dim); color: var(--jg-amber);
    display: grid; place-items: center; flex-shrink: 0;
}
.jg-renewal-banner-body { flex: 1; }
.jg-renewal-banner-title { font-size: 13.5px; font-weight: 500; }
.jg-renewal-banner-sub { font-size: 12px; color: var(--jg-text-mid); }

/* Stat dot */
.jg-stat-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.jg-stat-dot.green  { background: var(--jg-green); }
.jg-stat-dot.amber  { background: var(--jg-amber); }
.jg-stat-dot.red    { background: var(--jg-red); }
.jg-stat-dot.blue   { background: var(--jg-blue); }
.jg-stat-dot.violet { background: var(--jg-violet); }

/* Primary site card */
.jg-site-card-body {
    padding: 16px; display: flex; align-items: center; gap: 14px;
}
.jg-site-preview {
    width: 80px; height: 60px; border-radius: 6px;
    background: repeating-linear-gradient(45deg, var(--jg-bg-elev), var(--jg-bg-elev) 6px, var(--jg-bg-panel) 6px, var(--jg-bg-panel) 12px);
    border: 1px solid var(--jg-border); flex-shrink: 0;
    display: grid; place-items: center;
    font-family: var(--jg-mono); font-size: 10px; color: var(--jg-text-dim);
}
.jg-site-info { flex: 1; min-width: 0; }
.jg-site-domain { font-size: 14px; font-weight: 500; }
.jg-site-meta {
    font-size: 12px; color: var(--jg-text-mid);
}
.jg-site-meta .dot { margin-right: 2px; }
.jg-site-badges { margin-top: 8px; display: flex; gap: 6px; }
.jg-site-actions { display: flex; gap: 6px; margin-top: 8px; }

/* Bandwidth bar chart */
.jg-bw-chart-body {
    padding: 16px 16px 4px; height: 130px;
    display: flex; align-items: flex-end; gap: 3px;
}
.jg-bw-bar {
    flex: 1; border-radius: 2px 2px 0 0; min-height: 3px;
}
.jg-bw-bar.last { background: var(--jg-brand-ink); }
.jg-bw-bar.normal { background: oklch(0.86 0.18 142 / 0.55); }
.jg-bw-labels {
    padding: 0 16px 12px; display: flex; justify-content: space-between;
    font-size: 10.5px; color: var(--jg-text-faint); font-family: var(--jg-mono);
}

/* Portal columns */
.jg-portal-col {
    display: flex; flex-direction: column; gap: 14px;
}

/* Hosting row (sidebar list) */
.jg-hosting-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
}
.jg-hosting-row + .jg-hosting-row { border-top: 1px solid var(--jg-border-soft); }
.jg-hosting-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.jg-hosting-dot.green   { background: var(--jg-green); }
.jg-hosting-dot.red     { background: var(--jg-red); }
.jg-hosting-dot.amber   { background: var(--jg-amber); }
.jg-hosting-dot.neutral { background: var(--jg-border); }
.jg-hosting-row-body { flex: 1; min-width: 0; }
.jg-hosting-row-domain {
    font-size: 12.5px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jg-hosting-row-status {
    font-size: 11px; color: var(--jg-text-mid);
}

/* Support card */
.jg-support-card { padding: 16px; }
.jg-support-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.jg-support-text {
    font-size: 12.5px; color: var(--jg-text-mid);
    margin: 0 0 12px; line-height: 1.5;
}

/* ── Portal hosting (sites list) ─────────────────────────────────── */
.jg-host-card { min-width: 0; }
.jg-host-card-hdr {
    padding: 14px 16px; display: flex; align-items: center;
    gap: 10px; border-bottom: 1px solid var(--jg-border-soft);
}
.jg-host-card-dot {
    width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}
.jg-host-card-dot.green   { background: var(--jg-green); color: var(--jg-green); }
.jg-host-card-dot.red     { background: var(--jg-red);   color: var(--jg-red); }
.jg-host-card-dot.amber   { background: var(--jg-amber); color: var(--jg-amber); }
.jg-host-card-dot.neutral { background: var(--jg-border); color: var(--jg-border); }
.jg-host-card-info { min-width: 0; flex: 1; }
.jg-host-card-domain {
    font-size: 14px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.jg-host-card-sub { font-size: 11.5px; color: var(--jg-text-mid); }

/* Hosting card body */
.jg-host-card-body {
    padding: 14px 16px; display: flex; flex-direction: column; gap: 12px;
}
.jg-host-usage-row { font-size: 11.5px; color: var(--jg-text-mid); }
.jg-host-usage-meta {
    display: flex; justify-content: space-between;
    margin-bottom: 4px;
}
.jg-host-usage-bar {
    height: 4px; background: var(--jg-bg-elev);
    border-radius: 2px; overflow: hidden;
}
.jg-host-usage-fill { height: 100%; border-radius: 2px; }
.jg-host-usage-fill.green { background: var(--jg-green); }
.jg-host-usage-fill.amber { background: var(--jg-amber); }
.jg-host-usage-fill.red   { background: var(--jg-red); }
.jg-host-usage-fill.blue  { background: var(--jg-blue); }

/* Hosting card facts grid */
.jg-host-facts {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; margin-top: 2px; font-size: 12px;
}
.jg-host-fact-label {
    font-size: 10.5px; color: var(--jg-text-faint);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.jg-host-fact-val { margin-top: 2px; }

/* Hosting card footer */
.jg-host-card-foot {
    padding: 10px 16px; border-top: 1px solid var(--jg-border-soft);
    display: flex; align-items: center; gap: 10px; font-size: 12.5px;
}
.jg-host-foot-renewal { color: var(--jg-text-mid); }
.jg-host-foot-amount { margin-left: auto; font-weight: 500; }
.jg-host-foot-reason { color: var(--jg-red); }

/* Empty state for hosting */
.jg-hosting-empty {
    padding: 48px 16px; text-align: center; color: var(--jg-text-dim);
}
.jg-hosting-empty-title { font-size: 14px; font-weight: 500; color: var(--jg-text); }
.jg-hosting-empty-sub { margin: 6px 0 0; font-size: 12.5px; }
.jg-hosting-empty .jg-btn { margin-top: 14px; }

/* Portal card footer link */
.jg-card-foot-link { font-size: 12px; color: var(--jg-text-mid); }
.jg-card-foot-link:hover { text-decoration: underline; }

/* Spacing */
.jg-mt { margin-top: 14px; }
.jg-mb { margin-bottom: 14px; }

/* Filter row (audit log, etc.) */
.jg-filter-row {
    display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
}
.jg-filter-actions { display: flex; gap: 6px; align-items: flex-end; padding-bottom: 1px; }

/* Audit meta */
.audit-meta { font-size: 0.85em; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Forwarder arrow */
.jg-fwd-arrow { font-size: 16px; color: var(--jg-text-dim); align-self: flex-end; padding-bottom: 8px; }

/* Error / danger card */
.jg-card-error { border-color: var(--jg-red-dim); }
.jg-card-danger-head { color: var(--jg-red); }
.jg-danger-text { margin: 0 0 12px; font-size: 13px; }

/* ── Cart ──────────────────────────────────────────────────────────── */

/* Floating toggle */
.jg-cart-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 100;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.15s, box-shadow 0.15s;
}
.jg-cart-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}
.jg-cart-toggle svg {
    width: 22px;
    height: 22px;
    color: var(--jg-text);
}

/* Count badge */
.jg-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--jg-red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: grid;
    place-items: center;
    padding: 0 5px;
    line-height: 1;
    border: 2px solid var(--jg-bg-panel);
}
.jg-cart-count:empty,
.jg-cart-count[data-count="0"] {
    display: none;
}

/* Overlay */
.jg-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.jg-cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Prevent body scroll when cart is open */
body.jg-cart-open {
    overflow: hidden;
}

/* Panel */
.jg-cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 100vw;
    background: var(--jg-bg-panel);
    border-left: 1px solid var(--jg-border-soft);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -4px 0 24px rgba(0,0,0,0.06);
}
.jg-cart-panel.open {
    transform: translateX(0);
}

/* Panel head */
.jg-cart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--jg-border-soft);
    flex-shrink: 0;
}
.jg-cart-panel-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.jg-cart-close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--jg-text-mid);
    transition: background 0.12s, color 0.12s;
}
.jg-cart-close:hover {
    background: var(--jg-bg-elev);
    color: var(--jg-text);
}
.jg-cart-close svg {
    width: 18px;
    height: 18px;
}

/* Items list */
.jg-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* Individual item */
.jg-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--jg-border-soft);
}
.jg-cart-item:last-child {
    border-bottom: 0;
}
.jg-cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.jg-cart-item-label {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--jg-text);
    font-family: var(--jg-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jg-cart-item-meta {
    font-size: 11.5px;
    color: var(--jg-text-dim);
}
.jg-cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--jg-text);
    white-space: nowrap;
}
.jg-cart-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--jg-text-faint);
    flex-shrink: 0;
    transition: background 0.12s, color 0.12s;
}
.jg-cart-item-remove:hover {
    background: var(--jg-red-dim);
    color: var(--jg-red);
}
.jg-cart-item-remove svg {
    width: 14px;
    height: 14px;
}

/* Empty cart */
.jg-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    gap: 8px;
}
.jg-cart-empty-icon {
    width: 40px !important;
    height: 40px !important;
    color: var(--jg-text-faint);
    flex-shrink: 0;
}
.jg-cart-empty p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--jg-text-mid);
}
.jg-cart-empty span {
    font-size: 12.5px;
    color: var(--jg-text-dim);
}

/* Footer */
.jg-cart-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--jg-border-soft);
    flex-shrink: 0;
}
.jg-cart-footer.hidden {
    display: none;
}
.hidden {
    display: none !important;
}
.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
    flex-shrink: 0;
}
.dot.green   { background: var(--jg-green); }
.dot.amber   { background: var(--jg-amber); }
.dot.red     { background: var(--jg-red); }
.dot.blue    { background: var(--jg-blue); }
.dot.violet  { background: var(--jg-violet); }
.dot.neutral { background: var(--jg-text-faint); }
.jg-cart-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}
.jg-cart-total-label {
    font-size: 13px;
    color: var(--jg-text-mid);
}
.jg-cart-total-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--jg-text);
    letter-spacing: -0.02em;
}
.jg-cart-bundle-save {
    display: none;
    font-size: 11px;
    font-weight: 500;
    color: var(--jg-green);
}
.jg-cart-bundle-save.visible {
    display: inline;
}

/* Responsive — full-width panel on mobile */
@media (max-width: 480px) {
    .jg-cart-panel {
        width: 100vw;
    }
    .jg-cart-toggle {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    .jg-cart-toggle svg {
        width: 20px;
        height: 20px;
    }
}

/* ── Portal domain search ──────────────────────────────────────────── */
.jg-portal-search {
    margin-bottom: 24px;
    padding: 36px 32px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, oklch(0.86 0.18 142 / 0.08), transparent),
        var(--jg-bg-panel);
    border: 1px solid var(--jg-border-soft);
    border-radius: var(--jg-radius-lg);
    text-align: center;
}
.jg-portal-search-inner {
    max-width: 560px;
    margin: 0 auto;
}
.jg-portal-search-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jg-brand);
    font-weight: 600;
    margin-bottom: 6px;
}
.jg-portal-search-title {
    font-size: 22px;
    font-weight: 650;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
}
.jg-portal-search-bar {
    display: flex;
    align-items: center;
    background: var(--jg-bg-deep);
    border: 2px solid var(--jg-border-soft);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.jg-portal-search-bar:focus-within {
    border-color: var(--jg-brand);
    box-shadow: 0 0 0 4px oklch(0.86 0.18 142 / 0.12);
}
.jg-portal-search-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--jg-text-faint);
    margin-left: 16px;
}
.jg-portal-search-bar input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font: inherit;
    font-size: 16px;
    padding: 14px 14px;
    color: var(--jg-text);
}
.jg-portal-search-bar input::placeholder {
    color: var(--jg-text-faint);
}
.jg-portal-search-bar .jg-btn {
    border-radius: 0;
    margin: 5px 5px 5px 0;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}
.jg-portal-search-tlds {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.jg-portal-search-tlds span {
    font-size: 12px;
    color: var(--jg-text-dim);
    background: var(--jg-bg-elev);
    border: 1px solid var(--jg-border-soft);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--jg-mono);
}

/* Portal results */
.jg-portal-results {
    max-width: 560px;
    margin: 16px auto 0;
    border: 1px solid var(--jg-border-soft);
    border-radius: 12px;
    background: var(--jg-bg-panel);
    overflow: hidden;
}
.jg-portal-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--jg-bg-deep);
    border-bottom: 1px solid var(--jg-border-soft);
    font-size: 12px;
    color: var(--jg-text-mid);
}
.jg-portal-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--jg-border-soft);
}
.jg-portal-result-row:last-child {
    border-bottom: 0;
}
.jg-portal-result-domain {
    font-family: var(--jg-mono);
    font-size: 14px;
    color: var(--jg-text);
}
.jg-portal-result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.jg-portal-result-empty {
    padding: 22px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--jg-text-dim);
}

/* ── Checkout page ─────────────────────────────────────────────────── */
.jg-checkout {
    max-width: 960px;
    margin: 0 auto;
}

/* Header */
.jg-checkout-head {
    margin-bottom: 28px;
    text-align: center;
}
.jg-checkout-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jg-brand);
    font-weight: 600;
    margin: 0 0 8px;
}
.jg-checkout-head h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 650;
    letter-spacing: -0.03em;
}
.jg-checkout-head p {
    margin: 0;
    font-size: 14px;
    color: var(--jg-text-dim);
}

/* Two-column body */
.jg-checkout-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 860px) {
    .jg-checkout-body {
        grid-template-columns: 1fr;
    }
}

/* Left column */
.jg-checkout-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Cart card */
.jg-checkout-cart-card {
    min-width: 0;
}
.jg-checkout-count {
    font-size: 11.5px;
    color: var(--jg-text-dim);
    background: var(--jg-bg-elev);
    padding: 2px 8px;
    border-radius: 10px;
}
.jg-checkout-loading {
    padding: 28px 16px;
    text-align: center;
    color: var(--jg-text-dim);
    font-size: 13px;
}

/* Cart line item */
.jg-checkout-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--jg-border-soft);
}
.jg-checkout-item:last-child {
    border-bottom: 0;
}
.jg-checkout-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--jg-bg-elev);
    border: 1px solid var(--jg-border-soft);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--jg-text-mid);
}
.jg-checkout-item-icon svg {
    width: 22px !important;
    height: 22px !important;
}
.jg-checkout-item-body {
    flex: 1;
    min-width: 0;
}
.jg-checkout-item-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--jg-text);
    letter-spacing: -0.01em;
}
.jg-checkout-item-meta {
    font-size: 12px;
    color: var(--jg-text-dim);
    margin-top: 2px;
}
.jg-checkout-item-price {
    font-size: 16px;
    font-weight: 650;
    color: var(--jg-text);
    white-space: nowrap;
}

/* Domain block (inside cart card) */
.jg-checkout-domain-block {
    display: none;
    padding: 12px 16px;
    border-top: 1px solid var(--jg-border-soft);
    background: var(--jg-bg-elev);
    align-items: center;
    gap: 12px;
}
.jg-checkout-domain-block.visible {
    display: flex;
}
.jg-checkout-domain-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: oklch(0.86 0.18 142 / 0.12);
    color: var(--jg-brand);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.jg-checkout-domain-icon svg {
    width: 18px;
    height: 18px;
}
.jg-checkout-domain-name {
    font-size: 14px;
    font-weight: 600;
}
.jg-checkout-domain-perks {
    font-size: 11.5px;
    color: var(--jg-text-dim);
    margin-top: 2px;
}

/* Host domain input (hosting-only orders) */
.jg-checkout-host-domain-block {
    display: none;
    padding: 12px 16px;
    border-top: 1px solid var(--jg-border-soft);
    background: var(--jg-bg-elev);
    align-items: center;
    gap: 12px;
}
.jg-checkout-host-domain-block.visible {
    display: flex;
}
.jg-checkout-host-domain-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: oklch(0.72 0.18 256 / 0.12);
    color: oklch(0.58 0.18 256);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.jg-checkout-host-domain-icon svg {
    width: 18px;
    height: 18px;
}
.jg-checkout-host-domain-info {
    flex: 1;
    min-width: 0;
}
.jg-checkout-host-domain-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 4px;
}
.jg-checkout-host-domain-hint {
    font-size: 11px;
    color: var(--jg-text-dim);
    margin-top: 4px;
}

/* Section label */
.jg-checkout-section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--jg-text-mid);
    font-weight: 600;
}

/* Billing cycle toggle */
.jg-checkout-cycle-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: var(--jg-bg-elev);
    padding: 3px;
    border-radius: 8px;
    width: fit-content;
}
.jg-checkout-cycle-tab {
    cursor: pointer;
    position: relative;
}
.jg-checkout-cycle-tab input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.jg-checkout-cycle-tab span {
    display: block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--jg-text-dim);
    transition: background 0.15s, color 0.15s;
}
.jg-checkout-cycle-tab input:checked + span {
    background: var(--jg-bg-panel);
    color: var(--jg-text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Hosting plan grid */
.jg-checkout-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.jg-checkout-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 2px solid var(--jg-border-soft);
    border-radius: var(--jg-radius-lg);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    background: var(--jg-bg-panel);
}
.jg-checkout-plan-card:hover {
    border-color: var(--jg-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.jg-checkout-plan-card:has(input:checked) {
    border-color: var(--jg-brand);
    background: oklch(0.86 0.18 142 / 0.04);
    box-shadow: 0 0 0 4px oklch(0.86 0.18 142 / 0.08);
}
.jg-checkout-plan-card input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.jg-checkout-plan-recommended {
    border-color: var(--jg-brand);
}
.jg-checkout-plan-ribbon {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--jg-brand);
    color: var(--jg-brand-ink);
    padding: 2px 10px;
    border-radius: 8px;
    white-space: nowrap;
}
.jg-checkout-plan-card-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.jg-checkout-plan-card-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.jg-checkout-plan-card-name {
    font-size: 14px;
    font-weight: 650;
    color: var(--jg-text);
}
.jg-checkout-plan-card-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
}
.jg-checkout-plan-card-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--jg-text);
    letter-spacing: -0.03em;
}
.jg-checkout-plan-card-cycle {
    font-size: 12px;
    color: var(--jg-text-dim);
}
.jg-checkout-plan-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.jg-checkout-plan-card-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--jg-text-mid);
}
.jg-checkout-plan-card-features li svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--jg-green);
}

/* Right sidebar — sticky summary */
.jg-checkout-sidebar {
    position: sticky;
    top: 20px;
}
.jg-checkout-summary {
    overflow: hidden;
}
.jg-checkout-summary-items {
    padding: 8px 16px;
    min-height: 40px;
}
.jg-checkout-summary-empty {
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    color: var(--jg-text-faint);
}
.jg-checkout-summary-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--jg-text);
}
.jg-checkout-summary-line + .jg-checkout-summary-line {
    border-top: 1px solid var(--jg-border-soft);
}
.jg-checkout-summary-line-label {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jg-checkout-summary-line-price {
    font-family: var(--jg-mono);
    color: var(--jg-text-dim);
    white-space: nowrap;
}

/* Summary totals */
.jg-checkout-summary-totals {
    padding: 14px 16px;
    border-top: 1px solid var(--jg-border-soft);
    background: var(--jg-bg-elev);
}
.jg-checkout-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 13px;
    color: var(--jg-text-mid);
}
.jg-checkout-summary-row + .jg-checkout-summary-row {
    margin-top: 8px;
}
.jg-checkout-summary-total {
    font-size: 17px;
    font-weight: 650;
    color: var(--jg-text);
}

/* Summary action */
.jg-checkout-summary-action {
    padding: 0 16px 16px;
}
.jg-checkout-place-btn {
    padding: 14px 0;
    font-size: 15px;
    font-weight: 650;
}
.jg-checkout-place-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.jg-checkout-summary-note {
    text-align: center;
    font-size: 11.5px;
    color: var(--jg-text-faint);
    margin: 10px 0 0;
}
.jg-checkout-error {
    text-align: center;
    font-size: 12px;
    color: var(--jg-red, #e00);
    margin: 8px 0 0;
    padding: 6px 10px;
    border-radius: var(--jg-radius-sm, 6px);
    background: color-mix(in oklch, var(--jg-red, #e00) 8%, transparent);
}

/* Empty checkout state */
.jg-checkout-empty-title {
    margin: 0 0 6px;
    font-weight: 500;
}
.jg-checkout-empty-sub {
    font-size: 12px;
    color: var(--jg-text-dim);
}
.jg-checkout-empty-sub a {
    color: var(--jg-brand-ink);
    font-weight: 500;
}
.jg-checkout-empty-sub a:hover {
    text-decoration: underline;
}

/* ── Invoice document ─────────────────────────────────────────────────────── */

.jg-invoice-back {
    font-size: 12.5px;
    color: var(--jg-text-mid);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}
.jg-invoice-back:hover {
    color: var(--jg-text);
}
.jg-invoice-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.jg-invoice-actions {
    display: flex;
    gap: 8px;
}
.jg-invoice-payment-body {
    flex: 1;
    min-width: 0;
}

/* Document card */
.jg-invoice-doc {
    position: relative;
    overflow: hidden;
    padding: 0;
}
.jg-invoice-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--jg-border);
}
.jg-invoice-accent.jg-accent-green  { background: var(--jg-green); }
.jg-invoice-accent.jg-accent-amber  { background: var(--jg-amber); }
.jg-invoice-accent.jg-accent-red    { background: var(--jg-red); }
.jg-invoice-accent.jg-accent-blue   { background: var(--jg-blue); }

/* Doc header: brand + title */
.jg-invoice-doc-head {
    padding: 32px 36px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.jg-invoice-doc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.jg-invoice-doc-brand-name {
    font-weight: 600;
    font-size: 16px;
}
.jg-invoice-doc-brand-addr {
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--jg-text-mid);
}
.jg-invoice-doc-title-block {
    text-align: right;
}
.jg-invoice-doc-title-label {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.jg-invoice-doc-title-number {
    font-family: var(--jg-mono, 'Geist Mono', monospace);
    font-size: 13px;
    color: var(--jg-text-mid);
    margin-top: 2px;
}

.jg-invoice-divider {
    margin: 28px 36px 24px;
}

/* Meta grid: bill-to / dates / total */
.jg-invoice-meta-grid {
    padding: 0 36px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.jg-invoice-meta-col {}
.jg-invoice-meta-col-right {
    text-align: right;
}
.jg-card-h-count {
    font-size: 11px;
    color: var(--jg-text-mid);
}
.jg-invoice-meta-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--jg-text-faint);
    margin-bottom: 6px;
}
.jg-invoice-meta-label + .jg-invoice-meta-label {
    margin-top: 14px;
}
.jg-invoice-meta-value {
    font-family: var(--jg-mono, 'Geist Mono', monospace);
    font-size: 13px;
}
.jg-invoice-meta-value-lg {
    font-family: var(--jg-mono, 'Geist Mono', monospace);
    font-weight: 500;
}
.jg-invoice-meta-name {
    font-size: 13px;
    font-weight: 500;
}
.jg-invoice-meta-email {
    font-family: var(--jg-mono, 'Geist Mono', monospace);
    font-size: 11.5px;
    color: var(--jg-text-mid);
}
.jg-invoice-meta-addr {
    font-size: 11.5px;
    color: var(--jg-text-mid);
    margin-top: 6px;
    line-height: 1.55;
}
.jg-invoice-total-amount {
    font-family: var(--jg-mono, 'Geist Mono', monospace);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
}
.jg-invoice-total-sub {
    font-size: 11px;
    color: var(--jg-text-mid);
    margin-top: 2px;
}

/* Line items */
.jg-invoice-line-items {
    padding: 0 36px 8px;
}
.jg-invoice-item-type {
    font-size: 11px;
    color: var(--jg-text-mid);
    margin-top: 2px;
}

/* Totals block */
.jg-invoice-totals {
    padding: 0 36px 28px;
    display: flex;
    justify-content: flex-end;
}
.jg-invoice-totals-inner {
    width: 280px;
    max-width: 100%;
}
.jg-invoice-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: var(--jg-text-mid);
}
.jg-invoice-totals-sep {
    border-top: 1px solid var(--jg-border);
}
.jg-invoice-totals-row-bold {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0;
    border-top: 1px solid var(--jg-border);
    font-weight: 600;
}
.jg-invoice-totals-paid {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: var(--jg-green);
}
.jg-invoice-totals-balance {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0;
    border-top: 1px solid var(--jg-border);
    font-weight: 600;
    font-size: 15px;
}

/* Notes */
.jg-invoice-notes {
    padding: 0 36px 28px;
}
.jg-invoice-notes-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--jg-text-faint);
    margin-bottom: 6px;
}
.jg-invoice-notes-text {
    font-size: 12.5px;
    color: var(--jg-text-mid);
    line-height: 1.55;
}

/* Doc table overrides */
.jg-doc-table {
    border-radius: 0;
}
.jg-doc-table th {
    background: transparent;
    border-bottom: 1px solid var(--jg-border);
    color: var(--jg-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 10.5px;
}
.jg-doc-table tr:hover td {
    background: transparent;
}
.jg-doc-table td {
    border-bottom: 1px solid var(--jg-border-soft);
}
.jg-doc-table tr:last-child td {
    border-bottom: none;
}
.jg-doc-table .jg-doc-item-desc {
    font-size: 13px;
}
.jg-doc-table .jg-doc-item-qty {
    color: var(--jg-text-mid);
}
.jg-doc-table .jg-doc-item-total {
    font-weight: 500;
}
.jg-doc-col-qty  { width: 60px; }
.jg-doc-col-unit { width: 100px; }
.jg-doc-col-total { width: 110px; }

/* Paid badge card */
.jg-invoice-paid-card {
    display: flex;
    align-items: center;
    gap: 10px;
}
.jg-invoice-paid-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--jg-green-dim);
    color: var(--jg-green);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.jg-invoice-paid-title {
    font-size: 13.5px;
    font-weight: 500;
}
.jg-invoice-paid-date {
    font-size: 12px;
    color: var(--jg-text-mid);
}

/* Payment history */
.jg-invoice-payment-row {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.jg-invoice-payment-row + .jg-invoice-payment-row {
    border-top: 1px solid var(--jg-border-soft);
}
.jg-invoice-payment-amount {
    font-family: var(--jg-mono, 'Geist Mono', monospace);
    font-size: 13px;
    font-weight: 500;
}
.jg-invoice-payment-meta {
    font-size: 11px;
    color: var(--jg-text-mid);
}

/* Pay card */
.jg-invoice-pay-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.jg-invoice-pay-form .jg-field {
    margin-bottom: 0;
}
.jg-invoice-pay-note {
    font-size: 11.5px;
    color: var(--jg-text-mid);
    margin: 4px 0 0;
    line-height: 1.5;
}

/* Empty line items */
.jg-invoice-empty-items {
    padding: 24px;
    text-align: center;
    color: var(--jg-text-dim);
}
.jg-invoice-empty-payments {
    font-size: 12.5px;
    color: var(--jg-text-dim);
    text-align: center;
}

/* Invoice sidebar */
.jg-invoice-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Help card */
.jg-invoice-help {
    font-size: 12.5px;
    color: var(--jg-text-mid);
    line-height: 1.55;
}
.jg-invoice-help a {
    color: var(--jg-text);
}

@media (max-width: 700px) {
    .jg-invoice-doc-head,
    .jg-invoice-line-items,
    .jg-invoice-totals,
    .jg-invoice-notes,
    .jg-invoice-meta-grid {
        padding-left: 18px;
        padding-right: 18px;
    }
    .jg-invoice-divider {
        margin-left: 18px;
        margin-right: 18px;
    }
}

/* ── Printable invoice (standalone page) ──────────────────────────────────── */

.jg-print-page {
    font-family: var(--jg-font);
    color: var(--jg-text);
    max-width: 780px;
    margin: 2.5em auto;
    padding: 0 24px;
    -webkit-font-smoothing: antialiased;
}

/* Toolbar — hidden when printing */
.jg-print-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    align-items: center;
}
.jg-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--jg-border);
    border-radius: 7px;
    background: var(--jg-surface);
    color: var(--jg-text);
    font: 500 13px var(--jg-font);
    cursor: pointer;
}
.jg-print-btn:hover {
    background: var(--jg-surface-hover);
}
.jg-print-back {
    font-size: 13px;
    color: var(--jg-text-mid);
    text-decoration: none;
}
.jg-print-back:hover {
    color: var(--jg-text);
}

/* Header: brand + title */
.jg-print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.jg-print-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.jg-print-brand-name {
    font-weight: 600;
    font-size: 16px;
}
.jg-print-brand-addr {
    font-size: 12px;
    color: var(--jg-text-mid);
    line-height: 1.55;
    margin-top: 4px;
}
.jg-print-title-block {
    text-align: right;
}
.jg-print-title-label {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}
.jg-print-title-number {
    font-family: var(--jg-mono, 'Geist Mono', monospace);
    font-size: 13px;
    color: var(--jg-text-mid);
    margin-top: 4px;
}
.jg-print-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--jg-surface-hover);
}

/* Meta grid */
.jg-print-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px 0;
    border-top: 1px solid var(--jg-border);
    border-bottom: 1px solid var(--jg-border);
}
.jg-print-meta-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--jg-text-faint);
    margin-bottom: 6px;
    font-weight: 500;
}
.jg-print-meta-value {
    font-size: 13px;
    line-height: 1.5;
}
.jg-print-meta-value.mono {
    font-size: 12px;
}

/* Line items table */
.jg-print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.jg-print-table thead th {
    text-align: left;
    padding: 10px 8px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--jg-text-faint);
    font-weight: 500;
    border-bottom: 1px solid var(--jg-border);
}
.jg-print-table thead th.right {
    text-align: right;
}
.jg-print-table tbody td {
    padding: 12px 8px;
    font-size: 13px;
    border-bottom: 1px solid var(--jg-border-soft);
    vertical-align: top;
}
.jg-print-table tbody td.right {
    text-align: right;
    font-family: var(--jg-mono, 'Geist Mono', monospace);
}
.jg-print-table .jg-print-item-desc {
    font-size: 13px;
}
.jg-print-table .jg-print-item-type {
    font-size: 11px;
    color: var(--jg-text-mid);
    margin-top: 2px;
}
.jg-print-table .jg-print-item-total {
    font-weight: 500;
    color: var(--jg-text);
}

/* Totals */
.jg-print-totals {
    margin-left: auto;
    width: 300px;
    max-width: 100%;
    margin-bottom: 32px;
}
.jg-print-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 13px;
    color: var(--jg-text-mid);
}
.jg-print-totals-row.mono {
    font-family: var(--jg-mono, 'Geist Mono', monospace);
}
.jg-print-totals-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0;
    border-top: 2px solid var(--jg-text);
    font-weight: 600;
    font-size: 15px;
    color: var(--jg-text);
}
.jg-print-totals-total .mono {
    font-family: var(--jg-mono, 'Geist Mono', monospace);
}
.jg-print-totals-paid {
    color: var(--jg-green);
}

/* Notes */
.jg-print-notes {
    margin-bottom: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--jg-border-soft);
}
.jg-print-notes-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--jg-text-faint);
    margin-bottom: 6px;
    font-weight: 500;
}
.jg-print-notes-text {
    font-size: 13px;
    color: var(--jg-text-mid);
    line-height: 1.55;
}

/* Footer */
.jg-print-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid var(--jg-border-soft);
    font-size: 11.5px;
    color: var(--jg-text-faint);
    text-align: center;
}
.jg-print-footer span {
    color: var(--jg-text-mid);
}

/* Empty state */
.jg-print-empty {
    padding: 24px;
    text-align: center;
    color: var(--jg-text-dim);
    font-size: 13px;
}

/* Paid watermark */
.jg-print-paid-stamp {
    display: inline-block;
    border: 2px solid var(--jg-green);
    color: var(--jg-green);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 99px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 12px;
}

/* ==============================================
   Ticket system
   ============================================== */

/* Filter pill row (loose rounded pills, distinct from .jg-pill-tabs) */
.jg-pill-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.jg-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--jg-text-mid);
    background: var(--jg-bg-panel);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.jg-pill:hover {
    background: var(--jg-bg-elev);
    color: var(--jg-text);
}
.jg-pill.active {
    background: var(--jg-brand);
    color: var(--jg-brand-ink);
    font-weight: 600;
}
.jg-pill-count {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.75;
}

/* Ticket search */
.jg-ticket-search-form {
    min-width: 220px;
}
.jg-ticket-search-form .jg-input {
    width: 100%;
}

/* Ticket list table */
.jg-ticket-list-card {
    overflow-x: auto;
}

/* Empty state */
.jg-ticket-empty-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 4px;
}
.jg-ticket-empty-sub {
    color: var(--jg-text-dim);
    font-size: 13px;
    margin: 0;
}

/* ==============================================
   Ticket show — conversation
   ============================================== */

.jg-ticket-conversation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Message card */
.jg-ticket-msg-card {
    padding: 16px;
}
.jg-ticket-msg-staff-card {
    border-left: 3px solid var(--jg-brand);
    background: var(--jg-bg-elev);
}

/* Message header */
.jg-ticket-msg-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.jg-ticket-msg-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--jg-bg-elev);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--jg-text-dim);
}
.jg-ticket-msg-author {
    font-weight: 600;
    font-size: 13px;
}
.jg-ticket-msg-staff-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    border-radius: 99px;
    background: var(--jg-brand-dim);
    color: var(--jg-brand);
    margin-left: 4px;
    vertical-align: middle;
}
.jg-ticket-msg-time {
    margin-left: auto;
    font-size: 11.5px;
    color: var(--jg-text-dim);
    flex-shrink: 0;
}

/* Message body */
.jg-ticket-msg-body {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--jg-text);
    word-break: break-word;
}

/* Reply form */
.jg-ticket-reply-card {
    margin-top: 2px;
}
.jg-ticket-reply-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.jg-ticket-reply-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Create ticket form */
.jg-ticket-form-card {
    max-width: 640px;
}
.jg-ticket-form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

/* ==============================================
   Ticket show — summary rail (admin)
   ============================================== */

.jg-ticket-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 14px;
}

/* Client link in rail */
.jg-ticket-client-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.jg-ticket-client-link:hover .jg-ticket-client-name {
    text-decoration: underline;
}
.jg-ticket-client-name {
    font-weight: 600;
    font-size: 13px;
}

/* Meta list */
.jg-ticket-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.jg-ticket-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.jg-ticket-meta-label {
    font-size: 12px;
    color: var(--jg-text-dim);
    flex-shrink: 0;
}
.jg-ticket-meta-value {
    font-size: 12.5px;
    font-weight: 500;
    text-align: right;
}

/* Action forms (status, priority) */
.jg-ticket-action-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.jg-ticket-action-form-first {
    margin-top: 8px;
}

/* Inline form (e.g. close button next to heading) */
.jg-inline-form {
    display: inline;
}

/* Theme color swatches */
.jg-theme-swatches {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.jg-theme-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.jg-theme-swatch-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.jg-theme-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
}
.jg-theme-swatch-item:hover .jg-theme-swatch {
    transform: scale(1.1);
}
.jg-theme-swatch-radio:checked + .jg-theme-swatch {
    border-color: var(--jg-text);
    box-shadow: 0 0 0 2px var(--jg-bg-panel);
}
.jg-theme-swatch-label {
    font-size: 11px;
    color: var(--jg-text-dim);
    text-align: center;
}
.jg-theme-swatch-green  { background: oklch(0.86 0.18 142); }
.jg-theme-swatch-blue   { background: oklch(0.86 0.18 245); }
.jg-theme-swatch-violet { background: oklch(0.86 0.18 295); }
.jg-theme-swatch-rose   { background: oklch(0.86 0.16 15); }
.jg-theme-swatch-amber  { background: oklch(0.86 0.18 85); }
.jg-theme-apply-btn {
    margin-top: 12px;
}

/* Assignee */
.jg-ticket-assignee {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* ==============================================
   Package cards
   ============================================== */

.jg-pkg-card {
    transition: border-color 0.12s, transform 0.12s;
}
.jg-pkg-card:hover {
    border-color: var(--jg-border);
    transform: translateY(-1px);
}
.jg-pkg-card .label {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.jg-pkg-card .val {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
.jg-pkg-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.jg-pkg-head-info {
    min-width: 0;
}
.jg-pkg-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--jg-text);
    line-height: 1.3;
}
.jg-pkg-whm-name {
    font-size: 11px;
    color: var(--jg-text-dim);
    margin-top: 2px;
    word-break: break-all;
}
.jg-pkg-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.jg-pkg-price-unit {
    font-size: 12px;
    color: var(--jg-text-faint);
    font-weight: 400;
}
.jg-pkg-quotas {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--jg-border-soft);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
}
.jg-quota-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.jg-quota-row > span:first-child {
    color: var(--jg-text-mid);
}
.jg-quota-row > span:last-child {
    color: var(--jg-text);
    font-weight: 500;
}
.jg-pkg-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--jg-border-soft);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--jg-text-mid);
}
.jg-pkg-footer-synced {
    margin-left: auto;
}
.jg-pkg-unlimited {
    color: var(--jg-text-faint);
}
.jg-pkg-quota-unit {
    color: var(--jg-text-faint);
    font-size: 11px;
}
.jg-pkg-no-price {
    color: var(--jg-text-faint);
}
.jg-pkg-active-count {
    color: var(--jg-text);
    font-weight: 600;
}
.jg-pkg-total-count {
    color: var(--jg-text-faint);
}

/* Package empty state */
.jg-pkg-empty {
    padding: 48px 16px;
    text-align: center;
}
.jg-pkg-empty-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--jg-bg-elev);
    color: var(--jg-text-mid);
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.jg-pkg-empty-title {
    font-size: 14px;
    font-weight: 500;
}
.jg-pkg-empty-sub {
    margin: 6px 0 14px;
    font-size: 12.5px;
    color: var(--jg-text-dim);
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}
.jg-pkg-edit-note {
    font-size: 11.5px;
    color: var(--jg-text-faint);
    margin: 12px 0 0;
}
.jg-pt-sm { padding-top: 8px; }

/* ==============================================
   Portal email management
   ============================================== */

/* Email input group: user input + @domain suffix */
.jg-email-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--jg-border-soft);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.jg-email-input-group:focus-within {
    border-color: var(--jg-brand);
}
.jg-email-input-group .jg-input {
    flex: 1;
    border: 0;
    border-radius: 0;
    background: var(--jg-bg-elev);
}
.jg-email-input-group .jg-input:focus {
    box-shadow: none;
}
.jg-email-domain-suffix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 13px;
    color: var(--jg-text-dim);
    background: var(--jg-bg-deep);
    border-left: 1px solid var(--jg-border-soft);
    white-space: nowrap;
    font-family: var(--jg-mono);
}

/* Email usage bar in table */
.jg-email-usage-bar {
    width: 70px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}
.jg-email-usage-pct {
    font-size: 11.5px;
    color: var(--jg-text-dim);
    vertical-align: middle;
}

/* Email actions cell */
.jg-email-actions {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    align-items: center;
}

/* ==============================================
   Hosting card action buttons
   ============================================== */

.jg-host-card-actions {
    padding: 10px 16px;
    border-top: 1px solid var(--jg-border-soft);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ==============================================
   CMS installer
   ============================================== */

.jg-cms-info-card .jg-card-b {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.jg-cms-intro {
    font-size: 13px;
    color: var(--jg-text);
    margin: 0;
    line-height: 1.6;
}
.jg-cms-intro code {
    font-family: var(--jg-mono);
    font-size: 12px;
    background: var(--jg-bg-elev);
    padding: 1px 5px;
    border-radius: 4px;
}
.jg-cms-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.jg-cms-checklist li {
    font-size: 12.5px;
    color: var(--jg-text-mid);
    line-height: 1.5;
}
.jg-cms-checklist li::before {
    content: '✓ ';
    color: var(--jg-green);
    font-weight: 700;
}
.jg-cms-dir-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--jg-border-soft);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.jg-cms-dir-group:focus-within {
    border-color: var(--jg-brand);
}
.jg-cms-dir-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 13px;
    color: var(--jg-text-dim);
    background: var(--jg-bg-deep);
    border-right: 1px solid var(--jg-border-soft);
    white-space: nowrap;
    font-family: var(--jg-mono);
}
.jg-cms-dir-group .jg-input {
    flex: 1;
    border: 0;
    border-radius: 0;
    background: var(--jg-bg-elev);
}
.jg-cms-dir-group .jg-input:focus {
    box-shadow: none;
}
.jg-cms-submit {
    margin-top: 4px;
}
.jg-cms-after-text {
    font-size: 12.5px;
    color: var(--jg-text-mid);
    line-height: 1.55;
    margin: 0;
}
.jg-cms-after-text + .jg-cms-after-text {
    margin-top: 8px;
}
.jg-cms-after-text a {
    color: var(--jg-brand-ink);
    font-weight: 500;
}
.jg-cms-after-text a:hover {
    text-decoration: underline;
}
.jg-cms-form-card {
    margin-top: 14px;
}

/* ── Revenue dashboard ──────────────────────────────────────────────── */
.jg-rev-chart-bars {
    padding: 18px 16px 6px;
    height: 180px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
.jg-rev-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.jg-rev-chart-val {
    font-family: var(--jg-mono);
    font-size: 10.5px;
    color: var(--jg-text-faint);
    white-space: nowrap;
}
.jg-rev-chart-fill {
    width: 100%;
    border-radius: 3px 3px 0 0;
    min-height: 3px;
}
.jg-rev-chart-fill.is-current {
    background: var(--jg-brand);
}
.jg-rev-chart-fill.is-past {
    background: oklch(0.86 0.18 142 / 0.55);
}
.jg-rev-chart-labels {
    padding: 0 16px 14px;
    display: flex;
    gap: 6px;
    font-size: 10.5px;
    color: var(--jg-text-faint);
    font-family: var(--jg-mono);
}
.jg-rev-chart-label {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.jg-rev-progress {
    height: 4px;
    background: var(--jg-bg-elev);
    border-radius: 2px;
    overflow: hidden;
}
.jg-rev-progress-fill {
    height: 100%;
    background: var(--jg-green);
    border-radius: 2px;
}
.jg-rev-progress-cell {
    width: 140px;
}

/* Top clients / gateway mini-list */
.jg-mini-row {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.jg-mini-row + .jg-mini-row {
    border-top: 1px solid var(--jg-border-soft);
}
.jg-mini-bar {
    height: 3px;
    background: var(--jg-bg-elev);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}
.jg-mini-bar-fill {
    height: 100%;
    background: var(--jg-green);
    border-radius: 2px;
}
.jg-mini-bar-fill.is-blue {
    background: var(--jg-blue);
}
.jg-mini-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jg-mini-meta {
    font-size: 10.5px;
    color: var(--jg-text-faint);
}
.jg-mini-right {
    text-align: right;
    min-width: 0;
}
.jg-mini-amount {
    font-family: var(--jg-mono);
    font-size: 12.5px;
    font-weight: 500;
}
.jg-mini-col1 {
    width: 80px;
    font-family: var(--jg-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--jg-text-mid);
}
.jg-mini-col2 {
    flex: 1;
    min-width: 0;
}
.jg-mini-col3 {
    font-family: var(--jg-mono);
    text-align: right;
    min-width: 80px;
    font-size: 12.5px;
}
.jg-mini-col4 {
    font-size: 10.5px;
    color: var(--jg-text-faint);
    width: 42px;
    text-align: right;
}
.jg-mini-empty {
    padding: 28px 16px;
    font-size: 12.5px;
    color: var(--jg-text-dim);
    text-align: center;
}

/* Dot indicators in stat cards */
.jg-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.jg-dot.green  { background: var(--jg-green); }
.jg-dot.amber  { background: var(--jg-amber); }
.jg-dot.red    { background: var(--jg-red); }
.jg-dot.blue   { background: var(--jg-blue); }
.jg-dot.violet { background: var(--jg-violet); }
.jg-dot.neutral{ background: var(--jg-border); }

/* Sidebar rail for 2-col layouts */
.jg-side-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Payments table ─────────────────────────────────────────────────── */
.jg-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Portal orders ────────────────────────────────────────────────────── */

.jg-back-link {
    font-size: 12.5px;
    color: var(--jg-text-mid);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}
.jg-back-link:hover {
    color: var(--jg-text);
}

/* Empty state */
.jg-orders-empty {
    padding: 52px 24px;
    text-align: center;
}
.jg-orders-empty-icon {
    display: inline-flex;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--jg-bg-elev);
    color: var(--jg-text-mid);
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.jg-orders-empty-icon svg {
    width: 26px;
    height: 26px;
}
.jg-orders-empty-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}
.jg-orders-empty-desc {
    margin: 0 auto;
    font-size: 13px;
    color: var(--jg-text-dim);
    max-width: 400px;
    line-height: 1.55;
}

/* CTA cards — always visible below the table */
.jg-orders-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 22px;
}
.jg-orders-cta-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    background: var(--jg-bg-panel);
    border: 1px solid var(--jg-border-soft);
    border-radius: var(--jg-radius-lg);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.jg-orders-cta-card:hover {
    border-color: var(--jg-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.jg-orders-cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: oklch(0.86 0.18 142 / 0.1);
    color: var(--jg-brand);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.jg-orders-cta-icon svg {
    width: 22px;
    height: 22px;
}
.jg-orders-cta-card:last-child .jg-orders-cta-icon {
    background: oklch(0.72 0.18 256 / 0.1);
    color: oklch(0.58 0.18 256);
}
.jg-orders-cta-body {
    flex: 1;
    min-width: 0;
}
.jg-orders-cta-body h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px;
}
.jg-orders-cta-body p {
    font-size: 12.5px;
    color: var(--jg-text-dim);
    margin: 0;
    line-height: 1.5;
}
.jg-orders-cta-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .jg-orders-cta {
        grid-template-columns: 1fr;
    }
    .jg-orders-cta-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .jg-orders-cta-btn {
        align-self: stretch;
        text-align: center;
    }
}

/* ── Email settings form ───────────────────────────────────────────────── */

.jg-email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.jg-email-smtp-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.jg-email-smtp-fields.is-hidden {
    display: none;
}
.jg-email-smtp-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--jg-text-faint);
    margin-top: 2px;
}
.jg-email-smtp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--jg-border-soft);
}
.jg-email-log-note {
    font-size: 11.5px;
    color: var(--jg-text-dim);
    line-height: 1.55;
    margin-top: 8px;
}

/* Print media */
@media print {
    .jg-print-toolbar { display: none; }
    .jg-print-page {
        max-width: none;
        margin: 0;
        padding: 0;
        font-size: 11pt;
        color: #000;
    }
    .jg-print-table thead th,
    .jg-print-table tbody td {
        border-color: #ccc;
    }
    .jg-print-totals-total {
        border-top-color: #000;
    }
    .jg-print-meta {
        border-color: #ccc;
    }
    .jg-print-meta-label,
    .jg-print-notes-label,
    .jg-print-table thead th {
        color: #666;
    }
    .jg-print-footer {
        border-color: #ccc;
    }
    .jg-print-status {
        background: none;
        border: 1px solid #ccc;
    }
}
