.cpanel-admin-shell {
    background: #f4f7fb;
}

.cpanel-admin-shell .sidebar {
    background: #fbfcfe;
    border-right: 1px solid #e6edf5;
    box-shadow: 10px 0 28px rgba(15, 23, 42, 0.03);
}

.cpanel-admin-shell .sidebar-content,
.cpanel-admin-shell .sidebar-brand {
    background: transparent;
}

.cpanel-admin-shell .sidebar-brand {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding: 1.05rem 1.35rem 0.8rem;
}

.cpanel-admin-shell .sidebar-header {
    color: #94a3b8;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-top: 0.85rem;
    padding: 0 1.35rem 0.4rem;
    text-transform: uppercase;
}

.cpanel-admin-shell .sidebar-link {
    align-items: center;
    border-radius: 10px;
    color: #64748b;
    display: flex;
    gap: 0.75rem;
    margin: 0.05rem 0.8rem;
    padding: 0.6rem 0.8rem;
    transition: all 0.2s ease;
}

.cpanel-icon {
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: middle;
}

.cpanel-admin-shell .sidebar-link .cpanel-icon {
    height: 1rem;
    width: 1rem;
}

.cpanel-admin-shell .sidebar-link:hover,
.cpanel-admin-shell .sidebar-item.active .sidebar-link,
.cpanel-admin-shell .sidebar-link.active {
    background: rgba(37, 84, 216, 0.06);
    color: #1e3a8a;
}

.cpanel-admin-shell .sidebar-link:hover {
    background: rgba(148, 163, 184, 0.08);
    color: #334155;
}

.cpanel-admin-shell .main {
    background: #f4f7fb;
}

.cpanel-admin-shell .navbar.cpanel-admin-topbar {
    background: rgba(244, 247, 251, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(203, 213, 225, 0.6);
    min-height: 64px;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.cpanel-admin-shell .content.cpanel-admin-content {
    padding: 1.1rem 1.25rem 1.5rem;
}

.cpanel-page-shell {
    color: #0f172a;
}

.cpanel-page-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.cpanel-page-header > div:first-child {
    display: grid;
    gap: 0.2rem;
}

.cpanel-page-eyebrow {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.cpanel-page-title {
    color: #0f172a;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.2rem;
}

.cpanel-page-subtitle {
    color: #64748b;
    max-width: 58rem;
}

.cpanel-page-actions {
    align-items: center;
    display: flex;
    gap: 0.65rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cpanel-create-btn {
    align-items: center;
    background: linear-gradient(180deg, #3c63de 0%, #2f55cf 100%);
    border: 0;
    border-radius: 0.95rem;
    box-shadow: 0 8px 18px rgba(47, 85, 207, 0.18);
    color: #ffffff;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 800;
    gap: 0.55rem;
    letter-spacing: -0.02em;
    min-height: 2.7rem;
    padding: 0.55rem 1rem;
    text-decoration: none;
}

.cpanel-create-btn:hover,
.cpanel-create-btn:focus {
    background: linear-gradient(180deg, #355bd7 0%, #284bbf 100%);
    box-shadow: 0 16px 30px rgba(40, 75, 191, 0.28);
    color: #ffffff;
    transform: translateY(-1px);
}

.cpanel-create-btn .cpanel-icon {
    height: 0.95rem;
    width: 0.95rem;
}

.cpanel-primary-btn,
.cpanel-secondary-btn,
.cpanel-danger-btn {
    align-items: center;
    border-radius: 12px;
    box-shadow: none;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 600;
    gap: 0.45rem;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.55rem 0.95rem;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.cpanel-primary-btn {
    background: #2554d8;
    border: 1px solid #2554d8;
    box-shadow: 0 8px 16px rgba(37, 84, 216, 0.14);
    color: #ffffff;
}

.cpanel-primary-btn:hover,
.cpanel-primary-btn:focus {
    background: #1d45b2;
    border-color: #1d45b2;
    box-shadow: 0 10px 18px rgba(29, 69, 178, 0.18);
    color: #ffffff;
}

.cpanel-secondary-btn {
    background: #ffffff;
    border: 1px solid #dbe5f0;
    color: #475569;
}

.cpanel-secondary-btn:hover,
.cpanel-secondary-btn:focus {
    background: #f8fbff;
    border-color: #cbd9ea;
    color: #334155;
}

.cpanel-danger-btn {
    background: #ffffff;
    border: 1px solid rgba(220, 38, 38, 0.18);
    color: #b91c1c;
}

.cpanel-danger-btn:hover,
.cpanel-danger-btn:focus {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.24);
    color: #991b1b;
}

.cpanel-secondary-btn .cpanel-icon,
.cpanel-primary-btn .cpanel-icon,
.cpanel-danger-btn .cpanel-icon {
    height: 0.9rem;
    width: 0.9rem;
}

.cpanel-row-btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 700;
    gap: 0.4rem;
    justify-content: center;
    min-height: 2rem;
    padding: 0.38rem 0.7rem;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.cpanel-row-btn .cpanel-icon {
    height: 0.82rem;
    width: 0.82rem;
}

.cpanel-row-btn-primary {
    background: rgba(37, 84, 216, 0.1);
    border-color: rgba(37, 84, 216, 0.18);
    color: #2554d8;
}

.cpanel-row-btn-primary:hover,
.cpanel-row-btn-primary:focus {
    background: rgba(37, 84, 216, 0.16);
    color: #1d45b2;
}

.cpanel-row-btn-success {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.16);
    color: #15803d;
}

.cpanel-row-btn-success:hover,
.cpanel-row-btn-success:focus {
    background: rgba(22, 163, 74, 0.16);
    color: #166534;
}

.cpanel-row-btn-info {
    background: rgba(8, 145, 178, 0.1);
    border-color: rgba(8, 145, 178, 0.16);
    color: #0f7490;
}

.cpanel-row-btn-info:hover,
.cpanel-row-btn-info:focus {
    background: rgba(8, 145, 178, 0.16);
    color: #155e75;
}

.cpanel-row-btn-neutral {
    background: #ffffff;
    border-color: #dbe5f0;
    color: #475569;
}

.cpanel-row-btn-neutral:hover,
.cpanel-row-btn-neutral:focus {
    background: #f8fbff;
    border-color: #cbd9ea;
    color: #334155;
}

.cpanel-section-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.045);
    overflow: hidden;
}

.cpanel-section-card .card-header {
    background: transparent;
    border-bottom: 1px solid #edf2f7;
    padding: 1rem 1.1rem 0.85rem;
}

.cpanel-section-card .card-body {
    padding: 1rem 1.1rem;
}

.cpanel-section-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
}

.cpanel-table-wrap {
    overflow-x: auto;
}

.cpanel-table {
    margin-bottom: 0;
}

.cpanel-table th {
    border-bottom-color: #edf2f7;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.85rem 1rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.cpanel-table td {
    border-bottom-color: #edf2f7;
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

.cpanel-table tbody tr:hover {
    background: #fbfdff;
}

.cpanel-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.cpanel-icon-action {
    align-items: center;
    color: #64748b;
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.cpanel-icon-action:hover {
    color: #2554d8;
}

.cpanel-icon-action .cpanel-icon {
    height: 16px;
    width: 16px;
}

.cpanel-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.34rem 0.65rem;
}

.cpanel-pill-primary {
    background: rgba(37, 84, 216, 0.12);
    color: #2554d8;
}

.cpanel-pill-success {
    background: rgba(21, 128, 61, 0.12);
    color: #15803d;
}

.cpanel-pill-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.cpanel-pill-info {
    background: rgba(8, 145, 178, 0.12);
    color: #0f7490;
}

.cpanel-pill-neutral {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.cpanel-form-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.045);
}

.cpanel-form-card .card-body {
    padding: 1.2rem 1.25rem;
}

.cpanel-form-card input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.cpanel-form-card select,
.cpanel-form-card textarea,
.cpanel-form-card .form-select,
.cpanel-form-card .form-control {
    background-color: #fbfdff;
    border: 1px solid #dbe5f0;
    border-radius: 12px;
    box-shadow: none;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
}

.cpanel-form-card textarea {
    min-height: 120px;
}

.cpanel-form-card input:focus,
.cpanel-form-card select:focus,
.cpanel-form-card textarea:focus,
.cpanel-form-card .form-select:focus,
.cpanel-form-card .form-control:focus {
    background-color: #ffffff;
    border-color: rgba(37, 84, 216, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(37, 84, 216, 0.08);
}

.cpanel-form-actions {
    align-items: center;
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.cpanel-alert-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cpanel-empty-state {
    align-items: center;
    background: #fbfdff;
    border: 1px dashed #dbe5f0;
    border-radius: 14px;
    color: #64748b;
    display: flex;
    justify-content: center;
    min-height: 120px;
    padding: 1.2rem;
    text-align: center;
}

.cpanel-empty-state > * {
    max-width: 28rem;
}

.cpanel-inline-note {
    color: #64748b;
    font-size: 0.88rem;
}

.cpanel-modal .modal-content {
    border: 1px solid #e7edf5;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.cpanel-modal .modal-header,
.cpanel-modal .modal-footer {
    border-color: #edf2f7;
}

.cpanel-modal .modal-header {
    padding: 0.95rem 1rem 0.85rem;
}

.cpanel-modal .modal-body {
    padding: 1rem;
}

.cpanel-modal .modal-footer {
    align-items: center;
    gap: 0.65rem;
    justify-content: flex-end;
    padding: 0.9rem 1rem 1rem;
}

.profile-page {
    color: #0f172a;
}

.profile-page .cpanel-page-header,
.profile-page .profile-page-header {
    margin-bottom: 1.4rem;
}

.profile-message-stack {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

.profile-message-stack .alert {
    border: 1px solid #dbe5f0;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
    margin-bottom: 0;
    padding: 0.9rem 1rem;
}

.profile-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.045);
    overflow: hidden;
}

.profile-card .card-body {
    padding: 1.25rem;
}

.profile-card-heading {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.profile-card-copy {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.profile-page .form-label {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.38rem;
}

.profile-page .form-control,
.profile-page .form-select {
    background-color: #fbfdff;
    border: 1px solid #dbe5f0;
    border-radius: 12px;
    box-shadow: none;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
}

.profile-page .form-control:focus,
.profile-page .form-select:focus {
    background-color: #ffffff;
    border-color: rgba(37, 84, 216, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(37, 84, 216, 0.08);
}

.profile-actions {
    align-items: center;
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
}

.profile-meta-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
}

.profile-meta-item {
    align-items: flex-start;
    display: grid;
    gap: 0.15rem;
}

.profile-meta-label {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.profile-meta-value {
    color: #0f172a;
    font-size: 0.95rem;
    margin: 0;
}

.profile-password-note {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .cpanel-admin-shell .content.cpanel-admin-content {
        padding: 1rem;
    }

    .cpanel-create-btn {
        min-height: 2.55rem;
        padding: 0.5rem 0.9rem;
    }

    .cpanel-primary-btn,
    .cpanel-secondary-btn,
    .cpanel-danger-btn {
        min-height: 2.4rem;
        padding: 0.5rem 0.85rem;
    }

    .cpanel-page-header {
        flex-direction: column;
    }

    .cpanel-page-actions {
        width: 100%;
    }

    .cpanel-page-actions .btn {
        width: 100%;
    }

    .cpanel-form-actions > * {
        width: 100%;
    }

    .profile-actions > * {
        width: 100%;
    }
}
