:root {
    --bg: #f8f6f1;
    --bg-soft: #fcfbf8;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --line: #e9e2d6;
    --line-soft: #f1ece3;

    --text: #1d2433;
    --text-soft: #6d7485;
    --text-muted: #9399a6;

    --primary: #1d4ed8;
    --primary-soft: #e8f0ff;

    --gold: #c8a95b;
    --gold-soft: #f8f1df;

    --success: #15803d;
    --success-bg: #eaf8ef;

    --danger: #b42318;
    --danger-bg: #fdecec;

    --warning: #b7791f;
    --warning-bg: #fff8e8;

    --shadow-sm: 0 8px 22px rgba(23, 29, 41, 0.06);
    --shadow-md: 0 16px 40px rgba(23, 29, 41, 0.08);
    --shadow-lg: 0 24px 70px rgba(23, 29, 41, 0.12);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --sidebar-width: 270px;
    --transition: 0.25s ease;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, #fff7e8 0%, transparent 28%),
        radial-gradient(circle at bottom right, #eef4ff 0%, transparent 22%),
        var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
}

.auth-side {
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.auth-logo {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff5d8, #f3e3a9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), var(--shadow-sm);
    display: grid;
    place-items: center;
    color: #8b6a1e;
    font-size: 24px;
    font-weight: 700;
}

.auth-brand h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-brand p {
    margin: 4px 0 0;
    color: var(--text-soft);
    font-size: 14px;
}

.auth-copy {
    max-width: 640px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(200,169,91,.25);
    color: #8b6a1e;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(12px);
    margin-bottom: 22px;
}

.auth-copy h2 {
    margin: 0 0 14px;
    font-size: 52px;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.auth-copy p {
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.75;
    max-width: 560px;
}

.auth-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.feature-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    padding: 18px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.feature-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fdf6e5, #f7e9c3);
    color: #8b6a1e;
    margin-bottom: 14px;
    font-weight: 700;
}

.feature-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.feature-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-soft);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 30px;
    padding: 34px;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #d9b76a, #f4e5b5, #caa24d);
}

.auth-card h3 {
    margin: 10px 0 8px;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.auth-card .subtext {
    margin: 0 0 26px;
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 14px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.88);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: rgba(29, 78, 216, 0.35);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
    transform: translateY(-1px);
}

.btn {
    border: 0;
    border-radius: 16px;
    padding: 14px 18px;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    font-weight: 700;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    width: 100%;
    color: #fff;
    background: linear-gradient(135deg, #2a5be7, #1744c6);
    box-shadow: 0 18px 30px rgba(29, 78, 216, 0.18);
}

.btn-primary:hover {
    box-shadow: 0 20px 34px rgba(29, 78, 216, 0.22);
}

.btn-light {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
}

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: #caeed6;
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: #f6caca;
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: #f2deb2;
}

.auth-footer-note {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.layout {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 320px;
    max-width: 86%;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    z-index: 1200;
    padding-bottom: 24px;
}

body.sidebar-open {
    overflow: hidden;
}


.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 10px 18px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 18px;
}

.sidebar-brand .logo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff5d6, #efd28a);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
    color: #7b5c15;
    font-weight: 800;
    font-size: 20px;
}

.sidebar-brand h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.sidebar-brand p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-soft);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-title {
    margin: 14px 10px 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 18px;
    color: var(--text-soft);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(180deg, #fff9ed, #fff4d9);
    color: #7a5b16;
    transform: translateX(2px);
}

.nav-link .nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    font-weight: 700;
}

.sidebar-footer {
    margin-top: auto;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fffdfa, #f8f3e9);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
}

.sidebar-footer .label {
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-footer .name {
    margin-top: 6px;
    font-weight: 700;
}

.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 26px;
}

.topbar {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.88);
    backdrop-filter: blur(18px);
    border-radius: 24px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.topbar-left h1 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.03em;
}

.topbar-left p {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 14px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--line);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--text-soft);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 26px;
    padding: 22px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.card-subtitle {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(241,224,179,0.55), transparent 68%);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #fff6df, #f5e4b1);
    color: #7f611a;
    box-shadow: var(--shadow-sm);
    font-size: 18px;
    font-weight: 700;
}

.stat-label {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0;
}

.stat-meta {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 13px;
}

.two-col {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
}

.table th {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-primary {
    background: var(--primary-soft);
    color: var(--primary);
}

.list {
    display: grid;
    gap: 14px;
}

.list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.72);
    border: 1px solid var(--line-soft);
}

.list-item h4 {
    margin: 0 0 5px;
    font-size: 14px;
}

.list-item p {
    margin: 0;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 1.6;
}

.mobile-menu-btn {
    display: none;
    border: 0;
    background: #fff;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.overlay {
    display: none;
}

@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .auth-copy h2 {
        font-size: 42px;
    }
}

@media (max-width: 992px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-side {
        padding: 28px 22px 12px;
    }

    .auth-panel {
        padding: 16px 22px 28px;
    }

    .auth-features {
        grid-template-columns: 1fr;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.28);
        z-index: 105;
    }

    .content {
        margin-left: 0;
        padding: 18px;
    }

    .mobile-menu-btn {
        display: inline-grid;
        place-items: center;
    }

    .topbar {
        padding: 16px;
        border-radius: 20px;
    }

    .topbar-left h1 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .auth-copy h2 {
        font-size: 34px;
    }

    .auth-card {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-right {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .card {
        border-radius: 22px;
        padding: 18px;
    }

    .sidebar {
        width: 86%;
        max-width: 320px;
    }
}
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.page-head h2 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.page-head p {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 14px;
}

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-gold {
    background: linear-gradient(135deg, #d7b86a, #bf9a44);
    color: #fff;
    box-shadow: 0 18px 32px rgba(191, 154, 68, 0.22);
}

.btn-gold:hover {
    box-shadow: 0 20px 36px rgba(191, 154, 68, 0.28);
}

.btn-danger {
    background: linear-gradient(135deg, #d9534f, #ba2d2d);
    color: #fff;
}

.btn-sm {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
}

.form-card {
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.form-helper {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.88);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select:focus,
.form-textarea:focus {
    border-color: rgba(29, 78, 216, 0.35);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
    transform: translateY(-1px);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.table-empty {
    text-align: center;
    color: var(--text-soft);
    padding: 28px 16px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--text-soft);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--primary);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .page-head {
        flex-direction: column;
        align-items: stretch;
    }
}
.table {
    min-width: 900px;
}

.table th,
.table td {
    vertical-align: middle;
    white-space: normal;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-size: 16px;
}

.layout {
    min-height: 100vh;
    display: flex;
}

.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 26px;
    min-width: 0;
}

.card,
.topbar,
.sidebar,
.auth-card,
.feature-card,
.list-item {
    min-width: 0;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    min-width: 1000px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.btn-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .layout {
        display: block;
    }

    .sidebar {
        width: 86%;
        max-width: 320px;
        position: fixed;
        inset: 0 auto 0 0;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 110;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .overlay.show {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(17, 24, 39, 0.28);
        z-index: 105;
    }

    .content {
        margin-left: 0 !important;
        width: 100%;
        max-width: 100%;
        padding: 16px;
    }

    .topbar {
        padding: 16px;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .topbar-left h1 {
        font-size: 24px;
        line-height: 1.2;
        margin: 0;
    }

    .topbar-left p {
        font-size: 14px;
        line-height: 1.6;
        margin: 6px 0 0;
        word-break: break-word;
    }

    .topbar-right {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: inline-grid;
        place-items: center;
    }

    .page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 18px;
        border-radius: 22px;
    }

    .table {
        min-width: 900px;
    }
}

@media (max-width: 640px) {
    .content {
        padding: 14px;
    }

    .topbar-left h1,
    .page-head h2 {
        font-size: 22px;
    }

    .btn,
    .btn-light,
    .btn-gold {
        width: auto;
        min-height: 46px;
    }

    .table {
        min-width: 820px;
    }

    .card-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}
/* PPOB Bot v2.0 */
:root { --sidebar-width: 320px; }
.sidebar { padding: 18px 14px 24px; display:flex; flex-direction:column; }
.sidebar-footer { margin-top: 24px; }
.sidebar-logout { display:block; margin-top:12px; padding:10px 12px; border-radius:12px; text-align:center; background:#fff; border:1px solid var(--line); color:var(--danger); font-weight:700; }
.mobile-menu-btn { display:none; width:46px; height:46px; border:1px solid var(--line); border-radius:14px; background:#fff; font-size:20px; }
.btn.compact { width:auto; min-width:150px; }
.full-btn { width:100%; }
.integration-grid { grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr); align-items:start; }
.ppob-form-card .btn-row { margin-top:22px; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.form-grid .full { grid-column:1/-1; }
.check-row { display:flex; align-items:center; gap:10px; margin-top:16px; padding:12px 14px; border:1px solid var(--line-soft); border-radius:14px; background:var(--bg-soft); font-weight:600; }
.check-row input { width:18px; height:18px; }
.action-stack { display:grid; gap:10px; margin-top:18px; }
.endpoint-box { display:grid; gap:7px; margin-top:14px; padding:14px; border:1px solid var(--line-soft); border-radius:16px; background:#f8fafc; min-width:0; }
.endpoint-box span { font-size:12px; color:var(--text-soft); font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.endpoint-box code { display:block; overflow-wrap:anywhere; color:#173f9e; font-size:12px; }
.endpoint-box.sensitive { background:#fff8e8; }
.small-note { margin:14px 0 0; color:var(--text-muted); font-size:12px; line-height:1.5; }
.filter-bar { display:grid; grid-template-columns:minmax(220px,2fr) minmax(170px,1fr) minmax(150px,.8fr) auto; gap:10px; margin:18px 0; align-items:end; }
.ppob-table { width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; border:1px solid var(--line-soft); border-radius:18px; }
.ppob-table .table { min-width:1040px; margin:0; }
.table td small { display:block; color:var(--text-muted); margin-top:4px; }
.table td code { white-space:nowrap; }
.empty-cell { text-align:center; padding:36px !important; color:var(--text-muted); }
.table-action { padding:9px 13px; min-height:auto !important; white-space:nowrap; }
.badge-danger { background:var(--danger-bg); color:var(--danger); }
.pagination-row { display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }
.page-btn { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; border:1px solid var(--line); background:#fff; font-weight:700; }
.page-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.detail-grid { grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr); align-items:start; }
.full-span { grid-column:1/-1; }
.detail-list { display:grid; gap:0; margin-top:14px; }
.detail-list.columns { grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:28px; }
.detail-list > div { display:flex; justify-content:space-between; gap:20px; padding:14px 0; border-bottom:1px solid var(--line-soft); }
.detail-list span { color:var(--text-soft); }
.detail-list strong { text-align:right; overflow-wrap:anywhere; }
.no-margin { margin:18px 0 0; }
.ppob-stats .stat-value.money { font-size:25px; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr); gap:20px; margin-top:20px; align-items:start; }
.secure-flow { display:grid; grid-template-columns:34px 1fr; gap:12px; margin-top:16px; align-items:start; }
.secure-flow span { width:30px; height:30px; display:grid; place-items:center; border-radius:10px; background:var(--primary-soft); color:var(--primary); font-weight:800; }
.secure-flow p { margin:4px 0 14px; color:var(--text-soft); line-height:1.55; }

@media (max-width: 1100px) {
    .grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .integration-grid,.dashboard-grid,.detail-grid { grid-template-columns:1fr; }
    .full-span { grid-column:auto; }
}
@media (max-width: 992px) {
    .sidebar { width:min(86vw,320px); }
    .mobile-menu-btn { display:grid; place-items:center; }
    .filter-bar { grid-template-columns:1fr 1fr; }
}
@media (max-width: 640px) {
    .grid-4 { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .ppob-stats .card { padding:16px; }
    .ppob-stats .stat-value { font-size:23px; }
    .ppob-stats .stat-value.money { font-size:18px; }
    .form-grid,.filter-bar,.detail-list.columns { grid-template-columns:1fr; }
    .detail-list > div { flex-direction:column; gap:5px; }
    .detail-list strong { text-align:left; }
    .topbar-right .chip { max-width:100%; }
}
@media (max-width: 390px) {
    .grid-4 { grid-template-columns:1fr; }
}

/* Bot PPOB v2.3 — settings, integration, and diagnostics */
.chip-success {
    background: var(--success-bg) !important;
    color: var(--success) !important;
    border-color: rgba(21, 128, 61, .18) !important;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.status-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    background: rgba(255,255,255,.84);
    box-shadow: var(--shadow-sm);
}

.status-card > span,
.health-card > span {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.status-card > strong {
    display: block;
    margin-top: 9px;
    font-size: 22px;
    overflow-wrap: anywhere;
}

.status-card > small {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.settings-page-form {
    display: grid;
    gap: 18px;
}

.settings-nav {
    position: sticky;
    top: 12px;
    z-index: 20;
    display: flex;
    gap: 8px;
    padding: 10px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.settings-nav a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 750;
    transition: background var(--transition), color var(--transition);
}

.settings-nav a:hover,
.settings-nav a:focus-visible {
    background: var(--primary-soft);
    color: var(--primary);
}

.settings-section {
    scroll-margin-top: 92px;
}

.compact-textarea {
    min-height: 96px !important;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.saved-mark {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 10px;
    font-weight: 800;
    vertical-align: middle;
}

.settings-toggle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.setting-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: var(--bg-soft);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.setting-toggle:hover {
    border-color: rgba(29,78,216,.24);
    background: #f8faff;
    transform: translateY(-1px);
}

.setting-toggle input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.setting-toggle span {
    min-width: 0;
}

.setting-toggle strong,
.setting-toggle small {
    display: block;
}

.setting-toggle strong {
    font-size: 14px;
}

.setting-toggle small {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.45;
}

.setting-toggle.danger-toggle {
    border-color: rgba(180,35,24,.16);
    background: #fff9f9;
}

.setting-toggle.danger-toggle input {
    accent-color: var(--danger);
}

.sticky-save-bar {
    position: sticky;
    bottom: 12px;
    z-index: 18;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(29,78,216,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 15px 40px rgba(20,35,75,.12);
}

.sticky-save-bar p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.integration-actions {
    margin-top: 20px;
}

.integration-actions .btn {
    min-width: 150px;
}

.debug-box {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: #0c1e3a;
    color: #e6efff;
    overflow: hidden;
}

.debug-box strong {
    color: #fff;
}

.debug-box code {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: inherit;
    font-size: 12px;
    line-height: 1.55;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.health-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: rgba(255,255,255,.86);
    box-shadow: var(--shadow-sm);
}

.health-card strong,
.health-card small {
    display: block;
}

.health-card strong {
    margin-top: 8px;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.health-card small {
    margin-top: 6px;
    font-size: 11px;
}

.health-card.is-ok {
    border-color: rgba(21,128,61,.18);
    background: linear-gradient(145deg, #fff, var(--success-bg));
}

.health-card.is-ok small {
    color: var(--success);
}

.health-card.is-error {
    border-color: rgba(180,35,24,.18);
    background: linear-gradient(145deg, #fff, var(--danger-bg));
}

.health-card.is-error small {
    color: var(--danger);
}

.inline-note.warning-note {
    margin: 14px 0;
    padding: 13px 14px;
    border: 1px solid rgba(183,121,31,.2);
    border-radius: 14px;
    background: var(--warning-bg);
    color: var(--warning);
    line-height: 1.55;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

button[disabled],
.btn.is-loading {
    cursor: wait;
    opacity: .72;
    pointer-events: none;
}

.btn.is-loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 9px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: ppob-spin .7s linear infinite;
}

@keyframes ppob-spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
    .status-grid,
    .health-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .status-grid,
    .health-grid,
    .settings-toggle-grid {
        grid-template-columns: 1fr;
    }

    .status-card,
    .health-card {
        padding: 15px;
    }

    .settings-nav {
        top: 6px;
        margin-left: -2px;
        margin-right: -2px;
    }

    .sticky-save-bar {
        bottom: 8px;
        align-items: stretch;
        flex-direction: column;
    }

    .sticky-save-bar .btn,
    .integration-actions .btn {
        width: 100%;
    }

    .integration-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* PPOB manual payment v2.4 */
.manual-payment-detail-grid {
    align-items: start;
}

.manual-proof-image {
    display: block;
    width: 100%;
    max-width: 680px;
    max-height: 720px;
    margin: 0 auto 20px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(21, 34, 56, .08);
}

.proof-image-link {
    display: block;
}

.proof-document {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px dashed var(--border);
    border-radius: 16px;
    background: var(--surface-soft, #f7f9fc);
}

.manual-review-actions {
    overflow: visible;
}

.review-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.review-action-grid form {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-soft, #f8fafc);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.empty-state.compact {
    min-height: 180px;
    margin-bottom: 18px;
}

@media (max-width: 760px) {
    .review-action-grid {
        grid-template-columns: 1fr;
    }

    .proof-document {
        align-items: stretch;
        flex-direction: column;
    }

    .manual-proof-image {
        max-height: 520px;
        border-radius: 14px;
    }
}

.manual-method-qr-preview{margin:0 0 14px;display:inline-flex;padding:10px;border:1px solid rgba(15,23,42,.1);border-radius:18px;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.08)}
.manual-method-qr-preview img{display:block;width:150px;height:150px;object-fit:contain;border-radius:10px}
.table-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.table-actions form{margin:0}
@media(max-width:640px){.manual-method-qr-preview img{width:132px;height:132px}.table-actions{min-width:170px}}

/* Manual payment actions v2.5 */
.manual-inline-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 210px;
}
.manual-inline-actions form { margin: 0; }
.manual-inline-actions .btn { white-space: nowrap; }
@media (max-width: 760px) {
    .manual-inline-actions { min-width: 250px; }
}

/* License Center client UI v2.2 */
.license-page {
    max-width: 1480px;
}

.license-top-chip,
.integrity-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .02em;
    white-space: nowrap;
}

.license-state-active {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(21,128,61,.18);
}

.license-state-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(183,121,31,.20);
}

.license-state-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(180,35,24,.18);
}

.license-callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding: 17px 18px;
    border-radius: 20px;
    border: 1px solid transparent;
}

.license-callout.danger {
    background: var(--danger-bg);
    color: #842018;
    border-color: rgba(180,35,24,.16);
}

.license-callout.warning {
    background: var(--warning-bg);
    color: #8a5a14;
    border-color: rgba(183,121,31,.18);
}

.license-callout-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.72);
    font-weight: 900;
}

.license-callout strong,
.license-callout p {
    display: block;
}

.license-callout p {
    margin: 5px 0 0;
    line-height: 1.6;
    font-size: 13px;
}

.license-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 24px;
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
}

.license-hero h2 {
    margin: 5px 0 7px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
}

.license-hero p {
    max-width: 820px;
    margin: 0;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.license-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .11em;
}

.license-hero-mark {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(255,255,255,.72);
    font-size: 28px;
    font-weight: 900;
    box-shadow: var(--shadow-sm);
}

.license-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.license-info-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    background: rgba(255,255,255,.86);
    box-shadow: var(--shadow-sm);
}

.license-info-card > span,
.hash-grid label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.license-info-card > strong {
    display: block;
    font-size: 17px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.license-info-card > small {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    line-height: 1.5;
}

.copy-line {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.copy-line code {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: #f7f9fc;
    color: #27364b;
    overflow-wrap: anywhere;
    word-break: break-all;
    font-size: 12px;
    line-height: 1.45;
}

.copy-btn {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 9px 11px;
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.license-integrity-card,
.license-activation-card {
    margin-bottom: 18px;
}

.integrity-pill.ok {
    background: var(--success-bg);
    color: var(--success);
}

.integrity-pill.bad {
    background: var(--danger-bg);
    color: var(--danger);
}

.hash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}

.license-missing-files {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(180,35,24,.16);
    border-radius: 16px;
    background: var(--danger-bg);
    color: var(--danger);
}

.license-missing-files ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.license-activation-form {
    max-width: 860px;
}

.license-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.license-action-row .btn {
    width: auto;
    min-width: 190px;
}

@media (max-width: 760px) {
    .license-page {
        padding: 12px;
    }

    .license-page .topbar {
        margin-bottom: 14px;
    }

    .license-hero {
        align-items: flex-start;
        padding: 19px;
        border-radius: 22px;
    }

    .license-hero-mark {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 22px;
    }

    .license-info-grid,
    .hash-grid {
        grid-template-columns: 1fr;
    }

    .copy-line {
        align-items: stretch;
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }

    .license-action-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .license-action-row .btn {
        width: 100%;
        min-width: 0;
    }
}

/* Catalog management and subtle interaction polish */
.catalog-page {
    padding-bottom: 48px;
}

.inline-form {
    margin: 0;
}

.catalog-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.catalog-stat {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.catalog-stat:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 78, 216, .16);
    box-shadow: var(--shadow-md);
}

.catalog-stat span,
.meta-label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.catalog-stat strong {
    display: block;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.1;
}

.catalog-stat small,
.catalog-cron-grid small {
    display: block;
    margin-top: 7px;
    color: var(--text-muted);
    line-height: 1.5;
}

.catalog-sync-card {
    overflow: hidden;
}

.catalog-cron-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
    gap: 18px;
    padding-top: 4px;
}

.catalog-cron-grid > div {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 17px;
    background: var(--bg-soft);
}

.catalog-cron-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
}

.status-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(255,255,255,.55);
}

.status-dot.ok {
    background: var(--success-bg);
    color: var(--success);
}

.status-dot.warn {
    background: var(--warning-bg);
    color: var(--warning);
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: rgba(248, 250, 252, .82);
}

.check-control {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.check-control input,
.check-cell input,
.category-manage-card input,
.exclusion-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.category-manage-card {
    position: relative;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 20px rgba(23,29,41,.045);
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.category-manage-card:hover {
    transform: translateY(-2px);
    border-color: rgba(29,78,216,.2);
    box-shadow: var(--shadow-sm);
}

.category-manage-card:has(input:checked) {
    border-color: rgba(29,78,216,.36);
    background: var(--primary-soft);
}

.category-manage-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--bg-soft);
    font-size: 22px;
}

.category-manage-body {
    min-width: 0;
}

.category-manage-body strong,
.category-manage-body small,
.category-manage-body em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-manage-body strong {
    white-space: nowrap;
}

.category-manage-body small {
    margin-top: 4px;
    color: var(--text-soft);
}

.category-manage-body em {
    margin-top: 5px;
    color: var(--text-muted);
    font-size: 11px;
    font-style: normal;
    white-space: nowrap;
}

.catalog-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(170px, .8fr) minmax(150px, .6fr) auto auto;
    gap: 10px;
    align-items: center;
}

.btn-ghost {
    background: transparent;
    border: 1px dashed var(--line);
    color: var(--text-soft);
}

.catalog-table .check-cell {
    width: 46px;
    min-width: 46px;
    text-align: center;
}

.table-subtext {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.exclusion-list {
    display: grid;
    gap: 9px;
}

.exclusion-item {
    position: relative;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid var(--line-soft);
    border-radius: 15px;
    background: rgba(255,255,255,.94);
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.exclusion-item:hover {
    transform: translateY(-1px);
    border-color: rgba(29,78,216,.18);
}

.exclusion-item:has(input:checked) {
    background: var(--primary-soft);
    border-color: rgba(29,78,216,.3);
}

.exclusion-type {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.exclusion-item strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.exclusion-item small {
    color: var(--text-muted);
    white-space: nowrap;
}

.empty-panel {
    grid-column: 1 / -1;
    padding: 26px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    color: var(--text-soft);
    text-align: center;
    background: var(--bg-soft);
}

.btn,
.page-btn,
.category-manage-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.btn:active,
.page-btn:active,
.category-manage-card:active {
    transform: translateY(0) scale(.985);
}

.btn:focus-visible,
.page-btn:focus-visible,
.category-manage-card:focus-within {
    outline: 3px solid rgba(29,78,216,.18);
    outline-offset: 2px;
}

.ui-ripple {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    background: currentColor;
    opacity: .12;
    pointer-events: none;
    transform: scale(0);
    animation: ui-ripple .62s ease-out forwards;
}

@keyframes ui-ripple {
    to { transform: scale(1); opacity: 0; }
}

.copy-btn.copy-success {
    border-color: rgba(21,128,61,.28);
    background: var(--success-bg);
    color: var(--success);
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(248,246,241,.38);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.page-loader.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-loader-bar {
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    overflow: hidden;
    background: rgba(29,78,216,.1);
}

.page-loader-bar::after {
    content: "";
    display: block;
    width: 36%;
    height: 100%;
    background: var(--primary);
    animation: page-progress 1s ease-in-out infinite;
}

.page-loader-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(29,78,216,.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(29,78,216,.16);
    animation: ppob-spin .72s linear infinite;
}

@keyframes page-progress {
    from { transform: translateX(-120%); }
    to { transform: translateX(330%); }
}

@media (max-width: 1100px) {
    .catalog-stats,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-filter .btn {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .catalog-stats,
    .category-grid,
    .catalog-cron-grid,
    .catalog-filter {
        grid-template-columns: 1fr;
    }

    .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-toolbar .btn,
    .topbar-right .inline-form,
    .topbar-right .inline-form .btn {
        width: 100%;
    }

    .category-manage-card {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .exclusion-item {
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .exclusion-item small {
        grid-column: 2 / -1;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
