/*
 |--------------------------------------------------------------------------
 | Incogniton Utils — Design System theme
 |--------------------------------------------------------------------------
 |
 | Hand-written theme loaded AFTER the compiled Bootstrap (app.css). It does
 | two jobs:
 |   1. Defines the design tokens + component recipes from the style handoff
 |      (dark chrome / light canvas, indigo accent, IBM Plex, status pills).
 |   2. Re-skins the Bootstrap 4 classes the existing Blade markup already
 |      uses (.navbar, .card, .table, .btn, .form-control, .badge, .alert,
 |      .list-group ...) so every page adopts the new look without a rebuild.
 |
 | Edit this file directly — it is not compiled from Sass.
 */

/* ---- Fonts ---------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ---- Tokens --------------------------------------------------------------*/
:root {
    --acc: #4f46e5;            /* indigo — the only accent */
    --acc-tint-bg: #eef0ff;
    --acc-tint-text: #4338ca;
    --acc-tint-border: #c7ccff;

    --canvas: #f4f5f7;
    --surface: #ffffff;
    --card-border: #e6e8ec;
    --hairline: #eef0f2;
    --hairline-soft: #f4f5f6;
    --row-hover: #fafbfc;

    --ink: #15181d;
    --body: #6b7280;
    --muted: #8a929e;
    --mono-ink: #525b68;

    --chrome: #0f1218;
    --chrome-menu: #171d26;
    --chrome-input: #191e27;
    --chrome-border: #262d38;
    --chrome-active: #232b37;

    --ok-bg: #e7f6ec;   --ok-tx: #137a3d;
    --bad-bg: #fdeaea;  --bad-tx: #c0271f;
    --warn-bg: #fdf1e0; --warn-tx: #b46708;
    --neu-bg: #eef0f3;  --neu-tx: #525b68;

    --font-ui: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

/* ---- Base ----------------------------------------------------------------*/
body {
    font-family: var(--font-ui);
    background: var(--canvas) !important;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-bottom: 0;
}
a { color: var(--acc); }
a:hover { color: var(--acc-tint-text); }
.mono, code, kbd, samp { font-family: var(--font-mono); }
code { color: var(--acc-tint-text); background: var(--acc-tint-bg); padding: 1px 6px; border-radius: 6px; font-size: 85%; }

h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 26px; } h2 { font-size: 22px; } h3 { font-size: 19px; }
h4 { font-size: 16px; font-weight: 600; } h5 { font-size: 14.5px; font-weight: 600; }

/* Content shell — keep clear of the sticky header, cap width like the spec. */
main.container,
body > .container {
    max-width: 1180px;
    padding-top: 26px !important;
    padding-bottom: 64px;
    background: transparent !important;
}

/* ==========================================================================
   DARK CHROME HEADER  (new .header markup in navbar.blade.php)
   ==========================================================================*/
.iu-header {
    position: sticky; top: 0; z-index: 1030;
    background: var(--chrome);
    border-bottom: 1px solid #1e2530;
}
.iu-shell { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.iu-hrow { height: 58px; display: flex; align-items: center; gap: 18px; }
.iu-brand {
    font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; color: #fff;
    display: flex; align-items: center; gap: 10px; white-space: nowrap;
    text-decoration: none;
}
.iu-brand:hover { color: #fff; text-decoration: none; }
.iu-brandmark {
    width: 28px; height: 28px; border-radius: 8px; background: var(--acc);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; color: #fff;
}
.iu-gsearch { flex: 1; min-width: 0; position: relative; display: flex; align-items: center; }
.iu-gsearch > svg { position: absolute; left: 12px; color: #6b7482; pointer-events: none; }
.iu-gsearch input {
    width: 100%; height: 38px; border-radius: 9px; border: 1px solid var(--chrome-border);
    background: var(--chrome-input); color: #fff; padding: 0 58px 0 36px;
    font-size: 14px; font-family: inherit; outline: none;
}
.iu-gsearch input::placeholder { color: #6b7482; }
.iu-gsearch input:focus { border-color: var(--acc); }
.kbd {
    position: absolute; right: 9px; display: flex; gap: 3px; font-size: 11px;
    font-weight: 600; color: #8b93a1; font-family: var(--font-mono); pointer-events: none;
}
.kbd span { background: var(--chrome-active); border: 1px solid #313a48; border-radius: 5px; padding: 1px 5px; line-height: 1.5; }

/* Global search results dropdown */
.iu-gresults {
    display: none; position: absolute; top: 46px; left: 0; right: 0; z-index: 40;
    background: var(--chrome-menu); border: 1px solid #2a3341; border-radius: 12px;
    padding: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.4); max-height: 380px; overflow-y: auto;
}
.iu-gresults.open { display: block; }
.iu-gresults a, .iu-gresults .iu-gempty {
    display: flex; justify-content: space-between; gap: 12px; align-items: center;
    padding: 9px 11px; border-radius: 8px; color: #c3cad4; font-size: 13px; text-decoration: none;
}
.iu-gresults a:hover { background: var(--chrome-active); color: #fff; text-decoration: none; }
.iu-gresults .iu-gsub { font-size: 11px; color: #7b8494; }
.iu-gresults .iu-gempty { color: #7b8494; justify-content: center; }

.iu-topright { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.iu-adminchip { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.iu-adminav {
    width: 33px; height: 33px; border-radius: 9px; background: var(--acc); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; flex-shrink: 0;
}
.iu-adminname { font-size: 13px; font-weight: 600; color: #eef1f5; line-height: 1.25; }
.iu-adminrole { font-size: 11.5px; color: #7b8494; line-height: 1.25; }
.iu-envpill {
    display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
    color: #6ee7b7; background: #122019; border: 1px solid #1d3a2b; padding: 6px 11px; border-radius: 8px; white-space: nowrap;
}
.iu-envdot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.15); }
.iu-topdiv { width: 1px; height: 28px; background: #242c38; }

/* Nav row — centered main menu */
.iu-navrow {
    display: flex; gap: 6px; height: 48px; align-items: center; justify-content: center;
    border-top: 1px solid #1c232e; overflow: visible; flex-wrap: wrap;
}
.navpill {
    color: #98a2b0; font-size: 13.5px; font-weight: 500; padding: 8px 14px; border-radius: 8px;
    white-space: nowrap; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.navpill:hover { color: #dfe4ea; text-decoration: none; background: rgba(255,255,255,.03); }
.navpill.on { background: var(--chrome-active); color: #fff; }
.navpill.on:hover { text-decoration: none; }
.navwrap { position: relative; display: inline-flex; }
.navcaret { margin-left: 4px; display: inline-flex; transition: transform .16s; }
.navwrap.open .navcaret { transform: rotate(180deg); }
.navmenu {
    display: none; position: absolute; top: 100%; left: 0; margin-top: 5px; background: var(--chrome-menu);
    border: 1px solid #2a3341; border-radius: 10px; padding: 5px; min-width: 230px; z-index: 1040;
    box-shadow: 0 14px 34px rgba(0,0,0,.4);
}
.navmenu.open { display: block; }
.navitem {
    display: flex; flex-direction: column; gap: 2px; color: #c3cad4; font-size: 12.5px; font-weight: 600;
    padding: 8px 11px; border-radius: 7px; cursor: pointer; white-space: nowrap; text-decoration: none;
}
.navitem:hover { background: var(--chrome-active); color: #fff; text-decoration: none; }
.navitemsub { font-size: 11px; font-weight: 400; color: #7b8494; }

/* ==========================================================================
   COMPONENT RECIPES  (design-system classes for new markup)
   ==========================================================================*/
.pill {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
    padding: 5px 11px; border-radius: 999px; line-height: 1; white-space: nowrap;
}
.pill.ok   { background: var(--ok-bg);  color: var(--ok-tx); }
.pill.bad  { background: var(--bad-bg); color: var(--bad-tx); }
.pill.warn { background: var(--warn-bg);color: var(--warn-tx); }
.pill.neu  { background: var(--neu-bg); color: var(--neu-tx); }
.pill.acc  { background: var(--acc-tint-bg); color: var(--acc-tint-text); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

.sect { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 28px 4px 12px; }

/* Collapsible status cards (ban / captcha / 2FA / SES / webshop) */
.iu-collhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; user-select: none; }
.iu-collhead-l { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.iu-collcaret { display: inline-flex; color: var(--muted); transition: transform .16s; flex-shrink: 0; }
.card-collapsible.collapsed .iu-collcaret { transform: rotate(-90deg); }
.card-collapsible.collapsed .card-header { border-bottom: none; }
.card-collapsible.collapsed .iu-collbody { display: none; }

.copyable { cursor: pointer; border-radius: 5px; padding: 1px 4px; margin: -1px -4px; transition: background .12s, color .12s; }
.copyable:hover { background: var(--acc-tint-bg); color: var(--acc-tint-text); }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 12px 0; }
.stat { background: var(--surface); border: 1px solid var(--card-border); border-radius: 11px; padding: 10px 14px; }
.statnum { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-family: var(--font-mono); }
.statlbl { color: var(--body); font-size: 11.5px; margin-top: 1px; font-weight: 500; }
/* Clickable stat tiles (jump to the profiles table, pre-filtered) */
.stat-link { cursor: pointer; transition: border-color .12s, background .12s, box-shadow .12s; }
.stat-link:hover { border-color: var(--acc-tint-border); background: var(--acc-tint-bg); }
.stat-link:hover .statlbl { color: var(--acc-tint-text); }
.stat-link:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* segmented control */
.seg { display: inline-flex; background: var(--neu-bg); border-radius: 10px; padding: 4px; gap: 2px; }
.segb { padding: 8px 15px; border-radius: 7px; font-size: 13px; font-weight: 600; color: #5b6472; cursor: pointer; border: none; background: transparent; font-family: inherit; }
.segb:hover { color: #2b303a; }
.segb.on { background: #fff; color: var(--acc); box-shadow: 0 1px 2px rgba(16,24,40,.09); }

/* filter chips */
.sfb { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e2e5ea; background: #fff; color: #4b5563; border-radius: 999px; height: 32px; padding: 0 8px 0 13px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.sfb:hover { background: var(--row-hover); }
.sfb.on { background: var(--acc); color: #fff; border-color: var(--acc); }
.sfc { font-size: 11px; font-weight: 600; background: rgba(20,24,32,.07); border-radius: 999px; padding: 2px 7px; min-width: 18px; text-align: center; }
.sfb.on .sfc { background: rgba(255,255,255,.24); }

/* Modal / dialog */
.iu-modal-overlay {
    position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 4000;
    display: none; align-items: flex-start; justify-content: center; padding: 60px 16px; overflow-y: auto;
}
.iu-modal-overlay.open { display: flex; }
.iu-modal {
    background: var(--surface); border-radius: 15px; border: 1px solid var(--card-border);
    box-shadow: 0 20px 60px rgba(0,0,0,.28); width: 100%; max-width: 640px;
}
.iu-modal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 20px; border-bottom: 1px solid var(--hairline); font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.iu-modal-close { border: none; background: transparent; cursor: pointer; color: var(--muted); font-size: 22px; line-height: 1; padding: 0 6px; border-radius: 6px; }
.iu-modal-close:hover { background: var(--row-hover); color: var(--ink); }
.iu-modal-body { padding: 16px 20px; font-size: 13.5px; color: var(--ink); }
.iu-modal-body pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: 12.5px; color: var(--mono-ink); background: var(--row-hover); border: 1px solid var(--hairline); border-radius: 8px; padding: 12px; margin: 0; }

/* toast */
.iu-toast {
    position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--chrome); color: #fff; padding: 12px 18px; border-radius: 11px; font-size: 13.5px;
    font-weight: 500; z-index: 3000; box-shadow: 0 10px 30px rgba(0,0,0,.24); display: flex; align-items: center; gap: 9px;
    opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
}
.iu-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   BOOTSTRAP RE-SKIN  (existing markup adopts the system)
   ==========================================================================*/

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.card-header {
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    padding: 11px 16px;
    font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; color: var(--ink);
    border-top-left-radius: 15px; border-top-right-radius: 15px;
}
.card-body { padding: 18px 20px; }
.card-footer { background: var(--surface); border-top: 1px solid var(--hairline); }

/* Buttons — indigo is the only accent */
.btn {
    height: 34px; border-radius: 8px; padding: 0 14px; font-size: 13px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
    line-height: 1; transition: filter .12s, background .12s, color .12s, border-color .12s;
}
.btn:focus, .btn.focus { box-shadow: 0 0 0 3px rgba(79,70,229,.25); outline: none; }
.btn-lg { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; }

.btn-primary, .btn-success, .btn-info {
    background: var(--acc); color: #fff; border-color: var(--acc);
}
.btn-primary:hover, .btn-success:hover, .btn-info:hover,
.btn-primary:focus, .btn-success:focus, .btn-info:focus {
    background: var(--acc); color: #fff; border-color: var(--acc); filter: brightness(1.08);
}
.btn-danger {
    background: #fdf1f0; color: var(--bad-tx); border-color: #f2cfcc;
}
.btn-danger:hover, .btn-danger:focus { background: #fbe6e4; color: var(--bad-tx); border-color: #f2cfcc; }
.btn-warning {
    background: var(--warn-bg); color: var(--warn-tx); border-color: #f3ddb8;
}
.btn-warning:hover, .btn-warning:focus { background: #fbe8cc; color: var(--warn-tx); border-color: #f3ddb8; }

.btn-secondary, .btn-outline-secondary, .btn-outline-primary, .btn-light, .btn-outline-dark {
    background: #fff; color: #374151; border-color: #dfe2e7;
}
.btn-secondary:hover, .btn-outline-secondary:hover, .btn-outline-primary:hover,
.btn-light:hover, .btn-outline-dark:hover {
    background: var(--row-hover); color: #1f2937; border-color: #dfe2e7;
}
.btn-link { color: var(--acc); height: auto; }

/* Forms */
.form-control, .custom-select,
main input[type="text"], main input[type="email"], main input[type="password"],
main input[type="search"], main input[type="number"], main input[type="date"],
main select, main textarea {
    height: 38px; border-radius: 9px; border: 1px solid #dfe2e7; background: #fff; color: var(--ink);
    padding: 0 12px; font-size: 13.5px; font-family: inherit; box-shadow: none;
}
main textarea, textarea.form-control { height: auto; padding: 10px 12px; }
.form-control:focus, .custom-select:focus,
main input:focus, main select:focus, main textarea:focus {
    border-color: var(--acc); box-shadow: 0 0 0 3px rgba(79,70,229,.15); outline: none;
}
.form-control-lg { height: 44px; font-size: 15px; }
.form-control-borderless { border: none !important; box-shadow: none !important; background: transparent; }
label { font-weight: 600; font-size: 13px; color: #374151; margin-bottom: 5px; }
.form-text, small.text-muted, .text-muted { color: var(--muted) !important; }
.form-group { margin-bottom: 18px; }

/* Input groups (copy buttons next to values) */
.input-group > .form-control, .input-group > input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Tables */
.table { font-size: 13px; color: var(--ink); margin-bottom: 0; }
.table thead th {
    text-transform: uppercase; letter-spacing: .05em; font-size: 11px; font-weight: 600;
    color: var(--muted); background: var(--row-hover); border-bottom: 1px solid var(--hairline);
    border-top: none; padding: 11px 16px; vertical-align: middle;
}
.table td { padding: 12px 16px; border-top: none; border-bottom: 1px solid var(--hairline-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--row-hover); }
/* key/value tables use <th scope="row"> as the label cell */
.table th[scope="row"], .table tbody th {
    text-transform: none; letter-spacing: 0; background: transparent; color: var(--body);
    font-weight: 500; font-size: 13.5px; padding: 11px 16px; border-bottom: 1px solid var(--hairline);
    border-top: none;
}
.table-borderless th, .table-borderless td { border: none !important; }
.table-hover tbody tr:hover { background: var(--row-hover); }

/* Badges → pills */
.badge {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
    padding: 4px 10px; border-radius: 999px; line-height: 1.1;
}
.badge-primary, .badge-info { background: var(--acc-tint-bg); color: var(--acc-tint-text); }
.badge-success { background: var(--ok-bg); color: var(--ok-tx); }
.badge-danger { background: var(--bad-bg); color: var(--bad-tx); }
.badge-warning { background: var(--warn-bg); color: var(--warn-tx); }
.badge-secondary, .badge-light, .badge-dark { background: var(--neu-bg); color: var(--neu-tx); }

/* Alerts */
.alert { border-radius: 11px; border: 1px solid transparent; padding: 13px 16px; font-size: 13.5px; }
.alert-success { background: var(--ok-bg); color: var(--ok-tx); border-color: #bfe6cc; }
.alert-danger { background: var(--bad-bg); color: var(--bad-tx); border-color: #f4cbc9; }
.alert-warning { background: var(--warn-bg); color: var(--warn-tx); border-color: #f3ddb8; }
.alert-info { background: var(--acc-tint-bg); color: var(--acc-tint-text); border-color: var(--acc-tint-border); }

/* List groups (search results) */
.list-group { border-radius: 12px; }
.list-group-item { border: 1px solid var(--hairline); padding: 13px 16px; font-size: 13.5px; color: var(--ink); }
.list-group-item + .list-group-item { border-top-width: 0; }
.list-group-item:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.list-group-item:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.list-group-item-action:hover, .list-group-item-action:focus { background: var(--acc-tint-bg); color: var(--acc-tint-text); }
.list-group-item-action:hover .text-muted { color: var(--acc-tint-text) !important; }

/* Dropdowns (Bootstrap) on dark chrome */
.dropdown-menu {
    border-radius: 10px; border: 1px solid var(--card-border); box-shadow: 0 14px 34px rgba(16,24,40,.14);
    font-size: 13.5px; padding: 6px;
}
.dropdown-item { border-radius: 7px; padding: 8px 11px; font-weight: 500; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--acc-tint-bg); color: var(--acc-tint-text); }

/* Pagination (DataTables / Bootstrap) */
.page-link { color: var(--acc); border-color: #e2e5ea; border-radius: 8px !important; margin: 0 2px; font-weight: 600; font-size: 13px; }
.page-item.active .page-link { background: var(--acc); border-color: var(--acc); }

/* Misc helpers used by legacy markup */
hr { border-color: var(--hairline); }
.text-success { color: var(--ok-tx) !important; }
.text-danger { color: var(--bad-tx) !important; }
.text-warning { color: var(--warn-tx) !important; }

/* Legacy fixed-top navbar (in case any page still renders it) is neutralised
   by the new sticky header; hide the old bootstrap nav if both appear. */
header .navbar.fixed-top { position: sticky; }

/* ==========================================================================
   REFERENCE-PAGE RECIPES (hero, grids, kv rows, collapsible subs, flags)
   ==========================================================================*/
.hero {
    background: var(--surface); border: 1px solid var(--card-border); border-radius: 13px;
    padding: 13px 18px; display: flex; align-items: center; gap: 15px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.avatar {
    width: 44px; height: 44px; border-radius: 11px; background: var(--acc-tint-bg); color: var(--acc);
    display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; flex-shrink: 0;
}
.heroname { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.herometa { color: var(--body); font-size: 12.5px; margin-top: 1px; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.herodiv { width: 3px; height: 3px; border-radius: 50%; background: #c4c9d1; }
.herobadges { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 340px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.gcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* Card header/body (design-system flavour; .card-header re-skin above also applies) */
.cardsub { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-left: auto; }
.cardb { padding: 4px 16px 10px; }
.card-header { display: flex; align-items: center; gap: 9px; }

/* Key/value rows */
.kv { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px 0; border-bottom: 1px solid #f1f2f4; }
.kv:last-child { border-bottom: none; }
.kvk { color: var(--body); font-size: 13px; flex-shrink: 0; }
.kvv { font-size: 13px; font-weight: 500; text-align: right; display: flex; align-items: center; gap: 8px; justify-content: flex-end; flex-wrap: wrap; min-width: 0; word-break: break-all; }

/* Tiny ghost copy button */
.copy {
    border: 1px solid #dfe2e7; background: #fff; color: #5b6472; border-radius: 7px; height: 25px;
    padding: 0 8px; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.copy:hover { background: #f6f7f9; color: #2b303a; }
a.copy, a.copy:hover { text-decoration: none; }

/* External links row (subscriptions card) */
.extlinks { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0 14px; margin-bottom: 8px; border-bottom: 1px solid #f1f2f4; }
.extlinks a { text-decoration: none; }
.extlinks a:hover { text-decoration: none; }
.extlinks .btn-sm { height: 30px; }

/* Collapsible sub-cards (subscriptions) */
.sub { border: 1px solid var(--card-border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.subh { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.subh:hover { background: var(--row-hover); }
.subname { font-weight: 600; font-size: 14px; }
.subid { font-size: 11.5px; color: var(--muted); }
.chev { margin-left: auto; color: #9aa4b2; transition: transform .18s; display: flex; }
.sub.open .chev { transform: rotate(180deg); }
.subbody { display: none; padding: 2px 16px 16px; grid-template-columns: 1fr 1fr; gap: 2px 26px; border-top: 1px solid #f1f2f4; }
.sub.open .subbody { display: grid; }
.skv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 13px; }
.skvk { color: var(--body); }
.skvv { font-weight: 500; text-align: right; word-break: break-all; }

/* Flag rows (status + action) */
.flag { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #f1f2f4; flex-wrap: wrap; }
.flag:last-child { border-bottom: none; }
.flagl { font-size: 13.5px; font-weight: 500; flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 140px; }
.flagsub { font-size: 12px; color: var(--muted); font-weight: 400; }
.flagact { display: flex; gap: 8px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }
.finput { height: 34px; border: 1px solid #dfe2e7; border-radius: 8px; padding: 0 11px; font-size: 13px; font-family: inherit; outline: none; width: 170px; }
.finput:focus { border-color: var(--acc); }

/* Mono id text */
.idcell { font-family: var(--font-mono); color: var(--mono-ink); font-size: 12.5px; }

/* Secrets render in full (handoff: no mask/hide). Long tokens wrap and the
   value drops below its label so it never overflows the card. */
.iu-token-kv { align-items: flex-start; flex-direction: column; gap: 6px; }
.iu-token-kv .kvv { text-align: left; justify-content: flex-start; max-width: 100%; }
.iu-token {
    word-break: break-all; white-space: normal; line-height: 1.5;
    background: var(--row-hover); border: 1px solid var(--hairline); border-radius: 7px; padding: 6px 9px;
}
.iu-token.copyable:hover { background: var(--acc-tint-bg); }
/* Sub-team token cell: full value, wrapped so it stays readable (a horizontal
   scrollbar on a one-line box covered the token). Click-to-copy still applies. */
.tokcell {
    font-family: var(--font-mono); color: var(--mono-ink); font-size: 12px; display: inline-block;
    max-width: 320px; white-space: normal; word-break: break-all; line-height: 1.5; vertical-align: middle;
    background: var(--row-hover); border: 1px solid var(--hairline); border-radius: 6px; padding: 3px 7px;
}
.tokcell.copyable:hover { background: var(--acc-tint-bg); color: var(--acc-tint-text); }

/* Small version chip under a table cell's main value (e.g. browser version under profile name) */
.verbadge {
    display: inline-block; margin-top: 3px; font-family: var(--font-mono); font-size: 10.5px;
    font-weight: 600; color: var(--mono-ink); background: var(--neu-bg); border-radius: 5px; padding: 1px 5px;
}

/* Inline proxy cell + small Check button (handoff .chk) */
.proxycell { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chk {
    border: 1px solid #dfe2e7; background: #fff; color: #4b5563; border-radius: 7px; height: 26px;
    padding: 0 9px; font-size: 11.5px; font-weight: 600; cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
}
.chk:hover { background: var(--acc-tint-bg); border-color: var(--acc-tint-border); color: var(--acc-tint-text); }
.chk:disabled { opacity: .6; cursor: default; }

/* Listbox — themed multi-row <select size=n> pickers (move/restore/enable forms) */
select.iu-listbox {
    height: auto; width: 100%; max-width: 720px;
    border: 1px solid var(--card-border); border-radius: 11px; background: #fff;
    font-family: var(--font-mono); font-size: 12.5px; color: var(--mono-ink);
    padding: 6px; box-shadow: var(--card-shadow);
}
select.iu-listbox option { padding: 7px 10px; border-radius: 7px; }
select.iu-listbox option:checked {
    background: var(--acc) linear-gradient(0deg, var(--acc), var(--acc)); color: #fff;
}
select.iu-listbox:focus { border-color: var(--acc); outline: none; }

/* Sortable headers (vanilla .iu-sortable enhancement) */
.iu-sortable thead th { cursor: pointer; user-select: none; }
.iu-sortable thead th:hover { color: #4b5563; }
.sarrow { margin-left: 5px; color: var(--acc); font-size: 10px; }

/* Result/log output block */
.outpre {
    white-space: pre-wrap; max-height: 300px; overflow: auto; background: var(--row-hover);
    padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 9px; font-size: 12px;
    font-family: var(--font-mono); color: var(--mono-ink);
}

/* ==========================================================================
   DATATABLES SKIN (jQuery DataTables inside cards)
   ==========================================================================*/
.dataTables_wrapper { padding: 12px 20px 14px; font-size: 13px; color: var(--body); }
.dataTables_wrapper .dataTables_length select {
    height: 32px; border: 1px solid #dfe2e7; border-radius: 8px; padding: 0 8px; font-size: 13px;
    background: #fff; color: #374151; font-weight: 600; margin: 0 5px;
}
.dataTables_wrapper .dataTables_filter input {
    height: 36px; border: 1px solid #dfe2e7 !important; border-radius: 9px; padding: 0 12px !important;
    font-size: 13.5px; margin-left: 8px; outline: none; background: #fff;
}
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--acc) !important; }
.dataTables_wrapper .dataTables_info { padding-top: 12px; font-size: 13px; color: var(--muted); }
.dataTables_wrapper .dataTables_paginate { padding-top: 8px; }
.dataTables_wrapper .dataTables_paginate .paginate_button {
    min-width: 32px; height: 32px; padding: 5px 9px !important; border: 1px solid #e2e5ea !important;
    background: #fff !important; border-radius: 8px !important; font-size: 13px; font-weight: 600;
    color: #5b6472 !important; margin: 0 2px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--row-hover) !important; color: #2b303a !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--acc) !important; color: #fff !important; border-color: var(--acc) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled { color: #c4c9d1 !important; }
/* kill the default stripes/borders inside cards */
.table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.table-bordered, .table-bordered th, .table-bordered td { border: none; }
.table-bordered td { border-bottom: 1px solid var(--hairline-soft); }
table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after { color: var(--acc); }

/* ==========================================================================
   BARE FORM PAGES → cards (give-trial, activate-email, move, restore, ...)
   ==========================================================================*/
main.container > h2, main.container > h3 {
    font-size: 23px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 6px;
}
main.container > h3 + p, main.container > p { color: var(--body); font-size: 13.5px; }
main.container > form {
    background: var(--surface); border: 1px solid var(--card-border); border-radius: 15px;
    padding: 22px 24px; box-shadow: 0 1px 2px rgba(16,24,40,.04); max-width: 760px;
}

/* ---- Responsive ----------------------------------------------------------*/
@media (max-width: 900px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .grid2 { grid-template-columns: 1fr; }
    .subbody { grid-template-columns: 1fr; }
    .hero { flex-wrap: wrap; }
    .herobadges { margin-left: 0; max-width: none; justify-content: flex-start; }
    .iu-hrow { gap: 12px; }
    .iu-admintext { display: none; }
    .iu-navrow { height: auto; padding: 5px 0; }
}
@media (max-width: 600px) {
    .iu-brand span.iu-brandtext { display: none; }
    .kbd { display: none; }
}
