:root {
  --bg: #050607;
  --text: #f4f4f5;
  --muted: rgba(244, 244, 245, 0.58);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --purple: #8b5cf6;
  --blue: #38bdf8;
  --yellow: #f59e0b;
  --green: #22c55e;
  --danger: #ef4444;
}

* { box-sizing: border-box; }

html {
  scrollbar-gutter: auto;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

/* Background */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050607;
  pointer-events: none;
}

.bg video,
.bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) blur(2px);
  transform: scale(1.03);
  opacity: 1;
}

.bg img { z-index: 0; }
.bg video { z-index: 1; }

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.06), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(139,92,246,0.06), transparent 30%),
    linear-gradient(to bottom, rgba(0,0,0,0.14), rgba(0,0,0,0.42) 56%, rgba(0,0,0,0.76)),
    rgba(0,0,0,0.12);
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0,0,0,0.04);
  backdrop-filter: blur(1px);
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter;
}

body.page-ready .page {
  opacity: 1;
  filter: blur(0);
}

body.page-leaving .page {
  opacity: 0;
  filter: blur(1px);
}

/* Common */
.center-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 24px 60px;
}

.shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
}

.bi { font-size: 18px; line-height: 1; }

.btn,
.top-btn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: rgba(255, 255, 255, 0.90);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.top-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.20);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
}

.btn:disabled,
.top-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  min-width: 140px;
  background: linear-gradient(135deg, rgba(126,87,240,0.92), rgba(73,161,233,0.78));
  color: #fff;
  border-color: rgba(114,128,255,0.34);
  box-shadow: 0 12px 30px rgba(98,98,255,0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(133,96,244,0.96), rgba(83,171,241,0.82));
  color: #fff;
  border-color: rgba(114,128,255,0.42);
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.90);
}

.btn-secondary:hover {
  border-color: rgba(126,87,240,0.22);
}

.logout-btn:hover {
  border-color: rgba(239,68,68,0.42);
  color: #fecaca;
  background: rgba(239,68,68,0.10);
}

/* Brand */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  animation: fadeIn 0.45s ease both;
}

.brand-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02)), rgba(8, 10, 13, 0.75);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 55px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.08);
  margin-bottom: 14px;
}

.brand-mark {
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.08em;
  transform: translateX(-2px);
}

.brand-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.brand-login { margin-bottom: 42px; }

/* Login */
.login-card {
  width: min(650px, calc(100% - 40px));
  border-radius: 18px;
  padding: 28px 28px 22px;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 18% 0%, rgba(139,92,246,0.14), transparent 38%), linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)), rgba(15, 17, 21, 0.62);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: cardIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-head { margin-bottom: 20px; text-align: center; }
.login-title { margin: 0 0 8px; font-size: 28px; line-height: 1.15; font-weight: 900; letter-spacing: 0.01em; }
.login-subtitle { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.form { display: flex; flex-direction: column; gap: 13px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.label { width: 78%; align-self: center; color: rgba(255,255,255,0.74); font-size: 12px; font-weight: 800; }

.input {
  width: 78%;
  height: 42px;
  align-self: center;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(5, 7, 10, 0.58);
  color: var(--text);
  padding: 0 13px;
  outline: none;
  font: inherit;
  font-size: 13px;
  transition: 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.input::placeholder { color: rgba(255,255,255,0.32); }
.input:focus { border-color: rgba(139,92,246,0.56); background: rgba(5, 7, 10, 0.72); box-shadow: 0 0 0 4px rgba(139,92,246,0.12), inset 0 1px 0 rgba(255,255,255,0.05); }

.submit {
  width: 240px;
  align-self: center;
  height: 46px;
  margin-top: 4px;
  border: 1px solid rgba(139,92,246,0.42);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(126,87,240,0.92), rgba(73,161,233,0.72));
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow: 0 14px 42px rgba(139,92,246,0.22);
}

.submit:hover { transform: translateY(-1px); box-shadow: 0 18px 52px rgba(139,92,246,0.28); }
.submit:disabled { opacity: 0.62; cursor: not-allowed; transform: none; }

.error {
  display: none;
  width: 78%;
  align-self: center;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(239,68,68,0.28);
  background: rgba(239,68,68,0.1);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.4;
}

.hint { margin-top: 16px; color: rgba(255,255,255,0.42); font-size: 12px; text-align: center; line-height: 1.45; }

/* Hub */
.hub-page { padding: 22px 32px 56px; }
.hub-shell { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding-top: 56px; }
.brand-hub { margin-top: 12px; margin-bottom: 56px; }
.hub-page .brand-icon { width: 74px; height: 74px; border-radius: 18px; margin-bottom: 14px; }
.hub-page .brand-title { font-size: 25px; letter-spacing: 0.13em; margin-bottom: 0; }

.top-actions { position: fixed; top: 28px; right: 34px; z-index: 10; display: flex; gap: 10px; align-items: center; }
.section { margin-bottom: 42px; }
.section-head { margin-bottom: 16px; }
.section-title { font-size: 22px; line-height: 1.2; font-weight: 800; margin: 0 0 4px; letter-spacing: 0.01em; }
.section-subtitle { margin: 0; color: var(--muted); font-size: 13px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.hub-page #mainGrid {
  min-height: 126px;
}

.hub-page #linksGrid {
  min-height: 126px;
}
.hub-page .section {
  min-height: 190px;
}

.card {
  min-height: 126px;
  border-radius: 15px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)), rgba(15, 17, 21, 0.62);
  backdrop-filter: blur(20px);
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 60px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  animation: cardIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card::before { content: ""; position: absolute; inset: -1px; background: radial-gradient(circle at 15% 0%, var(--accent-soft), transparent 42%); opacity: 0.8; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: var(--accent-border); background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)), rgba(25, 28, 35, 0.72); }
.card:hover .icon { transform: translateY(-1px) scale(1.03); }
.card-top, .card-bottom { position: relative; z-index: 1; }
.card-top { display: flex; justify-content: flex-start; align-items: flex-start; margin-bottom: 18px; }

.icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-bg); border: 1px solid var(--accent-border); color: white; transition: 0.18s ease; box-shadow: 0 8px 28px var(--accent-shadow); }
.icon .bi { font-size: 20px; }
.open { display: none !important; }
.card-title { margin: 0 0 5px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.card-desc { margin: 0; color: var(--muted); line-height: 1.3; font-size: 12.5px; }
.purple { --accent-bg: rgba(139, 92, 246, 0.18); --accent-border: rgba(139, 92, 246, 0.38); --accent-soft: rgba(139, 92, 246, 0.22); --accent-shadow: rgba(139, 92, 246, 0.16); }
.blue { --accent-bg: rgba(56, 189, 248, 0.15); --accent-border: rgba(56, 189, 248, 0.32); --accent-soft: rgba(56, 189, 248, 0.16); --accent-shadow: rgba(56, 189, 248, 0.13); }
.yellow { --accent-bg: rgba(245, 158, 11, 0.16); --accent-border: rgba(245, 158, 11, 0.32); --accent-soft: rgba(245, 158, 11, 0.15); --accent-shadow: rgba(245, 158, 11, 0.12); }
.empty { display: none; border-radius: 16px; padding: 18px; background: rgba(10, 12, 16, 0.52); border: 1px dashed rgba(255,255,255,0.18); color: var(--muted); backdrop-filter: blur(18px); line-height: 1.45; }
.loading { grid-column: 1 / -1; color: var(--muted); font-size: 14px; padding: 10px 0; }

/* Upload */
.upload-page { padding: 42px 24px 60px; }
.upload-page .bg::after { background: radial-gradient(circle at 50% 12%, rgba(255,255,255,0.045), transparent 26%), linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.48) 55%, rgba(0,0,0,0.78)), rgba(0,0,0,0.18); }
.old-upload-layout { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.upload-simple-header {
  min-height: 82px;
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.11);
  background:
    radial-gradient(circle at 0% 0%, rgba(139,92,246,0.10), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(56,189,248,0.06), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    rgba(12, 13, 16, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 52px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.04);
}

.upload-simple-header h1 { margin: 0; font-size: 26px; line-height: 1; font-weight: 900; letter-spacing: -0.02em; }
.upload-simple-header p { margin: 8px 0 0; color: rgba(255,255,255,0.56); font-size: 14px; }
.upload-simple-actions { display: flex; align-items: center; gap: 10px; }
.upload-simple-actions .btn { min-height: 40px; padding: 0 18px; border-radius: 12px; }
.upload-simple-actions .btn:hover { transform: translateY(-1px); }

.upload-page .upload-simple-actions .btn:first-child {
  border-color: rgba(56,189,248,0.20);
  background: linear-gradient(180deg, rgba(56,189,248,0.08), rgba(255,255,255,0.025));
}

.upload-page .upload-simple-actions .btn:first-child:hover {
  border-color: rgba(56,189,248,0.28);
  background: linear-gradient(180deg, rgba(56,189,248,0.12), rgba(255,255,255,0.04));
}

.upload-page .upload-simple-actions .btn:last-child {
  border-color: rgba(139,92,246,0.20);
  background: linear-gradient(180deg, rgba(139,92,246,0.08), rgba(255,255,255,0.025));
}

.upload-page .upload-simple-actions .btn:last-child:hover {
  border-color: rgba(139,92,246,0.28);
  background: linear-gradient(180deg, rgba(139,92,246,0.12), rgba(255,255,255,0.04));
}

.old-upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: flex-start; }
.upload-panel { border-radius: 16px; border: 1px solid rgba(255,255,255,0.10); background: radial-gradient(circle at 0% 0%, rgba(139,92,246,0.08), transparent 36%), linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.014)), rgba(15, 16, 20, 0.70); backdrop-filter: blur(12px); box-shadow: 0 18px 52px rgba(0,0,0,0.24); padding: 18px; }
.upload-panel-main { min-height: 360px; }
.upload-panel-result { min-height: 118px; }
.upload-panel h3 { margin: 0; font-size: 16px; line-height: 1.1; font-weight: 900; }
.upload-panel .small { margin-top: 8px; color: rgba(255,255,255,0.58); font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }

.dropzone { margin-top: 14px; min-height: 210px; border-radius: 14px; border: 1px dashed rgba(255,255,255,0.12); background: radial-gradient(circle at 10% 0%, rgba(139,92,246,0.06), transparent 34%), rgba(4, 5, 7, 0.64); box-shadow: inset 0 1px 0 rgba(255,255,255,0.02); display: flex; align-items: center; justify-content: center; flex-direction: column; cursor: pointer; gap: 7px; color: rgba(255,255,255,0.84); transition: 0.18s ease; }
.old-dropzone { min-height: 200px; margin-top: 16px; text-align: center; }
.dropzone:hover, .dropzone-active, .old-dropzone:hover, .old-dropzone.dropzone-active { transform: none; background: radial-gradient(circle at 10% 0%, rgba(139,92,246,0.08), transparent 36%), rgba(8, 9, 13, 0.72); border-color: rgba(255,255,255,0.18); box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); }
.dropzone strong { font-size: 15px; font-weight: 800; }
.old-dropzone strong { font-size: 14px; font-weight: 900; }
.dropzone span, .old-dropzone span { color: rgba(255,255,255,0.58); font-size: 13px; }
.old-dropzone .paste-hint { color: rgba(255,255,255,0.42); font-size: 12px; }

.upload-actions-row { margin-top: 16px; gap: 14px; }
.upload-page #uploadBtn { min-height: 40px; min-width: 120px; padding: 0 18px; border-radius: 12px; font-weight: 800; }
.upload-page #uploadBtn:hover { transform: translateY(-1px); }
.upload-page #status { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.82); line-height: 1.2; }

.small, .muted { margin-top: 5px; color: rgba(255,255,255,0.52); font-size: 13px; line-height: 1.4; }
.danger { margin-top: 12px; border: 1px solid rgba(239,68,68,0.28); background: rgba(239,68,68,0.1); color: #fecaca; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; }

.results { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.result { border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; background: radial-gradient(circle at 0% 0%, rgba(139,92,246,0.05), transparent 32%), rgba(8, 9, 12, 0.66); padding: 12px; backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); }
.result-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.result-title { font-size: 13px; font-weight: 900; line-height: 1.2; }
.result-link { display: block; font-size: 12px; color: rgba(255,255,255,0.58); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 620px; }
.preview { margin-top: 10px; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden; background: rgba(0,0,0,0.32); box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); }
.preview img { display: block; width: 100%; max-height: 240px; object-fit: contain; }

.upload-page #clearBtn { min-height: 40px; padding: 0 16px; border-radius: 12px; border-color: rgba(239,68,68,0.18); }
.upload-page #clearBtn:hover { transform: translateY(-1px); border-color: rgba(239,68,68,0.28); color: #fff; }

/* Album */
.album-page { padding: 38px 24px 70px; }
.album-header { width: min(1120px, calc(100% - 48px)); margin: 0 auto 22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.album-header h1 { margin: 0; font-size: 24px; line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; }
.album-header p { margin: 7px 0 0; color: rgba(255,255,255,0.58); font-size: 14px; }
.album-actions { display: flex; align-items: center; gap: 10px; }
.album-actions .btn { min-height: 38px; padding: 0 18px; border-radius: 12px; }
.album-actions .btn:hover { transform: translateY(-1px); }

.album { width: min(1120px, calc(100% - 48px)); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.album-item { width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,0.10); background: radial-gradient(circle at 0% 0%, rgba(139,92,246,0.08), transparent 36%), linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.014)), rgba(15, 16, 20, 0.70); backdrop-filter: blur(12px); box-shadow: 0 18px 52px rgba(0,0,0,0.24); overflow: hidden; }
.album-meta { padding: 14px 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.album-name { color: rgba(255,255,255,0.92); font-size: 14px; font-weight: 800; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-meta .link { display: block; margin-top: 6px; color: rgba(255,255,255,0.56); font-size: 13px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-img-wrap { width: 100%; min-height: 360px; max-height: 620px; display: flex; align-items: center; justify-content: center; background: rgba(4, 5, 7, 0.55); }
.album-img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; }
.album .muted { padding: 22px; border-radius: 16px; border: 1px dashed rgba(255,255,255,0.16); background: rgba(12, 13, 16, 0.58); color: rgba(255,255,255,0.56); }
#themeToggle { display: none !important; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(8px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }

/* Mobile */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .old-upload-grid { grid-template-columns: 1fr; }
  .upload-panel-main, .upload-panel-result { min-height: auto; }
}

@media (max-width: 760px) {
  .center-page { padding: 42px 18px; }
  .hub-page { padding: 20px 18px 42px; }
  .hub-shell { width: 100%; padding-top: 20px; }
  .brand-hub { margin-top: 8px; margin-bottom: 34px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 120px; }
  .top-actions { position: static; justify-content: center; margin-bottom: 22px; }
  .logout-btn span { display: none; }
  .logout-btn { width: 46px; padding: 0; justify-content: center; }
  .login-card { padding: 22px 18px 18px; }
  .login-title { font-size: 24px; }
  .label, .input, .error { width: 100%; }
  .submit { width: 100%; }
  .upload-page { padding: 24px 16px 42px; }
  .old-upload-layout { width: 100%; }
  .upload-simple-header { flex-direction: column; gap: 14px; align-items: stretch; }
  .upload-simple-actions { width: 100%; }
  .upload-simple-actions .btn { flex: 1; }
  .row, .row-between, .result-head { flex-direction: column; align-items: stretch; }
  .btn, .btn-primary, .btn-secondary { width: 100%; }
  .result-link { max-width: 100%; }
  .album-page { padding: 24px 16px 44px; }
  .album-header { width: 100%; flex-direction: column; gap: 14px; }
  .album { width: 100%; }
  .album-actions { width: 100%; }
  .album-actions .btn { width: 100%; }
  .album-img-wrap { min-height: 240px; max-height: 420px; }
  .album-img { max-height: 420px; }
}

/* Registration keys / admin */
.role-check {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(5, 7, 10, 0.42);
  cursor: pointer;
}

.role-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--purple);
}

.role-check span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.role-check strong {
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  line-height: 1.2;
}

.role-check small {
  color: rgba(255,255,255,0.52);
  font-size: 12px;
  line-height: 1.35;
}

.generated-key {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(34,197,94,0.24);
  background: rgba(34,197,94,0.08);
}

.generated-key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.generated-key code {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.24);
  color: #dcfce7;
  font-size: 13px;
  overflow: auto;
  white-space: nowrap;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.72);
  font-size: 11px;
  font-weight: 800;
}

.pill-active {
  border-color: rgba(34,197,94,0.28);
  background: rgba(34,197,94,0.10);
  color: #bbf7d0;
}

.pill-used {
  border-color: rgba(245,158,11,0.26);
  background: rgba(245,158,11,0.10);
  color: #fde68a;
}

.inline-link {
  color: rgba(255,255,255,0.78);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.24);
  text-underline-offset: 3px;
}

.inline-link:hover {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.56);
}

@media (max-width: 760px) {
  .generated-key-row { flex-direction: column; align-items: stretch; }
  .generated-key code { width: 100%; }
}

/* BP Assistant */
.bp-shell { width: min(920px, calc(100% - 48px)); }
.bp-panel { min-height: 0; }
.bp-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.bp-progress-text {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.88);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}
.bp-progressbar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.075);
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}
.bp-progressbar > div {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(139,92,246,0.92), rgba(56,189,248,0.72));
  transition: width 0.22s ease;
}
.bp-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bp-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(8, 9, 12, 0.56);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.bp-row:not(.bp-row-head) { cursor: pointer; }
.bp-row:not(.bp-row-head):hover {
  background: rgba(255,255,255,0.065);
  border-color: rgba(255,255,255,0.14);
}
.bp-row-head {
  min-height: 42px;
  color: rgba(255,255,255,0.48);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: transparent;
  border-color: transparent;
  padding-top: 0;
  padding-bottom: 0;
}
.bp-task-title {
  min-width: 0;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}
.bp-row.is-done .bp-task-title {
  color: rgba(255,255,255,0.48);
  text-decoration: line-through;
}
.bp-check-wrap {
  display: flex;
  justify-content: center;
}
.bp-check {
  width: 22px;
  height: 22px;
  accent-color: var(--purple);
  cursor: pointer;
}
.bp-tag {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(245,158,11,0.30);
  background: rgba(245,158,11,0.10);
  color: #fde68a;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  vertical-align: middle;
}
.bp-table-empty {
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.14);
  background: rgba(8, 9, 12, 0.44);
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(10px);
}
.modal-backdrop.is-open { display: flex; }
.modal-card {
  width: min(440px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15, 16, 20, 0.92);
  box-shadow: 0 28px 90px rgba(0,0,0,0.44), inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 18px;
  animation: cardIn 0.28s ease both;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.modal-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
}
.modal-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.75);
  cursor: pointer;
}
.modal-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.075);
}
.bp-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(8, 9, 12, 0.56);
}
.bp-toggle-row strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}
.bp-toggle-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.bp-toggle-row input {
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  accent-color: var(--purple);
  cursor: pointer;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 700px) {
  .bp-shell { width: 100%; }
  .bp-topline,
  .upload-simple-header,
  .upload-simple-actions,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .bp-progress-text { justify-content: center; }
  .bp-row { grid-template-columns: minmax(0, 1fr) 86px; }
  .bp-row-head { display: none; }
  .bp-task-title { font-size: 13px; }
}

/* BP Assistant mobile app layout */
.bp-mobile-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(245, 158, 11, 0.13), transparent 26%),
    radial-gradient(circle at 82% 8%, rgba(124, 58, 237, 0.10), transparent 28%),
    #050607;
  color: rgba(255,255,255,0.92);
}

.bp-mobile-body::before,
.bp-mobile-body .bg {
  display: none !important;
}

.bp-app {
  --bp-bg: #050607;
  --bp-card: rgba(25, 27, 32, 0.92);
  --bp-card-2: rgba(18, 20, 25, 0.94);
  --bp-soft: rgba(255,255,255,0.08);
  --bp-text: rgba(255,255,255,0.92);
  --bp-muted: rgba(255,255,255,0.50);
  --bp-orange: #f59e0b;
  --bp-orange-2: #ffb020;
  --bp-green: #34d399;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 14px calc(96px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent 90px), var(--bp-bg);
}

.bp-app-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 80px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 8px 0 14px;
  background: linear-gradient(180deg, #050607 72%, rgba(5,6,7,0));
}

.bp-close {
  color: var(--bp-text);
  font-size: 15px;
  text-decoration: none;
  opacity: 0.95;
}

.bp-titlebox { text-align: center; }
.bp-titlebox h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: 0.03em;
  font-weight: 900;
}
.bp-titlebox p {
  margin: 3px 0 0;
  color: var(--bp-muted);
  font-size: 13px;
  line-height: 1.2;
}

.bp-more,
.bp-gear,
.bp-bottom-nav button,
.bp-tab,
.bp-task-main,
.bp-mini-check,
.bp-counter button,
.bp-reset-btn {
  font: inherit;
}

.bp-more {
  width: 38px;
  height: 38px;
  justify-self: end;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.035);
  color: var(--bp-text);
  display: grid;
  place-items: center;
}

.bp-tabs-card {
  display: grid;
  grid-template-columns: 1fr 1.35fr 58px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(12, 13, 16, 0.86);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 12px 32px rgba(0,0,0,0.24);
}

.bp-tab,
.bp-gear {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: rgba(255,255,255,0.64);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}

.bp-tab.is-active {
  color: #fff;
  background: rgba(255,255,255,0.075);
  font-weight: 800;
}

.bp-gear {
  border-left: 1px solid rgba(255,255,255,0.13);
  border-radius: 0 13px 13px 0;
  font-size: 22px;
}

.bp-coin {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 30% 22%, #ffd28a, #f59e0b 58%, #d97706);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: -0.04em;
  box-shadow: 0 0 16px rgba(245,158,11,0.24);
}

.bp-score-card,
.bp-progress-card {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 14px 34px rgba(0,0,0,0.24);
}

.bp-score-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  margin-bottom: 10px;
}

.bp-score-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 800;
}
.bp-score-main strong { font-weight: 950; }

.bp-inline-switches {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 8px;
}

.bp-switch-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 34px;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  padding: 9px 10px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 9, 12, 0.44);
  cursor: pointer;
  user-select: none;
}

.bp-switch-tile input { position: absolute; opacity: 0; pointer-events: none; }
.bp-switch-text b {
  display: block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.bp-switch-text small {
  display: block;
  margin-top: 4px;
  color: var(--bp-muted);
  font-size: 10px;
  line-height: 1;
}
.bp-switch-ui {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.10);
  position: relative;
}
.bp-switch-ui::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  position: absolute;
  left: 2px;
  top: 2px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.bp-switch-tile:has(input:checked) {
  border-color: rgba(245,158,11,0.45);
  background: rgba(245,158,11,0.12);
  color: var(--bp-orange-2);
}
.bp-switch-tile:has(input:checked) .bp-switch-ui {
  background: var(--bp-orange);
}
.bp-switch-tile:has(input:checked) .bp-switch-ui::after {
  transform: translateX(14px);
  background: #fff;
}

.bp-progress-card {
  padding: 12px;
  margin-bottom: 10px;
}
.bp-progress-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 9px;
}
.bp-progressbar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.07);
}
.bp-progressbar > div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #ffd166);
  transition: width 0.22s ease;
}

.bp-error {
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(239,68,68,0.28);
  background: rgba(239,68,68,0.10);
  color: #fecaca;
  font-size: 13px;
}

.bp-task-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bp-loading {
  padding: 18px;
  color: var(--bp-muted);
  text-align: center;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 16px;
}

.bp-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,0.055);
  background: linear-gradient(180deg, rgba(30, 32, 38, 0.96), rgba(22, 24, 29, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 10px 24px rgba(0,0,0,0.18);
}

.bp-task-card.is-done {
  border-color: rgba(52,211,153,0.22);
  background: linear-gradient(180deg, rgba(29, 43, 39, 0.96), rgba(21, 29, 27, 0.96));
}

.bp-task-card.is-started {
  border-color: rgba(245, 158, 11, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 1px rgba(245, 158, 11, 0.28),
    0 10px 24px rgba(0,0,0,0.18);
}

.bp-task-main {
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}
.bp-task-main:disabled { cursor: default; }

.bp-task-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
}
.bp-task-card.is-done .bp-task-icon { color: var(--bp-green); }

.bp-task-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.15;
  color: rgba(255,255,255,0.88);
}

.bp-mini-check {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.48);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.bp-task-card.is-done .bp-mini-check { color: var(--bp-green); }

.bp-counter {
  display: grid;
  grid-template-columns: auto 34px 34px 34px;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 15px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.055);
}
.bp-target {
  min-width: 24px;
  color: rgba(255,255,255,0.82);
  text-align: center;
  font-weight: 800;
}
.bp-counter button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 11px;
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.76);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.bp-counter strong,
.bp-counter-value {
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}

.bp-counter .bp-counter-value {
  background: transparent;
  border-radius: 9px;
  color: #fff;
  cursor: text;
}

.bp-counter .bp-counter-value:hover {
  background: rgba(255,255,255,0.08);
}

.bp-counter-input {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(245,158,11,0.5);
  border-radius: 10px;
  background: rgba(8, 9, 12, 0.78);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  outline: none;
}

.bp-counter-input::-webkit-outer-spin-button,
.bp-counter-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bp-reward {
  min-width: 48px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 9, 12, 0.36);
  color: rgba(255,255,255,0.70);
  display: inline-grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
}
.bp-task-card.is-done .bp-reward {
  color: #fdba74;
  border-color: rgba(245,158,11,0.26);
  background: rgba(245,158,11,0.08);
}

.bp-reset-btn {
  width: 100%;
  min-height: 54px;
  margin: 12px 0 0;
  border-radius: 17px;
  border: 1px solid rgba(245,158,11,0.90);
  background: rgba(245,158,11,0.03);
  color: var(--bp-orange-2);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.bp-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  width: min(100%, 520px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(10, 11, 14, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 -14px 42px rgba(0,0,0,0.36);
}
.bp-bottom-nav button {
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: rgba(255,255,255,0.46);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.bp-bottom-nav i { font-size: 22px; line-height: 1; }
.bp-bottom-nav span {
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}
.bp-bottom-nav button.is-active {
  color: #fff;
  background: rgba(245,158,11,0.12);
}
.bp-bottom-nav button.is-active i { color: var(--bp-orange); }

@media (max-width: 430px) {
  .bp-app { padding-left: 10px; padding-right: 10px; }
  .bp-tabs-card { grid-template-columns: 1fr 1.25fr 50px; }
  .bp-score-card { grid-template-columns: 1fr; }
  .bp-inline-switches { justify-content: stretch; }
  .bp-switch-tile { flex: 1; min-width: 0; }
  .bp-task-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }
  .bp-counter {
    grid-column: 1 / 2;
    justify-self: end;
    grid-row: 2;
  }
  .bp-reward {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .bp-task-name { font-size: 15px; }
  .bp-bottom-nav span { font-size: 10px; }
  .bp-bottom-nav i { font-size: 20px; }
}

@media (max-width: 350px) {
  .bp-tab { font-size: 12px; }
  .bp-score-main { font-size: 16px; }
  .bp-counter { grid-template-columns: auto 30px 30px 30px; }
  .bp-counter button { width: 30px; height: 30px; }
  .bp-reward { min-width: 42px; }
}

/* BP Assistant desktop/tablet MVP layout */
.bp-desktop-body {
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 158, 11, 0.13), transparent 24%),
    radial-gradient(circle at 92% 0%, rgba(124, 58, 237, 0.12), transparent 26%),
    #050607;
}

.bp-desktop-body .bp-app {
  width: min(1120px, calc(100% - 48px));
  min-height: auto;
  margin: 18px auto 32px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)), rgba(5,6,7,0.88);
  box-shadow: 0 24px 80px rgba(0,0,0,0.34);
}

.bp-desktop-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
}

.bp-close-top {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  gap: 8px;
}
.bp-close-top:hover { background: rgba(255,255,255,0.075); }

.bp-desktop-body .bp-tabs-card,
.bp-desktop-body .bp-bottom-nav,
.bp-desktop-body .bp-app-head {
  display: none !important;
}

.bp-score-card-desktop {
  margin-bottom: 12px;
}

.bp-desktop-body .bp-score-card {
  padding: 14px 16px;
}

.bp-desktop-body .bp-progress-card {
  padding: 12px 16px;
  margin-bottom: 14px;
}

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

.bp-task-grid .bp-loading {
  grid-column: 1 / -1;
}

.bp-desktop-body .bp-task-card {
  min-height: 50px;
  padding: 8px 10px;
  border-radius: 15px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.bp-task-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.bp-desktop-body .bp-task-main {
  gap: 9px;
}

.bp-desktop-body .bp-task-icon {
  flex-basis: 24px;
  width: 24px;
  height: 24px;
  font-size: 17px;
}

.bp-desktop-body .bp-task-name {
  font-size: 14px;
}

.bp-desktop-body .bp-mini-check {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  flex: 0 0 auto;
}

.bp-desktop-body .bp-counter {
  grid-template-columns: auto 28px 28px 28px;
  padding: 3px;
  border-radius: 12px;
  flex: 0 0 auto;
}

.bp-desktop-body .bp-target {
  min-width: 20px;
  font-size: 13px;
}

.bp-desktop-body .bp-counter button {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 17px;
}

.bp-desktop-body .bp-counter strong,
.bp-desktop-body .bp-counter-value {
  font-size: 14px;
}

.bp-desktop-body .bp-counter-input {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 13px;
}

.bp-desktop-body .bp-reward {
  min-width: 40px;
  height: 32px;
  border-radius: 11px;
  font-size: 14px;
  flex: 0 0 auto;
}

.bp-hide-task {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.34);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity .16s ease, background .16s ease, color .16s ease;
  flex: 0 0 auto;
}
.bp-hide-task:hover {
  opacity: 1;
  color: #fecaca;
  background: rgba(239,68,68,0.10);
}
.bp-hide-task i { font-size: 12px; }

.bp-desktop-body .bp-reset-btn {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  min-height: 46px;
  border-radius: 14px;
  font-size: 14px;
}

@media (max-width: 760px) {
  .bp-desktop-body .bp-app {
    width: min(100%, calc(100% - 20px));
    margin: 10px auto 20px;
    padding: 12px;
    border-radius: 18px;
  }

  .bp-score-card-desktop {
    grid-template-columns: 1fr;
  }

  .bp-task-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .bp-desktop-body .bp-task-card {
    grid-template-columns: 1fr;
  }

  .bp-task-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .bp-desktop-body .bp-score-main {
    font-size: 16px;
  }
}

/* BP Assistant settings/title update */
.bp-desktop-body .bp-app {
  width: min(1200px, calc(100% - 40px));
}

.bp-desktop-head-full {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.bp-page-title {
  margin: 0;
  color: #f8fafc;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0.04em;
  font-weight: 850;
}

.bp-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.bp-settings-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: 12px;
  background: rgba(245,158,11,0.08);
  color: #fff7ed;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.bp-settings-btn:hover {
  background: rgba(245,158,11,0.14);
  border-color: rgba(245,158,11,0.44);
  transform: translateY(-1px);
}

.bp-desktop-body .bp-task-card {
  min-height: 46px;
  padding: 7px 10px;
}

.bp-desktop-body .bp-task-main {
  min-width: 0;
}

.bp-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.bp-modal.is-open {
  display: flex;
}

.bp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(10px);
}

.bp-modal-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)), #090b0e;
  box-shadow: 0 24px 90px rgba(0,0,0,0.62);
  padding: 18px;
}

.bp-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.bp-modal-head h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 21px;
  line-height: 1.2;
}

.bp-modal-head p {
  margin: 5px 0 0;
  color: rgba(255,255,255,0.54);
  font-size: 13px;
}

.bp-modal-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.78);
  cursor: pointer;
}

.bp-modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.bp-settings-section-toggle {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  cursor: pointer;
}

.bp-settings-section-toggle i {
  transition: transform .16s ease;
}

.bp-settings-section-toggle.is-collapsed i {
  transform: rotate(180deg);
}

.bp-visibility-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  margin-bottom: 16px;
}

.bp-visibility-list.is-collapsed {
  display: none;
}

.bp-visibility-row {
  min-height: 44px;
  padding: 7px 8px 7px 11px;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 13px;
  background: rgba(255,255,255,0.035);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bp-visibility-row {
  cursor: grab;
}

.bp-visibility-row:active {
  cursor: grabbing;
}

.bp-visibility-row.is-dragging {
  opacity: .45;
}

.bp-visibility-row.is-drag-over {
  border-color: rgba(139, 92, 246, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(139, 92, 246, 0.22);
}

.bp-visibility-row.is-hidden {
  opacity: .62;
}

.bp-visibility-row.is-unavailable {
  opacity: .48;
}

.bp-visibility-name {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 750;
}

.bp-visibility-name span:not(.bp-task-icon) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-visibility-name em {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
}

.bp-eye-btn {
  width: 38px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 11px;
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.78);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.bp-eye-btn:hover {
  color: #f59e0b;
  border-color: rgba(245,158,11,0.28);
  background: rgba(245,158,11,0.08);
}

.bp-reset-btn-modal {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

.bp-counter.is-repeatable {
  grid-template-columns: 22px 28px 34px 28px;
}

@media (max-width: 760px) {
  .bp-desktop-head-full {
    align-items: stretch;
    flex-direction: column;
  }

  .bp-head-actions {
    width: 100%;
  }

  .bp-head-actions > * {
    flex: 1 1 0;
  }

  .bp-page-title {
    font-size: 20px;
  }

  .bp-modal {
    padding: 10px;
  }

  .bp-modal-panel {
    border-radius: 18px;
    padding: 14px;
  }
}


/* BP Assistant settings polish */
.bp-reset-btn-modal {
  width: 100%;
  max-width: none !important;
  margin-top: 18px !important;
}

.bp-visibility-list:not(.is-collapsed) {
  margin-bottom: 22px;
}

.bp-settings-section-toggle.is-collapsed + .bp-visibility-list + .bp-reset-btn-modal {
  margin-top: 18px !important;
}

/* BP Assistant: выравнивание правой части карточек */
.bp-desktop-body .bp-task-actions {
  display: grid;
  grid-template-columns: 128px 36px 44px;
  align-items: center;
  justify-content: end;
  gap: 6px;
  width: 220px;
  flex: 0 0 220px;
}

.bp-desktop-body .bp-counter,
.bp-desktop-body .bp-counter-placeholder {
  width: 128px;
  height: 34px;
}

.bp-desktop-body .bp-counter {
  grid-template-columns: 28px 28px 28px 28px;
  justify-content: center;
  box-sizing: border-box;
}

.bp-counter-placeholder {
  display: block;
  pointer-events: none;
  visibility: hidden;
}

.bp-desktop-body .bp-mini-check {
  width: 36px;
  height: 36px;
}

.bp-desktop-body .bp-reward {
  width: 44px;
  min-width: 44px;
  justify-content: center;
}

.bp-visibility-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bp-drag-handle {
  width: 28px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(248,250,252,0.55);
}

.bp-task-order {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(248,250,252,0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 850;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .bp-desktop-body .bp-task-actions {
    grid-template-columns: minmax(108px, 1fr) 36px 44px;
    width: 100%;
    flex-basis: auto;
  }

  .bp-desktop-body .bp-counter,
  .bp-desktop-body .bp-counter-placeholder {
    width: 100%;
    max-width: 128px;
  }
}

/* Account settings */
.settings-page {
  padding: 50px 24px 70px;
}

.settings-layout {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
}

.settings-header {
  min-height: 96px;
  margin-bottom: 22px;
  padding: 18px 22px;
}

.settings-header h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.settings-header p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.58);
  font-size: 14px;
}

.settings-header p strong {
  color: rgba(255,255,255,0.86);
  font-weight: 800;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.settings-card {
  min-height: 318px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle at 12% 0%, rgba(139,92,246,0.12), transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(56,189,248,0.05), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    rgba(15, 17, 21, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 52px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.05);
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.settings-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  border: 1px solid rgba(139,92,246,0.40);
  background: rgba(139,92,246,0.18);
  box-shadow: 0 12px 32px rgba(139,92,246,0.16);
}

.settings-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.settings-card p {
  margin: 7px 0 0;
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  line-height: 1.35;
}

.settings-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-field {
  gap: 8px;
}

.settings-label {
  color: rgba(255,255,255,0.70);
  font-size: 12px;
  font-weight: 900;
}

.settings-input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(5, 7, 10, 0.58);
  color: var(--text);
  padding: 0 13px;
  outline: none;
  font: inherit;
  font-size: 13px;
  transition: 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.settings-input::placeholder {
  color: rgba(255,255,255,0.32);
}

.settings-input:focus {
  border-color: rgba(139,92,246,0.56);
  background: rgba(5, 7, 10, 0.72);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}

.settings-spacer {
  flex: 1;
  min-height: 43px;
}

.settings-submit {
  width: 100%;
  height: 46px;
  margin-top: auto;
  border: 1px solid rgba(139,92,246,0.42);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(126,87,240,0.92), rgba(73,161,233,0.72));
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow: 0 12px 32px rgba(98,98,255,0.20);
}

.settings-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(98,98,255,0.24);
}

.settings-submit:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.settings-message {
  min-height: 18px;
  color: rgba(255,255,255,0.56);
  font-size: 13px;
  line-height: 1.35;
}

.settings-message-success {
  color: #bbf7d0;
}

.settings-message-error {
  color: #fecaca;
}

@media (max-width: 760px) {
  .settings-page { padding: 24px 16px 44px; }
  .settings-layout { width: 100%; }
  .settings-header { flex-direction: column; align-items: stretch; gap: 14px; }
  .settings-header h1 { font-size: 26px; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-card { min-height: auto; }
  .settings-spacer { display: none; }
}

/* My uploads page */
.my-uploads-shell {
  width: min(1120px, calc(100% - 48px));
}

.my-uploads-toolbar {
  margin-bottom: 16px;
}

.my-uploads-toolbar-head,
.my-uploads-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.my-uploads-filters {
  display: grid;
  grid-template-columns: 170px 170px minmax(220px, 1fr) 210px auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
}

.my-filter-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.my-filter-field span {
  color: rgba(255,255,255,0.66);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
}

.my-filter-field input,
.my-filter-field select {
  width: 100%;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(5, 7, 10, 0.58);
  color: rgba(255,255,255,0.90);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.my-filter-field input:focus,
.my-filter-field select:focus {
  border-color: rgba(139,92,246,0.56);
  background: rgba(5, 7, 10, 0.72);
  box-shadow: 0 0 0 4px rgba(139,92,246,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}

.my-filter-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.72;
  cursor: pointer;
}

.my-filter-field select option {
  background: #111318;
  color: #fff;
}

.my-filter-apply,
.my-filter-reset {
  min-width: 118px;
  height: 40px;
}

.my-uploads-list-panel {
  min-height: 420px;
}

.my-uploads-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.my-upload-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.09);
  background: radial-gradient(circle at 0% 0%, rgba(139,92,246,0.06), transparent 32%), rgba(8, 9, 12, 0.60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.my-upload-preview {
  width: 124px;
  height: 96px;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.my-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.my-upload-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.my-upload-title {
  min-width: 0;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  line-height: 1.22;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-upload-url {
  display: block;
  max-width: 100%;
  margin-top: 5px;
  color: rgba(255,255,255,0.52);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-upload-url:hover {
  color: rgba(255,255,255,0.82);
}

.my-upload-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.my-upload-meta span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
}

.my-upload-meta .bi {
  font-size: 12px;
}

.my-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.my-upload-actions .btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
}

.my-uploads-empty {
  min-height: 230px;
  margin-top: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.14);
  background: radial-gradient(circle at 0% 0%, rgba(139,92,246,0.05), transparent 32%), rgba(8, 9, 12, 0.48);
  color: rgba(255,255,255,0.58);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}

.my-uploads-empty .bi {
  color: rgba(255,255,255,0.40);
  font-size: 32px;
}

.my-uploads-empty strong {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  font-weight: 950;
}

.my-uploads-empty span {
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 1080px) {
  .my-uploads-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-filter-field-wide {
    grid-column: 1 / -1;
  }

  .my-filter-apply,
  .my-filter-reset {
    width: 100%;
  }

  .my-uploads-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .my-uploads-shell {
    width: 100%;
  }

  .my-uploads-toolbar-head,
  .my-uploads-list-head {
    flex-direction: column;
    align-items: stretch;
  }

  .my-uploads-filters {
    grid-template-columns: 1fr;
  }

  .my-filter-field-wide {
    grid-column: auto;
  }

  .my-upload-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .my-upload-preview {
    width: 92px;
    height: 92px;
  }

  .my-upload-actions .btn {
    flex: 1 1 auto;
  }
}

/* Admin sections */
.admin-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-nav-btn {
  min-height: 82px;
  padding: 16px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(8, 9, 12, 0.48);
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: 0.18s ease;
}

.admin-nav-btn:hover,
.admin-nav-btn.is-active {
  border-color: rgba(139,92,246,0.34);
  background: radial-gradient(circle at 0% 0%, rgba(139,92,246,0.14), transparent 38%), rgba(12, 14, 19, 0.66);
  transform: translateY(-1px);
}

.admin-nav-btn > .bi {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(139,92,246,0.30);
  background: rgba(139,92,246,0.12);
  color: #fff;
  flex: 0 0 auto;
}

.admin-nav-btn span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-nav-btn strong {
  color: rgba(255,255,255,0.94);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 950;
}

.admin-nav-btn small {
  color: rgba(255,255,255,0.54);
  font-size: 12px;
  line-height: 1.3;
}

.admin-section {
  display: none;
}

.admin-section.is-active {
  display: block;
}

.admin-upload-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 16px;
}

.admin-login-field input {
  font-weight: 850;
}

.admin-empty-hint {
  min-height: 170px;
  margin-top: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.14);
  background: rgba(8, 9, 12, 0.44);
  color: rgba(255,255,255,0.58);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 22px;
}

.admin-empty-hint .bi {
  color: rgba(255,255,255,0.38);
  font-size: 30px;
}

.admin-empty-hint strong {
  color: rgba(255,255,255,0.82);
  font-size: 16px;
  font-weight: 950;
}

.admin-empty-hint span {
  font-size: 13px;
  line-height: 1.35;
}

.admin-uploads-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.admin-upload-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(8, 9, 12, 0.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.admin-upload-preview {
  width: 132px;
  height: 100px;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  display: grid;
  grid-template-columns: 1fr;
}

.admin-upload-preview.is-album {
  grid-template-columns: repeat(2, 1fr);
}

.admin-upload-preview img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.admin-upload-preview-empty {
  width: 132px;
  height: 100px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.42);
}

.admin-upload-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-upload-title {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 950;
}

.admin-upload-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.admin-upload-meta span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  line-height: 1;
  font-weight: 850;
}

.admin-upload-meta .bi {
  font-size: 12px;
}

.admin-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.admin-upload-actions .btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .admin-nav,
  .admin-uploads-list {
    grid-template-columns: 1fr;
  }

  .admin-upload-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-login-field {
    grid-column: 1 / -1;
  }

  .admin-upload-filters .btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .admin-upload-card {
    grid-template-columns: 1fr;
  }

  .admin-upload-preview,
  .admin-upload-preview-empty {
    width: 100%;
    height: 170px;
  }

  .admin-upload-filters {
    grid-template-columns: 1fr;
  }
}


/* BP Progress — clean separate styles, no conflict with BP Assistant */
.bp-progress-body {
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 158, 11, 0.13), transparent 24%),
    radial-gradient(circle at 92% 0%, rgba(124, 58, 237, 0.12), transparent 26%),
    #050607;
  color: rgba(255,255,255,0.92);
}

.bp-progress-body::before,
.bp-progress-body .bg {
  display: none !important;
}

.bp-progress-body .bp-app {
  width: min(1200px, calc(100% - 40px));
  min-height: auto;
  margin: 18px auto 32px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
    rgba(5,6,7,0.88);
  box-shadow: 0 24px 80px rgba(0,0,0,0.34);
}

.bp-progress-body .bp-desktop-head-full {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bp-progress-body .bp-page-title {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.01em;
}

.bp-progress-body .bp-progress-subtitle {
  margin: 11px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 750;
}

.bp-progress-body .bp-close-top {
  min-height: 38px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 760;
  box-shadow: none;
}

.bp-progress-body .bp-close-top:hover {
  background: rgba(255,255,255,0.075);
  border-color: rgba(255,255,255,0.18);
}

/* New top cards. Important: do not use .bp-progress-card here because BP Assistant already uses it. */
.bp-progress-body .bp-history-stats,
.bp-progress-body .bp-progress-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.18fr) repeat(3, minmax(190px, 0.94fr));
  gap: 12px;
  margin: 0 0 14px;
}

.bp-progress-body .bp-history-stat,
.bp-progress-body .bp-progress-hero > .bp-progress-card,
.bp-progress-body .bp-progress-hero-main,
.bp-progress-body .bp-progress-hero-side {
  position: relative;
  overflow: hidden;
  min-height: 94px;
  padding: 16px 17px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(17, 19, 24, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 14px 34px rgba(0,0,0,0.24);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  color: #fff;
}

.bp-progress-body button.bp-history-stat,
.bp-progress-body .bp-progress-hero > button.bp-progress-card {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.bp-progress-body .bp-history-stat::after,
.bp-progress-body .bp-progress-hero > .bp-progress-card::after,
.bp-progress-body .bp-progress-hero-main::after,
.bp-progress-body .bp-progress-hero-side::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  opacity: 0.55;
  pointer-events: none;
}

.bp-progress-body .bp-history-stat-primary,
.bp-progress-body .bp-progress-card-main,
.bp-progress-body .bp-my-bp-card {
  border-color: rgba(245, 158, 11, 0.34);
  background:
    radial-gradient(circle at 12% 0%, rgba(245,158,11,0.16), transparent 44%),
    radial-gradient(circle at 96% 100%, rgba(139,92,246,0.09), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025)),
    rgba(17, 19, 24, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 14px 34px rgba(0,0,0,0.24),
    0 0 26px rgba(245,158,11,0.07);
}

.bp-progress-body .bp-history-stat-primary::after,
.bp-progress-body .bp-progress-card-main::after,
.bp-progress-body .bp-my-bp-card::after {
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.86), rgba(139,92,246,0.62), transparent);
  opacity: 0.95;
}

.bp-progress-body .bp-history-stat-primary:hover,
.bp-progress-body .bp-progress-card-main:hover,
.bp-progress-body .bp-my-bp-card:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.48);
  background:
    radial-gradient(circle at 12% 0%, rgba(245,158,11,0.20), transparent 44%),
    radial-gradient(circle at 96% 100%, rgba(139,92,246,0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.03)),
    rgba(20, 23, 29, 0.98);
}

.bp-progress-body .bp-history-stat-label,
.bp-progress-body .bp-progress-card-label,
.bp-progress-body .bp-progress-hero-main span,
.bp-progress-body .bp-progress-hero-side span {
  display: block;
  margin: 0 0 11px;
  color: rgba(255,255,255,0.66);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.bp-progress-body .bp-history-stat-primary .bp-history-stat-label,
.bp-progress-body .bp-progress-card-main .bp-progress-card-label,
.bp-progress-body .bp-my-bp-card .bp-progress-card-label,
.bp-progress-body .bp-my-bp-card .bp-my-bp-label {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(245,158,11,0.24);
  background: rgba(245,158,11,0.10);
  color: rgba(255,247,237,0.95);
  margin-bottom: 10px;
}

.bp-progress-body .bp-history-stat strong,
.bp-progress-body .bp-progress-hero > .bp-progress-card strong,
.bp-progress-body .bp-progress-hero-main strong,
.bp-progress-body .bp-progress-hero-side strong {
  display: block;
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.bp-progress-body .bp-history-stat-primary strong,
.bp-progress-body .bp-progress-card-main strong,
.bp-progress-body .bp-my-bp-card strong {
  font-size: 46px;
  letter-spacing: -0.045em;
}

.bp-progress-body .bp-history-toolbar {
  min-height: 64px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(17, 19, 24, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 14px 34px rgba(0,0,0,0.20);
}

.bp-progress-body .bp-month-title {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.bp-progress-body .bp-month-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.85);
}

.bp-progress-body .bp-month-btn:hover {
  border-color: rgba(245,158,11,0.30);
  background: rgba(245,158,11,0.10);
  color: #fff;
}

.bp-progress-body .bp-history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(360px, 0.85fr);
  gap: 12px;
  align-items: start;
}

.bp-progress-body .bp-calendar-card,
.bp-progress-body .bp-day-panel {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(15, 18, 24, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 14px 34px rgba(0,0,0,0.22);
}

.bp-progress-body .bp-calendar-weekdays,
.bp-progress-body .bp-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.bp-progress-body .bp-calendar-weekdays {
  margin-bottom: 8px;
}

.bp-progress-body .bp-calendar-weekdays span {
  text-align: center;
  color: rgba(255,255,255,0.52);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.bp-progress-body .bp-calendar-spacer {
  min-height: 82px;
}

.bp-progress-body .bp-day-card {
  min-height: 82px;
  padding: 10px 11px;
  text-align: left;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.07);
  background:
    linear-gradient(180deg, rgba(30,32,38,0.96), rgba(22,24,29,0.96));
  color: #fff;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 10px 24px rgba(0,0,0,0.16);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.bp-progress-body .bp-day-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.14);
  background:
    linear-gradient(180deg, rgba(35,38,45,0.98), rgba(25,28,34,0.98));
}

.bp-progress-body .bp-day-card.has-progress {
  border-color: rgba(139,92,246,0.38);
  background:
    radial-gradient(circle at 14% 0%, rgba(139,92,246,0.18), transparent 44%),
    linear-gradient(180deg, rgba(33,36,48,0.98), rgba(23,27,39,0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 22px rgba(139,92,246,0.08);
}

.bp-progress-body .bp-day-card.is-today {
  border-color: rgba(56,189,248,0.58);
  box-shadow:
    inset 0 0 0 1px rgba(56,189,248,0.16),
    0 0 18px rgba(56,189,248,0.11);
}

.bp-progress-body .bp-day-card.is-selected {
  border-color: rgba(56,189,248,0.72);
  background:
    radial-gradient(circle at 14% 0%, rgba(56,189,248,0.16), transparent 44%),
    linear-gradient(180deg, rgba(35,42,56,0.99), rgba(24,31,43,0.99));
  box-shadow:
    inset 0 0 0 1px rgba(56,189,248,0.18),
    0 0 22px rgba(56,189,248,0.12);
}

.bp-progress-body .bp-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  font-weight: 950;
}

.bp-progress-body .bp-day-card.has-progress .bp-day-number {
  background: rgba(139,92,246,0.18);
}

.bp-progress-body .bp-day-card.is-today .bp-day-number,
.bp-progress-body .bp-day-card.is-selected .bp-day-number {
  background: rgba(56,189,248,0.18);
}

.bp-progress-body .bp-day-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
}

.bp-progress-body .bp-day-card small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 750;
}

.bp-progress-body .bp-day-panel {
  min-height: 420px;
  position: sticky;
  top: 18px;
}

.bp-progress-body .bp-day-summary {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.09);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(25, 27, 32, 0.92);
}

.bp-progress-body .bp-day-summary span {
  color: rgba(255,255,255,0.58);
  font-size: 13px;
}

.bp-progress-body .bp-day-summary strong {
  display: block;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
}

.bp-progress-body .bp-day-summary small {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.54);
}

.bp-progress-body .bp-day-empty {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.62);
}

.bp-progress-body .bp-day-empty i {
  font-size: 42px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.34);
}

.bp-progress-body .bp-day-empty h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.bp-progress-body .bp-day-empty p {
  margin: 0;
  max-width: 320px;
  color: rgba(255,255,255,0.58);
  font-size: 15px;
}

.bp-progress-body .bp-day-task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-progress-body .bp-day-task {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
}

.bp-progress-body .bp-day-task-main strong {
  display: block;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-progress-body .bp-day-task-main small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.48);
}

.bp-progress-body .bp-day-task > b {
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  .bp-progress-body .bp-app {
    width: min(1200px, calc(100% - 80px));
  }
}

@media (max-width: 980px) {
  .bp-progress-body .bp-history-stats,
  .bp-progress-body .bp-progress-hero,
  .bp-progress-body .bp-history-layout {
    grid-template-columns: 1fr;
  }

  .bp-progress-body .bp-day-panel {
    position: static;
  }
}


.bp-progress-body .bp-progress-hero small,
.bp-progress-body .bp-my-bp-edit,
.bp-progress-body .bp-my-bp-hint {
  display: none !important;
}


/* BP Assistant fixes: scroll-to-top button + equal header button typography */
.bp-head-actions .bp-settings-btn,
.bp-head-actions .bp-close-top,
.bp-head-actions .bp-progress-link,
.bp-head-actions button,
.bp-head-actions a {
  box-sizing: border-box;
  min-height: 38px;
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.bp-scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)),
    rgba(13, 15, 20, 0.94);
  color: rgba(255,255,255,0.88);
  box-shadow: 0 18px 44px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.06);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.bp-scroll-top i {
  font-size: 20px;
  line-height: 1;
}

.bp-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.bp-scroll-top:hover {
  border-color: rgba(245, 158, 11, 0.42);
  background:
    linear-gradient(180deg, rgba(245,158,11,0.13), rgba(255,255,255,0.045)),
    rgba(18, 20, 26, 0.98);
  color: #fff;
}

@media (max-width: 760px) {
  .bp-scroll-top {
    right: 14px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

/* Main page cards status/accent fix */
.card {
  border: 1px solid color-mix(in srgb, var(--accent-border, var(--border)) 70%, var(--border));
  background:
    radial-gradient(circle at 16% 0%, var(--accent-soft, rgba(255,255,255,0.08)), transparent 46%),
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.015)),
    rgba(15, 17, 21, 0.62);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.22),
    0 0 34px var(--accent-shadow, rgba(255,255,255,0.05)),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.card::before {
  background: radial-gradient(circle at 15% 0%, var(--accent-soft, rgba(255,255,255,0.08)), transparent 42%);
}

.card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, var(--accent-border, rgba(255,255,255,0.14)), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.card:hover {
  border-color: var(--accent-border, rgba(255,255,255,0.18));
  background:
    radial-gradient(circle at 16% 0%, var(--accent-soft, rgba(255,255,255,0.09)), transparent 48%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(25, 28, 35, 0.72);
  box-shadow:
    0 20px 70px rgba(0,0,0,0.28),
    0 0 46px var(--accent-shadow, rgba(255,255,255,0.06)),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.card-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 40px;
  gap: 12px;
  margin-bottom: 18px;
}

.card-bottom {
  position: relative;
  z-index: 1;
}

.purple { --accent-bg: rgba(139, 92, 246, 0.18); --accent-border: rgba(139, 92, 246, 0.48); --accent-soft: rgba(139, 92, 246, 0.22); --accent-shadow: rgba(139, 92, 246, 0.18); }
.blue { --accent-bg: rgba(56, 189, 248, 0.15); --accent-border: rgba(56, 189, 248, 0.42); --accent-soft: rgba(56, 189, 248, 0.16); --accent-shadow: rgba(56, 189, 248, 0.16); }
.green { --accent-bg: rgba(34, 197, 94, 0.16); --accent-border: rgba(34, 197, 94, 0.42); --accent-soft: rgba(34, 197, 94, 0.16); --accent-shadow: rgba(34, 197, 94, 0.15); }
.yellow { --accent-bg: rgba(245, 158, 11, 0.17); --accent-border: rgba(245, 158, 11, 0.46); --accent-soft: rgba(245, 158, 11, 0.18); --accent-shadow: rgba(245, 158, 11, 0.16); }
.red { --accent-bg: rgba(239, 68, 68, 0.17); --accent-border: rgba(239, 68, 68, 0.48); --accent-soft: rgba(239, 68, 68, 0.20); --accent-shadow: rgba(239, 68, 68, 0.18); }

.card.is-role-locked,
.card.is-development {
  cursor: not-allowed;
  user-select: none;
}

.card.is-role-locked:hover,
.card.is-development:hover {
  transform: none;
}

.card.is-role-locked:hover .icon,
.card.is-development:hover .icon {
  transform: none;
}

.card-access-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  max-width: calc(100% - 56px);
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255,255,255,0.92);
  background: color-mix(in srgb, var(--accent-bg, rgba(255,255,255,0.08)) 85%, rgba(5,6,7,0.78));
  border: 1px solid var(--accent-border, rgba(255,255,255,0.14));
  box-shadow: 0 8px 24px var(--accent-shadow, rgba(0,0,0,0.22));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-access-badge .bi {
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
}



/* BP Assistant modal scroll fix */
.bp-modal-panel {
  max-height: min(86vh, 820px);
  overflow: hidden;
  border-radius: 24px;
}

.bp-modal-head {
  flex-shrink: 0;
}

.bp-modal-scroll {
  max-height: calc(86vh - 112px);
  overflow-y: auto;
  overflow-x: hidden;

  padding-right: 10px;
  margin-right: -6px;

  border-radius: 0 0 20px 20px;

  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.06);
}

.bp-modal-scroll::-webkit-scrollbar {
  width: 8px;
}

.bp-modal-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  margin: 10px 0;
}

.bp-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  border: 2px solid rgba(18, 18, 24, 0.92);
}

.bp-modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.36);
}

/* На всякий случай убираем скролл с самой модалки, чтобы не было белой полосы справа */
.bp-modal {
  overflow: hidden;
}

.bp-modal-backdrop {
  overflow: hidden;
}

/* BP modal reset button spacing fix */
.bp-modal-scroll {
  padding-bottom: 18px;
}

.bp-reset-btn-modal {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  margin-bottom: 0;
  border-radius: 14px;
  flex-shrink: 0;
}

.bp-modal-panel {
  padding-bottom: 18px;
}


/* BP Assistant — мягкая красная кнопка настроек */
#settingsBtn.bp-settings-btn {
  color: #ffb4b4;
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(127, 29, 29, 0.22);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, 0.08),
    0 10px 30px rgba(127, 29, 29, 0.16);
}

#settingsBtn.bp-settings-btn:hover {
  color: #ffe1e1;
  border-color: rgba(248, 113, 113, 0.58);
  background: rgba(153, 27, 27, 0.34);
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.14),
    0 12px 34px rgba(127, 29, 29, 0.22);
}

/* Appearance themes */
.theme-choice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.theme-choice {
  position: relative;
  min-height: 74px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(5, 7, 10, 0.36);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.theme-choice:hover,
.theme-choice.is-active {
  border-color: rgba(139,92,246,0.46);
  background: rgba(139,92,246,0.11);
  box-shadow: 0 12px 30px rgba(98,98,255,0.12);
}

.theme-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-choice-preview {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.theme-choice-preview-gradient {
  background: linear-gradient(135deg, #18101f, #30205e 52%, #0b4a68);
}

.theme-choice-preview-dark {
  background: #0f1115;
  border-color: rgba(255,255,255,0.18);
}

.theme-choice-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.theme-choice-text strong {
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
}

.theme-choice-text small {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255,255,255,0.52);
}

html[data-theme="dark"] {
  --bg: #07080a;
  --text: #f2f3f5;
  --muted: rgba(242, 243, 245, 0.60);
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.18);
  background: #07080a;
}

html[data-theme="dark"] body {
  background: #07080a;
  color: var(--text);
}

html[data-theme="dark"] .bg {
  background: #07080a;
}

html[data-theme="dark"] .bg img,
html[data-theme="dark"] .bg video,
html[data-theme="dark"] .bg::before,
html[data-theme="dark"] .bg::after {
  display: none;
  filter: none;
  backdrop-filter: none;
}

html[data-theme="dark"] .btn,
html[data-theme="dark"] .top-btn,
html[data-theme="dark"] .settings-submit,
html[data-theme="dark"] .card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .upload-panel,
html[data-theme="dark"] .settings-header,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .my-uploads-toolbar,
html[data-theme="dark"] .my-uploads-list,
html[data-theme="dark"] .admin-panel,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .bp-tabs-card,
html[data-theme="dark"] .bp-score-card,
html[data-theme="dark"] .bp-progress-card,
html[data-theme="dark"] .bp-task-card,
html[data-theme="dark"] .bp-modal-panel,
html[data-theme="dark"] .bp-bottom-nav,
html[data-theme="dark"] .bp-switch-tile,
html[data-theme="dark"] .bp-scroll-top {
  background: #111318 !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-color: rgba(255,255,255,0.12) !important;
}

html[data-theme="dark"] .settings-submit,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .bp-tab.is-active,
html[data-theme="dark"] .bp-bottom-nav button.is-active,
html[data-theme="dark"] .theme-choice.is-active {
  background: #1d2028 !important;
  background-image: none !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: #fff !important;
}

html[data-theme="dark"] .card::before,
html[data-theme="dark"] .card::after {
  display: none;
}

html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .btn:hover,
html[data-theme="dark"] .top-btn:hover,
html[data-theme="dark"] .settings-submit:hover,
html[data-theme="dark"] .bp-task-card:hover,
html[data-theme="dark"] .theme-choice:hover {
  background: #171a20 !important;
  background-image: none !important;
  border-color: rgba(255,255,255,0.22) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .brand-icon,
html[data-theme="dark"] .icon,
html[data-theme="dark"] .settings-icon,
html[data-theme="dark"] .bp-task-icon,
html[data-theme="dark"] .bp-coin,
html[data-theme="dark"] .bp-mini-check,
html[data-theme="dark"] .bp-reward,
html[data-theme="dark"] .card-access-badge,
html[data-theme="dark"] #settingsBtn.bp-settings-btn {
  background: #191c23 !important;
  background-image: none !important;
  border-color: rgba(255,255,255,0.14) !important;
  box-shadow: none !important;
  color: rgba(255,255,255,0.88) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .settings-input,
html[data-theme="dark"] .bp-counter-input {
  background: #090a0d !important;
  border-color: rgba(255,255,255,0.14) !important;
  color: #f2f3f5 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] .settings-input:focus {
  background: #0d0f13 !important;
  border-color: rgba(255,255,255,0.28) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .theme-choice-preview-gradient {
  background: #191c23;
}

html[data-theme="dark"] .theme-choice-preview-dark {
  background: #07080a;
}

html[data-theme="dark"] .bp-app {
  --bp-bg: #07080a;
  --bp-card: #111318;
  --bp-card-2: #111318;
  --bp-soft: rgba(255,255,255,0.08);
  --bp-text: rgba(255,255,255,0.92);
  --bp-muted: rgba(255,255,255,0.56);
  --bp-orange: #f2f3f5;
  --bp-orange-2: #ffffff;
  --bp-green: #f2f3f5;
  background: #07080a !important;
  background-image: none !important;
}

html[data-theme="dark"] .bp-progressbar,
html[data-theme="dark"] .bp-switch-ui {
  background: #08090c !important;
  background-image: none !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .bp-progressbar > div,
html[data-theme="dark"] .bp-switch-tile:has(input:checked) .bp-switch-ui {
  background: #f2f3f5 !important;
  background-image: none !important;
}

html[data-theme="dark"] .bp-switch-ui::after {
  background: #777d89 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .bp-switch-tile:has(input:checked) .bp-switch-ui::after {
  background: #111318 !important;
}
/* DARK theme correction: keep colored accents, remove only gradients/blur */
html[data-theme="dark"] .btn,
html[data-theme="dark"] .top-btn,
html[data-theme="dark"] .settings-submit,
html[data-theme="dark"] .card,
html[data-theme="dark"] .login-card,
html[data-theme="dark"] .upload-panel,
html[data-theme="dark"] .settings-header,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .my-uploads-toolbar,
html[data-theme="dark"] .my-uploads-list,
html[data-theme="dark"] .admin-panel,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .bp-tabs-card,
html[data-theme="dark"] .bp-score-card,
html[data-theme="dark"] .bp-progress-card,
html[data-theme="dark"] .bp-task-card,
html[data-theme="dark"] .bp-modal-panel,
html[data-theme="dark"] .bp-bottom-nav,
html[data-theme="dark"] .bp-switch-tile,
html[data-theme="dark"] .bp-scroll-top {
  background-color: #111318 !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="dark"] .card {
  border-color: var(--accent-border, rgba(255,255,255,0.16)) !important;
  box-shadow:
    0 0 34px var(--accent-shadow, rgba(255,255,255,0.05)),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

html[data-theme="dark"] .card:hover {
  background-color: #171a20 !important;
  background-image: none !important;
  border-color: var(--accent-border, rgba(255,255,255,0.22)) !important;
  box-shadow:
    0 0 46px var(--accent-shadow, rgba(255,255,255,0.06)),
    inset 0 1px 0 rgba(255,255,255,0.07) !important;
}

html[data-theme="dark"] .card::before {
  display: none !important;
}

html[data-theme="dark"] .card::after {
  display: block !important;
  background: var(--accent-border, rgba(255,255,255,0.14)) !important;
  opacity: 0.9 !important;
}

html[data-theme="dark"] .icon,
html[data-theme="dark"] .settings-icon,
html[data-theme="dark"] .card-access-badge {
  background-color: var(--accent-bg, rgba(255,255,255,0.08)) !important;
  background-image: none !important;
  border-color: var(--accent-border, rgba(255,255,255,0.14)) !important;
  box-shadow: 0 8px 24px var(--accent-shadow, rgba(0,0,0,0.22)) !important;
  color: rgba(255,255,255,0.92) !important;
}

html[data-theme="dark"] .brand-icon {
  background-color: rgba(139, 92, 246, 0.16) !important;
  background-image: none !important;
  border-color: rgba(139, 92, 246, 0.38) !important;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15) !important;
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .settings-submit,
html[data-theme="dark"] .theme-choice.is-active {
  background-color: rgba(126, 87, 240, 0.28) !important;
  background-image: none !important;
  border-color: rgba(139, 92, 246, 0.48) !important;
  box-shadow: 0 12px 30px rgba(98,98,255,0.18) !important;
}

html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .settings-submit:hover,
html[data-theme="dark"] .theme-choice.is-active:hover {
  background-color: rgba(126, 87, 240, 0.34) !important;
  border-color: rgba(139, 92, 246, 0.58) !important;
}

html[data-theme="dark"] #settingsBtn.bp-settings-btn,
html[data-theme="dark"] .bp-settings-btn {
  background-color: rgba(245, 75, 75, 0.12) !important;
  background-image: none !important;
  border-color: rgba(245, 75, 75, 0.36) !important;
  color: #fee2e2 !important;
  box-shadow: 0 10px 28px rgba(239,68,68,0.12) !important;
}

html[data-theme="dark"] #settingsBtn.bp-settings-btn:hover,
html[data-theme="dark"] .bp-settings-btn:hover {
  background-color: rgba(245, 75, 75, 0.18) !important;
  border-color: rgba(248, 113, 113, 0.54) !important;
}

html[data-theme="dark"] .bp-app {
  --bp-orange: #f59e0b;
  --bp-orange-2: #ffb020;
  --bp-green: #34d399;
  background: #07080a !important;
  background-image: none !important;
}

html[data-theme="dark"] .bp-tab.is-active,
html[data-theme="dark"] .bp-bottom-nav button.is-active {
  background-color: rgba(245,158,11,0.13) !important;
  background-image: none !important;
  border-color: rgba(245,158,11,0.42) !important;
  color: #fff7ed !important;
}

html[data-theme="dark"] .bp-coin,
html[data-theme="dark"] .bp-reward {
  background-color: rgba(245,158,11,0.24) !important;
  background-image: none !important;
  border-color: rgba(245,158,11,0.38) !important;
  color: #fff7ed !important;
  box-shadow: 0 0 16px rgba(245,158,11,0.22) !important;
}

html[data-theme="dark"] .bp-task-card.is-done {
  background-color: rgba(20, 32, 28, 0.96) !important;
  background-image: none !important;
  border-color: rgba(52,211,153,0.28) !important;
}

html[data-theme="dark"] .bp-task-card.is-started {
  background-color: rgba(20, 22, 26, 0.96) !important;
  background-image: none !important;
  border-color: rgba(245, 158, 11, 0.8) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 1px rgba(245, 158, 11, 0.3),
    0 10px 24px rgba(0,0,0,0.18) !important;
}

html[data-theme="dark"] .bp-task-card.is-done .bp-task-icon,
html[data-theme="dark"] .bp-task-card.is-done .bp-mini-check {
  color: var(--bp-green) !important;
}

html[data-theme="dark"] .bp-switch-tile:has(input:checked) {
  background-color: rgba(245,158,11,0.12) !important;
  border-color: rgba(245,158,11,0.45) !important;
  color: var(--bp-orange-2) !important;
}

html[data-theme="dark"] .bp-switch-tile:has(input:checked) .bp-switch-ui,
html[data-theme="dark"] .bp-progressbar > div {
  background: var(--bp-orange) !important;
  background-image: none !important;
}

/* Background video setting */

.background-video-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 16px;
  background: rgba(5, 7, 10, 0.34);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.background-video-toggle:hover {
  border-color: rgba(139,92,246,0.42);
  background: rgba(139,92,246,0.10);
  box-shadow: 0 12px 30px rgba(98,98,255,0.10);
}

.background-video-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.background-video-toggle-ui {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.background-video-toggle-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 6px 16px rgba(0,0,0,0.24);
  transition: transform .18s ease, background .18s ease;
}

.background-video-toggle input:checked + .background-video-toggle-ui {
  border-color: rgba(139,92,246,0.54);
  background: rgba(139,92,246,0.34);
  box-shadow: 0 0 22px rgba(139,92,246,0.18);
}

.background-video-toggle input:checked + .background-video-toggle-ui::after {
  transform: translateX(22px);
  background: #ffffff;
}

.background-video-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.background-video-toggle-text strong {
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,0.90);
}

.background-video-toggle-text small {
  font-size: 12px;
  line-height: 1.3;
  color: rgba(255,255,255,0.52);
}

html[data-bg-image="off"] .bg img {
  display: none !important;
}

html[data-bg-video="off"] .bg video {
  display: none !important;
}

html[data-bg-video="off"] .bg::before,
html[data-bg-video="off"] .bg::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="dark"][data-bg-video="on"] .bg img,
html[data-theme="dark"][data-bg-video="on"] .bg video {
  display: block !important;
  filter: none !important;
  transform: none !important;
}

html[data-theme="dark"][data-bg-video="on"] .bg img,
html[data-theme="dark"][data-bg-video="on"] .bg video {
  opacity: 0.18 !important;
}

html[data-theme="dark"] .bg::before {
  display: none !important;
}

html[data-theme="dark"][data-bg-video="on"] .bg::after {
  display: block !important;
  background: rgba(7,8,10,0.72) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-theme="dark"][data-bg-video="off"] .bg::after {
  display: none !important;
}

/* DARK theme: кнопка "Мой прогресс" синяя */
html[data-theme="dark"] .bp-progress-link {
  background-color: rgba(59, 130, 246, 0.14) !important;
  background-image: none !important;
  border-color: rgba(59, 130, 246, 0.46) !important;
  color: #dbeafe !important;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.12) !important;
}

html[data-theme="dark"] .bp-progress-link:hover {
  background-color: rgba(59, 130, 246, 0.22) !important;
  border-color: rgba(96, 165, 250, 0.62) !important;
  color: #eff6ff !important;
}


/* Album edit */
.album-edit-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.album-edit-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px 260px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  background:
    radial-gradient(circle at 0% 0%, rgba(139,92,246,0.06), transparent 32%),
    rgba(8, 9, 12, 0.60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.album-edit-order {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(139,92,246,0.32);
  background: rgba(139,92,246,0.14);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.album-edit-order span {
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.album-edit-order small {
  margin-top: 5px;
  color: rgba(255,255,255,0.56);
  font-size: 11px;
  font-weight: 850;
}

.album-edit-preview {
  width: 260px;
  height: 150px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  display: block;
}

.album-edit-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Чтобы по скриншотам/документам было проще смотреть порядок */
.album-edit-preview:hover img {
  object-fit: contain;
  background: rgba(0,0,0,0.45);
}

.album-edit-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.album-edit-info strong {
  color: rgba(255,255,255,0.94);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 950;
}

.album-edit-info span {
  max-width: 100%;
  margin-top: 7px;
  color: rgba(255,255,255,0.52);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.album-edit-actions .btn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 12px;
  white-space: nowrap;
}

.album-edit-delete {
  border-color: rgba(239,68,68,0.28) !important;
  color: #fecaca !important;
  background: rgba(239,68,68,0.10) !important;
}

.album-edit-delete:hover {
  border-color: rgba(248,113,113,0.48) !important;
  background: rgba(239,68,68,0.16) !important;
}

@media (max-width: 1000px) {
  .album-edit-card {
    grid-template-columns: 60px 180px minmax(0, 1fr);
  }

  .album-edit-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .album-edit-preview {
    width: 180px;
    height: 120px;
  }
}

@media (max-width: 620px) {
  .album-edit-card {
    grid-template-columns: 1fr;
  }

  .album-edit-order {
    width: 100%;
    height: 48px;
    flex-direction: row;
    gap: 8px;
  }

  .album-edit-preview {
    width: 100%;
    height: 220px;
  }

  .album-edit-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .album-edit-actions .btn {
    flex: 1 1 auto;
  }
}


/* Album edit: correct empty state visibility */
.my-uploads-empty[hidden] {
  display: none !important;
}


/* Album edit: hidden empty state fix */
.my-uploads-empty[hidden] {
  display: none !important;
}

/* Album edit upload block */
.album-edit-upload-panel {
  margin-bottom: 16px;
}

.album-edit-dropzone {
  min-height: 150px;
  margin-top: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at 10% 0%, rgba(139,92,246,0.08), transparent 34%),
    rgba(4, 5, 7, 0.54);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.album-edit-dropzone:hover,
.album-edit-dropzone.is-dragover {
  border-color: rgba(139,92,246,0.42);
  background:
    radial-gradient(circle at 10% 0%, rgba(139,92,246,0.13), transparent 38%),
    rgba(8, 9, 12, 0.72);
}

.album-edit-dropzone i {
  font-size: 30px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.46);
}

.album-edit-dropzone strong {
  font-size: 15px;
  font-weight: 900;
  color: rgba(255,255,255,0.88);
}

.album-edit-dropzone span {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.52);
}

/* Album edit: hidden empty state fix */
.my-uploads-empty[hidden] {
  display: none !important;
}

/* Album edit top actions */
.album-edit-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Album edit list */
.album-edit-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.album-edit-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 72px 260px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  background:
    radial-gradient(circle at 0% 0%, rgba(139,92,246,0.06), transparent 32%),
    rgba(8, 9, 12, 0.60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
  cursor: grab;
  transition:
    transform .18s ease,
    opacity .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.album-edit-card:active {
  cursor: grabbing;
}

.album-edit-card.is-dragging {
  opacity: .38;
  transform: scale(.985);
}

.album-edit-card.is-drag-over {
  border-color: rgba(139,92,246,0.62);
  background:
    radial-gradient(circle at 0% 0%, rgba(139,92,246,0.16), transparent 34%),
    rgba(14, 16, 22, 0.86);
  transform: translateY(2px);
}

.album-edit-order {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(139,92,246,0.32);
  background: rgba(139,92,246,0.14);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.album-edit-order span {
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.album-edit-order small {
  margin-top: 5px;
  color: rgba(255,255,255,0.56);
  font-size: 11px;
  font-weight: 850;
}

.album-edit-preview {
  width: 260px;
  height: 150px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  display: block;
}

.album-edit-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-edit-preview:hover img {
  object-fit: contain;
  background: rgba(0,0,0,0.45);
}

.album-edit-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.album-edit-info strong {
  color: rgba(255,255,255,0.94);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 950;
}

.album-edit-info span {
  max-width: 100%;
  margin-top: 7px;
  color: rgba(255,255,255,0.52);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-edit-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.album-edit-drag-hint {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  font-weight: 850;
}

.album-edit-actions .btn {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 12px;
  white-space: nowrap;
}

.album-edit-delete {
  border-color: rgba(239,68,68,0.28) !important;
  color: #fecaca !important;
  background: rgba(239,68,68,0.10) !important;
}

.album-edit-delete:hover {
  border-color: rgba(248,113,113,0.48) !important;
  background: rgba(239,68,68,0.16) !important;
}

#saveAlbumBtn.is-dirty {
  border-color: rgba(245,158,11,0.48);
  background: linear-gradient(135deg, rgba(245,158,11,0.32), rgba(73,161,233,0.38));
}

/* Album upload popup */
.album-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.album-upload-modal.is-open {
  display: flex;
}

.album-upload-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(10px);
}

.album-upload-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 0% 0%, rgba(139,92,246,0.12), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(13, 15, 20, 0.96);
  box-shadow: 0 28px 90px rgba(0,0,0,0.56);
  padding: 18px;
}

.album-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.album-upload-head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 950;
}

.album-upload-head p {
  margin: 7px 0 0;
  color: rgba(255,255,255,0.56);
  font-size: 13px;
  line-height: 1.35;
}

.album-upload-close {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.76);
  cursor: pointer;
}

.album-upload-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.album-upload-dropzone {
  min-height: 190px;
  border-radius: 17px;
  border: 1px dashed rgba(255,255,255,0.16);
  background:
    radial-gradient(circle at 10% 0%, rgba(139,92,246,0.08), transparent 34%),
    rgba(4, 5, 7, 0.54);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.album-upload-dropzone:hover,
.album-upload-dropzone.is-dragover {
  border-color: rgba(139,92,246,0.42);
  background:
    radial-gradient(circle at 10% 0%, rgba(139,92,246,0.13), transparent 38%),
    rgba(8, 9, 12, 0.72);
}

.album-upload-dropzone i {
  font-size: 34px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.46);
}

.album-upload-dropzone strong {
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,255,255,0.88);
}

.album-upload-dropzone span {
  margin-top: 7px;
  font-size: 13px;
  color: rgba(255,255,255,0.52);
}

.album-upload-selected {
  min-height: 20px;
  margin-top: 12px;
  color: rgba(255,255,255,0.60);
  font-size: 13px;
}

.album-upload-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 1000px) {
  .album-edit-card {
    grid-template-columns: 60px 180px minmax(0, 1fr);
  }

  .album-edit-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }

  .album-edit-preview {
    width: 180px;
    height: 120px;
  }
}

@media (max-width: 620px) {
  .album-edit-top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .album-edit-card {
    grid-template-columns: 1fr;
  }

  .album-edit-order {
    width: 100%;
    height: 48px;
    flex-direction: row;
    gap: 8px;
  }

  .album-edit-preview {
    width: 100%;
    height: 220px;
  }

  .album-edit-actions {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .album-edit-actions .btn,
  .album-edit-drag-hint {
    flex: 1 1 auto;
    justify-content: center;
  }

  .album-upload-actions {
    flex-direction: column;
  }
}

/* Album edit layout fix */
.album-edit-top-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.album-edit-top-actions .btn {
  width: auto;
  min-width: 150px;
}

.my-uploads-list-panel .my-uploads-list-head {
  align-items: center;
}

#saveAlbumBtn {
  border-color: rgba(139, 92, 246, 0.42) !important;
  background: linear-gradient(135deg, rgba(126,87,240,0.92), rgba(73,161,233,0.72)) !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(98,98,255,0.20) !important;
}

#saveAlbumBtn:hover {
  border-color: rgba(139, 92, 246, 0.54) !important;
  background: linear-gradient(135deg, rgba(133,96,244,0.96), rgba(83,171,241,0.82)) !important;
}

.album-edit-upload-panel {
  display: none !important;
}

@media (max-width: 760px) {
  .album-edit-top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .album-edit-top-actions .btn {
    width: 100%;
  }
}


/* My uploads: live date filters */
.my-uploads-filters-live {
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) 160px;
  align-items: end;
  gap: 14px;
}

.my-filter-date-field {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle at 0% 0%, rgba(139,92,246,0.08), transparent 36%),
    rgba(5, 7, 10, 0.34);
}

.my-filter-date-field span {
  margin-bottom: 2px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}

.my-filter-date-field input {
  height: 52px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 900;
}

.my-uploads-filters-live .my-filter-reset {
  height: 52px;
  min-height: 52px;
  align-self: center;
  margin-top: 20px;
  border-radius: 14px;
  padding: 0 18px;
}

@media (max-width: 900px) {
  .my-uploads-filters-live {
    grid-template-columns: 1fr;
  }

  .my-uploads-filters-live .my-filter-reset {
    width: 100%;
    height: 46px;
    min-height: 46px;
  }
}

.my-uploads-filters-live {
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 1fr) 150px;
}


/* Background image/video separate settings */

html[data-bg-image="on"] .bg img {
  display: block;
}

html[data-bg-video="on"] .bg video {
  display: block;
}

html[data-bg-image="off"] .bg img {
  display: none !important;
}

html[data-bg-video="off"] .bg video {
  display: none !important;
}

html[data-bg-image="off"][data-bg-video="off"] .bg::after {
  display: none !important;
}

html[data-theme="dark"][data-bg-image="on"] .bg img {
  display: block !important;
  opacity: 0.18 !important;
  filter: none !important;
  transform: none !important;
}

html[data-theme="dark"][data-bg-video="on"] .bg video {
  display: block !important;
  opacity: 0.18 !important;
  filter: none !important;
  transform: none !important;
}

html[data-theme="dark"][data-bg-image="off"] .bg img {
  display: none !important;
}

html[data-theme="dark"][data-bg-video="off"] .bg video {
  display: none !important;
}




/* =========================
   BP settings reorder list
   ========================= */

.bp-visibility-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-visibility-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    linear-gradient(90deg, rgba(120,78,255,0.04), rgba(51,142,255,0.02));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 24px rgba(0,0,0,0.16);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    opacity .18s ease,
    background .18s ease;
  user-select: none;
  will-change: transform;
}

.bp-visibility-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 14px 30px rgba(0,0,0,0.2);
}

.bp-visibility-row.is-hidden {
  opacity: 0.62;
}

.bp-visibility-row.is-dragging {
  transform: scale(0.988);
  opacity: 0.72;
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 16px 36px rgba(0,0,0,0.24),
    0 0 0 1px rgba(139, 92, 246, 0.18);
}

.bp-visibility-row.is-drag-over {
  border-color: rgba(139, 92, 246, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 0 0 1px rgba(139, 92, 246, 0.28),
    0 12px 28px rgba(0,0,0,0.22);
}

.bp-visibility-row.is-drag-over::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139,92,246,0.95), rgba(96,165,250,0.95));
  box-shadow: 0 0 12px rgba(139,92,246,0.35);
}

.bp-visibility-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.bp-visibility-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: 15px;
  color: #f8fafc;
}

.bp-task-order {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(248,250,252,0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.bp-visibility-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.bp-drag-handle {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: rgba(248,250,252,0.84);
  border-radius: 14px;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: grab;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    color .16s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.bp-drag-handle i {
  font-size: 15px;
  color: rgba(248,250,252,0.62);
  transition: transform .16s ease, color .16s ease;
}

.bp-drag-handle:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.055);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 8px 18px rgba(0,0,0,0.18);
}

.bp-drag-handle:hover i {
  transform: scale(1.05);
  color: rgba(255,255,255,0.82);
}

.bp-drag-handle:active {
  transform: scale(0.985);
  cursor: grabbing;
}

.bp-eye-btn {
  min-width: 46px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(248,250,252,0.72);
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

.bp-eye-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.96);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 8px 18px rgba(0,0,0,0.18);
}

.bp-eye-btn:active {
  transform: scale(0.985);
}

.bp-is-reordering,
.bp-is-reordering * {
  user-select: none !important;
}

@media (max-width: 760px) {
  .bp-visibility-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .bp-visibility-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .bp-drag-handle span {
    display: none;
  }

  .bp-drag-handle {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
  }
}



/* BP Assistant reorder list */

.bp-visibility-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-visibility-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
    rgba(15, 18, 24, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 24px rgba(0,0,0,0.14);
  transition:
    transform .16s ease,
    opacity .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
  user-select: none;
}

.bp-visibility-row:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 14px 30px rgba(0,0,0,0.18);
}

.bp-visibility-row.is-hidden {
  opacity: 0.58;
}

.bp-visibility-row.is-dragging {
  opacity: 0.72;
  transform: scale(0.985);
  border-color: rgba(139, 92, 246, 0.7);
  background:
    linear-gradient(180deg, rgba(139,92,246,0.14), rgba(255,255,255,0.02)),
    rgba(20, 23, 31, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 16px 34px rgba(0,0,0,0.28),
    0 0 0 1px rgba(139, 92, 246, 0.2);
}

.bp-visibility-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.bp-visibility-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
  color: #f8fafc;
}

.bp-task-order {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.045);
  color: rgba(248,250,252,0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
}

.bp-visibility-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bp-drag-handle,
.bp-eye-btn {
  width: 42px;
  height: 38px;
  min-width: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(248,250,252,0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

.bp-drag-handle {
  cursor: grab;
}

.bp-drag-handle i {
  font-size: 17px;
}

.bp-eye-btn i {
  font-size: 16px;
}

.bp-drag-handle:hover,
.bp-eye-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.96);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 8px 18px rgba(0,0,0,0.18);
}

.bp-drag-handle:active {
  cursor: grabbing;
  transform: scale(0.96);
}

.bp-eye-btn:active {
  transform: scale(0.96);
}

.bp-is-reordering,
.bp-is-reordering * {
  user-select: none !important;
  cursor: grabbing !important;
}

/* BP settings separate display window */

.bp-settings-open-card {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018)),
    rgba(15, 18, 24, 0.78);
  border-radius: 18px;
  min-height: 74px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.bp-settings-open-card:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.38);
  background:
    linear-gradient(180deg, rgba(139,92,246,0.12), rgba(255,255,255,0.02)),
    rgba(15, 18, 24, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 14px 30px rgba(0,0,0,0.18);
}

.bp-settings-open-card:active {
  transform: scale(0.99);
}

.bp-settings-open-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,92,246,0.14);
  border: 1px solid rgba(139,92,246,0.24);
  color: rgba(248,250,252,0.9);
  flex-shrink: 0;
}

.bp-settings-open-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.bp-settings-open-text strong {
  font-size: 15px;
  font-weight: 900;
}

.bp-settings-open-text small {
  color: rgba(248,250,252,0.56);
  font-size: 13px;
  line-height: 1.25;
}

.bp-settings-open-card > .bi-chevron-right {
  color: rgba(248,250,252,0.48);
  font-size: 18px;
  flex-shrink: 0;
}

.bp-modal-panel-wide {
  max-width: 720px;
}

.bp-order-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.bp-reset-order-btn {
  width: auto;
  min-width: 320px;
  max-width: 100%;
  min-height: 46px;
  justify-content: center;
  border-color: rgba(245, 158, 11, 0.24);
  color: rgba(255, 237, 213, 0.94);
  background:
    linear-gradient(135deg, rgba(245,158,11,0.16), rgba(255,255,255,0.03));
}

.bp-reset-order-btn:hover {
  border-color: rgba(245, 158, 11, 0.38);
  background:
    linear-gradient(135deg, rgba(245,158,11,0.22), rgba(255,255,255,0.04));
}


/* BP reorder animation fixes */

.bp-visibility-row {
  transition:
    transform .2s ease,
    opacity .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
  will-change: transform;
}

.bp-visibility-row:hover {
  transform: translateY(-1px);
}

.bp-visibility-row.is-dragging {
  opacity: 0.74 !important;
  transform: scale(0.985) rotate(-0.3deg) !important;
  border-color: rgba(139, 92, 246, 0.7) !important;
  background:
    linear-gradient(180deg, rgba(139,92,246,0.14), rgba(255,255,255,0.02)),
    rgba(20, 23, 31, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 16px 34px rgba(0,0,0,0.28),
    0 0 0 1px rgba(139, 92, 246, 0.2) !important;
}

.bp-is-reordering .bp-visibility-row:not(.is-dragging) {
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}



/* BP reorder FLIP animation */

.bp-visibility-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-visibility-row {
  position: relative;
  transform-origin: center;
  transition:
    opacity .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
  will-change: transform;
}

.bp-visibility-row.is-dragging {
  opacity: 0.72 !important;
  transform: scale(0.985) rotate(-0.35deg) !important;
  z-index: 5;
  border-color: rgba(139, 92, 246, 0.72) !important;
  background:
    linear-gradient(180deg, rgba(139,92,246,0.14), rgba(255,255,255,0.02)),
    rgba(20, 23, 31, 0.95) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 36px rgba(0,0,0,0.32),
    0 0 0 1px rgba(139, 92, 246, 0.22) !important;
}

.bp-is-reordering,
.bp-is-reordering * {
  user-select: none !important;
  cursor: grabbing !important;
}

.bp-drag-handle {
  cursor: grab;
}

.bp-drag-handle:active {
  cursor: grabbing;
  transform: scale(0.96);
}


/* BP visibility modal width/button fixes */

#visibilityModal .bp-modal-panel {
  width: min(720px, calc(100% - 32px));
  max-width: 720px;
}

#visibilityModal .bp-modal-scroll {
  padding-left: 18px;
  padding-right: 18px;
}

.bp-order-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.bp-reset-order-btn {
  width: min(560px, 100%);
  min-width: 420px;
  min-height: 48px;
  justify-content: center;
  padding-left: 22px;
  padding-right: 22px;
}

@media (max-width: 560px) {
  .bp-reset-order-btn {
    min-width: 0;
    width: 100%;
  }
}


/* BP completed down temporary UI toggle */

.bp-completed-down-btn {
  border-color: rgba(245, 158, 11, 0.22);
  color: rgba(255, 237, 213, 0.96);
  background:
    linear-gradient(135deg, rgba(245,158,11,0.14), rgba(255,255,255,0.035));
}

.bp-completed-down-btn:hover {
  border-color: rgba(245, 158, 11, 0.38);
  background:
    linear-gradient(135deg, rgba(245,158,11,0.2), rgba(255,255,255,0.045));
}

.bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.58);
  color: #fff7ed;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.28), rgba(139,92,246,0.12));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(245,158,11,0.16),
    0 10px 22px rgba(0,0,0,0.18);
}

@media (max-width: 760px) {
  .bp-completed-down-btn {
    width: 100%;
    justify-content: center;
  }
}


/* BP completed down button inside score card */

.bp-score-card-desktop {
  gap: 16px;
}

.bp-completed-down-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background:
    linear-gradient(135deg, rgba(245,158,11,0.14), rgba(255,255,255,0.035));
  color: rgba(255, 237, 213, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.bp-completed-down-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.46);
  background:
    linear-gradient(135deg, rgba(245,158,11,0.2), rgba(255,255,255,0.045));
}

.bp-completed-down-btn:active {
  transform: scale(0.985);
}

.bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.62);
  color: #fff7ed;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.3), rgba(139,92,246,0.12));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(245,158,11,0.16),
    0 10px 22px rgba(0,0,0,0.18);
}

.bp-completed-down-btn i {
  font-size: 15px;
}

@media (max-width: 760px) {
  .bp-score-card-desktop {
    flex-direction: column;
    align-items: stretch;
  }

  .bp-completed-down-btn {
    width: 100%;
  }
}

/* BP completed down button moved into score card */

.bp-score-card-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bp-score-main {
  flex: 1 1 auto;
}

.bp-inline-switches {
  flex-shrink: 0;
}

.bp-completed-down-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background:
    linear-gradient(135deg, rgba(245,158,11,0.14), rgba(255,255,255,0.035));
  color: rgba(255, 237, 213, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.bp-completed-down-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.46);
  background:
    linear-gradient(135deg, rgba(245,158,11,0.2), rgba(255,255,255,0.045));
}

.bp-completed-down-btn:active {
  transform: scale(0.985);
}

.bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.62);
  color: #fff7ed;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.3), rgba(139,92,246,0.12));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(245,158,11,0.16),
    0 10px 22px rgba(0,0,0,0.18);
}

.bp-completed-down-btn i {
  font-size: 15px;
}

@media (max-width: 900px) {
  .bp-score-card-desktop {
    flex-wrap: wrap;
  }

  .bp-completed-down-btn {
    order: 3;
    width: 100%;
  }
}



/* BP completed-down button inside progress card */

.bp-progress-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bp-progress-bottom {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bp-progress-bottom .bp-progressbar {
  flex: 1 1 auto;
  min-width: 0;
}

.bp-progress-bottom .bp-completed-down-btn {
  flex: 0 0 auto;
  min-width: 270px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.06);
  color: rgba(255, 237, 213, 0.82);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    color .16s ease;
}

.bp-progress-bottom .bp-completed-down-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.11);
  color: rgba(255, 237, 213, 0.98);
}

.bp-progress-bottom .bp-completed-down-btn:active {
  transform: scale(0.985);
}

.bp-progress-bottom .bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.48);
  color: #fff7ed;
  background: rgba(245, 158, 11, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 0 0 1px rgba(245,158,11,0.12);
}

.bp-progress-bottom .bp-completed-down-btn i {
  font-size: 13px;
}

@media (max-width: 760px) {
  .bp-progress-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .bp-progress-bottom .bp-completed-down-btn {
    width: 100%;
    min-width: 0;
  }
}



/* BP progress button compact fix */

.bp-progress-card {
  display: block !important;
}

.bp-progress-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bp-progress-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.bp-progress-bottom .bp-progressbar {
  width: 100%;
  min-width: 0;
}

.bp-progress-bottom .bp-completed-down-btn {
  width: auto !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(245, 158, 11, 0.22) !important;
  background: rgba(245, 158, 11, 0.055) !important;
  color: rgba(255, 237, 213, 0.72) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer;
  transform: none;
}

.bp-progress-bottom .bp-completed-down-btn i {
  font-size: 11px !important;
  line-height: 1 !important;
}

.bp-progress-bottom .bp-completed-down-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.34) !important;
  background: rgba(245, 158, 11, 0.09) !important;
  color: rgba(255, 237, 213, 0.92) !important;
}

.bp-progress-bottom .bp-completed-down-btn:active {
  transform: scale(0.98);
}

.bp-progress-bottom .bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.42) !important;
  background: rgba(245, 158, 11, 0.13) !important;
  color: rgba(255, 247, 237, 0.96) !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .bp-progress-bottom {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bp-progress-bottom .bp-completed-down-btn {
    justify-self: end;
  }
}


/* BP progress compact controls final */

.bp-progress-card {
  display: block !important;
}

.bp-progress-line {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  margin-bottom: 8px;
}

.bp-progress-bottom {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 0 !important;
}

.bp-progress-bottom .bp-progressbar {
  width: 100%;
  min-width: 0;
}

.bp-progress-multiplier {
  height: 28px;
  min-width: 42px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: rgba(248,250,252,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.bp-progress-bottom .bp-completed-down-btn {
  width: auto !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(245, 158, 11, 0.22) !important;
  background: rgba(245, 158, 11, 0.055) !important;
  color: rgba(255, 237, 213, 0.76) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer;
}

.bp-progress-bottom .bp-completed-down-btn i {
  font-size: 11px !important;
  line-height: 1 !important;
}

.bp-progress-bottom .bp-completed-down-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.34) !important;
  background: rgba(245, 158, 11, 0.09) !important;
  color: rgba(255, 237, 213, 0.92) !important;
}

.bp-progress-bottom .bp-completed-down-btn:active {
  transform: scale(0.98);
}

.bp-progress-bottom .bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.42) !important;
  background: rgba(245, 158, 11, 0.13) !important;
  color: rgba(255, 247, 237, 0.96) !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .bp-progress-bottom {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .bp-progress-bottom .bp-progressbar {
    grid-column: 1 / -1;
  }

  .bp-progress-multiplier {
    justify-self: start;
  }

  .bp-progress-bottom .bp-completed-down-btn {
    justify-self: end;
  }
}



/* BP progress compact right controls */

.bp-progress-card {
  display: block !important;
}

.bp-progress-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px !important;
}

.bp-progress-bottom {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 14px;
  margin-top: 0 !important;
}

.bp-progress-bottom .bp-progressbar {
  width: 100%;
  min-width: 0;
}

.bp-progress-multiplier {
  justify-self: stretch;
  width: 100%;
  height: 24px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: rgba(248,250,252,0.9);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.bp-progress-bottom .bp-completed-down-btn {
  justify-self: stretch;
  width: 100% !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(245, 158, 11, 0.24) !important;
  background: rgba(245, 158, 11, 0.07) !important;
  color: rgba(255, 237, 213, 0.82) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer;
}

.bp-progress-bottom .bp-completed-down-btn i {
  font-size: 11px !important;
  line-height: 1 !important;
}

.bp-progress-bottom .bp-completed-down-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.38) !important;
  background: rgba(245, 158, 11, 0.11) !important;
  color: rgba(255, 237, 213, 0.96) !important;
}

.bp-progress-bottom .bp-completed-down-btn:active {
  transform: scale(0.98);
}

.bp-progress-bottom .bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.46) !important;
  background: rgba(245, 158, 11, 0.15) !important;
  color: rgba(255, 247, 237, 0.98) !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .bp-progress-line,
  .bp-progress-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bp-progress-multiplier,
  .bp-progress-bottom .bp-completed-down-btn {
    width: 100% !important;
  }
}


/* BP progress right compact block */

.bp-progress-card {
  display: block !important;
}

.bp-progress-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 136px !important;
  align-items: center !important;
  column-gap: 12px !important;
  margin-bottom: 6px !important;
}

.bp-progress-bottom {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 136px !important;
  align-items: center !important;
  column-gap: 12px !important;
  margin-top: 0 !important;
}

.bp-progress-bottom .bp-progressbar {
  width: 100% !important;
  min-width: 0 !important;
}

.bp-progress-multiplier {
  width: 100% !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: rgba(248,250,252,0.95) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.bp-progress-bottom .bp-completed-down-btn {
  width: 100% !important;
  min-width: 0 !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 6px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  background: rgba(245, 158, 11, 0.07) !important;
  color: rgba(255, 237, 213, 0.84) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.bp-progress-bottom .bp-completed-down-btn i {
  display: none !important;
}

.bp-progress-bottom .bp-completed-down-btn:hover {
  transform: none !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
  background: rgba(245, 158, 11, 0.11) !important;
  color: rgba(255, 237, 213, 0.96) !important;
}

.bp-progress-bottom .bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.48) !important;
  background: rgba(245, 158, 11, 0.16) !important;
  color: rgba(255, 247, 237, 0.98) !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  .bp-progress-line,
  .bp-progress-bottom {
    grid-template-columns: minmax(0, 1fr) 120px !important;
    column-gap: 8px !important;
  }

  .bp-progress-bottom .bp-completed-down-btn {
    font-size: 9px !important;
  }
}




/* BP progress layout final */

.bp-progress-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 104px !important;
  align-items: center !important;
  gap: 14px !important;
}

.bp-progress-main {
  min-width: 0;
}

.bp-progress-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}

.bp-progress-multiplier {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: rgba(248,250,252,0.95) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  min-width: auto !important;
  width: auto !important;
  height: auto !important;
}

.bp-progress-main .bp-progressbar {
  width: 100% !important;
  min-width: 0 !important;
}

.bp-progress-card > .bp-completed-down-btn {
  width: 104px !important;
  height: 52px !important;
  min-width: 104px !important;
  min-height: 52px !important;
  padding: 8px 10px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(245, 158, 11, 0.38) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.13), rgba(255,255,255,0.025)) !important;
  color: rgba(255, 237, 213, 0.92) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045) !important;
  cursor: pointer !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-align: left !important;
  align-self: center !important;
}

.bp-completed-down-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
}

.bp-completed-down-text b {
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  color: rgba(255, 237, 213, 0.98);
}

.bp-completed-down-text small {
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  color: rgba(255, 237, 213, 0.58);
}

.bp-progress-card > .bp-completed-down-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.52) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.18), rgba(255,255,255,0.035)) !important;
}

.bp-progress-card > .bp-completed-down-btn:active {
  transform: scale(0.985);
}

.bp-progress-card > .bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.68) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.28), rgba(139,92,246,0.08)) !important;
}

@media (max-width: 760px) {
  .bp-progress-card {
    grid-template-columns: 1fr !important;
  }

  .bp-progress-card > .bp-completed-down-btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}



/* BP completed button visual polish */

.bp-progress-card > .bp-completed-down-btn {
  width: 116px !important;
  height: 48px !important;
  min-width: 116px !important;
  min-height: 48px !important;
  padding: 7px 10px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.13), rgba(255, 255, 255, 0.025)) !important;
  color: rgba(255, 237, 213, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 8px 18px rgba(0,0,0,0.10) !important;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease !important;
}

.bp-progress-card > .bp-completed-down-btn::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  background:
    radial-gradient(circle at 50% 50%, rgba(245,158,11,0.7), rgba(245,158,11,0.15) 42%, transparent 44%);
  flex: 0 0 auto;
  opacity: 0.75;
}

.bp-completed-down-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.bp-completed-down-text b {
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  color: rgba(255, 237, 213, 0.98) !important;
}

.bp-completed-down-text small {
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 750 !important;
  color: rgba(255, 237, 213, 0.58) !important;
}

.bp-progress-card > .bp-completed-down-btn:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.18), rgba(255,255,255,0.035)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 22px rgba(0,0,0,0.16) !important;
}

.bp-progress-card > .bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.68) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.26), rgba(139,92,246,0.08)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(245,158,11,0.14),
    0 10px 22px rgba(0,0,0,0.16) !important;
}

.bp-progress-card > .bp-completed-down-btn.is-active::before {
  opacity: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,237,213,0.95), rgba(245,158,11,0.75) 34%, rgba(245,158,11,0.18) 58%);
}


/* BP progress final aligned layout */

.bp-progress-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 132px !important;
  align-items: center !important;
  gap: 14px !important;
  padding-right: 18px !important;
}

.bp-progress-main {
  min-width: 0 !important;
}

.bp-progress-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}

.bp-progress-multiplier {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: rgba(248,250,252,0.95) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  min-width: auto !important;
  width: auto !important;
  height: auto !important;
}

.bp-progress-main .bp-progressbar {
  width: 100% !important;
  min-width: 0 !important;
}

.bp-progress-card > .bp-completed-down-btn {
  width: 132px !important;
  height: 36px !important;
  min-width: 132px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.11), rgba(255,255,255,0.025)) !important;
  color: rgba(255, 237, 213, 0.88) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045) !important;
  cursor: pointer !important;
  align-self: center !important;
  justify-self: end !important;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease !important;
}

.bp-progress-card > .bp-completed-down-btn i {
  font-size: 12px !important;
  line-height: 1 !important;
  opacity: 0.9 !important;
}

.bp-progress-card > .bp-completed-down-btn:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(245, 158, 11, 0.44) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.16), rgba(255,255,255,0.035)) !important;
  color: rgba(255, 237, 213, 0.98) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 8px 18px rgba(0,0,0,0.12) !important;
}

.bp-progress-card > .bp-completed-down-btn:active {
  transform: scale(0.985) !important;
}

.bp-progress-card > .bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.58) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.22), rgba(139,92,246,0.07)) !important;
  color: #fff7ed !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 0 0 1px rgba(245,158,11,0.11) !important;
}

@media (max-width: 760px) {
  .bp-progress-card {
    grid-template-columns: 1fr !important;
    padding-right: 16px !important;
  }

  .bp-progress-card > .bp-completed-down-btn {
    width: 132px !important;
    justify-self: end !important;
  }
}


/* BP progress layout — final clean version */

.bp-progress-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 190px !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 16px 18px !important;
}

.bp-progress-main {
  min-width: 0 !important;
}

.bp-progress-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 9px !important;
}

.bp-progress-multiplier {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(248, 250, 252, 0.92) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  width: auto !important;
  min-width: auto !important;
  height: auto !important;
  min-height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.bp-progress-main .bp-progressbar {
  width: 100% !important;
  min-width: 0 !important;
}

.bp-progress-card > .bp-completed-down-btn {
  width: 230px !important;
  min-width: 230px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 16px !important;

  border-radius: 14px !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;

  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.13), rgba(255, 255, 255, 0.025)) !important;

  color: rgba(255, 237, 213, 0.92) !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;

  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;

  overflow: visible !important;
  text-overflow: clip !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 8px 18px rgba(0,0,0,0.10) !important;

  cursor: pointer !important;
  align-self: center !important;
  justify-self: end !important;

  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease !important;
}

.bp-progress-card > .bp-completed-down-btn i {
  display: inline-flex !important;
  font-size: 14px !important;
  line-height: 1 !important;
  opacity: 0.85 !important;
  flex-shrink: 0 !important;
}

.bp-progress-card > .bp-completed-down-btn span {
  display: inline !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.bp-progress-card > .bp-completed-down-btn:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(245, 158, 11, 0.48) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.18), rgba(255,255,255,0.035)) !important;
  color: rgba(255, 237, 213, 0.98) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 22px rgba(0,0,0,0.16) !important;
}

.bp-progress-card > .bp-completed-down-btn:active {
  transform: scale(0.985) !important;
}

.bp-progress-card > .bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.62) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.24), rgba(139,92,246,0.08)) !important;
  color: #fff7ed !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 1px rgba(245,158,11,0.12),
    0 10px 22px rgba(0,0,0,0.16) !important;
}

@media (max-width: 900px) {
  .bp-progress-card {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .bp-progress-card > .bp-completed-down-btn {
    width: 230px !important;
    min-width: 230px !important;
    justify-self: end !important;
  }
}

@media (max-width: 520px) {
  .bp-progress-card > .bp-completed-down-btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}


/* BP progress button width fix */

.bp-progress-card {
  grid-template-columns: minmax(0, 1fr) 190px !important;
}

.bp-progress-card > .bp-completed-down-btn {
  width: 0px !important;
  min-width: 190px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
}

@media (max-width: 900px) {
  .bp-progress-card > .bp-completed-down-btn {
    width: 190px !important;
    min-width: 190px !important;
    justify-self: end !important;
  }
}

@media (max-width: 520px) {
  .bp-progress-card > .bp-completed-down-btn {
    width: 100% !important;
    min-width: 0 !important;
  }
}



/* BP progress right alignment final fix */

.bp-progress-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 230px !important;
  align-items: center !important;
  gap: 16px !important;
}

.bp-progress-main {
  min-width: 0 !important;
}

.bp-progress-card > .bp-completed-down-btn {
  width: 190px !important;
  min-width: 190px !important;
  height: 42px !important;
  min-height: 42px !important;
  justify-self: end !important;
  padding: 0 14px !important;
  font-size: 12px !important;
}

.bp-progress-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.bp-progress-multiplier {
  margin-left: auto !important;
  padding-right: 0 !important;
  text-align: right !important;
}


/* BP progress align button to the right */

.bp-progress-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 170px !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 16px 18px !important;
}

.bp-progress-main {
  min-width: 0 !important;
}

.bp-progress-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}

.bp-progress-multiplier {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(248,250,252,0.95) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  width: auto !important;
  min-width: 0 !important;
}

.bp-progress-main .bp-progressbar {
  width: 100% !important;
  min-width: 0 !important;
}

.bp-progress-card > .bp-completed-down-btn {
  width: 170px !important;
  min-width: 170px !important;
  height: 42px !important;
  min-height: 42px !important;
  justify-self: end !important;
  align-self: center !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}



/* BP right controls exact alignment */

.bp-app {
  --bp-right-controls-width: 220px;
}

/* Верхний блок с VIP / X2 */
.bp-score-card-desktop {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--bp-right-controls-width) !important;
  align-items: center !important;
  gap: 16px !important;
}

.bp-score-card-desktop .bp-score-main {
  min-width: 0 !important;
}

.bp-score-card-desktop .bp-inline-switches {
  width: var(--bp-right-controls-width) !important;
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

/* Блок прогресса */
.bp-progress-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) var(--bp-right-controls-width) !important;
  align-items: center !important;
  gap: 16px !important;
}

.bp-progress-main {
  min-width: 0 !important;
}

.bp-progress-line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}

.bp-progress-multiplier {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(248,250,252,0.95) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

.bp-progress-main .bp-progressbar {
  width: 100% !important;
  min-width: 0 !important;
}

/* Кнопка строго по ширине VIP + X2 */
.bp-progress-card > .bp-completed-down-btn {
  width: var(--bp-right-controls-width) !important;
  min-width: var(--bp-right-controls-width) !important;
  max-width: var(--bp-right-controls-width) !important;
  height: 42px !important;
  min-height: 42px !important;

  justify-self: end !important;
  align-self: center !important;

  padding: 0 16px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(245, 158, 11, 0.32) !important;

  background:
    linear-gradient(135deg, rgba(245,158,11,0.13), rgba(255,255,255,0.025)) !important;

  color: rgba(255,237,213,0.94) !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;

  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 8px 18px rgba(0,0,0,0.10) !important;

  cursor: pointer !important;
}

.bp-progress-card > .bp-completed-down-btn i {
  font-size: 14px !important;
  flex-shrink: 0 !important;
}

.bp-progress-card > .bp-completed-down-btn:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(245,158,11,0.48) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.18), rgba(255,255,255,0.035)) !important;
}

.bp-progress-card > .bp-completed-down-btn.is-active {
  border-color: rgba(245,158,11,0.62) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.24), rgba(139,92,246,0.08)) !important;
  color: #fff7ed !important;
}

@media (max-width: 760px) {
  .bp-score-card-desktop,
  .bp-progress-card {
    grid-template-columns: 1fr !important;
  }

  .bp-score-card-desktop .bp-inline-switches,
  .bp-progress-card > .bp-completed-down-btn {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* BP progress vertical alignment fix */

.bp-progress-card {
  align-items: center !important;
}

.bp-progress-main {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 42px !important;
}

.bp-progress-line {
  margin-bottom: 6px !important;
}

.bp-progress-main .bp-progressbar {
  align-self: stretch !important;
}

.bp-progress-card > .bp-completed-down-btn {
  align-self: center !important;
}

.bp-progress-main {
  transform: translateY(6.5px);
}


/* Make completed-down button calmer */

.bp-progress-card > .bp-completed-down-btn {
  border-color: rgba(255,255,255,0.10) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)) !important;
  color: rgba(248,250,252,0.68) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035) !important;
}

.bp-progress-card > .bp-completed-down-btn i {
  opacity: 0.55 !important;
  color: rgba(248,250,252,0.62) !important;
}

.bp-progress-card > .bp-completed-down-btn:hover {
  border-color: rgba(255,255,255,0.16) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025)) !important;
  color: rgba(248,250,252,0.86) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.045),
    0 8px 18px rgba(0,0,0,0.12) !important;
}

.bp-progress-card > .bp-completed-down-btn.is-active {
  border-color: rgba(245,158,11,0.34) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.12), rgba(255,255,255,0.025)) !important;
  color: rgba(255,237,213,0.86) !important;
}


/* Completed-down button icon dot gray in inactive state */

.bp-progress-card > .bp-completed-down-btn:not(.is-active)::before {
  border-color: rgba(255,255,255,0.16) !important;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(148,163,184,0.55),
      rgba(148,163,184,0.16) 42%,
      transparent 44%
    ) !important;
  opacity: 0.65 !important;
}

.bp-progress-card > .bp-completed-down-btn:not(.is-active) i {
  color: rgba(148,163,184,0.65) !important;
  opacity: 0.7 !important;
}


/* Completed-down active state darker */

.bp-progress-card > .bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.55) !important;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.055)) !important;
  color: rgba(255, 237, 213, 0.92) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.055),
    0 0 0 1px rgba(245,158,11,0.08),
    0 8px 18px rgba(0,0,0,0.12) !important;
}

.bp-progress-card > .bp-completed-down-btn.is-active::before {
  border-color: rgba(245, 158, 11, 0.42) !important;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(245,158,11,0.72),
      rgba(245,158,11,0.42) 42%,
      rgba(245,158,11,0.12) 68%
    ) !important;
  box-shadow:
    0 0 8px rgba(245,158,11,0.18) !important;
  opacity: 0.9 !important;
}

.bp-progress-card > .bp-completed-down-btn.is-active:hover {
  border-color: rgba(245, 158, 11, 0.65) !important;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.23), rgba(245, 158, 11, 0.07)) !important;
}

/* Completed-down active: darker and even highlight */

.bp-progress-card > .bp-completed-down-btn.is-active {
  border-color: rgba(245, 158, 11, 0.42) !important;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.105), rgba(245, 158, 11, 0.035)) !important;
  color: rgba(255, 237, 213, 0.84) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 0 0 1px rgba(245,158,11,0.055) !important;
}

.bp-progress-card > .bp-completed-down-btn.is-active::before {
  border-color: rgba(245, 158, 11, 0.34) !important;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(245,158,11,0.48),
      rgba(245,158,11,0.28) 42%,
      rgba(245,158,11,0.08) 68%
    ) !important;
  box-shadow: none !important;
  opacity: 0.75 !important;
}

.bp-progress-card > .bp-completed-down-btn.is-active i {
  color: rgba(245, 158, 11, 0.55) !important;
  opacity: 0.7 !important;
  filter: none !important;
}

.bp-progress-card > .bp-completed-down-btn.is-active:hover {
  border-color: rgba(245, 158, 11, 0.5) !important;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.13), rgba(245, 158, 11, 0.045)) !important;
  color: rgba(255, 237, 213, 0.9) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 0 0 1px rgba(245,158,11,0.07) !important;
}

.bp-progress-card > .bp-completed-down-btn.is-active:hover::before {
  box-shadow: none !important;
}

/* BP Progress — month toolbar fix */
.bp-progress-body .bp-history-toolbar {
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 64px !important;
  padding: 10px 12px !important;
}

.bp-progress-body .bp-month-title {
  grid-column: 2 !important;
  grid-row: 1 !important;
  text-align: center !important;
  justify-self: center !important;
  align-self: center !important;
  margin: 0 !important;
}

.bp-progress-body #prevMonth {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
}

.bp-progress-body #nextMonth {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
}

.bp-progress-body .bp-month-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
}


/* BP Progress — My BP modal fix */
.bp-progress-body #myBpModal .bp-modal-panel,
.bp-progress-body #myBpModal .bp-my-bp-modal {
  width: min(520px, calc(100% - 32px)) !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 20px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(245,158,11,0.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(13, 15, 20, 0.96) !important;
  box-shadow:
    0 28px 90px rgba(0,0,0,0.56),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

.bp-progress-body #myBpModal .bp-modal-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
}

.bp-progress-body #myBpModal .bp-modal-head h2 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
}

.bp-progress-body #myBpModal .bp-modal-head p {
  margin: 8px 0 0 !important;
  max-width: 390px !important;
  color: rgba(255,255,255,0.58) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
}

.bp-progress-body #myBpModal .bp-modal-close {
  flex: 0 0 auto !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background: rgba(255,255,255,0.045) !important;
  color: rgba(255,255,255,0.78) !important;
  display: inline-grid !important;
  place-items: center !important;
  cursor: pointer !important;
}

.bp-progress-body #myBpModal .bp-modal-close:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}

.bp-progress-body #myBpModal .bp-my-bp-field {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
}

.bp-progress-body #myBpModal .bp-my-bp-field span {
  color: rgba(255,255,255,0.72) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.bp-progress-body #myBpModal .bp-my-bp-field input {
  width: 220px !important;
  max-width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(5, 7, 10, 0.62) !important;
  color: #fff !important;
  outline: none !important;
  font: inherit !important;
  font-size: 18px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035) !important;
}

.bp-progress-body #myBpModal .bp-my-bp-field input:focus {
  border-color: rgba(245,158,11,0.46) !important;
  background: rgba(8, 9, 12, 0.78) !important;
  box-shadow:
    0 0 0 4px rgba(245,158,11,0.10),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

.bp-progress-body #myBpModal .bp-my-bp-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 18px !important;
}

.bp-progress-body #myBpModal .bp-my-bp-cancel,
.bp-progress-body #myBpModal .bp-my-bp-save {
  min-width: 132px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 13px !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.bp-progress-body #myBpModal .bp-my-bp-cancel {
  border: 1px solid rgba(255,255,255,0.11) !important;
  background: rgba(255,255,255,0.045) !important;
  color: rgba(255,255,255,0.82) !important;
}

.bp-progress-body #myBpModal .bp-my-bp-cancel:hover {
  background: rgba(255,255,255,0.075) !important;
  color: #fff !important;
}

.bp-progress-body #myBpModal .bp-my-bp-save {
  border: 1px solid rgba(245,158,11,0.38) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.30), rgba(139,92,246,0.12)) !important;
  color: #fff7ed !important;
  box-shadow: 0 10px 26px rgba(245,158,11,0.10) !important;
}

.bp-progress-body #myBpModal .bp-my-bp-save:hover {
  border-color: rgba(245,158,11,0.56) !important;
  background:
    linear-gradient(135deg, rgba(245,158,11,0.38), rgba(139,92,246,0.16)) !important;
}

@media (max-width: 560px) {
  .bp-progress-body #myBpModal .bp-my-bp-actions {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
  }

  .bp-progress-body #myBpModal .bp-my-bp-cancel,
  .bp-progress-body #myBpModal .bp-my-bp-save {
    width: 100% !important;
  }
}


/* BP Progress — My BP modal compact row */
.bp-progress-body #myBpModal .bp-my-bp-field {
  margin: 0 !important;
}

.bp-progress-body #myBpModal .bp-my-bp-actions {
  margin: 0 !important;
}

.bp-progress-body #myBpModal .bp-my-bp-modal {
  width: min(520px, calc(100% - 32px)) !important;
}

.bp-progress-body #myBpModal .bp-my-bp-field-row {
  display: grid !important;
  grid-template-columns: minmax(160px, 220px) 132px !important;
  align-items: end !important;
  gap: 14px !important;
  margin-top: 8px !important;
}



.bp-progress-body #myBpModal .bp-my-bp-save {
  width: 132px !important;
  min-width: 132px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 16px !important;
}

@media (max-width: 560px) {
  .bp-progress-body #myBpModal .bp-my-bp-field-row {
    grid-template-columns: 1fr !important;
  }

  .bp-progress-body #myBpModal .bp-my-bp-save {
    width: 100% !important;
  }
}


/* BP Progress — My BP modal final compact fix */
.bp-progress-body #myBpModal .bp-my-bp-modal,
.bp-progress-body #myBpModal .bp-modal-panel {
  width: min(410px, calc(100% - 32px)) !important;
  padding: 20px !important;
}

.bp-progress-body #myBpModal .bp-modal-head {
  gap: 12px !important;
}

.bp-progress-body #myBpModal .bp-modal-head > div {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.bp-progress-body #myBpModal .bp-modal-close {
  position: static !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  margin-left: 8px !important;
}

.bp-progress-body #myBpModal .bp-my-bp-field-row {
  grid-template-columns: 220px 132px !important;
  gap: 14px !important;
}

/* Убрать стрелочки у number input */
.bp-progress-body #myBpModal #myBpInput::-webkit-outer-spin-button,
.bp-progress-body #myBpModal #myBpInput::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.bp-progress-body #myBpModal #myBpInput {
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}



/* BP Progress — My BP modal label/input spacing */
.bp-progress-body #myBpModal .bp-my-bp-field {
  gap: 12px !important;
}

.bp-progress-body #myBpModal .bp-my-bp-field span {
  margin-bottom: 2px !important;
}


/* BP Progress — calendar day states colors */

/* Будущие дни — чуть темнее */
.bp-progress-body .bp-day-card.is-future {
  background:
    linear-gradient(180deg, rgba(18, 20, 25, 0.96), rgba(12, 14, 18, 0.96)) !important;
  border-color: rgba(255, 255, 255, 0.045) !important;
  opacity: 0.72 !important;
}

.bp-progress-body .bp-day-card.is-future .bp-day-number {
  background: rgba(255, 255, 255, 0.055) !important;
  color: rgba(255, 255, 255, 0.62) !important;
}

.bp-progress-body .bp-day-card.is-future strong,
.bp-progress-body .bp-day-card.is-future small {
  color: rgba(255, 255, 255, 0.48) !important;
}

/* Дни, где есть BP — голубой акцент */
.bp-progress-body .bp-day-card.has-progress {
  border-color: rgba(56, 189, 248, 0.48) !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(56, 189, 248, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(28, 42, 52, 0.98), rgba(18, 30, 39, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 0 18px rgba(56, 189, 248, 0.10) !important;
}

.bp-progress-body .bp-day-card.has-progress .bp-day-number {
  background: rgba(56, 189, 248, 0.18) !important;
}

/* Сегодняшний день — фиолетовый */
.bp-progress-body .bp-day-card.is-today {
  border-color: rgba(139, 92, 246, 0.72) !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(139, 92, 246, 0.22), transparent 44%),
    linear-gradient(180deg, rgba(40, 34, 58, 0.99), rgba(26, 22, 40, 0.99)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(139, 92, 246, 0.18),
    0 0 20px rgba(139, 92, 246, 0.14) !important;
}

.bp-progress-body .bp-day-card.is-today .bp-day-number {
  background: rgba(139, 92, 246, 0.24) !important;
}

/* День, который сейчас открыт — зелёный */
.bp-progress-body .bp-day-card.is-selected {
  border-color: rgba(52, 211, 153, 0.82) !important;
  background:
    radial-gradient(circle at 14% 0%, rgba(52, 211, 153, 0.20), transparent 44%),
    linear-gradient(180deg, rgba(28, 48, 42, 0.99), rgba(18, 34, 30, 0.99)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(52, 211, 153, 0.20),
    0 0 22px rgba(52, 211, 153, 0.14) !important;
  opacity: 1 !important;
}

.bp-progress-body .bp-day-card.is-selected .bp-day-number {
  background: rgba(52, 211, 153, 0.24) !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Если выбранный день ещё и будущий — зелёный важнее затемнения */
.bp-progress-body .bp-day-card.is-future.is-selected {
  opacity: 1 !important;
}


/* Upload page — buttons unified with BP Assistant */
.upload-page .upload-simple-actions .btn,
.upload-page .upload-simple-actions a.btn,
.upload-page #uploadBtn,
.upload-page #clearBtn {
  box-sizing: border-box !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;

  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;

  color: rgba(255, 255, 255, 0.92) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  transform: none !important;
}

.upload-page .upload-simple-actions .btn:hover,
.upload-page .upload-simple-actions a.btn:hover,
.upload-page #uploadBtn:hover,
.upload-page #clearBtn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* Кнопка "Мои загрузки" — синяя, как "Мой прогресс" */
.upload-page .upload-simple-actions .btn:first-child {
  color: #dbeafe !important;
  border-color: rgba(59, 130, 246, 0.36) !important;
  background: rgba(59, 130, 246, 0.10) !important;
}

.upload-page .upload-simple-actions .btn:first-child:hover {
  color: #eff6ff !important;
  border-color: rgba(96, 165, 250, 0.54) !important;
  background: rgba(59, 130, 246, 0.17) !important;
}

/* Кнопка "На главную" — нейтрально-фиолетовая */
.upload-page .upload-simple-actions .btn:last-child {
  color: #ede9fe !important;
  border-color: rgba(139, 92, 246, 0.34) !important;
  background: rgba(139, 92, 246, 0.09) !important;
}

.upload-page .upload-simple-actions .btn:last-child:hover {
  color: #fff !important;
  border-color: rgba(167, 139, 250, 0.52) !important;
  background: rgba(139, 92, 246, 0.15) !important;
}

/* Основная кнопка "Загрузить" — ближе к primary-кнопкам проекта */
.upload-page #uploadBtn {
  min-width: 120px !important;
  color: #fff !important;
  border-color: rgba(139, 92, 246, 0.42) !important;
  background: linear-gradient(135deg, rgba(126, 87, 240, 0.92), rgba(73, 161, 233, 0.72)) !important;
  box-shadow: 0 12px 30px rgba(98, 98, 255, 0.18) !important;
}

.upload-page #uploadBtn:hover {
  border-color: rgba(139, 92, 246, 0.54) !important;
  background: linear-gradient(135deg, rgba(133, 96, 244, 0.96), rgba(83, 171, 241, 0.82)) !important;
  box-shadow: 0 14px 34px rgba(98, 98, 255, 0.22) !important;
}

/* Кнопка "Стереть" — как аккуратная danger-кнопка */
.upload-page #clearBtn {
  color: #fecaca !important;
  border-color: rgba(239, 68, 68, 0.30) !important;
  background: rgba(239, 68, 68, 0.09) !important;
}

.upload-page #clearBtn:hover {
  color: #fff !important;
  border-color: rgba(248, 113, 113, 0.48) !important;
  background: rgba(239, 68, 68, 0.15) !important;
}


/* =========================================================
   BP Progress — completed day tasks compact list
   ========================================================= */

.bp-progress-body .bp-day-task-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 10px;
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  font-weight: 900;
}

.bp-progress-body .bp-day-task-preview-head strong {
  min-width: 30px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.075);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 950;
}

.bp-progress-body .bp-day-task-list-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bp-progress-body .bp-day-task-compact {
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.075);
  background:
    linear-gradient(180deg, rgba(30,32,38,0.96), rgba(22,24,29,0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 8px 18px rgba(0,0,0,0.12);
}

.bp-progress-body .bp-day-task-compact .bp-day-task-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.88);
}

.bp-progress-body .bp-day-task-compact .bp-day-task-icon i {
  font-size: 18px;
  line-height: 1;
}

.bp-progress-body .bp-day-task-compact .bp-day-task-main {
  min-width: 0;
}

.bp-progress-body .bp-day-task-compact .bp-day-task-main strong {
  display: block;
  margin: 0;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-progress-body .bp-day-task-compact .bp-day-task-main small {
  display: none !important;
}

.bp-progress-body .bp-day-task-compact > b {
  color: #fff7ed;
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.bp-progress-body .bp-show-all-day-tasks {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(245,158,11,0.28);
  background: rgba(245,158,11,0.08);
  color: rgba(255,237,213,0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.bp-progress-body .bp-show-all-day-tasks:hover {
  border-color: rgba(245,158,11,0.46);
  background: rgba(245,158,11,0.13);
  color: #fff7ed;
}

.bp-progress-body .bp-show-all-day-tasks span {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,158,11,0.16);
  color: #fff7ed;
  font-size: 11px;
  font-weight: 950;
}

/* Full tasks modal */
.bp-progress-body #dayTasksModal .bp-day-tasks-modal {
  width: min(560px, calc(100% - 32px));
}

.bp-progress-body #dayTasksModal .bp-day-tasks-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(520px, calc(100vh - 220px));
  overflow-y: auto;
  padding-right: 6px;
}

.bp-progress-body #dayTasksModal .bp-day-tasks-modal-list::-webkit-scrollbar {
  width: 8px;
}

.bp-progress-body #dayTasksModal .bp-day-tasks-modal-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
}

.bp-progress-body #dayTasksModal .bp-day-tasks-modal-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.22);
  border-radius: 999px;
}

.bp-progress-body #dayTasksModal .bp-day-tasks-modal-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.34);
}


/* BP Progress — day summary spacing */
.bp-progress-body .bp-day-summary span {
  display: block !important;
  margin-bottom: 8px !important;
}

.bp-progress-body .bp-day-summary strong {
  display: block !important;
}

/* BP Progress — keep right day panel inside page height */
@media (min-width: 981px) {
  .bp-progress-body .bp-history-layout {
    align-items: start !important;
  }

  .bp-progress-body .bp-day-panel {
    max-height: 536px !important;
    overflow: hidden !important;
  }

  .bp-progress-body .bp-day-task-list,
  .bp-progress-body .bp-day-task-list-compact {
    max-height: 324px !important;
    overflow-y: auto !important;
    padding-right: 4px !important;
  }

  .bp-progress-body .bp-day-task-list::-webkit-scrollbar,
  .bp-progress-body .bp-day-task-list-compact::-webkit-scrollbar {
    width: 6px !important;
  }

  .bp-progress-body .bp-day-task-list::-webkit-scrollbar-track,
  .bp-progress-body .bp-day-task-list-compact::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.04) !important;
    border-radius: 999px !important;
  }

  .bp-progress-body .bp-day-task-list::-webkit-scrollbar-thumb,
  .bp-progress-body .bp-day-task-list-compact::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18) !important;
    border-radius: 999px !important;
  }

  .bp-progress-body .bp-show-all-day-tasks {
    flex-shrink: 0 !important;
  }
}

/* BP Progress — right panel bottom spacing fix */
.bp-progress-body .bp-day-panel {
  padding-bottom: 14px !important;
}

.bp-progress-body .bp-show-all-day-tasks {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}

/* Чтобы кнопка не прилипала к нижней границе панели */
.bp-progress-body .bp-day-task-list-compact {
  margin-bottom: 10px !important;
}

/* BP Progress — right panel height normal fix */
@media (min-width: 981px) {
  .bp-progress-body .bp-history-layout {
    align-items: start !important;
  }

  .bp-progress-body .bp-day-panel {
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 14px !important;
  }

  .bp-progress-body .bp-day-task-list-compact {
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
    padding-right: 0 !important;
  }

  .bp-progress-body .bp-show-all-day-tasks {
    margin-top: 18px !important;
    margin-bottom: 0 !important;
  }
}

/* BP Progress — completed tasks normal text weight */
.bp-progress-body .bp-day-task-compact .bp-day-task-main strong {
  font-weight: 700 !important;
}

.bp-progress-body .bp-day-task-compact > b {
  font-weight: 700 !important;
}


/* =========================================================
   BP Progress — Stage 3: extra BP outside tasks
   ========================================================= */

.bp-progress-body .bp-day-panel-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.bp-progress-body .bp-add-extra-bp-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.08);
  color: rgba(209, 250, 229, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.bp-progress-body .bp-add-extra-bp-btn:hover {
  border-color: rgba(52, 211, 153, 0.52);
  background: rgba(52, 211, 153, 0.13);
  color: #ecfdf5;
}

.bp-progress-body .bp-day-extra-head {
  margin-top: 2px;
}

.bp-progress-body .bp-day-extra-head strong {
  background: rgba(52, 211, 153, 0.14);
  color: #d1fae5;
}

.bp-progress-body .bp-day-extra-list {
  margin-bottom: 12px;
}

.bp-progress-body .bp-day-extra-bp-item {
  border-color: rgba(52, 211, 153, 0.18);
  background:
    radial-gradient(circle at 0% 0%, rgba(52, 211, 153, 0.10), transparent 36%),
    linear-gradient(180deg, rgba(30,32,38,0.96), rgba(22,24,29,0.96));
}

.bp-progress-body .bp-day-extra-bp-item .bp-task-icon {
  color: rgba(167, 243, 208, 0.92);
}

.bp-progress-body .bp-day-extra-bp-item > b {
  color: #d1fae5;
}

/* Add BP modal */
.bp-progress-body #addBpModal .bp-add-bp-modal {
  width: min(520px, calc(100% - 32px));
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle at 0% 0%, rgba(52,211,153,0.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(13, 15, 20, 0.96);
  box-shadow:
    0 28px 90px rgba(0,0,0,0.56),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.bp-progress-body #addBpModal .bp-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bp-progress-body #addBpModal .bp-modal-head h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.bp-progress-body #addBpModal .bp-modal-head p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.bp-progress-body #addBpModal .bp-modal-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.78);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.bp-progress-body #addBpModal .bp-modal-close:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.bp-progress-body #addBpModal .bp-add-bp-form {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: end;
}

.bp-progress-body #addBpModal .bp-add-bp-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.bp-progress-body #addBpModal .bp-add-bp-field span {
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.bp-progress-body #addBpModal .bp-add-bp-field em {
  color: rgba(255,255,255,0.42);
  font-style: normal;
  font-weight: 750;
}

.bp-progress-body #addBpModal .bp-add-bp-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(5, 7, 10, 0.62);
  color: #fff;
  outline: none;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
}

.bp-progress-body #addBpModal #addBpAmountInput {
  font-size: 20px;
  font-weight: 950;
}

.bp-progress-body #addBpModal #addBpAmountInput::-webkit-outer-spin-button,
.bp-progress-body #addBpModal #addBpAmountInput::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bp-progress-body #addBpModal #addBpAmountInput {
  appearance: textfield;
  -moz-appearance: textfield;
}

.bp-progress-body #addBpModal .bp-add-bp-field input:focus {
  border-color: rgba(52,211,153,0.46);
  background: rgba(8, 9, 12, 0.78);
  box-shadow:
    0 0 0 4px rgba(52,211,153,0.10),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.bp-progress-body #addBpModal .bp-add-bp-save {
  height: 46px;
  min-width: 120px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(52,211,153,0.38);
  background: linear-gradient(135deg, rgba(52,211,153,0.26), rgba(59,130,246,0.10));
  color: #ecfdf5;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(52,211,153,0.08);
}

.bp-progress-body #addBpModal .bp-add-bp-save:hover {
  border-color: rgba(52,211,153,0.56);
  background: linear-gradient(135deg, rgba(52,211,153,0.34), rgba(59,130,246,0.14));
}

.bp-progress-body #addBpModal .bp-add-bp-save:disabled {
  opacity: 0.58;
  cursor: wait;
}

@media (max-width: 720px) {
  .bp-progress-body #addBpModal .bp-add-bp-form {
    grid-template-columns: 1fr;
  }

  .bp-progress-body #addBpModal .bp-add-bp-save {
    width: 100%;
  }
} 


/* BP Progress — Stage 3 visual cleanup */
.bp-progress-body .bp-day-summary-with-action {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 14px !important;
}

.bp-progress-body .bp-day-summary-with-action .bp-add-extra-bp-btn {
  margin-top: 2px !important;
  align-self: start !important;
}

.bp-progress-body .bp-day-panel-actions,
.bp-progress-body .bp-day-extra-head,
.bp-progress-body .bp-day-extra-list {
  display: none !important;
}

/* Убираем счётчик рядом с "Выполненные задания" */
.bp-progress-body .bp-day-task-preview-head strong {
  display: none !important;
}

/* Дополнительные BP внутри общего списка */
.bp-progress-body .bp-day-task-compact.is-extra-bp,
.bp-progress-body .bp-day-extra-bp-item {
  border-color: rgba(52, 211, 153, 0.18) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(52, 211, 153, 0.10), transparent 36%),
    linear-gradient(180deg, rgba(30,32,38,0.96), rgba(22,24,29,0.96)) !important;
}

.bp-progress-body .bp-day-task-compact.is-extra-bp .bp-day-task-icon,
.bp-progress-body .bp-day-extra-bp-item .bp-task-icon {
  color: rgba(167, 243, 208, 0.92) !important;
}

.bp-progress-body .bp-day-task-compact.is-extra-bp > b,
.bp-progress-body .bp-day-extra-bp-item > b {
  color: #d1fae5 !important;
}

/* Кнопка Добавить BP внутри карточки дня */
.bp-progress-body .bp-day-summary-with-action .bp-add-extra-bp-btn {
  min-height: 40px !important;
  padding: 0 13px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(52, 211, 153, 0.32) !important;
  background: rgba(52, 211, 153, 0.08) !important;
  color: rgba(209, 250, 229, 0.96) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.bp-progress-body .bp-day-summary-with-action .bp-add-extra-bp-btn:hover {
  border-color: rgba(52, 211, 153, 0.52) !important;
  background: rgba(52, 211, 153, 0.13) !important;
  color: #ecfdf5 !important;
}

@media (max-width: 520px) {
  .bp-progress-body .bp-day-summary-with-action {
    grid-template-columns: 1fr !important;
  }

  .bp-progress-body .bp-day-summary-with-action .bp-add-extra-bp-btn {
    width: 100% !important;
  }
}


/* BP Progress — hard fix Add BP button vertical align */
.bp-progress-body .bp-day-summary-with-action .bp-add-extra-bp-btn,
.bp-progress-body .bp-add-extra-bp-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1 !important;
}

.bp-progress-body .bp-day-summary-with-action .bp-add-extra-bp-btn i,
.bp-progress-body .bp-add-extra-bp-btn i {
  display: block !important;
  line-height: 1 !important;
  font-size: 16px !important;
  position: relative !important;
  top: 0 !important;
  margin: 0 !important;
}

.bp-progress-body .bp-day-summary-with-action .bp-add-extra-bp-btn span,
.bp-progress-body .bp-add-extra-bp-btn span {
  display: block !important;
  line-height: 1 !important;
  position: relative !important;
  top: 1px !important;
  margin: 0 !important;
}

/* BP Progress — Add BP modal final visual fix */
.bp-progress-body #addBpModal .bp-add-bp-modal {
  width: min(560px, calc(100% - 32px)) !important;
}

.bp-progress-body #addBpModal .bp-modal-head {
  margin-bottom: 18px !important;
}

.bp-progress-body #addBpModal .bp-modal-head p {
  margin-top: 8px !important;
  color: rgba(209, 250, 229, 0.72) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.bp-progress-body #addBpModal .bp-add-bp-form {
  display: grid !important;
  grid-template-columns: 150px minmax(0, 1fr) 126px !important;
  gap: 12px !important;
  align-items: end !important;
}

.bp-progress-body #addBpModal .bp-add-bp-field {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.bp-progress-body #addBpModal .bp-add-bp-field span {
  height: 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin: 0 !important;
  color: rgba(255,255,255,0.72) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.bp-progress-body #addBpModal .bp-add-bp-field em {
  color: rgba(255,255,255,0.42) !important;
  font-style: normal !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.bp-progress-body #addBpModal .bp-add-bp-field input,
.bp-progress-body #addBpModal .bp-add-bp-save {
  height: 46px !important;
  min-height: 46px !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
}

.bp-progress-body #addBpModal .bp-add-bp-field input {
  width: 100% !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(5, 7, 10, 0.62) !important;
  color: #fff !important;
  outline: none !important;
  font: inherit !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035) !important;
}

.bp-progress-body #addBpModal #addBpAmountInput {
  font-size: 20px !important;
  font-weight: 950 !important;
}

.bp-progress-body #addBpModal .bp-add-bp-save {
  width: 126px !important;
  min-width: 126px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(52,211,153,0.38) !important;
  background: linear-gradient(135deg, rgba(52,211,153,0.26), rgba(59,130,246,0.10)) !important;
  color: #ecfdf5 !important;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 10px 26px rgba(52,211,153,0.08) !important;
}

.bp-progress-body #addBpModal .bp-add-bp-save:hover {
  border-color: rgba(52,211,153,0.56) !important;
  background: linear-gradient(135deg, rgba(52,211,153,0.34), rgba(59,130,246,0.14)) !important;
}

.bp-progress-body #addBpModal .bp-add-bp-error {
  margin: -4px 0 14px !important;
  padding: 10px 12px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(248,113,113,0.30) !important;
  background: rgba(239,68,68,0.10) !important;
  color: #fecaca !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

.bp-progress-body #addBpModal #addBpAmountInput::-webkit-outer-spin-button,
.bp-progress-body #addBpModal #addBpAmountInput::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.bp-progress-body #addBpModal #addBpAmountInput {
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

@media (max-width: 720px) {
  .bp-progress-body #addBpModal .bp-add-bp-form {
    grid-template-columns: 1fr !important;
  }

  .bp-progress-body #addBpModal .bp-add-bp-save {
    width: 100% !important;
    min-width: 100% !important;
  }
}

/* BP Progress — Add BP modal date alignment */
.bp-progress-body #addBpModal .bp-modal-head p,
.bp-progress-body #addBpModal #addBpModalSubtitle {
  display: block !important;
  margin-top: 8px !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
}

.bp-progress-body #addBpModal #addBpModalSubtitle strong {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 850 !important;
}

/* BP Progress — Add BP comment label simple */
.bp-progress-body #addBpModal .bp-add-bp-field span em {
  display: none !important;
}

/* BP Progress — compact right panel when day is empty */
.bp-progress-body .bp-day-panel {
  min-height: auto !important;
}

.bp-progress-body .bp-day-panel:has(.bp-day-summary-with-action):not(:has(.bp-day-task-preview-head)) {
  align-self: start !important;
  padding-bottom: 14px !important;
}


/* BP Progress — right panel same height as calendar */
@media (min-width: 981px) {
  .bp-progress-body .bp-history-layout {
    align-items: stretch !important;
  }

  .bp-progress-body .bp-day-panel {
    min-height: 100% !important;
    height: auto !important;
    align-self: stretch !important;
    overflow: visible !important;
  }

  .bp-progress-body .bp-day-empty-small {
    min-height: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
}




/* =========================================================
   BP Progress — Stage 4 edit day modal
   ========================================================= */

/* Кнопки внутри карточки дня */
.bp-progress-body .bp-day-summary-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  min-width: 150px !important;
}

.bp-progress-body .bp-day-summary-actions .bp-add-extra-bp-btn,
.bp-progress-body .bp-day-summary-actions .bp-edit-day-btn {
  width: 100% !important;
  min-height: 40px !important;
  padding: 0 13px !important;
  border-radius: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

.bp-progress-body .bp-edit-day-btn {
  border: 1px solid rgba(139, 92, 246, 0.34) !important;
  background: rgba(139, 92, 246, 0.09) !important;
  color: #ede9fe !important;
}

.bp-progress-body .bp-edit-day-btn:hover {
  border-color: rgba(167, 139, 250, 0.54) !important;
  background: rgba(139, 92, 246, 0.15) !important;
  color: #fff !important;
}

.bp-progress-body .bp-day-summary-actions i {
  font-size: 15px !important;
  line-height: 1 !important;
}

.bp-progress-body .bp-day-summary-actions span {
  line-height: 1 !important;
  position: relative !important;
  top: 1px !important;
}

/* Модалка редактирования */
.bp-progress-body #editDayModal .bp-edit-day-modal {
  width: min(860px, calc(100% - 32px)) !important;
  padding: 20px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(139,92,246,0.10), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(13, 15, 20, 0.96) !important;
  box-shadow:
    0 28px 90px rgba(0,0,0,0.56),
    inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

.bp-progress-body #editDayModal .bp-modal-head {
  margin-bottom: 18px !important;
}

.bp-progress-body #editDayModal .bp-modal-head h2 {
  margin: 0 !important;
  color: #fff !important;
  font-size: 24px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
}

.bp-progress-body #editDayModal .bp-modal-head p {
  margin-top: 8px !important;
  color: rgba(255,255,255,0.62) !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
}

/* Ошибка внутри модалки */
.bp-progress-body #editDayModal .bp-edit-day-error {
  margin: -4px 0 14px !important;
  padding: 10px 12px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(248,113,113,0.30) !important;
  background: rgba(239,68,68,0.10) !important;
  color: #fecaca !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

/* Две колонки в модалке */
.bp-progress-body #editDayModal .bp-edit-day-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

.bp-progress-body #editDayModal .bp-edit-section {
  min-width: 0 !important;
  padding: 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)),
    rgba(15, 18, 24, 0.78) !important;
}

.bp-progress-body #editDayModal .bp-edit-section-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.bp-progress-body #editDayModal .bp-edit-section-head strong {
  color: #fff !important;
  font-size: 15px !important;
  line-height: 1.1 !important;
  font-weight: 950 !important;
}

.bp-progress-body #editDayModal .bp-edit-section-head span {
  color: rgba(255,255,255,0.48) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
}

/* Список заданий */
.bp-progress-body #editDayModal .bp-edit-task-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  max-height: min(520px, calc(100vh - 330px)) !important;
  overflow-y: auto !important;
  padding-right: 6px !important;
}

.bp-progress-body #editDayModal .bp-edit-task-row {
  min-height: 52px !important;
  display: grid !important;
  grid-template-columns: 24px 34px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 9px 10px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(255,255,255,0.075) !important;
  background:
    linear-gradient(180deg, rgba(30,32,38,0.96), rgba(22,24,29,0.96)) !important;
  cursor: pointer !important;
}

.bp-progress-body #editDayModal .bp-edit-task-row:hover {
  border-color: rgba(255,255,255,0.14) !important;
  background:
    linear-gradient(180deg, rgba(35,38,45,0.98), rgba(25,28,34,0.98)) !important;
}

.bp-progress-body #editDayModal .bp-edit-task-row.is-checked {
  border-color: rgba(52, 211, 153, 0.28) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(52,211,153,0.10), transparent 34%),
    linear-gradient(180deg, rgba(28,40,36,0.98), rgba(20,28,26,0.98)) !important;
}

.bp-progress-body #editDayModal .bp-edit-task-check {
  width: 18px !important;
  height: 18px !important;
  accent-color: #34d399 !important;
  cursor: pointer !important;
}

.bp-progress-body #editDayModal .bp-edit-task-icon {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  color: rgba(255,255,255,0.84) !important;
}

.bp-progress-body #editDayModal .bp-edit-task-row.is-checked .bp-edit-task-icon {
  color: #a7f3d0 !important;
}

.bp-progress-body #editDayModal .bp-edit-task-icon i {
  font-size: 18px !important;
  line-height: 1 !important;
}

.bp-progress-body #editDayModal .bp-edit-task-name {
  min-width: 0 !important;
}

.bp-progress-body #editDayModal .bp-edit-task-name strong {
  display: block !important;
  color: rgba(255,255,255,0.90) !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.bp-progress-body #editDayModal .bp-edit-task-row b {
  color: rgba(255,247,237,0.92) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* Дополнительные BP */
.bp-progress-body #editDayModal .bp-edit-extra-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-empty {
  min-height: 48px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  border: 1px dashed rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.035) !important;
  color: rgba(255,255,255,0.50) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  display: flex !important;
  align-items: center !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-row {
  display: grid !important;
  grid-template-columns: 88px minmax(0, 1fr) 40px !important;
  gap: 8px !important;
  align-items: end !important;
  padding: 10px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(52,211,153,0.16) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(52,211,153,0.08), transparent 36%),
    rgba(255,255,255,0.035) !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-row label {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  min-width: 0 !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-row label span {
  color: rgba(255,255,255,0.62) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-row input {
  width: 100% !important;
  height: 40px !important;
  padding: 0 11px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.11) !important;
  background: rgba(5, 7, 10, 0.62) !important;
  color: #fff !important;
  outline: none !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-row input:focus {
  border-color: rgba(52,211,153,0.44) !important;
  box-shadow: 0 0 0 4px rgba(52,211,153,0.09) !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-amount::-webkit-outer-spin-button,
.bp-progress-body #editDayModal .bp-edit-extra-amount::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-amount {
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-remove {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(239,68,68,0.24) !important;
  background: rgba(239,68,68,0.08) !important;
  color: #fecaca !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-remove:hover {
  border-color: rgba(248,113,113,0.46) !important;
  background: rgba(239,68,68,0.14) !important;
  color: #fff !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-add {
  width: 100% !important;
  min-height: 42px !important;
  margin-top: 10px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(52,211,153,0.30) !important;
  background: rgba(52,211,153,0.08) !important;
  color: #d1fae5 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-add:hover {
  border-color: rgba(52,211,153,0.48) !important;
  background: rgba(52,211,153,0.13) !important;
  color: #ecfdf5 !important;
}

/* Низ модалки */
.bp-progress-body #editDayModal .bp-edit-day-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

.bp-progress-body #editDayModal .bp-edit-day-cancel,
.bp-progress-body #editDayModal .bp-edit-day-save {
  min-width: 132px !important;
  height: 44px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.bp-progress-body #editDayModal .bp-edit-day-cancel {
  border: 1px solid rgba(255,255,255,0.11) !important;
  background: rgba(255,255,255,0.045) !important;
  color: rgba(255,255,255,0.82) !important;
}

.bp-progress-body #editDayModal .bp-edit-day-cancel:hover {
  background: rgba(255,255,255,0.075) !important;
  color: #fff !important;
}

.bp-progress-body #editDayModal .bp-edit-day-save {
  border: 1px solid rgba(139,92,246,0.42) !important;
  background: linear-gradient(135deg, rgba(126,87,240,0.42), rgba(52,211,153,0.16)) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(139,92,246,0.10) !important;
}

.bp-progress-body #editDayModal .bp-edit-day-save:hover {
  border-color: rgba(167,139,250,0.58) !important;
  background: linear-gradient(135deg, rgba(126,87,240,0.52), rgba(52,211,153,0.20)) !important;
}

.bp-progress-body #editDayModal .bp-edit-day-save:disabled {
  opacity: 0.58 !important;
  cursor: wait !important;
}

/* Скролл внутри списков */
.bp-progress-body #editDayModal .bp-edit-task-list::-webkit-scrollbar {
  width: 8px !important;
}

.bp-progress-body #editDayModal .bp-edit-task-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05) !important;
  border-radius: 999px !important;
}

.bp-progress-body #editDayModal .bp-edit-task-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.22) !important;
  border-radius: 999px !important;
}

.bp-progress-body #editDayModal .bp-edit-task-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.34) !important;
}

@media (max-width: 860px) {
  .bp-progress-body #editDayModal .bp-edit-day-grid {
    grid-template-columns: 1fr !important;
  }

  .bp-progress-body #editDayModal .bp-edit-task-list {
    max-height: 360px !important;
  }
}

@media (max-width: 560px) {
  .bp-progress-body .bp-day-summary-with-action {
    grid-template-columns: 1fr !important;
  }

  .bp-progress-body .bp-day-summary-actions {
    width: 100% !important;
    min-width: 0 !important;
  }

  .bp-progress-body #editDayModal .bp-edit-extra-row {
    grid-template-columns: 1fr !important;
  }

  .bp-progress-body #editDayModal .bp-edit-extra-remove {
    width: 100% !important;
  }

  .bp-progress-body #editDayModal .bp-edit-day-actions {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
  }

  .bp-progress-body #editDayModal .bp-edit-day-cancel,
  .bp-progress-body #editDayModal .bp-edit-day-save {
    width: 100% !important;
  }
}

/* =========================================================
   BP Progress — Stage 4 repeatable + extra scroll fix
   ========================================================= */

/* Правая колонка "Дополнительные BP" не должна растягивать модалку */
.bp-progress-body #editDayModal .bp-edit-section:nth-child(2) {
  display: flex !important;
  flex-direction: column !important;
  max-height: min(560px, calc(100vh - 260px)) !important;
  overflow: hidden !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 430px !important;
  overflow-y: auto !important;
  padding-right: 6px !important;
  margin-right: -4px !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-add {
  flex-shrink: 0 !important;
}

.bp-progress-body #editDayModal .bp-edit-day-actions {
  flex-shrink: 0 !important;
}

/* Скролл для дополнительных BP */
.bp-progress-body #editDayModal .bp-edit-extra-list::-webkit-scrollbar {
  width: 8px !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05) !important;
  border-radius: 999px !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.22) !important;
  border-radius: 999px !important;
}

.bp-progress-body #editDayModal .bp-edit-extra-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.34) !important;
}

/* Задания с количеством выполнений */
.bp-progress-body #editDayModal .bp-edit-task-row.is-repeatable {
  grid-template-columns: 24px 34px minmax(0, 1fr) 112px auto !important;
}

.bp-progress-body #editDayModal .bp-edit-repeat-control {
  width: 112px !important;
  height: 34px !important;
  display: grid !important;
  grid-template-columns: 30px 1fr 30px !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(255,255,255,0.035) !important;
}

.bp-progress-body #editDayModal .bp-edit-repeat-control button {
  width: 28px !important;
  height: 28px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,0.055) !important;
  color: rgba(255,255,255,0.78) !important;
  font: inherit !important;
  font-size: 17px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

.bp-progress-body #editDayModal .bp-edit-repeat-control button:hover {
  background: rgba(255,255,255,0.10) !important;
  color: #fff !important;
}

.bp-progress-body #editDayModal .bp-edit-repeat-input {
  width: 100% !important;
  height: 28px !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  color: #fff !important;
  text-align: center !important;
  font: inherit !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

.bp-progress-body #editDayModal .bp-edit-repeat-input::-webkit-outer-spin-button,
.bp-progress-body #editDayModal .bp-edit-repeat-input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

.bp-progress-body #editDayModal .bp-edit-repeat-input {
  appearance: textfield !important;
  -moz-appearance: textfield !important;
}

@media (max-width: 720px) {
  .bp-progress-body #editDayModal .bp-edit-task-row.is-repeatable {
    grid-template-columns: 24px 34px minmax(0, 1fr) auto !important;
  }

  .bp-progress-body #editDayModal .bp-edit-repeat-control {
    grid-column: 3 / -1 !important;
    width: 140px !important;
    justify-self: start !important;
  }
}

/* BP Progress — Stage 4 equal edit columns height */
.bp-progress-body #editDayModal .bp-edit-day-grid {
  align-items: stretch !important;
}

.bp-progress-body #editDayModal .bp-edit-section {
  height: min(560px, calc(100vh - 260px)) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

/* Левая колонка: задания */
.bp-progress-body #editDayModal .bp-edit-task-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
}

/* Правая колонка: дополнительные BP */
.bp-progress-body #editDayModal .bp-edit-extra-list {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
}

/* Кнопка "Добавить строку" всегда остается внизу правого блока */
.bp-progress-body #editDayModal .bp-edit-extra-add {
  flex-shrink: 0 !important;
  margin-top: 10px !important;
}

/* Нижние кнопки модалки не участвуют в высоте колонок */
.bp-progress-body #editDayModal .bp-edit-day-actions {
  flex-shrink: 0 !important;
}

/* BP Progress — edit button icon/text alignment */
.bp-progress-body .bp-edit-day-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1 !important;
}

.bp-progress-body .bp-edit-day-btn i {
  display: block !important;
  line-height: 1 !important;
  font-size: 15px !important;
  position: relative !important;
  top: 0 !important;
  margin: 0 !important;
}

.bp-progress-body .bp-edit-day-btn span {
  display: block !important;
  line-height: 1 !important;
  position: relative !important;
  top: 1px !important;
  margin: 0 !important;
}

/* BP Progress — softer action buttons text */
.bp-progress-body .bp-day-summary-actions .bp-add-extra-bp-btn,
.bp-progress-body .bp-day-summary-actions .bp-edit-day-btn {
  font-weight: 600 !important;
}

.bp-progress-body .bp-day-summary-actions .bp-add-extra-bp-btn span,
.bp-progress-body .bp-day-summary-actions .bp-edit-day-btn span {
  font-weight: 600 !important;
}


/* =========================================================
   BP Progress — edit day modifiers VIP/X2
   ========================================================= */

.bp-progress-body #editDayModal .bp-edit-day-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto 42px !important;
  align-items: start !important;
  gap: 16px !important;
}

.bp-progress-body #editDayModal .bp-edit-modifiers {
  display: inline-flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin-right: 4px !important;
}

.bp-progress-body #editDayModal .bp-edit-modifier {
  position: relative !important;
  min-width: 92px !important;
  height: 52px !important;
  padding: 8px 9px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  background: rgba(255,255,255,0.045) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 34px !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  user-select: none !important;
}

.bp-progress-body #editDayModal .bp-edit-modifier span {
  min-width: 0 !important;
}

.bp-progress-body #editDayModal .bp-edit-modifier b {
  display: block !important;
  color: rgba(255,255,255,0.92) !important;
  font-size: 15px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
}

.bp-progress-body #editDayModal .bp-edit-modifier small {
  display: block !important;
  margin-top: 4px !important;
  color: rgba(255,255,255,0.46) !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

.bp-progress-body #editDayModal .bp-edit-modifier input {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bp-progress-body #editDayModal .bp-edit-modifier i {
  width: 34px !important;
  height: 20px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.12) !important;
  position: relative !important;
  transition: background 0.16s ease, border-color 0.16s ease !important;
}

.bp-progress-body #editDayModal .bp-edit-modifier i::after {
  content: "" !important;
  position: absolute !important;
  left: 2px !important;
  top: 2px !important;
  width: 14px !important;
  height: 14px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.72) !important;
  transition: transform 0.16s ease, background 0.16s ease !important;
}

.bp-progress-body #editDayModal .bp-edit-modifier:has(input:checked) {
  border-color: rgba(245,158,11,0.46) !important;
  background: rgba(245,158,11,0.11) !important;
}

.bp-progress-body #editDayModal .bp-edit-modifier:has(input:checked) b {
  color: #fbbf24 !important;
}

.bp-progress-body #editDayModal .bp-edit-modifier:has(input:checked) i {
  border-color: rgba(245,158,11,0.62) !important;
  background: #f59e0b !important;
}

.bp-progress-body #editDayModal .bp-edit-modifier:has(input:checked) i::after {
  transform: translateX(14px) !important;
  background: #fff !important;
}

@media (max-width: 760px) {
  .bp-progress-body #editDayModal .bp-edit-day-head {
    grid-template-columns: 1fr 42px !important;
  }

  .bp-progress-body #editDayModal .bp-edit-modifiers {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
  }

  .bp-progress-body #editDayModal .bp-edit-modifier {
    flex: 1 1 0 !important;
  }
}

/* BP Progress — custom edit task checkboxes */
.bp-progress-body #editDayModal .bp-edit-task-check {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  border-radius: 7px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    rgba(8, 9, 12, 0.72) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 6px 16px rgba(0,0,0,0.18) !important;
  display: inline-grid !important;
  place-items: center !important;
  cursor: pointer !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.bp-progress-body #editDayModal .bp-edit-task-check:hover {
  border-color: rgba(52,211,153,0.38) !important;
  background:
    linear-gradient(180deg, rgba(52,211,153,0.08), rgba(255,255,255,0.025)),
    rgba(8, 9, 12, 0.78) !important;
}

.bp-progress-body #editDayModal .bp-edit-task-check:checked {
  border-color: rgba(52,211,153,0.62) !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(167,243,208,0.28), transparent 42%),
    linear-gradient(135deg, rgba(52,211,153,0.92), rgba(16,185,129,0.70)) !important;
  box-shadow:
    0 0 0 3px rgba(52,211,153,0.10),
    0 8px 20px rgba(52,211,153,0.14),
    inset 0 1px 0 rgba(255,255,255,0.20) !important;
}

.bp-progress-body #editDayModal .bp-edit-task-check:checked::after {
  content: "" !important;
  width: 9px !important;
  height: 5px !important;
  border-left: 2px solid #04110c !important;
  border-bottom: 2px solid #04110c !important;
  transform: rotate(-45deg) translateY(-1px) !important;
}

.bp-progress-body #editDayModal .bp-edit-task-check:focus {
  outline: none !important;
}

.bp-progress-body #editDayModal .bp-edit-task-check:focus-visible {
  box-shadow:
    0 0 0 4px rgba(52,211,153,0.14),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

/* BP Progress — final clean checkbox + repeat buttons alignment */
.bp-progress-body #editDayModal .bp-edit-task-check {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 7px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: rgba(8, 9, 12, 0.72) !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  cursor: pointer !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 6px 16px rgba(0,0,0,0.18) !important;
}

.bp-progress-body #editDayModal .bp-edit-task-check::before {
  content: "" !important;
  width: 9px !important;
  height: 5px !important;
  border-left: 2px solid transparent !important;
  border-bottom: 2px solid transparent !important;
  transform: rotate(-45deg) translate(1px, -1px) !important;
  box-sizing: border-box !important;
}

.bp-progress-body #editDayModal .bp-edit-task-check:checked {
  border-color: rgba(52,211,153,0.62) !important;
  background: linear-gradient(135deg, rgba(52,211,153,0.95), rgba(16,185,129,0.76)) !important;
  box-shadow:
    0 0 0 3px rgba(52,211,153,0.10),
    0 8px 20px rgba(52,211,153,0.14),
    inset 0 1px 0 rgba(255,255,255,0.20) !important;
}

.bp-progress-body #editDayModal .bp-edit-task-check:checked::before {
  border-left-color: #052116 !important;
  border-bottom-color: #052116 !important;
}

/* убираем старую галочку, если она была через after */
.bp-progress-body #editDayModal .bp-edit-task-check:checked::after {
  display: none !important;
  content: none !important;
}

/* repeat control alignment */
.bp-progress-body #editDayModal .bp-edit-repeat-control {
  height: 34px !important;
  display: grid !important;
  grid-template-columns: 30px 1fr 30px !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 4px !important;
  padding: 3px !important;
  box-sizing: border-box !important;
}

.bp-progress-body #editDayModal .bp-edit-repeat-control button {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 9px !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  position: relative !important;
  top: 0 !important;
}

.bp-progress-body #editDayModal .bp-edit-repeat-minus,
.bp-progress-body #editDayModal .bp-edit-repeat-plus {
  line-height: 1 !important;
}

.bp-progress-body #editDayModal .bp-edit-repeat-control button::before,
.bp-progress-body #editDayModal .bp-edit-repeat-control button::after {
  line-height: 1 !important;
}

.bp-progress-body #editDayModal .bp-edit-repeat-input {
  height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  line-height: 28px !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

/* чуть точнее центрируем всю строку */
.bp-progress-body #editDayModal .bp-edit-task-row {
  align-items: center !important;
}

.bp-progress-body #editDayModal .bp-edit-task-row > * {
  align-self: center !important;
}


/* BP Progress — equal right day panel height */
@media (min-width: 981px) {
  .bp-progress-body .bp-history-layout {
    align-items: stretch !important;
  }

  .bp-progress-body .bp-calendar-card,
  .bp-progress-body .bp-day-panel {
    min-height: 554px !important;
  }

  .bp-progress-body .bp-day-panel {
    display: flex !important;
    flex-direction: column !important;
  }

  .bp-progress-body .bp-day-empty,
  .bp-progress-body .bp-day-empty-small {
    flex: 1 1 auto !important;
    min-height: 300px !important;
  }
}

/* Admin — user action buttons */
.admin-user-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-user-actions .btn {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 12px;
}

.admin-user-actions [data-reset-password] {
  border-color: rgba(245,158,11,0.26);
  background: rgba(245,158,11,0.08);
  color: #fde68a;
}

.admin-user-actions [data-reset-password]:hover {
  border-color: rgba(245,158,11,0.44);
  background: rgba(245,158,11,0.14);
  color: #fff7ed;
}

@media (max-width: 700px) {
  .admin-user-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-user-actions .btn {
    flex: 1 1 auto;
  }
}

html.bg-image-disabled .bg img,
body.bg-image-disabled .bg img {
  display: none !important;
}

/* Smooth background/content loading + real background mode control */

.bg {
  opacity: 0;
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-ready .bg {
  opacity: 1;
}

.bg img,
.bg video {
  opacity: 0;
  transition: opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-bg-image="on"] .bg img.is-loaded {
  display: block !important;
  opacity: 1 !important;
}

html[data-bg-video="on"] .bg video.is-loaded {
  display: block !important;
  opacity: 1 !important;
}

html[data-bg-image="off"] .bg img,
html[data-bg-image="off"] .bg img.is-loaded {
  display: none !important;
  opacity: 0 !important;
}

html[data-bg-video="off"] .bg video,
html[data-bg-video="off"] .bg video.is-loaded {
  display: none !important;
  opacity: 0 !important;
}

html[data-bg-image="off"][data-bg-video="off"] .bg::before,
html[data-bg-image="off"][data-bg-video="off"] .bg::after {
  display: none !important;
}

html[data-bg-image="off"][data-bg-video="off"] .bg {
  background: transparent !important;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.45s ease;
  will-change: opacity;
}

body.page-ready .page {
  opacity: 1;
}

body.page-leaving .page {
  opacity: 0;
}

body:not(.page-ready) .brand,
body:not(.page-ready) .login-card,
body:not(.page-ready) .hub-card,
body:not(.page-ready) .upload-panel,
body:not(.page-ready) .settings-card,
body:not(.page-ready) .admin-panel,
body:not(.page-ready) .my-uploads-panel {
  animation: none !important;
}


body:not(.page-ready) .brand,
body:not(.page-ready) .hero,
body:not(.page-ready) .section,
body:not(.page-ready) .login-card,
body:not(.page-ready) .settings-card,
body:not(.page-ready) .admin-card,
body:not(.page-ready) .admin-panel,
body:not(.page-ready) .upload-panel,
body:not(.page-ready) .my-uploads-panel,
body:not(.page-ready) .bp-card,
body:not(.page-ready) .glass,
body:not(.page-ready) .card {
  opacity: 0;
  filter: blur(3px);
}

body.page-ready .brand,
body.page-ready .hero,
body.page-ready .section,
body.page-ready .login-card,
body.page-ready .settings-card,
body.page-ready .admin-card,
body.page-ready .admin-panel,
body.page-ready .upload-panel,
body.page-ready .my-uploads-panel,
body.page-ready .bp-card,
body.page-ready .glass,
body.page-ready .card {
  opacity: 1;
  filter: blur(0);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}




/* Admin — inline role editor */
.admin-role-editor {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.admin-role-editor label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.82);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.admin-role-editor input {
  accent-color: #8b5cf6;
}
