        .dash-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
        .dash-heading p { margin:5px 0 0; color:#647792; font-size:14px; }
        .quick-primary { text-decoration:none; border-radius:10px; padding:10px 14px; background:linear-gradient(120deg,#007ee6,#00a9d6); color:#fff; font-size:13px; font-weight:700; }
        .dashboard-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; }
        .metric-card { grid-column:span 3; position:relative; display:block; min-height:150px; padding:19px; border:1px solid #dbe6f5; border-radius:16px; background:#fff; color:inherit; text-decoration:none; box-shadow:0 8px 24px rgba(16,38,72,.06); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; overflow:hidden; }
        .metric-card:hover { transform:translateY(-3px); border-color:#9bceff; box-shadow:0 14px 32px rgba(16,63,108,.12); }
        .metric-card:focus-visible { outline:3px solid rgba(0,126,230,.25); outline-offset:2px; }
        .metric-card.attention { background:linear-gradient(145deg,#fffaf0,#fff); border-color:#f3cf7a; }
        .metric-card.danger { background:linear-gradient(145deg,#fff6f6,#fff); border-color:#f4caca; }
        .metric-label { margin:0 0 11px; color:#60728e; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
        .metric-value { margin:0; color:#112448; font-family:'Space Grotesk',sans-serif; font-size:34px; }
        .metric-meta { margin:7px 0 0; color:#5b7191; font-size:13px; }
        .metric-arrow { position:absolute; right:17px; top:17px; width:29px; height:29px; display:grid; place-items:center; border-radius:9px; background:#edf6ff; color:#0875ce; font-weight:800; }
        .panel { grid-column:span 8; padding:19px; border:1px solid #dbe6f5; border-radius:16px; background:#fff; box-shadow:0 8px 24px rgba(16,38,72,.05); }
        .panel.side { grid-column:span 4; }
        .panel-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:13px; }
        .panel-title { margin:0; font-family:'Space Grotesk',sans-serif; font-size:19px; }
        .panel-link { color:#0875ce; text-decoration:none; font-size:13px; font-weight:700; }
        .action-list { display:grid; gap:9px; }
        .action-item { display:flex; justify-content:space-between; align-items:center; gap:12px; border:1px solid #e8eef7; border-radius:11px; padding:12px; color:#243e65; text-decoration:none; font-size:13px; font-weight:600; }
        .action-item:hover { background:#f7fbff; }
        .action-count { min-width:28px; text-align:center; border-radius:999px; padding:4px 8px; background:#e8f4ff; color:#0875ce; font-weight:800; }
        .empty-state { border:1px dashed #cfdbeb; border-radius:12px; padding:24px; text-align:center; color:#6a7e99; font-size:14px; }
        @media(max-width:1100px) { .metric-card { grid-column:span 6; } .panel,.panel.side { grid-column:span 12; } }
        @media(max-width:650px) { .metric-card { grid-column:span 12; min-height:130px; } }

        :root {
            --bg-ink: #0b1220;
            --bg-mid: #12213b;
            --bg-glow: #1f3a68;
            --card: rgba(255, 255, 255, 0.1);
            --text-main: #f8fbff;
            --text-muted: #c8d7ef;
            --accent: #40d9a6;
            --accent-2: #00b3ff;
            --danger: #ff6b6b;
            --border: rgba(255, 255, 255, 0.18);
        }

        * { box-sizing: border-box; }
        .guest-body {
            margin: 0;
            min-height: 100vh;
            font-family: 'IBM Plex Sans', sans-serif;
            color: var(--text-main);
            background:
                radial-gradient(900px 500px at 10% -10%, #2a4b84 0%, transparent 60%),
                radial-gradient(700px 420px at 95% 10%, #1d6f7a 0%, transparent 55%),
                linear-gradient(145deg, var(--bg-ink) 0%, var(--bg-mid) 48%, var(--bg-glow) 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .brand-mark {
            width: 108px;
            margin-bottom: 18px;
            filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.25));
        }

        .auth-shell {
            width: 100%;
            max-width: 1080px;
            display: grid;
            grid-template-columns: 1.1fr 0.9fr;
            border-radius: 24px;
            overflow: hidden;
            border: 1px solid var(--border);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
            background: rgba(7, 18, 35, 0.62);
            backdrop-filter: blur(10px);
        }

        .auth-aside {
            padding: 52px 42px;
            border-right: 1px solid var(--border);
        }

        .auth-aside h1 {
            margin: 0 0 12px;
            font-size: 36px;
            line-height: 1.12;
            font-family: 'Space Grotesk', sans-serif;
            letter-spacing: -0.02em;
        }

        .auth-aside p {
            margin: 0;
            color: var(--text-muted);
            line-height: 1.7;
            max-width: 470px;
        }

        .feature-list {
            margin: 30px 0 0;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 14px;
        }

        .feature-list li {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #d9e8fb;
            font-weight: 500;
        }

        .feature-list li::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 99px;
            background: linear-gradient(140deg, var(--accent), var(--accent-2));
            box-shadow: 0 0 10px rgba(64, 217, 166, 0.65);
        }

        .auth-panel {
            padding: 48px 36px;
            background: rgba(5, 14, 28, 0.68);
        }

        .status-box {
            margin-bottom: 14px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-left: 4px solid var(--danger);
            border-radius: 12px;
            padding: 10px 12px;
            background: rgba(12, 24, 44, 0.7);
            color: #ffd3d3;
            font-size: 14px;
        }

        .status-box.success {
            border-left-color: var(--accent);
            color: #cbffef;
        }

        .mini-links {
            margin-top: 16px;
            text-align: center;
            color: var(--text-muted);
            font-size: 13px;
        }

        .mini-links a {
            color: #b9d8ff;
            text-decoration: none;
            margin: 0 8px;
        }

        @media (max-width: 992px) {
            .auth-shell {
                grid-template-columns: 1fr;
            }
            .auth-aside {
                border-right: 0;
                border-bottom: 1px solid var(--border);
                padding: 34px 26px;
            }
            .auth-aside h1 {
                font-size: 28px;
            }
            .auth-panel {
                padding: 30px 22px;
            }
        }

        :root {
            --app-bg: #eef4fb;
            --ink: #101a2f;
            --muted: #5f6f89;
            --card: #ffffff;
            --line: #dbe6f5;
            --brand: #007ee6;
            --brand-2: #1ec8a5;
        }
        * { box-sizing: border-box; }
        .app-body {
            margin: 0;
            font-family: 'IBM Plex Sans', sans-serif;
            color: var(--ink);
            background:
                radial-gradient(900px 300px at 90% -120px, #d8edff 0%, transparent 60%),
                radial-gradient(900px 260px at -100px 0%, #d8fff4 0%, transparent 58%),
                var(--app-bg);
        }
        .container {
            width: calc(100% - 40px);
            max-width: none;
            margin: 0 auto;
        }
        .page-header {
            margin-top: 18px;
            border: 1px solid var(--line);
            background: linear-gradient(130deg, #f8fcff, #ffffff);
            border-radius: 16px;
            padding: 18px 20px;
        }
        .page-header h1,
        .page-header h2 {
            margin: 0;
            font-family: 'Space Grotesk', sans-serif;
            letter-spacing: -0.01em;
        }
        .page-main {
            padding: 18px 0 36px;
        }
        @media (max-width: 768px) {
            .container {
                width: calc(100% - 16px);
            }
            .page-header {
                margin-top: 12px;
                padding: 14px 14px;
            }
        }

        .profile-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; }
        .profile-heading p { margin:5px 0 0; color:#647792; font-size:14px; }
        .role-badge { padding:7px 12px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; }
        .role-badge.admin { color:#075a9e; background:#e1f1ff; border:1px solid #b8dcff; }
        .role-badge.user { color:#14715d; background:#e5faf4; border:1px solid #bcebdd; }
        .profile-grid { display:grid; grid-template-columns:minmax(0, 1.35fr) minmax(300px, .65fr); gap:18px; align-items:start; }
        .profile-stack { display:grid; gap:18px; }
        .profile-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:20px; box-shadow:0 10px 28px rgba(17,42,76,.06); }
        .profile-card h3 { margin:0; font-family:'Space Grotesk',sans-serif; font-size:18px; }
        .card-copy { margin:6px 0 18px; color:var(--muted); font-size:13px; }
        .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
        .form-field { display:grid; gap:7px; }
        .form-field.full { grid-column:1 / -1; }
        .form-field label { color:#526681; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
        .form-input { width:100%; border:1px solid #d3e2f3; border-radius:10px; padding:11px 12px; color:#172b4d; background:#fbfdff; outline:none; transition:.2s ease; }
        .form-input:focus { border-color:#65b8ff; box-shadow:0 0 0 3px rgba(0,126,230,.12); background:#fff; }
        .form-error { color:#b42318; font-size:12px; margin:0; }
        .profile-btn { border:0; border-radius:10px; padding:10px 15px; background:linear-gradient(120deg,var(--brand),#00a9d6); color:#fff; font-weight:700; cursor:pointer; }
        .success-note { color:#14715d; font-size:13px; font-weight:600; }
        .summary-list { display:grid; gap:10px; }
        .summary-item { display:flex; justify-content:space-between; gap:12px; border-bottom:1px solid #edf2f8; padding:9px 0; font-size:13px; }
        .summary-item span { color:#687b96; }
        .summary-item strong { color:#172b4d; text-align:right; }
        .danger-card { border-color:#ffd5d5; }
        .danger-btn { background:#b42318; }
        @media (max-width:850px) { .profile-grid { grid-template-columns:1fr; } }
        @media (max-width:560px) { .form-grid { grid-template-columns:1fr; } .profile-heading { align-items:flex-start; } }

        .log-wrap table{min-width:980px}.method{font-weight:800}.meta{max-width:310px;word-break:break-word;color:#657b98}

        .clients-grid {
            display: grid;
            gap: 14px;
        }
        .card {
            background: #fff;
            border: 1px solid #dbe6f5;
            border-radius: 14px;
            padding: 16px;
            box-shadow: 0 8px 20px rgba(16, 26, 47, 0.05);
        }
        .row {
            display: grid;
            gap: 10px;
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
        .field {
            display: grid;
            gap: 6px;
        }
        .field label {
            font-size: 12px;
            font-weight: 700;
            color: #556a8a;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .field input,
        .field select {
            width: 100%;
            border: 1px solid #d7e5f7;
            border-radius: 10px;
            padding: 9px 11px;
            font-size: 14px;
            outline: none;
            background: #fff;
        }
        .field input:focus,
        .field select:focus {
            border-color: #93c7ff;
            box-shadow: 0 0 0 3px rgba(0, 126, 230, 0.15);
        }
        .actions {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            align-items: center;
        }
        .btn {
            border: 1px solid transparent;
            border-radius: 10px;
            padding: 9px 12px;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            cursor: pointer;
        }
        .btn-primary { background: #007ee6; color: #fff; }
        .btn-outline { border-color: #d0e1f5; background: #fff; color: #194277; }
        .btn-danger { border-color: #ffd9d9; background: #fff2f2; color: #ae2a2a; }
        .toolbar {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }
        .table-wrap { overflow: auto; }
        table {
            width: 100%;
            border-collapse: collapse;
            min-width: 1650px;
        }
        th, td {
            border-bottom: 1px solid #ebf1fa;
            padding: 10px 8px;
            text-align: left;
            vertical-align: top;
            font-size: 13px;
        }
        th {
            color: #4f6687;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        details > summary {
            list-style: none;
            cursor: pointer;
        }
        details > summary::-webkit-details-marker { display: none; }
        .status {
            border: 1px solid #cfeadb;
            background: #e9fff4;
            color: #1f7b53;
            border-radius: 10px;
            padding: 10px 12px;
            font-weight: 600;
            font-size: 13px;
        }
        .errors {
            border: 1px solid #ffd8d8;
            background: #fff3f3;
            color: #992b2b;
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 13px;
        }
        .pagination {
            display: flex;
            gap: 6px;
            align-items: center;
            justify-content: flex-end;
            flex-wrap: wrap;
            margin-top: 12px;
        }
        .page-link {
            border: 1px solid #d0e1f5;
            border-radius: 8px;
            padding: 6px 10px;
            font-size: 12px;
            text-decoration: none;
            color: #194277;
            background: #fff;
        }
        .page-link.active {
            background: #007ee6;
            border-color: #007ee6;
            color: #fff;
        }
        .muted { color: #637896; font-size: 12px; }
        @media (max-width: 1100px) {
            .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
        @media (max-width: 640px) {
            .row { grid-template-columns: 1fr; }
        }

        .users-grid { display: grid; gap: 14px; }
        .card {
            background: #fff;
            border: 1px solid #dbe6f5;
            border-radius: 14px;
            padding: 16px;
            box-shadow: 0 8px 20px rgba(16, 26, 47, 0.05);
        }
        .toolbar {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }
        .row {
            display: grid;
            gap: 10px;
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
        .field { display: grid; gap: 6px; }
        .field label {
            font-size: 12px;
            font-weight: 700;
            color: #556a8a;
            text-transform: uppercase;
            letter-spacing: .04em;
        }
        .field input,
        .field select {
            border: 1px solid #d7e5f7;
            border-radius: 10px;
            padding: 9px 11px;
            font-size: 14px;
            outline: none;
            background: #fff;
            width: 100%;
        }
        .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
        .btn {
            border: 1px solid transparent;
            border-radius: 10px;
            padding: 9px 12px;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            cursor: pointer;
        }
        .btn-primary { background: #007ee6; color: #fff; }
        .btn-outline { border-color: #d0e1f5; background: #fff; color: #194277; }
        .btn-danger { border-color: #ffd9d9; background: #fff2f2; color: #ae2a2a; }
        .table-wrap { overflow: auto; }
        table {
            width: 100%;
            min-width: 860px;
            border-collapse: collapse;
        }
        th, td {
            border-bottom: 1px solid #ebf1fa;
            padding: 10px 8px;
            text-align: left;
            font-size: 13px;
            vertical-align: top;
        }
        th {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: .04em;
            color: #4f6687;
        }
        .status {
            border: 1px solid #cfeadb;
            background: #e9fff4;
            color: #1f7b53;
            border-radius: 10px;
            padding: 10px 12px;
            font-weight: 600;
            font-size: 13px;
        }
        .errors {
            border: 1px solid #ffd8d8;
            background: #fff3f3;
            color: #992b2b;
            border-radius: 10px;
            padding: 10px 12px;
            font-size: 13px;
        }
        .pagination {
            display: flex;
            gap: 6px;
            justify-content: flex-end;
            align-items: center;
            flex-wrap: wrap;
            margin-top: 12px;
        }
        .page-link {
            border: 1px solid #d0e1f5;
            border-radius: 8px;
            padding: 6px 10px;
            font-size: 12px;
            text-decoration: none;
            color: #194277;
            background: #fff;
        }
        .page-link.active {
            background: #007ee6;
            border-color: #007ee6;
            color: #fff;
        }
        .badge {
            border-radius: 999px;
            padding: 4px 9px;
            font-size: 12px;
            font-weight: 700;
        }
        .badge-admin { background: #e6f3ff; color: #13569a; }
        .badge-user { background: #eff8ef; color: #206f2b; }
        .badge-pending { background:#fff7df; color:#8a5b00; }
        .badge-suspended { background:#fff0f0; color:#a52b2b; }
        .badge-rejected { background:#f0f1f4; color:#515866; }
        .muted { color: #637896; font-size: 12px; }
        @media (max-width: 1100px) { .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
        @media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 20;
        border-bottom: 1px solid #d9e6f6;
        backdrop-filter: blur(8px);
        background: rgba(255, 255, 255, 0.88);
    }
    .topbar-inner {
        width: calc(100% - 40px);
        max-width: none;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-height: 72px;
        flex-wrap: wrap;
        padding: 8px 0;
    }
    .brand {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: #10213e;
    }
    .brand-badge {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        background: linear-gradient(135deg, #007ee6, #1ec8a5);
        box-shadow: 0 10px 18px rgba(0, 126, 230, 0.22);
    }
    .brand-name {
        margin: 0;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 19px;
        letter-spacing: -0.01em;
    }
    .top-links {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .top-link {
        text-decoration: none;
        border: 1px solid #d7e5f7;
        color: #1b2f52;
        background: #fff;
        border-radius: 10px;
        padding: 8px 12px;
        font-size: 14px;
        font-weight: 600;
    }
    .top-link.active {
        background: #e7f3ff;
        border-color: #a7d4ff;
    }
    .nav-count {
        display: inline-grid;
        place-items: center;
        min-width: 20px;
        height: 20px;
        margin-left: 5px;
        padding: 0 6px;
        border-radius: 999px;
        background: #f59e0b;
        color: #fff;
        font-size: 11px;
        font-weight: 800;
    }
    .user-chip {
        border: 1px solid #d7e5f7;
        background: #fff;
        border-radius: 10px;
        padding: 8px 12px;
        font-size: 13px;
        color: #4a5f82;
        font-weight: 600;
    }
    .logout-btn {
        border: 1px solid #ffd8d8;
        background: #fff4f4;
        color: #a33333;
        border-radius: 10px;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }
    @media (max-width: 768px) {
        .topbar-inner {
            width: calc(100% - 20px);
            min-height: 66px;
        }
        .brand-name {
            font-size: 17px;
        }
    }

    .signup-title { margin:0 0 6px; font-family:'Space Grotesk',sans-serif; font-size:29px; letter-spacing:-.02em; }
    .signup-copy { margin:0 0 20px; color:#c3d6f2; font-size:14px; }
    .signup-notice { margin-bottom:18px; border:1px solid rgba(64,217,166,.35); background:rgba(64,217,166,.09); border-radius:12px; padding:11px 13px; color:#d9fff2; font-size:13px; }
    .signup-form { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
    .signup-field { display:grid; gap:7px; }
    .signup-field.full { grid-column:1 / -1; }
    .signup-field label { color:#d9e8fb; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
    .signup-input { width:100%; border:1px solid rgba(255,255,255,.2); border-radius:11px; background:rgba(255,255,255,.06); color:#f6fbff; padding:11px 13px; outline:none; }
    .signup-input:focus { border-color:rgba(0,179,255,.75); box-shadow:0 0 0 3px rgba(0,179,255,.18); }
    .signup-input::placeholder { color:#aebfd7; }
    .signup-error { margin:0; color:#ffbebe; font-size:12px; }
    .signup-actions { grid-column:1 / -1; display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:4px; }
    .signup-btn { border:1px solid transparent; border-radius:11px; padding:11px 12px; text-align:center; text-decoration:none; font-weight:700; font-size:14px; cursor:pointer; }
    .signup-primary { background:linear-gradient(120deg,#40d9a6,#00b3ff); color:#042130; }
    .signup-secondary { border-color:rgba(255,255,255,.24); color:#eff7ff; background:rgba(255,255,255,.03); }
    @media(max-width:560px) { .signup-form { grid-template-columns:1fr; } .signup-field.full,.signup-actions { grid-column:auto; } }

        .card {
            background: #fff;
            border: 1px solid #dbe6f5;
            border-radius: 14px;
            padding: 16px;
            box-shadow: 0 8px 20px rgba(16, 26, 47, 0.05);
        }
        .grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }
        .item {
            border: 1px solid #ebf1fa;
            border-radius: 10px;
            padding: 10px 12px;
            background: #f9fcff;
        }
        .label {
            font-size: 12px;
            color: #597190;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            font-weight: 700;
            margin-bottom: 5px;
        }
        .value {
            font-size: 14px;
            color: #1a345a;
            font-weight: 600;
            word-break: break-word;
        }
        .actions { margin-top: 12px; display:flex; gap:8px; flex-wrap:wrap; }
        .btn {
            border: 1px solid #d0e1f5;
            border-radius: 10px;
            padding: 9px 12px;
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            color: #194277;
            background: #fff;
        }
        @media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }

    .login-title {
        margin: 0 0 6px;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 30px;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }
    .login-subtitle {
        margin: 0 0 22px;
        color: #c3d6f2;
        font-size: 15px;
    }
    .login-form {
        display: grid;
        gap: 14px;
    }
    .field-label {
        display: block;
        margin-bottom: 7px;
        font-size: 13px;
        font-weight: 600;
        color: #d9e8fb;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }
    .field-input {
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        color: #f6fbff;
        padding: 12px 14px;
        font-size: 15px;
        outline: none;
        transition: border-color .2s ease, box-shadow .2s ease;
    }
    .field-input:focus {
        border-color: rgba(0, 179, 255, 0.75);
        box-shadow: 0 0 0 3px rgba(0, 179, 255, 0.2);
    }
    .field-input::placeholder {
        color: #b5c6de;
    }
    .login-row {
        display: flex;
        justify-content: flex-end;
        margin-top: -2px;
    }
    .login-row a {
        color: #b9d8ff;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
    }
    .login-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 6px;
    }
    .btn-main,
    .btn-ghost {
        border-radius: 12px;
        border: 1px solid transparent;
        text-align: center;
        padding: 11px 12px;
        font-weight: 700;
        font-size: 14px;
        text-decoration: none;
        cursor: pointer;
    }
    .btn-main {
        background: linear-gradient(120deg, #40d9a6, #00b3ff);
        color: #042130;
    }
    .btn-ghost {
        border-color: rgba(255, 255, 255, 0.26);
        background: rgba(255, 255, 255, 0.03);
        color: #eff7ff;
    }
    .oauth-wrap {
        margin-top: 10px;
    }
    .oauth-wrap img {
        max-width: 220px;
        height: auto;
    }
    .login-alert {
        border: 1px solid rgba(255, 123, 123, .45);
        background: rgba(127, 29, 29, .25);
        color: #ffd7d7;
        border-radius: 10px;
        padding: 10px 12px;
        font-size: 13px;
        margin-bottom: 14px;
    }
    .login-success { border-color:rgba(64,217,166,.4); background:rgba(20,113,93,.25); color:#d9fff2; }
    .oauth-disabled { opacity: .55; cursor: not-allowed; }

/* Shared application shell */
[x-cloak] { display: none !important; }
.app-body {
    min-height: 100vh;
    overflow-x: hidden;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .95);
    border-bottom: 1px solid #d9e6f6;
    backdrop-filter: blur(10px);
}

.topbar-inner {
    width: 100%;
    min-height: 70px;
    padding: 9px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: nowrap;
}

.topbar-brand-wrap,
.brand {
    display: flex;
    align-items: center;
}

.topbar-brand-wrap { gap: 13px; min-width: 0; }
.brand { gap: 10px; color: #10213e; text-decoration: none; }
.brand-badge { flex: 0 0 auto; }
.brand-name { white-space: nowrap; }
.brand-slogan {
    padding-left: 13px;
    border-left: 1px solid #d8e4f3;
    color: #6a7d98;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.sidebar-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid #d5e3f3;
    border-radius: 10px;
    background: #fff;
    color: #18375f;
    font-size: 20px;
    cursor: pointer;
}

.app-shell {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    min-height: calc(100vh - 70px);
}

.app-sidebar {
    position: sticky;
    top: 70px;
    align-self: start;
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    background: linear-gradient(180deg, #10213e 0%, #132c50 100%);
    border-right: 1px solid #203b61;
    color: #fff;
    overflow-y: auto;
    z-index: 40;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 9px 18px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.11);
}

.sidebar-avatar {
    width: 39px;
    height: 39px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #007ee6, #1ec8a5);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
}

.sidebar-user div { min-width: 0; display: grid; gap: 2px; }
.sidebar-user strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.sidebar-user span:last-child { color: #9fb4d0; font-size: 11px; }
.sidebar-nav { display: grid; gap: 7px; }
.sidebar-section-label { margin:10px 11px 0; color:#708aaa; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.12em; }
.sidebar-link-subtle { min-height:39px; font-size:13px; }

.sidebar-link {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #c9d8eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.sidebar-link.active { color: #fff; background: linear-gradient(120deg, rgba(0,126,230,.38), rgba(30,200,165,.2)); border-color: rgba(117,197,255,.25); }
.sidebar-icon { width: 28px; text-align: center; color: #80c9ff; font-size: 18px; }
.sidebar-count { min-width: 22px; padding: 3px 7px; border-radius: 999px; background: #f59e0b; color: #fff; text-align: center; font-size: 11px; font-weight: 800; }
.sidebar-foot { margin-top: auto; padding: 15px 10px 4px; border-top: 1px solid rgba(255,255,255,.1); color: #8299b8; font-size: 11px; text-align: center; }
.sidebar-backdrop { display: none; }
.app-workspace { min-width: 0; }
.app-workspace .container { width: calc(100% - 32px); }

@media (max-width: 900px) {
    .sidebar-toggle { display: grid; place-items: center; }
    .brand-slogan { display: none; }
    .app-shell { display: block; }
    .app-sidebar {
        position: fixed;
        top: 70px;
        left: 0;
        width: 270px;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 18px 0 40px rgba(7,20,40,.25);
    }
    .sidebar-backdrop {
        position: fixed;
        inset: 70px 0 0;
        z-index: 35;
        display: block;
        background: rgba(6,18,35,.46);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, visibility .2s ease;
    }
    .sidebar-open .app-sidebar { transform: translateX(0); }
    .sidebar-open .sidebar-backdrop { opacity: 1; visibility: visible; }
    .sidebar-open { overflow: hidden; }
}

@media (max-width: 560px) {
    .topbar-inner { padding: 8px 10px; }
    .brand-name { font-size: 15px; max-width: 165px; overflow: hidden; text-overflow: ellipsis; }
    .brand-badge { width: 31px; height: 31px; }
    .logout-btn { padding: 8px 9px; }
    .app-workspace .container { width: calc(100% - 14px); }
}

/* Reusable view utilities */
.page-heading-row { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.page-subtitle { margin:5px 0 0; color:#637896; font-size:14px; }
.section-title-sm { margin:0 0 12px; font-family:'Space Grotesk',sans-serif; }
.filter-grow { flex:1; min-width:280px; }
.filter-input { flex:1; min-width:220px; border:1px solid #d7e5f7; border-radius:10px; padding:9px 11px; }
.filter-select { border:1px solid #d7e5f7; border-radius:10px; padding:9px 11px; }
.readonly-input { background:#f4f8ff !important; color:#5e7393; }
.form-actions-inline { display:flex !important; align-items:center; flex-direction:row; gap:12px; }
.single-column { grid-template-columns:1fr !important; }
.inline-btn { display:inline-block; }
.edit-form { margin-top:8px; min-width:320px; }
.edit-form-sm { min-width:280px; }
.mt-6 { margin-top:6px; }.mt-8 { margin-top:8px; }.mt-10 { margin-top:10px; }.mt-12 { margin-top:12px; }.mt-14 { margin-top:14px; }
.mb-6 { margin-bottom:6px; }.mb-12 { margin-bottom:12px; }
.page-link.disabled { opacity:.5; }

/* Shared compact tables, status pills and CRUD dialogs */
.data-table { width:100%; border-collapse:collapse; }
.data-table th { height:38px; padding:7px 9px; background:#f5f8fc; color:#526987; font-size:11px; white-space:nowrap; }
.data-table td { height:44px; padding:6px 9px; vertical-align:middle; font-size:12px; line-height:1.3; }
.data-table tbody tr:hover { background:#f8fbff; }
.compact-table .muted { font-size:11px; }
.action-column { min-width:210px; }
.table-actions { display:flex; align-items:center; gap:5px; flex-wrap:nowrap; white-space:nowrap; }
.table-actions form { display:inline-flex; flex:0 0 auto; margin:0; }
.table-actions .btn { flex:0 0 auto; }
.user-actions-column { width:1%; min-width:320px; white-space:nowrap; }
.user-actions-column .table-actions { width:max-content; }
.btn-compact { padding:6px 8px; border-radius:8px; font-size:11px; line-height:1; }
.btn-warning { border-color:#f4d28b; background:#fff8e8; color:#8a5b00; }
.table-status-pill { display:inline-flex; align-items:center; min-height:22px; padding:3px 8px; border-radius:999px; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.03em; white-space:nowrap; }
.status-active { background:#e2f8ef; color:#13715b; }
.status-expiring,.status-pending { background:#fff3d6; color:#8a5b00; }
.status-expired,.status-rejected { background:#ffeded; color:#a72e2e; }
.status-suspended { background:#eef0f4; color:#515866; }
.crud-dialog { width:min(980px,calc(100% - 24px)); max-height:90vh; padding:0; border:0; border-radius:18px; background:transparent; box-shadow:0 25px 80px rgba(7,25,50,.28); }
.crud-dialog::backdrop { background:rgba(6,18,35,.62); backdrop-filter:blur(3px); }
.crud-modal { max-height:90vh; overflow:auto; padding:20px; border:1px solid #d7e3f2; border-radius:18px; background:#fff; }
.crud-modal-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:18px; padding-bottom:13px; border-bottom:1px solid #e7edf6; }
.crud-modal-head h3 { margin:0; font-family:'Space Grotesk',sans-serif; font-size:20px; color:#152e53; }
.crud-modal-head p { margin:4px 0 0; color:#697e99; font-size:13px; }
.modal-close { width:34px; height:34px; flex:0 0 auto; border:1px solid #d8e4f2; border-radius:10px; background:#f7faff; color:#49617f; font-size:22px; line-height:1; cursor:pointer; }
.modal-form-grid { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
.crud-dialog .edit-form { min-width:0; margin-top:0; }
@media(max-width:800px){.modal-form-grid,.crud-dialog .row{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
@media(max-width:540px){.modal-form-grid,.crud-dialog .row{grid-template-columns:1fr !important;}.crud-modal{padding:14px;}.action-column{min-width:170px;}}

.clients-grid,.users-grid,.card,.panel,.app-workspace { min-width:0; }
.table-wrap { width:100%; max-width:100%; overflow-x:auto; overflow-y:hidden; overscroll-behavior-inline:contain; scrollbar-color:#8bb9e5 #edf4fb; scrollbar-width:auto; }
.table-wrap::-webkit-scrollbar { height:12px; }
.table-wrap::-webkit-scrollbar-track { background:#edf4fb; border-radius:999px; }
.table-wrap::-webkit-scrollbar-thumb { background:#8bb9e5; border:3px solid #edf4fb; border-radius:999px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background:#5f9fd8; }
.table-scroll-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:9px; color:#647a97; font-size:12px; }
.table-scroll-toolbar > div { display:flex; gap:6px; }
.scroll-btn { width:34px; height:30px; border:1px solid #cbdced; border-radius:8px; background:#f7fbff; color:#174a78; font-size:17px; font-weight:800; cursor:pointer; }
.scroll-btn:hover { background:#e8f4ff; border-color:#99c7ef; }
.dashboard-client-table { min-width:760px; }
.dashboard-client-table .btn { text-decoration:none; }
.dashboard-clients-panel { grid-column:span 12; }
.dashboard-clients-head { align-items:flex-end; flex-wrap:wrap; }
.dashboard-clients-head > div:first-child { display:grid; gap:4px; }
.dashboard-table-search { display:flex; align-items:center; gap:6px; flex:1; justify-content:flex-end; }
.dashboard-table-search input { width:min(360px,100%); min-width:220px; border:1px solid #d4e2f1; border-radius:9px; padding:8px 10px; font-size:12px; outline:none; }
.dashboard-table-search input:focus { border-color:#83bff2; box-shadow:0 0 0 3px rgba(0,126,230,.1); }
.compact-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:12px; color:#687d98; font-size:12px; }
.compact-pagination > div { display:flex; gap:6px; }
@media(max-width:650px){.dashboard-table-search{justify-content:flex-start;flex-wrap:wrap}.dashboard-table-search input{width:100%}.compact-pagination{align-items:flex-start;flex-direction:column}}
