/* isharktech Back Office — clean SaaS / fintech */

.bo, .bo * { box-sizing: border-box; }
.bo {
    --bo-bg: #F4F6FB;
    --bo-card: #ffffff;
    --bo-line: #E6EAF2;
    --bo-text: #0f172a;
    --bo-muted: #64748b;
    --bo-purple: #7c3aed;
    --bo-cyan: #0891b2;
    --bo-ok: #15803d;
    --bo-warn: #b45309;
    --bo-err: #be123c;
    min-height: 100vh;
    background:
        radial-gradient(900px 420px at 0% 0%, rgba(124, 58, 237, 0.07), transparent 55%),
        radial-gradient(720px 380px at 100% 0%, rgba(8, 145, 178, 0.07), transparent 50%),
        var(--bo-bg);
    color: var(--bo-text);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.bo a { color: inherit; }

.bo-app { display: flex; min-height: 100vh; }
.bo-side {
    width: 248px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--bo-line);
    padding: 20px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.bo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 18px;
    text-decoration: none;
}
.bo-brand b {
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    background: linear-gradient(90deg, #00C6FF, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bo-brand small { display: block; color: var(--bo-muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.bo-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 2px;
}
.bo-nav a:hover { background: #F5F3FF; color: #6d28d9; }
.bo-nav a.is-on { background: #F5F3FF; color: #6d28d9; box-shadow: inset 3px 0 0 #7c3aed; }
.bo-nav a.is-star {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), rgba(8, 145, 178, 0.08));
    border: 1px solid rgba(124, 58, 237, 0.15);
    font-weight: 800;
}
.bo-nav a.is-star.is-on { background: #F5F3FF; }
.bo-nav a.is-pay {
    font-weight: 800;
    border: 1px solid rgba(8, 145, 178, 0.22);
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.08), rgba(124, 58, 237, 0.06));
}
.pay-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pay-tabs a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--bo-line);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    color: #334155;
}
.pay-secret { display: flex; gap: 8px; align-items: center; }
.pay-secret input { flex: 1; }
.split-sim { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--bo-line); }
.split-sim h3 { margin: 0 0 12px; font-size: 15px; }
.bo-card .account-dl { display: grid; gap: 10px; }
.bo-card .account-dl > div { display: grid; grid-template-columns: 160px 1fr; gap: 8px; font-size: 13px; }
.bo-card .account-dl dt { color: #64748b; font-weight: 700; }
.wl-form input[type="number"] {
    width: 100%;
    border: 1px solid var(--bo-line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}
.bo-nav a.wl-nav {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed, #0891b2);
    color: #fff !important;
    border: 0;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
    animation: wl-pulse 2.8s ease-in-out infinite;
}
.bo-nav a.wl-nav strong { display: block; font-size: 12.5px; line-height: 1.3; }
.bo-nav a.wl-nav small { display: block; opacity: 0.85; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; font-weight: 700; }
.bo-nav a.wl-nav.is-on { box-shadow: inset 0 0 0 2px #fff, 0 10px 24px rgba(124, 58, 237, 0.28); }
.wl-nav-ico { font-size: 16px; line-height: 1; }
.wl-block {
    margin-top: 18px;
    padding: 12px 8px 4px;
    border-top: 1px dashed #c4b5fd;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.06), transparent 70%);
    border-radius: 0 0 16px 16px;
}
.wl-nav-hint {
    margin: 8px 4px 0;
    font-size: 11px;
    line-height: 1.4;
    color: #7c3aed;
    font-weight: 600;
}
@keyframes wl-pulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28); }
    50% { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(8, 145, 178, 0.28); }
}
.wl-hero {
    background: linear-gradient(120deg, #0f172a, #5b21b6 55%, #0e7490);
    color: #fff;
    border-radius: 20px;
    padding: 26px 24px;
    margin-bottom: 18px;
}
.wl-hero span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; margin-bottom: 8px; }
.wl-hero h2 { margin: 0 0 8px; font-family: "Space Grotesk", sans-serif; font-size: 28px; letter-spacing: -0.04em; }
.wl-hero p { margin: 0; opacity: 0.88; max-width: 560px; }
.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.wl-card {
    display: block;
    background: #fff;
    border: 1px solid var(--bo-line);
    border-radius: 16px;
    padding: 18px;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.wl-card:hover { border-color: #c4b5fd; }
.wl-card b { font-size: 22px; display: block; margin-bottom: 8px; }
.wl-card h3 { margin: 0 0 6px; font-size: 16px; }
.wl-card p { margin: 0 0 10px; color: var(--bo-muted); font-size: 13px; }
.wl-card em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #7c3aed; }
.wl-card-prod { background: #F8FAFC; }
.wl-form .wl-field { margin-bottom: 12px; }
.wl-form label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.wl-form input[type="text"], .wl-form textarea, .wl-form input[type="password"], .wl-form input[type="number"] {
    width: 100%;
    border: 1px solid var(--bo-line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}
.wl-preview { width: 120px; height: 120px; border-radius: 12px; overflow: hidden; background: #F1F5F9; margin-bottom: 10px; border: 1px solid var(--bo-line); display: flex; align-items: center; justify-content: center; }
.wl-preview img { width: 100%; height: 100%; object-fit: contain; }
.wl-preview.is-empty span { font-size: 12px; color: #94a3b8; }
.wl-lock {
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--bo-line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.wl-lock label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.wl-lock input {
    width: 100%;
    border: 1px solid var(--bo-line);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}
.wl-file { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: #F5F3FF; color: #6d28d9; font-weight: 800; font-size: 13px; cursor: pointer; overflow: hidden; }
.wl-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.bo-nav .bo-sec {
    margin: 16px 12px 6px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 800;
}
.bo-side-foot { margin-top: 24px; padding: 12px; border-top: 1px solid var(--bo-line); }
.bo-side-foot a { font-size: 13px; color: var(--bo-muted); text-decoration: none; }

.bo-main { flex: 1; min-width: 0; padding: 22px 28px 48px; }
.bo-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.bo-top h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 26px;
    letter-spacing: -0.04em;
    margin: 0 0 4px;
}
.bo-top p { margin: 0; color: var(--bo-muted); font-size: 14px; }
.bo-search {
    display: flex;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--bo-line);
    border-radius: 999px;
    padding: 6px 8px 6px 14px;
    min-width: min(420px, 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.bo-search input {
    border: 0;
    outline: 0;
    flex: 1;
    font: inherit;
    background: transparent;
    min-width: 0;
}
.bo-search button {
    border: 0;
    background: linear-gradient(90deg, #7c3aed, #0891b2);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
}

.bo-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.bo-kpi {
    background: var(--bo-card);
    border: 1px solid var(--bo-line);
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.bo-kpi span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bo-muted); margin-bottom: 8px; }
.bo-kpi b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 26px; letter-spacing: -0.04em; }
.bo-kpi em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; color: var(--bo-muted); }
.bo-kpi.is-purple { border-color: rgba(124, 58, 237, 0.22); }
.bo-kpi.is-cyan { border-color: rgba(8, 145, 178, 0.22); }
.bo-kpi.is-ok { border-color: rgba(21, 128, 61, 0.22); }
.bo-kpi.is-warn { border-color: rgba(180, 83, 9, 0.22); }

.bo-grid-2 { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 14px; margin-bottom: 14px; }
.bo-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.bo-card {
    background: #fff;
    border: 1px solid var(--bo-line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.bo-card h2 { font-size: 15px; margin: 0 0 14px; }
.bo-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.bo-toolbar input, .bo-toolbar select {
    border: 1px solid var(--bo-line);
    background: #fff;
    border-radius: 10px;
    padding: 8px 10px;
    font: inherit;
}
.bo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--bo-line);
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
}
.bo-btn:hover { border-color: #c4b5fd; }
.bo-btn-primary { background: linear-gradient(90deg, #7c3aed, #6d28d9); color: #fff; border: 0; }
.bo-btn-danger { color: #be123c; border-color: #fecdd3; }

.bo-table-wrap { overflow-x: auto; }
.bo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bo-table th {
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bo-muted);
    padding: 10px 8px;
    border-bottom: 1px solid var(--bo-line);
}
.bo-table td { padding: 11px 8px; border-bottom: 1px solid #F1F5F9; vertical-align: top; }
.bo-table tr:hover td { background: #F8FAFC; }
.bo-table a { color: #6d28d9; font-weight: 700; text-decoration: none; }
.bo-empty { text-align: center; padding: 36px 16px; color: var(--bo-muted); }

.bo-badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.bo-badge-ok { background: #dcfce7; color: #15803d; }
.bo-badge-warn { background: #ffedd5; color: #c2410c; }
.bo-badge-err { background: #ffe4e6; color: #be123c; }
.bo-badge-muted { background: #f1f5f9; color: #64748b; }
.bo-badge-purple { background: #ede9fe; color: #6d28d9; }
.bo-badge-cyan { background: #cffafe; color: #0e7490; }

.bo-alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}
.bo-alert-warn { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; }
.bo-alert-err { background: #fff1f2; border: 1px solid #fda4af; color: #9f1239; }
.bo-alert-ok { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

.bo-timeline { list-style: none; margin: 0; padding: 0; }
.bo-timeline li { position: relative; padding: 0 0 16px 18px; border-left: 2px solid #E2E8F0; }
.bo-timeline li:last-child { padding-bottom: 0; }
.bo-timeline li::before {
    content: "";
    position: absolute;
    left: -5px; top: 4px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #7c3aed;
}
.bo-timeline b { display: block; font-size: 13px; }
.bo-timeline span { font-size: 12px; color: var(--bo-muted); }

.bo-pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.bo-page {
    min-width: 32px;
    text-align: center;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--bo-line);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}
.bo-page.is-on { background: #7c3aed; color: #fff; border-color: #7c3aed; }

.bo-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.bo-login-card {
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid var(--bo-line);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.bo-login-card h1 { font-size: 24px; margin: 8px 0 6px; }
.bo-field { margin-bottom: 12px; }
.bo-field label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.bo-field input, .bo-field textarea, .bo-field select {
    width: 100%;
    border: 1px solid var(--bo-line);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.bo-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, #7c3aed, #0891b2);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28);
    cursor: pointer;
}
.bo-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
}
.bo-burger i {
    display: block;
    height: 2.5px;
    border-radius: 99px;
    background: #fff;
}
.bo.nav-open .bo-toggle { background: #0f172a; box-shadow: none; }
.bo-scrim { display: none; }
.bo-range a { margin-right: 6px; }

.pm-hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(120deg, #fff, #F5F3FF 55%, #ECFEFF);
    border: 1px solid #E6EAF2;
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 16px;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.06);
}
.pm-hero span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 6px;
}
.pm-hero h2 { margin: 0 0 6px; font-family: "Space Grotesk", sans-serif; letter-spacing: -0.03em; font-size: 22px; }
.pm-hero p { margin: 0; color: var(--bo-muted); font-size: 14px; max-width: 520px; }
.pm-hero-actions, .pm-form-top, .pm-form-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pm-form-top { margin-bottom: 14px; }
.pm-cta { font-size: 14px; padding: 10px 16px; }
.pm-filters { margin-bottom: 16px; }
.pm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
.pm-card {
    background: #fff;
    border: 1px solid var(--bo-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}
.pm-thumb {
    position: relative;
    height: 150px;
    background: #F1F5F9;
}
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-thumb .bo-badge { position: absolute; top: 10px; right: 10px; }
.pm-body { padding: 14px 14px 16px; }
.pm-body h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -0.02em; }
.pm-meta { margin: 0 0 10px; font-size: 12px; color: var(--bo-muted); }
.pm-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pm-stats { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #475569; margin-bottom: 12px; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-actions form { display: inline; }
.pm-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr); gap: 14px; align-items: start; }
.pm-form .bo-card { margin-bottom: 14px; }
.pm-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pm-hint { display: block; color: var(--bo-muted); font-size: 12px; margin: 4px 0 10px; }
.pm-check { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 8px 0 12px; }
.pm-img-now { width: 160px; height: 110px; border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #F1F5F9; }
.pm-img-now img { width: 100%; height: 100%; object-fit: cover; }
.pm-analytics { list-style: none; margin: 0; padding: 0; }
.pm-analytics li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #F1F5F9; font-size: 13px; }
.pm-analytics span { color: var(--bo-muted); }
.pm-analytics b { font-family: "Space Grotesk", sans-serif; }
.pm-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.45);
    display: grid;
    place-items: center;
    padding: 20px;
}
.pm-modal[hidden] { display: none; }
.pm-modal-card {
    width: min(460px, 100%);
    background: #fff;
    border-radius: 18px;
    padding: 22px 22px 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}
.pm-modal-card h2 { margin: 0 0 10px; font-size: 20px; }
.pm-modal-card p { margin: 0 0 10px; color: #334155; font-size: 14px; }

@media (max-width: 1100px) {
    .bo-kpis, .bo-grid-2, .bo-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
    .bo-side {
        position: fixed;
        left: 0; top: 0;
        z-index: 40;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
    }
    .bo.nav-open .bo-side { transform: none; }
    .bo-toggle { display: flex; }
    .bo-top { flex-direction: column; align-items: stretch; }
    .bo.nav-open .bo-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        z-index: 30;
    }
    .bo-kpis, .bo-grid-2, .bo-grid-3, .pm-layout, .pm-2 { grid-template-columns: 1fr; }
    .bo-main { padding: 16px 14px 40px; }
}
