  html,
body,
.main {
  background: #102b4f !important;
}

.uds-page {
  background:
    radial-gradient(circle at 18% 14%, rgba(255,159,28,.10), transparent 22%),
    radial-gradient(circle at 84% 8%, rgba(255,255,255,.06), transparent 20%),
    linear-gradient(180deg, #123761 0%, #102b4f 48%, #143760 100%) !important;
}

.uds-content-shell,
.uds-content-inner {
  background: transparent !important;
}
  :root {
    --uds-blue: #071f3f;
    --uds-blue-2: #0b3769;
    --uds-blue-3: #123f73;
    --uds-orange: #ff9f1c;
    --uds-orange-2: #ffd166;
    --uds-page-bg: #102b4f;
    --uds-page-bg-2: #143760;
    --uds-card-bg: #071a31;
    --uds-card-bg-2: #09213d;
    --uds-text: #ffffff;
    --uds-muted: rgba(255,255,255,.74);
    --uds-border: rgba(255,255,255,.12);
    --uds-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    --uds-sidebar-w: clamp(250px, 18vw, 300px);
    --uds-radius: 28px;
  }

  .uds-page {
    position: relative;
    min-height: 100vh;
    padding: 92px 0 48px;
    background:
      radial-gradient(circle at 18% 14%, rgba(255,159,28,.10), transparent 22%),
      radial-gradient(circle at 84% 8%, rgba(255,255,255,.06), transparent 20%),
      linear-gradient(180deg, #123761 0%, var(--uds-page-bg) 48%, var(--uds-page-bg-2) 100%);
    overflow-x: clip;
    color: var(--uds-text);
  }

  .uds-bg-mark {
    position: fixed;
    right: -80px;
    top: 120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255,255,255,.035);
    pointer-events: none;
    z-index: 0;
  }

  /* SIDEBAR, як у референсі: мінімалістичний, фіксований, поза контейнером */
  .uds-sidebar {
    position: fixed;
    left: clamp(10px, 1vw, 24px);
    top: 104px;
    bottom: 28px;
    width: var(--uds-sidebar-w);
    z-index: 20;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.10);
    background:
      linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
      linear-gradient(145deg, var(--uds-card-bg), var(--uds-card-bg-2));
    box-shadow: 0 28px 80px rgba(0,0,0,.34);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(8px);
  }

  .uds-sidebar::before {
    content: "";
    position: absolute;
    inset: auto auto -24px -24px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(7, 26, 49, .92);
  }

  .uds-side-head {
    position: relative;
    padding: 16px 18px 8px;
  }

  .uds-side-head-minimal {
    min-height: 28px;
  }

  .uds-mini-brand {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .uds-mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    background: rgba(255,255,255,.72);
    box-shadow: 0 0 0 6px rgba(255,255,255,.04);
  }

  .uds-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .uds-brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #111827;
    background: linear-gradient(135deg, var(--uds-orange), var(--uds-orange-2));
    box-shadow: 0 12px 24px rgba(255,159,28,.23);
    font-size: 1.2rem;
  }

  .uds-brand-title {
    margin: 0;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1.05;
    font-size: 1.05rem;
  }

  .uds-brand-subtitle {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.58);
    font-size: .78rem;
  }

  .uds-side-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
  }

  .uds-avatar-sm,
  .uds-avatar-sm-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    border: 2px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    box-shadow: 0 12px 26px rgba(0,0,0,.18);
    flex: 0 0 auto;
  }

  .uds-avatar-sm {
    object-fit: cover;
    object-position: center;
  }

  .uds-avatar-sm-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 850;
  }

  .uds-side-name {
    margin: 0;
    max-width: 180px;
    font-size: .95rem;
    line-height: 1.2;
    font-weight: 850;
  }

  .uds-side-role {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.58);
    font-size: .78rem;
  }

  .uds-side-nav {
    position: relative;
    padding: 10px 14px 18px;
    display: grid;
    gap: 8px;
    overflow-y: auto;
    margin-top: 4px;
  }

  .uds-side-nav .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 16px;
    padding: 6px 6px;
    text-align: left;
    color: rgba(255,255,255,.64);
    background: transparent;
    font-weight: 700;
    font-size: 0.8rem;
    transition: .18s ease;
  }

  .uds-side-nav .nav-link i {
    width: 22px;
    text-align: center;
    font-size: 1.05rem;
    color: rgba(255,255,255,.58);
  }

  .uds-side-nav .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
  }

  .uds-side-nav .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.06);
    box-shadow: none;
  }

  .uds-side-nav .nav-link.active i {
    color: #fff;
  }

  .uds-side-footer {
    position: relative;
    margin-top: auto;
    padding: 16px 14px 18px;
  }

  .uds-edit-profile {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: #fff;
    font-weight: 800;
    padding: 11px 12px;
  }

  .uds-edit-profile:hover {
    color: #111827;
    background: linear-gradient(135deg, var(--uds-orange), var(--uds-orange-2));
    border-color: transparent;
  }

  .uds-quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .uds-quick-actions a {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: rgba(255,255,255,.88);
    background: rgba(255,255,255,.08);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.06);
  }

  .uds-quick-actions a:hover {
    color: #fff;
    background: rgba(255,255,255,.16);
  }

  /* CONTENT */
  .uds-content-shell {
    position: relative;
    z-index: 1;
    margin-left: calc(var(--uds-sidebar-w) + clamp(42px, 4vw, 72px));
    padding-right: clamp(14px, 2.4vw, 44px);
    width: auto;
  }

  .uds-content-inner {
    width: min(1320px, 100%);
    /* margin: 0 auto; */
  }

  .uds-hero {
    position: relative;
    min-height: 230px;
    border-radius: 34px;
    padding: clamp(14px, 1vw, 36px);
    overflow: hidden;
    color: #fff;
    background:
      radial-gradient(circle at 82% 10%, rgba(255,255,255,.08), transparent 24%),
      radial-gradient(circle at 26% 84%, rgba(255,159,28,.10), transparent 25%),
      linear-gradient(135deg, var(--uds-card-bg), var(--uds-card-bg-2));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 26px 70px rgba(0,0,0,.22);
    backdrop-filter: blur(8px);
  }

  .uds-hero::after {
    content: "";
    position: absolute;
    right: clamp(20px, 7vw, 110px);
    top: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
  }

  .uds-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    gap: clamp(20px, 4vw, 58px);
    align-items: center;
  }

  .uds-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.78);
    font-weight: 850;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
  }

  .uds-title {
    margin: 18px 0 10px;
    max-width: 780px;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: .98;
    font-weight: 750;
    letter-spacing: -.045em;
  }

  .uds-title span {
    color: var(--uds-orange-2);
  }

  .uds-subtitle {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: clamp(1rem, 1.2vw, 1.16rem);
    line-height: 1.65;
  }

  .uds-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
  }

  .uds-btn-primary,
  .uds-btn-ghost {
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 850;
    text-decoration: none;
  }

  .uds-btn-primary {
    background: linear-gradient(135deg, var(--uds-orange), var(--uds-orange-2));
    color: #111827;
    box-shadow: 0 16px 30px rgba(255,159,28,.2);
  }

  .uds-btn-ghost {
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.06);
  }

  .uds-photo-frame {
    justify-self: end;
    width: min(360px, 100%);
    aspect-ratio: 1 / 1.08;
    border-radius: 34px;
    padding: 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 18px 18px 0 rgba(255,255,255,.055);
  }

  .uds-photo,
  .uds-photo-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 26px;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.05));
  }

  .uds-photo-placeholder {
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.9);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 950;
  }

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

  .uds-stat {
    border-radius: 22px;
    padding: 18px;
    background: linear-gradient(145deg, var(--uds-card-bg), var(--uds-card-bg-2));
    border: 1px solid var(--uds-border);
    box-shadow: 0 14px 36px rgba(0,0,0,.14);
    backdrop-filter: blur(8px);
  }

  .uds-stat strong {
    display: block;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 950;
  }

  .uds-stat span {
    display: block;
    margin-top: 7px;
    color: var(--uds-muted);
    font-size: .86rem;
    line-height: 1.25;
  }

  .uds-panel {
    border-radius: 30px;
    background: linear-gradient(145deg, var(--uds-card-bg), var(--uds-card-bg-2));
    border: 1px solid var(--uds-border);
    box-shadow: var(--uds-shadow);
    overflow: hidden;
    backdrop-filter: blur(8px);
  }

  .uds-tab-pane {
    padding: clamp(18px, 2.2vw, 30px);
  }

  .uds-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
  }

  .uds-section-head h3 {
    margin: 0;
    color: #fff;
    font-weight: 950;
    font-size: clamp(1.2rem, 1.5vw, 1.55rem);
  }

  .uds-section-head p {
    margin: 5px 0 0;
    color: var(--uds-muted);
  }

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

  .uds-info-card,
  .uds-empty {
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(145deg, var(--uds-card-bg), var(--uds-card-bg-2));
    padding: 17px;
  }

  .uds-info-card h4 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
  }

  .uds-info-card p,
  .uds-empty p {
    margin: 0;
    color: var(--uds-muted);
  }

  .uds-empty {
    text-align: center;
    padding: 42px 18px;
    background: rgba(7, 26, 49, .92);
  }

  .uds-empty i {
    display: block;
    margin-bottom: 10px;
    font-size: 2.3rem;
    color: rgba(255,255,255,.28);
  }

  .uds-table-card {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(7, 26, 49, .92);
  }

  .uds-table-card .table {
    margin: 0;
  }

  .uds-table-card thead th {
    color: rgba(255,255,255,.86);
    background: linear-gradient(145deg, var(--uds-card-bg), var(--uds-card-bg-2));
    border-bottom-color: rgba(255,255,255,.08);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .035em;
  }

  .uds-cover {
    width: 56px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(7,31,63,.14);
  }

  .uds-link {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
  }

  .uds-link:hover {
    color: var(--uds-orange-2);
    text-decoration: underline;
  }

  .badge-content {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: .7rem;
    padding: .45rem .6rem;
    border: 1px solid rgba(0,0,0,0.12);
    background-color: #f8f9fa;
    color: #212529;
    white-space: nowrap;
  }

  .badge-content-literature { border-color: rgba(13,110,253,.3); background-color: rgba(13,110,253,.06); color: #0d6efd; }
  .badge-content-ndr { border-color: rgba(111,66,193,.3); background-color: rgba(111,66,193,.06); color: #6f42c1; }
  .badge-content-scientist { border-color: rgba(32,201,151,.3); background-color: rgba(32,201,151,.06); color: #198754; }
  .badge-content-video { border-color: rgba(220,53,69,.3); background-color: rgba(220,53,69,.06); color: #dc3545; }
  .badge-content-edu { border-color: rgba(255,193,7,.4); background-color: rgba(255,193,7,.08); color: #a07900; }
  .badge-content-generic { border-color: rgba(108,117,125,.4); background-color: rgba(108,117,125,.08); color: #6c757d; }


  .uds-page,
  .uds-page p,
  .uds-page span,
  .uds-page small,
  .uds-page label,
  .uds-page td,
  .uds-page th,
  .uds-page h1,
  .uds-page h2,
  .uds-page h3,
  .uds-page h4,
  .uds-page h5,
  .uds-page h6 {
    color: #fff;
  }

  .uds-page .text-muted,
  .uds-section-head p,
  .uds-info-card p,
  .uds-empty p,
  .uds-stat span,
  .uds-subtitle,
  .uds-side-nav .nav-link {
    color: rgba(255,255,255,.74) !important;
  }

  .uds-side-nav .nav-link.active,
  .uds-side-nav .nav-link.active i,
  .uds-side-nav .nav-link:hover,
  .uds-side-nav .nav-link:hover i {
    color: #fff !important;
  }

  .uds-panel,
  .uds-stat,
  .uds-info-card,
  .uds-empty,
  .uds-table-card,
  .uds-hero,
  .uds-sidebar {
    border-color: rgba(255,255,255,.12);
  }

  .dataTables_wrapper .dt-buttons .btn,
  .dataTables_wrapper .dt-buttons button {
    border-radius: 999px !important;
    margin: 0 6px 8px 0;
  }


  .table {
    color: rgba(255,255,255,.9);
  }

  .table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: rgba(255,255,255,.08);
  }

  .table-hover > tbody > tr:hover > * {
    color: #fff;
    background-color: rgba(255,255,255,.04);
  }

  .text-muted {
    color: rgba(255,255,255,.52) !important;
  }

  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_length select {
    background: rgba(255,255,255,.06);
    color: #fff;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
  }

  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_filter label,
  .dataTables_wrapper .dataTables_length label {
    color: rgba(255,255,255,.72);
  }

  .page-link {
    color: #fff;
    background: linear-gradient(145deg, var(--uds-card-bg), var(--uds-card-bg-2));
    border-color: rgba(255,255,255,.08);
  }

  .page-item.active .page-link {
    color: #fff;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.14);
  }

  .btn-warning, .btn-info, .btn-secondary, .btn-success, .btn-primary {
    border: 0;
    border-radius: 999px;
    font-weight: 700;
  }


  /* ==========================================================
     LIGHT TABLES — усі таблиці та елементи DataTables як білі картки
  ========================================================== */

  .uds-table-card {
    border-radius: 24px;
    padding: 14px;
    overflow: visible;
    border: 1px solid rgba(226,232,240,.95);
    background: #f8fafc;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
  }

  .uds-table-card .table-responsive {
    border-radius: 20px;
  }

  .uds-table-card .table {
    color: #1f2937 !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    margin: 0 !important;
  }

  .uds-table-card .table thead th,
  .uds-table-card thead th {
    color: #334155 !important;
    background: #ffffff !important;
    border: 0 !important;
    padding: 14px 16px !important;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  }

  .uds-table-card .table thead th:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }

  .uds-table-card .table thead th:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .uds-table-card .table tbody tr {
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, .07));
  }

  .uds-table-card .table tbody td {
    color: #1f2937 !important;
    background: #ffffff !important;
    border: 0 !important;
    padding: 14px 16px !important;
    vertical-align: middle;
  }

  .uds-table-card .table tbody td:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
  }

  .uds-table-card .table tbody td:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .uds-table-card .table-hover > tbody > tr:hover > * {
    color: #0f172a !important;
    background: #f1f5f9 !important;
  }

  .uds-table-card .uds-link {
    color: #0b3769 !important;
    font-weight: 850;
  }

  .uds-table-card .uds-link:hover {
    color: #ff9f1c !important;
  }

  .uds-table-card .text-muted,
  .uds-table-card .table .text-muted {
    color: #64748b !important;
  }

  .uds-table-card .uds-cover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, .14);
    border: 1px solid rgba(226,232,240,.95);
    background: #fff;
  }

  .dataTables_wrapper {
    color: #334155 !important;
  }

  .dataTables_wrapper .dt-buttons .btn,
  .dataTables_wrapper .dt-buttons button {
    border-radius: 999px !important;
    margin: 0 6px 10px 0;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(226,232,240,.95) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    font-weight: 800;
  }

  .dataTables_wrapper .dt-buttons .btn:hover,
  .dataTables_wrapper .dt-buttons button:hover {
    background: #f8fafc !important;
    color: #0b3769 !important;
  }

  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_length select,
  .dt-search input,
  .dt-length select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(203,213,225,.95) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
  }

  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_filter label,
  .dataTables_wrapper .dataTables_length label,
  .dt-info,
  .dt-search label,
  .dt-length label {
    color: #475569 !important;
    font-weight: 700;
  }

  .dataTables_wrapper .pagination,
  .dt-paging .pagination {
    gap: 6px;
  }

  .dataTables_wrapper .page-link,
  .dt-paging .page-link {
    color: #0b3769 !important;
    background: #ffffff !important;
    border: 1px solid rgba(226,232,240,.95) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
    font-weight: 800;
  }

  .dataTables_wrapper .page-item.active .page-link,
  .dt-paging .page-item.active .page-link {
    color: #111827 !important;
    background: linear-gradient(135deg, var(--uds-orange), var(--uds-orange-2)) !important;
    border-color: transparent !important;
  }

  .dataTables_wrapper .page-item.disabled .page-link,
  .dt-paging .page-item.disabled .page-link {
    color: #94a3b8 !important;
    background: #ffffff !important;
    opacity: .75;
  }

  @media (max-width: 1199.98px) {
    .uds-page {
      padding-top: 82px;
    }

    .uds-sidebar {
      position: sticky;
      top: 78px;
      left: auto;
      bottom: auto;
      width: auto;
      margin: 0 14px 18px;
      max-height: none;
    }

    .uds-side-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
    }

    .uds-side-user {
      margin-top: 0;
    }

    .uds-side-nav {
      display: flex;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 12px 14px;
    }

    .uds-side-nav .nav-link {
      white-space: nowrap;
      width: auto;
      flex: 0 0 auto;
    }

    .uds-side-footer {
      display: block;
      padding-top: 0;
    }

    .uds-content-shell {
      margin-left: 0;
      padding: 0 14px;
    }
  }

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

    .uds-photo-frame {
      justify-self: start;
      width: min(320px, 100%);
    }

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

  @media (max-width: 767.98px) {
    .uds-title {
      letter-spacing: -.025em;
    }

    .uds-stats,
    .uds-grid-2 {
      grid-template-columns: 1fr;
    }

    .uds-section-head {
      display: block;
    }

    .uds-hero {
      border-radius: 26px;
    }

    .uds-panel {
      border-radius: 24px;
    }
  }

  /* ==========================================================
   USER DASHBOARD QUICK ACTIONS — кольорові іконки адміністратора
========================================================== */

.uds-quick-actions {
  display: flex;
  gap: 10px;
  margin-top: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.uds-action {
  --qa-color: #ffffff;
  --qa-bg: rgba(255,255,255,.08);
  --qa-border: rgba(255,255,255,.08);
  --qa-glow: rgba(255,255,255,.12);

  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: var(--qa-color) !important;
  background: var(--qa-bg) !important;
  border: 1px solid var(--qa-border) !important;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.uds-action i {
  font-size: 1.08rem;
  line-height: 1;
}

.uds-action:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  box-shadow: 0 14px 30px var(--qa-glow);
}

/* Кольори за типами дій */
.uds-action-literature {
  --qa-color: #60a5fa;
  --qa-bg: rgba(59,130,246,.14);
  --qa-border: rgba(96,165,250,.28);
  --qa-glow: rgba(59,130,246,.30);
}

.uds-action-ndr {
  --qa-color: #c084fc;
  --qa-bg: rgba(168,85,247,.14);
  --qa-border: rgba(192,132,252,.30);
  --qa-glow: rgba(168,85,247,.30);
}

.uds-action-speciality {
  --qa-color: #818cf8;
  --qa-bg: rgba(99,102,241,.14);
  --qa-border: rgba(129,140,248,.30);
  --qa-glow: rgba(99,102,241,.30);
}

.uds-action-scientist {
  --qa-color: #34d399;
  --qa-bg: rgba(16,185,129,.14);
  --qa-border: rgba(52,211,153,.30);
  --qa-glow: rgba(16,185,129,.30);
}

.uds-action-news {
  --qa-color: #fb7185;
  --qa-bg: rgba(244,63,94,.14);
  --qa-border: rgba(251,113,133,.30);
  --qa-glow: rgba(244,63,94,.30);
}

.uds-action-certificate {
  --qa-color: #2dd4bf;
  --qa-bg: rgba(20,184,166,.14);
  --qa-border: rgba(45,212,191,.30);
  --qa-glow: rgba(20,184,166,.30);
}

.uds-action-protocol {
  --qa-color: #38bdf8;
  --qa-bg: rgba(14,165,233,.14);
  --qa-border: rgba(56,189,248,.30);
  --qa-glow: rgba(14,165,233,.30);
}

.uds-action-video {
  --qa-color: #f87171;
  --qa-bg: rgba(239,68,68,.14);
  --qa-border: rgba(248,113,113,.30);
  --qa-glow: rgba(239,68,68,.30);
}

.uds-action-education {
  --qa-color: #fbbf24;
  --qa-bg: rgba(245,158,11,.14);
  --qa-border: rgba(251,191,36,.32);
  --qa-glow: rgba(245,158,11,.30);
}

.uds-action-ai {
  --qa-color: #e5e7eb;
  --qa-bg: rgba(148,163,184,.16);
  --qa-border: rgba(203,213,225,.25);
  --qa-glow: rgba(148,163,184,.30);
}

/* ==========================================================
   MOBILE DASHBOARD NAV — нижня навігація замість сайдбару
========================================================== */

@media (max-width: 767.98px) {

  .uds-page {
    padding-top: 76px;
    padding-bottom: 96px;
  }

  .uds-content-shell {
    margin-left: 0 !important;
    padding: 0 12px !important;
  }

  .uds-content-inner {
    width: 100%;
  }

  /* сам сайдбар перетворюємо на bottom nav */
  .uds-sidebar {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;

    width: auto !important;
    height: 72px !important;
    margin: 0 !important;

    border-radius: 26px;
    z-index: 1050;

    background:
      linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
      linear-gradient(145deg, #071a31, #09213d);

    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 18px 50px rgba(0,0,0,.34);
    backdrop-filter: blur(12px);

    overflow: hidden;
  }

  .uds-sidebar::before,
  .uds-side-head,
  .uds-side-footer {
    display: none !important;
  }

  .uds-side-nav {
    height: 100%;
    margin: 0 !important;
    padding: 8px !important;

    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;

    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .uds-side-nav::-webkit-scrollbar {
    display: none;
  }

  .uds-side-nav .nav-link {
    flex: 1 0 58px;
    min-width: 58px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 !important;
    border-radius: 20px;

    font-size: 0 !important;
    color: rgba(255,255,255,.68) !important;
    background: transparent;
  }

  .uds-side-nav .nav-link i {
    width: auto !important;
    margin: 0;
    font-size: 1.32rem;
    color: rgba(255,255,255,.72) !important;
  }

  .uds-side-nav .nav-link.active {
    background: linear-gradient(135deg, var(--uds-orange), var(--uds-orange-2)) !important;
    color: #111827 !important;
    box-shadow: 0 10px 24px rgba(255,159,28,.28);
  }

  .uds-side-nav .nav-link.active i {
    color: #111827 !important;
  }

  .uds-side-nav .nav-link:hover {
    background: rgba(255,255,255,.10);
  }

  /* hero компактніше на телефоні */
  .uds-hero {
    min-height: auto;
    border-radius: 26px;
    padding: 22px;
  }

  .uds-hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .uds-title {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .uds-subtitle {
    font-size: .95rem;
    line-height: 1.55;
  }

  .uds-photo-frame {
    display: none;
  }

  .uds-hero-actions {
    gap: 8px;
  }

  .uds-btn-primary,
  .uds-btn-ghost {
    padding: 10px 14px;
    font-size: .88rem;
  }

  /* статистика по 2 картки */
  .uds-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .uds-stat {
    border-radius: 20px;
    padding: 15px;
  }

  .uds-stat strong {
    font-size: 1.45rem;
  }

  .uds-stat span {
    font-size: .78rem;
  }

  .uds-panel {
    border-radius: 24px;
  }

  .uds-tab-pane {
    padding: 16px;
  }
}

.uds-info-card-wide{
  grid-column: 1 / -1;
}

.uds-text-block{
  line-height: 1.75;
}

.uds-text-block p{
  margin-bottom: .6rem;
}

/* ==========================================================
   SCIENTIST PROFILE FORMS
   Підвищення кваліфікації / сертифікати / нагороди / патенти
========================================================== */

.scientist-form-page {
  min-height: 80vh;
  padding-bottom: 60px;
}

.scientist-form-page .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.scientist-form-page .section-title h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.scientist-form-page .section-title p {
  color: #64748b;
  font-size: 0.95rem;
}

.scientist-form-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow:
    0 24px 70px rgba(15, 23, 42, .10),
    0 8px 24px rgba(15, 23, 42, .06);
}

.scientist-form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, #0f3b66, #0ea5e9, #f97316);
}

.scientist-form-body {
  position: relative;
  padding: 32px;
}

.scientist-form-page .form-label {
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 7px;
}

.scientist-form-page .form-control,
.scientist-form-page .form-select {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .42);
  background-color: #fff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .12s ease,
    background-color .18s ease;
}

.scientist-form-page textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.scientist-form-page .form-control:hover,
.scientist-form-page .form-select:hover {
  border-color: rgba(14, 165, 233, .65);
  transform: translateY(-1px);
}

.scientist-form-page .form-control:focus,
.scientist-form-page .form-select:focus {
  border-color: #0ea5e9;
  box-shadow:
    0 0 0 .22rem rgba(14, 165, 233, .18),
    0 10px 28px rgba(14, 165, 233, .12);
}

.scientist-form-page .invalid-feedback.d-block {
  margin-top: 6px;
  font-weight: 600;
  font-size: .82rem;
}

.scientist-form-page .btn {
  border-radius: 14px;
  font-weight: 700;
  padding: .62rem 1rem;
}

.scientist-form-page .btn-success {
  border: 0;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 12px 24px rgba(34, 197, 94, .25);
}

.scientist-form-page .btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(34, 197, 94, .32);
}

.scientist-form-page .btn-outline-secondary {
  border-color: rgba(100, 116, 139, .35);
  color: #475569;
  background: #fff;
}

.scientist-form-page .btn-outline-secondary:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, .25);
}

/* URL-поля — легкий акцент */
.scientist-form-page input[type="url"] {
  padding-left: 42px;
  background-image: linear-gradient(transparent, transparent);
}

.scientist-form-page .url-field-wrap {
  position: relative;
}

.scientist-form-page .url-field-wrap::before {
  content: "\F470";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 14px;
  top: 39px;
  color: #0ea5e9;
  z-index: 2;
}

/* Адаптив */
@media (max-width: 768px) {
  .scientist-form-body {
    padding: 22px;
  }

  .scientist-form-card {
    border-radius: 22px;
  }
}

/* ==========================================================
   SCIENTIST FORM HERO
========================================================== */

.scientist-form-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  padding: 34px 38px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(15, 59, 102, .96), rgba(14, 165, 233, .88)),
    radial-gradient(700px 280px at 90% 10%, rgba(249, 115, 22, .35), transparent 65%);
  color: #fff;
  box-shadow:
    0 24px 70px rgba(15, 23, 42, .18),
    0 8px 24px rgba(15, 23, 42, .10);
}

.scientist-form-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
}

.scientist-form-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: .42rem .75rem;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .88);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.scientist-form-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.scientist-form-hero p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .scientist-form-hero {
    padding: 26px 22px;
    border-radius: 24px;
  }

  .scientist-form-hero h1 {
    font-size: 2rem;
  }
}