:root {
  --tp-primary: #b074d1;
  --tp-primary-hover: #9e40d1;
  --tp-primary-active: #8536b0;
  --tp-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

::selection { background: var(--bs-global); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bs-global-o-3); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--bs-global-o-5); }

.card {
  border: 1px solid var(--bs-global-o-1);
  border-radius: 0.85rem;
  transition: box-shadow 0.3s var(--tp-ease), transform 0.3s var(--tp-ease), border-color 0.3s var(--tp-ease);
}
.card.link:hover { transform: translateY(-5px); border-color: var(--bs-global-o-3); box-shadow: 0 18px 36px rgba(176, 116, 209, 0.18); }

.btn { transition: transform 0.2s var(--tp-ease), box-shadow 0.2s var(--tp-ease), filter 0.2s var(--tp-ease); }
.btn-primary {
  background-image: linear-gradient(135deg, #c98fe9 0%, #b074d1 50%, #9e40d1 100%);
  border: none;
  box-shadow: 0 12px 26px rgba(176, 116, 209, 0.3);
}
.btn-primary:hover,
.btn-primary:focus { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 16px 30px rgba(176, 116, 209, 0.42); }
.btn-primary:active { transform: translateY(0); }

#page-topbar {
  background-color: rgba(255, 255, 255, 0.78) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--bs-global-o-1);
}

.form-control:focus,
.form-select:focus { border-color: var(--bs-global); box-shadow: 0 0 0 0.2rem var(--bs-global-o-2); }

.table thead th { background: var(--bs-global-2); color: #6b4a7d; font-weight: 600; border-bottom: none; }
.table-hover tbody tr { transition: background 0.2s var(--tp-ease); }
.table-hover tbody tr:hover { background: var(--bs-global-1); }

.badge { border-radius: 50rem; font-weight: 600; padding: 0.42em 0.72em; }
.badge-soft-yunyoo { color: var(--bs-global); background-color: var(--bs-global-o-2); }

.user-center_h300 { transition: box-shadow 0.3s var(--tp-ease), transform 0.3s var(--tp-ease); }
.user-center_h300:hover { box-shadow: 0 18px 40px rgba(176, 116, 209, 0.18); }

.dropdown-menu { border-radius: 0.75rem; border: 1px solid var(--bs-global-o-1); box-shadow: 0 12px 30px rgba(29, 58, 83, 0.12); }
.dropdown-item { border-radius: 0.5rem; transition: background 0.15s var(--tp-ease), color 0.15s var(--tp-ease); }

.nav-link { transition: color 0.2s var(--tp-ease), background 0.2s var(--tp-ease); }

.card-body[class*="bl-"] i.bx-lg {
  width: 52px;
  height: 52px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  transition: transform 0.3s var(--tp-ease), box-shadow 0.3s var(--tp-ease);
}
.card-body.bl-yellow i.bx-lg { background: linear-gradient(135deg, #ffd166, #f7b731); }
.card-body.bl-green i.bx-lg { background: linear-gradient(135deg, #41e0a4, #0cbc87); }
.card-body.bl-blue i.bx-lg { background: linear-gradient(135deg, #6db3ff, #228cfc); }
.card-body.bl-global i.bx-lg { background: linear-gradient(135deg, #c98fe9, #9e40d1); }
.card.link:hover .card-body[class*="bl-"] i.bx-lg { transform: scale(1.08) rotate(-5deg); }

.user-center_product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.95rem;
  margin-bottom: 0.6rem;
  border: 1px solid var(--bs-global-o-1);
  border-radius: 0.8rem;
  background: #fff;
  color: #4b3a55;
  transition: transform 0.25s var(--tp-ease), box-shadow 0.25s var(--tp-ease), border-color 0.25s var(--tp-ease), background 0.25s var(--tp-ease);
}
.user-center_product:hover {
  transform: translateX(4px);
  border-color: var(--bs-global);
  background: var(--bs-global-1);
  box-shadow: 0 8px 18px rgba(176, 116, 209, 0.16);
}
.user-center_product i { color: var(--bs-global); }

.user-center_notice_ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.user-center_notice_item {
  height: auto;
  min-height: 44px;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.5rem;
  border-bottom: 1px dashed var(--bs-global-o-1);
  border-radius: 0.5rem;
  transition: background 0.25s var(--tp-ease), padding-left 0.25s var(--tp-ease);
}
.user-center_notice_item:hover { background: var(--bs-global-1); padding-left: 0.7rem; }
.user-center_notice_item .notice_item_time {
  flex: none;
  width: auto;
  margin-right: 0;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  color: #9aa0a6;
}
.user-center_notice_item .notice_item_title {
  width: 100%;
  flex: none;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
  color: #3b2b46;
  font-weight: 500;
  transition: color 0.25s var(--tp-ease);
}
.user-center_notice_item:hover .notice_item_title { color: var(--bs-global); }

.user-center_header {
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--tp-ease), box-shadow 0.3s var(--tp-ease);
}
.user-center_header:hover { transform: scale(1.05); box-shadow: 0 10px 22px rgba(176, 116, 209, 0.3); }

.yunyoo-num { color: var(--bs-global); }

body[data-sidebar="dark"] .vertical-menu #sidebar-menu > ul > li > a {
  border-radius: 0.6rem;
  transition: background 0.25s var(--tp-ease), color 0.25s var(--tp-ease);
}
body[data-sidebar="dark"] .vertical-menu #sidebar-menu > ul > li.mm-active > a {
  background: linear-gradient(135deg, rgba(176, 116, 209, 0.28), rgba(176, 116, 209, 0.08));
  color: #fff;
}

@media (max-width: 767.98px) {
  .card-body { padding: 1rem; }
  .card-body[class*="bl-"] i.bx-lg { width: 44px; height: 44px; font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
