:root {
    --g1-primary: #1572e8;
    --g1-success: #31ce36;
    --g1-warning: #ffad46;
    --g1-danger: #f25961;
    --g1-dark: #1a2035;
    --g1-ink: #1f2937;
    --g1-muted: #6b7280;
    --g1-soft: #f7f9fc;
}

body {
    background: #f5f7fb;
}

.g1-logo,
.g1-logo:hover {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.g1-logo-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1572e8, #31ce36);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
}

.g1-logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.g1-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 18px 20px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
}

.g1-sidebar-profile strong {
    display: block;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}

.g1-sidebar-profile span {
    display: block;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    text-transform: capitalize;
}

.g1-logout-form {
    margin: 0;
}

.g1-logout-form button {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 10px 25px;
    color: #b9babf;
    font-size: 1rem;
    text-align: left;
}

.g1-premium-modal .modal-dialog {
    width: min(100% - 1.5rem, 1140px);
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.g1-premium-modal .modal-content {
    display: flex;
    max-height: min(calc(100vh - 2rem), 920px);
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.g1-premium-modal form,
.g1-premium-modal .g1-premium-modal__shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.g1-premium-modal__header {
    padding: 28px 32px 24px;
    border-bottom: 1px solid rgba(21, 114, 232, 0.10);
    background:
        radial-gradient(circle at top right, rgba(21, 114, 232, 0.10), transparent 32%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #f8fcfa 100%);
}

.g1-premium-modal__header-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-right: 28px;
}

.g1-premium-modal__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(21, 114, 232, 0.14), rgba(49, 206, 54, 0.12));
    color: var(--g1-primary);
    font-size: 24px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.g1-premium-modal__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--g1-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.g1-premium-modal .modal-title {
    color: var(--g1-dark);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.g1-premium-modal__subtitle {
    max-width: 680px;
    color: var(--g1-muted);
    font-size: 14px;
    line-height: 1.6;
}

.g1-premium-modal__close {
    margin: 0;
    opacity: .7;
}

.g1-premium-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 32px 20px;
    scrollbar-gutter: stable;
}

.g1-premium-section {
    padding: 22px;
    border: 1px solid #edf2f8;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    box-shadow: 0 14px 34px rgba(31, 45, 61, 0.04);
}

.g1-premium-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 18px;
    margin-bottom: 18px;
}

.g1-premium-section__title {
    margin: 0;
    color: var(--g1-dark);
    font-size: 15px;
    font-weight: 800;
}

.g1-premium-section__hint {
    color: var(--g1-muted);
    font-size: 12px;
    line-height: 1.5;
}

.g1-premium-label {
    display: block;
    margin-bottom: 8px;
    color: #42526b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
}

.g1-premium-input-wrap {
    position: relative;
}

.g1-premium-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #88a0bb;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.g1-premium-input-icon--top {
    top: 18px;
    transform: none;
}

.g1-premium-input,
.g1-premium-select,
.g1-premium-textarea {
    border: 1px solid #dfe7f1;
    border-radius: 16px;
    background: #fbfdff;
    color: var(--g1-ink);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.g1-premium-input,
.g1-premium-select {
    height: 52px;
    padding: 14px 16px 14px 46px;
}

.g1-premium-textarea {
    min-height: 126px;
    padding: 16px 16px 16px 46px;
    resize: vertical;
}

.g1-premium-select[multiple] {
    height: auto;
    min-height: 140px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.g1-premium-input::placeholder,
.g1-premium-textarea::placeholder {
    color: #9ca9ba;
    font-weight: 500;
}

.g1-premium-input:focus,
.g1-premium-select:focus,
.g1-premium-textarea:focus {
    border-color: rgba(21, 114, 232, 0.45);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(21, 114, 232, 0.10);
}

.g1-premium-input:disabled,
.g1-premium-select:disabled,
.g1-premium-textarea:disabled {
    background: #f4f7fb;
    color: #63758b;
}

.g1-premium-help {
    display: block;
    margin-top: 8px;
    color: var(--g1-muted);
    font-size: 12px;
    line-height: 1.5;
}

.g1-premium-modal__footer {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 32px 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    background: #fcfdff;
}

.cot-cli-footer-total {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;
    border: 1px solid rgba(21, 114, 232, 0.22);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(21, 114, 232, 0.12), rgba(21, 114, 232, 0.055));
    color: #1572e8;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(21, 114, 232, 0.10);
}

.cot-cli-footer-total span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #4b78ad;
}

.cot-cli-footer-total strong {
    color: #1262c6;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.cot-cli-footer {
    align-items: center;
    justify-content: space-between;
}

.cot-cli-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dataTables_wrapper .dataTables_length select {
    min-width: 76px;
    margin: 0 6px;
}

.dataTables_wrapper .dataTables_filter {
    text-align: right;
}

.dataTables_wrapper .dataTables_filter input {
    min-width: 240px;
    margin-left: 8px;
    border: 1px solid #dbe5f0;
    border-radius: 10px;
    padding: 8px 12px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    margin: 0 2px;
}

.help-center {
    color: #1f2937;
}

.help-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: end;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(21, 114, 232, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.help-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #1572e8;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.help-hero h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
}

.help-hero p,
.help-search label,
.help-section-head p {
    margin: 0;
    color: #64748b;
}

.help-search label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.help-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.help-nav {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid #e5edf6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.help-nav strong {
    margin-bottom: 8px;
    color: #0f172a;
}

.help-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.help-nav a:hover {
    background: rgba(21, 114, 232, 0.08);
    color: #1572e8;
    text-decoration: none;
}

.help-content {
    min-width: 0;
}

.help-section {
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid #e5edf6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    scroll-margin-top: 96px;
}

.help-section-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.help-section-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(21, 114, 232, 0.10);
    color: #1572e8;
    font-size: 22px;
}

.help-section h3 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
}

.help-shot,
.help-shot-placeholder {
    width: 100%;
    min-height: 220px;
    margin-bottom: 18px;
    border: 1px solid #dce7f3;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.help-shot {
    display: block;
    object-fit: cover;
}

.help-shot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fbff;
    color: #64748b;
    text-align: center;
}

.help-shot-placeholder i {
    color: #1572e8;
    font-size: 34px;
}

.help-shot-placeholder code {
    color: #1262c6;
}

.help-accordion .accordion-item {
    border-color: #e5edf6;
}

.help-accordion .accordion-button {
    font-weight: 800;
}

.help-steps,
.help-list {
    margin: 0;
    padding-left: 18px;
}

.help-steps li,
.help-list li {
    margin-bottom: 8px;
    line-height: 1.55;
}

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

.help-flow-step {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(21, 114, 232, 0.14);
    border-radius: 8px;
    background: #f8fbff;
}

.help-flow-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1572e8;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.help-flow-step strong {
    font-size: 13px;
}

.help-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    height: 100%;
    padding: 14px;
    border: 1px solid #e5edf6;
    border-radius: 8px;
    background: #f8fbff;
    font-weight: 700;
}

.help-tip i {
    color: #1a8754;
}

.help-back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1572e8;
    color: #fff;
    box-shadow: 0 10px 24px rgba(21, 114, 232, 0.28);
}

.help-back-top:hover {
    color: #fff;
}

.g1-premium-btn {
    min-width: 152px;
    height: 48px;
    padding: 0 22px;
    border-radius: 14px !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: none;
}

.g1-premium-btn--ghost {
    border: 1px solid #dbe5f0;
    background: #ffffff;
    color: #4f647d;
}

.g1-premium-btn--ghost:hover {
    background: #f6f9fc;
    color: #334155;
}

.g1-premium-btn--primary {
    border: 0;
    background: linear-gradient(135deg, #1572e8 0%, #1b84ff 55%, #3ba6ff 100%);
    box-shadow: 0 14px 28px rgba(21, 114, 232, 0.22);
}

.g1-premium-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(21, 114, 232, 0.26);
}
.g1-logout-form button i {
    width: 30px;
    margin-right: 15px;
    font-size: 18px;
}

.g1-logout-form button p {
    margin: 0;
    font-size: 14px;
    line-height: 30px;
}

.g1-logout-form button:hover {
    color: #fff;
}

.page-inner {
    padding-top: 28px;
}

.card {
    border: 0;
}

.card-round,
.module-panel,
.empty-state {
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(31, 45, 61, .06);
}

.module-panel,
.empty-state {
    background: #fff;
    padding: 28px;
}

.module-panel h2,
.empty-state h2 {
    font-weight: 700;
    margin-bottom: 8px;
}

.module-panel::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 24px;
    background: linear-gradient(90deg, rgba(21, 114, 232, .28), rgba(49, 206, 54, .18), transparent);
}

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

.g1-empty-dashboard {
    min-height: 260px;
    display: grid;
    place-items: center;
    gap: 10px;
    color: var(--g1-muted);
    text-align: center;
}

.g1-empty-dashboard i {
    font-size: 34px;
    color: #d8deea;
}

.g1-detail-box {
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid #eef1f6;
    border-radius: 8px;
    background: #fbfcff;
}

.g1-detail-box span {
    display: block;
    color: var(--g1-muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.g1-detail-box strong {
    display: block;
    color: var(--g1-ink);
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}

.g1-user-detail-modal {
    color: var(--g1-ink);
}

.g1-user-detail-profile {
    height: 100%;
    padding: 22px 18px;
    border: 1px solid #eef1f6;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.g1-user-detail-profile .avatar-xxl {
    width: 92px;
    height: 92px;
}

.g1-user-detail-profile .badge {
    margin: 2px;
}

.g1-user-detail-field {
    min-height: 82px;
    padding: 16px 18px;
    border: 1px solid #eef1f6;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.04);
}

.g1-user-detail-label {
    display: block;
    margin-bottom: 8px;
    color: var(--g1-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.g1-user-detail-value {
    display: block;
    color: var(--g1-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.chart-container {
    position: relative;
    height: 310px;
}

.btn-round {
    border-radius: 50px !important;
}

.badge {
    font-weight: 600;
    letter-spacing: 0;
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(21, 114, 232, .18), transparent 30%),
        linear-gradient(135deg, #eef4ff 0%, #f8fbff 48%, #eef8f3 100%);
}

.login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}

.login-hero {
    position: relative;
    align-items: center;
    padding: 72px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(26, 32, 53, .94), rgba(21, 114, 232, .84)),
        url("../img/bg-404.jpeg") center/cover;
    color: #fff;
}

.login-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}

.g1-logo-login {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
    font-size: 28px;
}

.g1-logo-login span {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #fff;
    color: var(--g1-primary);
    font-weight: 800;
}

.login-hero h1 {
    max-width: 680px;
    font-size: 44px;
    line-height: 1.12;
    font-weight: 800;
    margin-bottom: 18px;
}

.login-hero p {
    max-width: 620px;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
}

.login-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.login-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.login-card {
    align-self: center;
    justify-self: center;
    width: min(100% - 32px, 460px);
    border: 0;
}

.login-card .card-body {
    padding: 40px;
}

.login-brand-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.login-brand-mobile strong,
.login-brand-mobile small {
    display: block;
}

.login-brand-mobile strong {
    font-size: 20px;
    color: var(--g1-ink);
}

.login-brand-mobile small {
    color: var(--g1-muted);
}

@media (max-width: 991.98px) {
    .help-hero,
    .help-layout,
    .help-flow {
        grid-template-columns: 1fr;
    }

    .help-nav {
        position: static;
        max-height: none;
    }

    .login-wrapper {
        grid-template-columns: 1fr;
        padding: 24px 0;
    }

    .login-card {
        width: min(100% - 28px, 460px);
    }

    .g1-premium-modal .modal-dialog {
        margin: 12px;
        width: auto;
    }

    .g1-premium-modal .modal-content {
        max-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    .g1-premium-modal__header,
    .g1-premium-modal__body,
    .g1-premium-modal__footer {
        padding-left: 22px;
        padding-right: 22px;
    }

    .g1-premium-modal__header {
        padding-top: 22px;
        padding-bottom: 20px;
    }

    .g1-premium-modal__header-content {
        gap: 14px;
        padding-right: 18px;
    }

    .g1-premium-modal__icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 21px;
    }

    .g1-premium-modal .modal-title {
        font-size: 1.2rem;
    }

    .g1-premium-modal__subtitle {
        font-size: 13px;
    }

    .g1-premium-section {
        padding: 18px;
        border-radius: 18px;
    }

    .g1-premium-input,
    .g1-premium-select {
        height: 50px;
    }

    .g1-premium-modal__footer {
        flex-direction: column-reverse;
        align-items: stretch;
        padding-top: 16px;
        padding-bottom: 22px;
    }

    .cot-cli-footer-total {
        width: 100%;
        justify-content: space-between;
        margin-right: 0;
    }

    .cot-cli-footer {
        flex-direction: column;
    }

    .cot-cli-footer-actions {
        width: 100%;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .g1-premium-btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .page-inner {
        padding: 20px 14px;
    }

    .login-card .card-body {
        padding: 28px 22px;
    }

    .card-stats .card-body {
        padding: 18px;
    }

    .footer .container-fluid {
        gap: 8px;
        text-align: center;
    }
}
