:root {
  --dc-cover-profile-height: 270px;
}

.dc_cover {
  margin: -30px 0px 10px;
}

.dc_cover_hero {
  position: relative;
  min-height: var(--dc-cover-profile-height);
  border-radius: 18px;
  overflow: hidden;
  background-color: #111822;
  background-size: cover;
  background-position: center;

  border: 1px solid rgb(255, 105, 180);

  box-shadow: 0 16px 40px rgba(3, 13, 28, 0.46);
}

.dc_cover_hero.is_empty {
  background-image: linear-gradient(120deg, #131e2f 0%, #223958 52%, #101824 100%);
}




.dc_cover_video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.dc_cover_edit_btn {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 11px;
  background: rgba(8, 16, 29, 0.82);
  color: #d2e9ff;
  font-size: 22px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.dc_cover_edit_btn:hover {
  transform: translateY(-2px);
  background: rgba(25, 74, 132, 0.88);
}

.dc_cover_locked {
  position: absolute;
  inset: 0;
  z-index: 3;
  backdrop-filter: blur(5px);
  background: rgba(10, 18, 27, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dc_cover_locked_box {
  max-width: 460px;
  width: 100%;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(14, 22, 37, 0.96), rgba(7, 10, 16, 0.92));
  border: 1px solid rgba(120, 177, 255, 0.25);
  padding: 22px;
  text-align: center;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.5);
}

.dc_cover_locked_title {
  color: #f3f8ff;
  font-size: 30px;
  line-height: 1.32;
  font-weight: 700;
}

.dc_cover_locked_desc {
  margin-top: 12px;
  color: rgba(231, 241, 255, 0.86);
  font-size: 14px;
}

.dc_cover_buy_btn,
.dc_cover_action_btn {
  border: none;
  border-radius: 11px;
  color: #f8fbff;
  background: linear-gradient(135deg, #3e73f3 0%, #5e4bdb 100%);
  min-height: 42px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.dc_cover_buy_btn:hover,
.dc_cover_action_btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.dc_cover_buy_btn {
  margin-top: 16px;
}

.dc_cover_modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

.dc_cover_modal.is_open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dc_cover_modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .24s ease;
}

.dc_cover_modal.is_open .dc_cover_modal_backdrop {
  opacity: 1;
}

.dc_cover_modal_box {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(122, 180, 255, 0.2);
  background: linear-gradient(165deg, #111a28 0%, #0a1018 100%);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.62);
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-18px) scale(.975);
  transform-origin: center center;
  transition: transform .28s cubic-bezier(.22,.8,.25,1), opacity .22s ease;
  will-change: transform, opacity;
}

.dc_cover_modal.is_open .dc_cover_modal_box {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dc_cover_modal_head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(123, 175, 255, 0.16);
}

.dc_cover_modal_title {
  color: #eef6ff;
  font-size: 22px;
  font-weight: 700;
}

.dc_cover_modal_sub {
  color: rgba(221, 234, 252, 0.85);
  font-size: 13px;
  margin-top: 4px;
}

.dc_cover_modal_close {
  border: none;
  background: transparent;
  color: #c9def9;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dc_cover_tabs {
  display: flex;
  gap: 8px;
  padding: 12px 18px 0;
}

.dc_cover_tab {
  border: 1px solid rgba(112, 160, 236, 0.26);
  background: rgba(24, 42, 69, 0.72);
  color: #d5e8ff;
  border-radius: 11px 11px 0 0;
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
}

.dc_cover_tab.is_active {
  background: linear-gradient(135deg, #245fcf, #3b6ee8);
  border-color: rgba(140, 182, 252, 0.56);
}

.dc_cover_panel {
  display: none;
  padding: 18px;
}

.dc_cover_panel.is_active {
  display: block;
}

.dc_cover_panel_hidden {
  display: none !important;
}

.dc_cover_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-height: 500px;
  overflow: auto;
  padding-right: 4px;
}

.dc_cover_card {
  border: 1px solid rgba(130, 178, 249, 0.2);
  background: rgba(10, 16, 27, 0.8);
  border-radius: 13px;
  overflow: hidden;
}

.dc_cover_card.is_selected {
  border-color: rgba(111, 180, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(77, 144, 255, 0.2);
}

.dc_cover_card_preview {
  height: 110px;
  width: 100%;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  display: block;
}

.dc_cover_card_preview.is_gradient {
  background: linear-gradient(130deg, #243c62 0%, #101827 52%, #2b4f7c 100%);
}

.dc_cover_card_body {
  padding: 12px;
}

.dc_cover_card_title {
  color: #e8f4ff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.dc_cover_card_badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  color: #d9f4df;
  background: rgba(30, 113, 57, 0.26);
  border: 1px solid rgba(80, 182, 103, 0.45);
}

.dc_cover_empty {
  color: #c6d9f0;
  background: rgba(15, 24, 35, 0.75);
  border-radius: 11px;
  border: 1px solid rgba(121, 171, 242, 0.2);
  padding: 13px;
}

.dc_cover_upload_access {
  border: 1px solid rgba(114, 169, 248, 0.25);
  border-radius: 12px;
  background: rgba(10, 18, 31, 0.72);
  padding: 14px;
  margin-bottom: 12px;
}

.dc_cover_upload_access_text {
  color: #d5e8ff;
  margin-bottom: 10px;
}

.dc_cover_upload_label {
  display: block;
  color: #d7e9ff;
  margin-bottom: 10px;
}

.dc_cover_uploader {
  position: relative;
  min-height: 124px;
  border-radius: 12px;
  border: 1px dashed rgba(98, 158, 240, 0.45);
  background: rgba(13, 25, 40, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  padding: 12px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.dc_cover_uploader:hover {
  border-color: rgba(125, 183, 255, 0.75);
  background: rgba(17, 33, 51, 0.82);
  transform: translateY(-1px);
}

.dc_cover_uploader_icon {
  font-size: 26px;
  color: #66a8ff;
  line-height: 1;
}

.dc_cover_uploader_title {
  color: #ddebff;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.dc_cover_uploader_meta {
  color: rgba(146, 186, 243, 0.75);
  font-size: 13px;
}

.dc_cover_uploader_name {
  color: #9ac6ff;
  font-size: 13px;
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc_cover_uploader_input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dc_cover_result {
  padding: 0 18px 18px;
}

.dc_cover_notice {
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.dc_cover_notice.is_ok {
  color: #dcf9e2;
  background: rgba(28, 127, 59, 0.28);
  border: 1px solid rgba(64, 186, 98, 0.48);
}

.dc_cover_notice.is_err {
  color: #ffe1e1;
  background: rgba(132, 28, 28, 0.3);
  border: 1px solid rgba(205, 72, 72, 0.52);
}

.dc_cover_toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.dc_cover_toast {
  min-width: 260px;
  max-width: 360px;
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  transform: translateY(14px);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}

.dc_cover_toast.is_show {
  transform: translateY(0);
  opacity: 1;
}

.dc_cover_toast.is_ok {
  background: rgba(18, 39, 28, 0.92);
  border-color: rgba(67, 177, 107, 0.45);
  color: #dff7e7;
}

.dc_cover_toast.is_err {
  background: rgba(53, 20, 20, 0.94);
  border-color: rgba(219, 86, 86, 0.45);
  color: #ffe8e8;
}

.dc_cover_toast_text {
  display: block;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

@media (max-width: 860px) {
  .dc_cover_grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --dc-cover-profile-height: 220px;
  }

  .dc_cover_hero {
    min-height: var(--dc-cover-profile-height);
    border-radius: 14px;
  }

  .dc_cover_locked_title {
    font-size: 20px;
  }
  .dc_cover_modal {
    padding: 8px;
  }

  .dc_cover_modal_box {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    margin: 0;
    border-radius: 14px;
  }

  .dc_cover_uploader {
    min-height: 106px;
  }

  .dc_cover_uploader_title {
    font-size: 18px;
  }
}


html.dc_cover_modal_open,
html.dc_cover_modal_open body {
  overflow: hidden !important;
}

.dc_cover_locked {
  align-items: flex-start;
  padding: 10px 20px 20px;
}

.dc_cover_locked_box {
  transform: none;
}

.dc_cover_buy_btn {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(126, 255, 194, .58);
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0)),
    linear-gradient(135deg, #4fea9f 0%, #2fd186 100%);
  color: #07150e;
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow:
    0 8px 22px rgba(79,234,159,.32),
    0 0 0 1px rgba(79,234,159,.10),
    inset 0 1px 0 rgba(255,255,255,.35);
  text-shadow: 0 1px 0 rgba(255,255,255,.22);
}

.dc_cover_buy_btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow:
    0 11px 28px rgba(79,234,159,.42),
    0 0 18px rgba(79,234,159,.20),
    inset 0 1px 0 rgba(255,255,255,.42);
}

.dc_cover_buy_btn:active {
  transform: translateY(0);
}

@media (max-width: 640px) {

  .rdv2-hero__cover .dc_cover_locked {
    align-items: flex-start;
    justify-content: center;
    padding: 54px 12px 14px;
  }

  .rdv2-hero__cover .dc_cover_locked_box {
    width: min(100%, 340px);
    max-width: 340px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .rdv2-hero__cover .dc_cover_locked_title {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
  }

  .rdv2-hero__cover .dc_cover_locked_desc {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
  }

  .rdv2-hero__cover .dc_cover_buy_btn {
    min-height: 38px;
    margin-top: 10px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 12px;
  }

  .rdv2-hero:has(.dc_cover_locked) .rdv2-hero__body {
    padding-top: 205px !important;
  }
}
