/* =========================================================
   Donation Widget — Glassmorphic Redesign
   ========================================================= */

@keyframes dw_border_glow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes dw_pulse_glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(79, 234, 159, 0.4)); }
  50% { filter: drop-shadow(0 0 22px rgba(79, 234, 159, 0.8)); }
}

#dw_donations .completed_donate {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

#dw_donations .completed_donate span.text {
  display: flex;
  font-size: 40px;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(79, 234, 159, 0.8);
}

#dw_donations .completed_donate .centered {
  margin: auto;
  z-index: 10000;
  padding-bottom: 20px;
}

/* Основной блок с Glassmorphic размытием и бегущей неоновой обводкой */
#dw_donations .block.dark {
  color: #aeb6d2;
  background: rgba(18, 20, 29, 0.68) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  border-radius: 20px !important;
  padding: 24px;
  margin-bottom: 30px !important;
  position: relative;
  overflow: hidden;
  user-select: none;
  animation-duration: 1s;
  animation-fill-mode: both;
}

#dw_donations .block.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, #22b877, #4fea9f, #a8ffdb, #4fea9f, #22b877);
  background-size: 300% 300%;
  animation: dw_border_glow 5s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

#dw_donations .fadeIn {
  animation-name: fadeIn;
}

#dw_donations .vertical-center-line {
  position: relative;
  z-index: 1001;
}

#dw_donations .vertical-center-line::after {
  content: " ";
  height: 100%;
  position: absolute;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  top: 0;
  right: 50%;
}

@media (max-width: 991.99px) {
  #dw_donations .vertical-center-line::after {
    display: none;
  }
}

#dw_donations .block.dark .block_head {
  margin-bottom: 24px;
  font-weight: 800;
  font-size: 18px;
  color: #ffffff;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#dw_donations .block.dark .t-a-c,
#dw_donations .block.dark .m-b-10 {
  text-align: center;
  font-weight: 700;
  color: #707893;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#dw_donations .dw_target-sum {
  position: relative;
  font-weight: 900;
  color: #ffffff;
  word-break: break-all;
  margin-bottom: 12px;
  font-size: 16px;
  transition: color 0.2s ease;
}

#dw_donations .dw_target-sum:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4fea9f, #22b877);
  box-shadow: 0 0 8px rgba(79, 234, 159, 0.8);
  transition: width 0.3s ease-in-out;
}

#dw_donations .dw_target-sum:hover:after {
  width: 100%;
}

/* Форма ввода суммы */
#dw_donations .block.dark .input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  gap: 10px;
}

#dw_donations .block.dark input.form-control {
  background: rgba(0, 0, 0, 0.3) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  height: 48px;
  flex: 1 1 auto;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

#dw_donations .block.dark input.form-control:focus {
  outline: none;
  border-color: #4fea9f !important;
  box-shadow: 0 0 15px rgba(79, 234, 159, 0.25) !important;
  background: rgba(0, 0, 0, 0.45) !important;
}

#dw_donations .block.dark input.form-control::-webkit-input-placeholder {
  color: #707893;
  text-align: center;
}

/* Кнопка отправки доната */
#dw_donations .block.dark input.btn.btn-outline-primary, 
#dw_donations .block.dark button.btn.btn-outline-primary {
  height: 48px !important;
  background: linear-gradient(135deg, #4fea9f 0%, #22b877 100%) !important;
  color: #08150f !important;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px !important;
  border: none !important;
  padding: 0 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(79, 234, 159, 0.35);
  transition: all 0.22s ease !important;
}

#dw_donations .block.dark input.btn.btn-outline-primary:hover:not([disabled]), 
#dw_donations .block.dark button.btn.btn-outline-primary:hover:not([disabled]) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 234, 159, 0.5) !important;
  opacity: 1 !important;
}

/* Списки донатеров / История */
#dw_donations .block.dark .scroll-body {
  max-height: 250px;
  overflow-y: auto;
  padding: 6px;
}

#dw_donations .block.dark .scroll-body::-webkit-scrollbar {
  width: 4px;
}

#dw_donations .block.dark .scroll-body::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
}

#dw_donations #dw_users a {
  padding: 10px 12px;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

#dw_donations #dw_users a:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(79, 234, 159, 0.3);
  transform: translateX(3px);
  text-decoration: none;
}

#dw_donations #dw_users a .pb-avatar-wrap {
  flex: 0 0 auto;
  margin-right: 12px;
}

#dw_donations #dw_users a div {
  margin: 0;
  font-weight: 700;
  color: #ffffff;
  font-size: 13px;
  flex: 1 1 auto;
  min-width: 0;
}

#dw_donations #dw_users a div p span, 
#dw_donations #dw_users a div > span span {
  color: #aeb6d2;
  font-size: 11.5px;
  margin-right: 5px;
}

#dw_donations #dw_users a span i::before {
  color: #08150f;
  font-size: 10px;
  background: linear-gradient(135deg, #4fea9f 0%, #22b877 100%);
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(79, 234, 159, 0.4);
}

/* Круговой прогресс-бар доната (.c100) */
#dw_donations .c100 {
  position: relative;
  font-size: 110px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  float: none;
  margin: 15px auto;
  background-color: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 234, 159, 0.15);
}

#dw_donations .c100 > span {
  position: absolute;
  width: 100%;
  z-index: 1;
  left: 0;
  top: 0;
  line-height: 5em;
  font-size: 0.22em;
  font-weight: 800;
  color: #ffffff;
  display: block;
  text-align: center;
  text-shadow: 0 0 10px rgba(79, 234, 159, 0.5);
  transition: all 0.2s ease;
}

#dw_donations .pie, 
#dw_donations .c100 .bar {
  border-color: #4fea9f !important;
  box-shadow: 0 0 12px rgba(79, 234, 159, 0.6);
}

#dw_donations .c100:after {
  position: absolute;
  top: 0.08em;
  left: 0.08em;
  display: block;
  content: " ";
  border-radius: 50%;
  background: rgba(18, 20, 29, 0.9);
  backdrop-filter: blur(8px);
  width: 0.84em;
  height: 0.84em;
  transition: all 0.2s ease;
}

#dw_donations .c100:hover > span {
  color: #4fea9f;
  transform: scale(1.1);
}