
/* ==========================================================
   DANCEHIRES MASTER ADMIN V2
   Host-specific Master Platform experience
========================================================== */

body.master-admin-mode .competition-switcher {
  min-height: 78px;
  cursor: default !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.10),
      rgba(255,255,255,.045)
    ) !important;

  border:
    1px solid rgba(255,255,255,.12) !important;
}

body.master-admin-mode .competition-switcher:hover {
  transform: none !important;
}

.master-platform-switcher {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
}

.master-platform-mark {
  width: 43px;
  height: 43px;
  min-width: 43px;

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

  border-radius: 14px;

  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.02em;

  color: #fff;

  background:
    linear-gradient(
      145deg,
      #7737ff,
      #c72cff
    );

  box-shadow:
    0 8px 24px rgba(125,55,255,.28);
}

.master-platform-copy {
  min-width: 0;
}

.master-platform-copy span {
  display: block;

  margin-bottom: 4px;

  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .16em;

  color: rgba(255,255,255,.48);
}

.master-platform-copy strong {
  display: block;

  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;

  color: #fff;
}

.master-platform-copy small {
  display: block;

  margin-top: 4px;

  font-size: 10px;
  font-weight: 600;

  color: rgba(255,255,255,.55);
}


/* ==========================================================
   MASTER NAVIGATION
========================================================== */

#master-admin-nav {
  display: none;
}

body.master-admin-mode #master-admin-nav {
  display: block;

  padding:
    20px 10px
    110px;
}

body.master-admin-mode .nav-scroll > *:not(#master-admin-nav) {
  display: none !important;
}

.master-nav-section {
  margin-bottom: 28px;
}

.master-nav-title {
  padding: 0 10px;
  margin-bottom: 9px;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;

  color: rgba(255,255,255,.42);
}

.master-nav-button {
  position: relative;

  width: 100%;
  min-height: 49px;

  display: flex;
  align-items: center;
  gap: 13px;

  margin-bottom: 5px;
  padding: 0 13px;

  border: 0;
  border-radius: 14px;

  background: transparent;

  color: rgba(255,255,255,.76);

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  text-align: left;
  cursor: pointer;

  transition:
    background .18s ease,
    color .18s ease,
    transform .18s ease;
}

.master-nav-button:hover {
  color: #fff;

  background:
    rgba(255,255,255,.055);
}

.master-nav-button.active {
  color: #fff;

  background:
    linear-gradient(
      100deg,
      rgba(101,54,255,.86),
      rgba(184,42,255,.92)
    );

  box-shadow:
    0 8px 25px rgba(116,48,255,.25);
}

.master-nav-icon {
  width: 27px;
  min-width: 27px;
  height: 27px;

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

  border-radius: 9px;

  font-size: 13px;
  font-weight: 800;

  color: rgba(255,255,255,.78);
}

.master-nav-button.active .master-nav-icon {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.master-nav-soon {
  margin-left: auto;

  padding: 4px 7px;

  border-radius: 999px;

  font-size: 8px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;

  color: rgba(255,255,255,.52);

  background: rgba(255,255,255,.07);
}


/* ==========================================================
   MASTER PAGE DISTINCTION
========================================================== */

body.master-admin-mode .master-page {
  background:
    radial-gradient(
      circle at 84% 0%,
      rgba(126,70,255,.08),
      transparent 31%
    ),
    #fbfaff;
}

body.master-admin-mode .master-top .mini-label::before {
  content: "DH";
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  margin-right: 8px;

  border-radius: 7px;

  color: #fff;

  background:
    linear-gradient(
      145deg,
      #7137ff,
      #c82eff
    );
}


/* ==========================================================
   COMPETITION ADMIN MODE
========================================================== */

body.competition-admin-mode #master-admin-nav {
  display: none !important;
}

body.competition-admin-mode .competition-switcher {
  cursor: default !important;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {

  .master-nav-button {
    font-size: 13px;
  }

}


/* ==========================================================
   DANCEHIRES COMPETITIONS V1
========================================================== */

.dh-competitions-page {
  display: none;
  padding: 34px 38px 80px;
}

.dh-competitions-page.active {
  display: block;
}

.dh-competitions-hero {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 34px 36px;
  border: 1px solid #e6e2eb;
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 86% 30%,
      rgba(185, 39, 255, .16),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #faf8ff 60%,
      #f4efff 100%
    );
}

.dh-competitions-hero::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 110px;
  right: -80px;
  top: 25px;
  border-radius: 100px;
  transform: rotate(-16deg);
  background:
    linear-gradient(
      100deg,
      #18181b,
      #7427ff 55%,
      #d829ff
    );
  opacity: .92;
}

.dh-competitions-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.dh-platform-label {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  color: #7b2cff;
}

.dh-competitions-hero h1 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.045em;
  color: #11101f;
}

.dh-competitions-hero p {
  margin: 13px 0 0;
  color: #777184;
  font-size: 15px;
}

.dh-competitions-actions {
  position: absolute;
  z-index: 3;
  right: 28px;
  top: 28px;
}

.dh-primary-button {
  border: 0;
  border-radius: 14px;
  padding: 14px 19px;
  background: #08080b;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

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

.dh-summary-card {
  padding: 20px 21px;
  border: 1px solid #e5e1e9;
  border-radius: 19px;
  background: rgba(255,255,255,.92);
}

.dh-summary-card span {
  display: block;
  margin-bottom: 8px;
  color: #77717f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.dh-summary-card strong {
  display: block;
  color: #11101f;
  font-size: 27px;
  line-height: 1;
}

.dh-competition-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
}

.dh-competition-search {
  flex: 1;
  height: 48px;
  padding: 0 17px;
  border: 1px solid #dfdbe5;
  border-radius: 14px;
  outline: none;
  background: #fff;
  font: inherit;
}

.dh-competition-filter {
  height: 48px;
  min-width: 150px;
  padding: 0 14px;
  border: 1px solid #dfdbe5;
  border-radius: 14px;
  background: #fff;
  font: inherit;
}

.dh-competition-list {
  overflow: hidden;
  border: 1px solid #e2dee7;
  border-radius: 22px;
  background: #fff;
}

.dh-competition-list-head,
.dh-competition-row {
  display: grid;
  grid-template-columns:
    minmax(250px,2fr)
    110px
    110px
    110px
    145px
    130px
    150px;
  align-items: center;
  gap: 10px;
}

.dh-competition-list-head {
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid #ece8ef;
  background: #faf9fc;
  color: #8b8492;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .11em;
}

.dh-competition-row {
  min-height: 102px;
  padding: 16px 20px;
  border-bottom: 1px solid #efecf1;
}

.dh-competition-row:last-child {
  border-bottom: 0;
}

.dh-competition-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dh-competition-logo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      #121216,
      #000
    );
  color: #f5cf35;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
}

.dh-competition-name strong {
  display: block;
  margin-bottom: 5px;
  color: #12111e;
  font-size: 15px;
}

.dh-competition-name small {
  color: #918a98;
  font-size: 11px;
}

.dh-table-number {
  color: #181622;
  font-size: 15px;
  font-weight: 800;
}

.dh-table-money strong {
  display: block;
  color: #181622;
  font-size: 14px;
}

.dh-table-money small {
  color: #98919f;
  font-size: 10px;
}

.dh-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf8ef;
  color: #168445;
  font-size: 10px;
  font-weight: 900;
}

.dh-open-admin {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  background: linear-gradient(135deg,#7427ff,#c027ff);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(125,40,255,.22);
}

.dh-competition-empty {
  padding: 70px 25px;
  text-align: center;
  color: #8d8794;
}

@media (max-width: 1150px) {

  .dh-competition-summary {
    grid-template-columns: repeat(2,1fr);
  }

  .dh-competition-list {
    overflow-x: auto;
  }

  .dh-competition-list-head,
  .dh-competition-row {
    min-width: 1000px;
  }
}



/* ==========================================================
   COMPETITION PROFILE V1
========================================================== */

.dh-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dh-edit-competition {
  height: 39px;
  padding: 0 13px;

  border:
    1px solid #ddd8e4;

  border-radius: 12px;

  background: #fff;

  color: #211d29;

  font-family: inherit;
  font-size: 11px;
  font-weight: 800;

  cursor: pointer;

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

.dh-edit-competition:hover {
  transform: translateY(-1px);

  box-shadow:
    0 7px 18px
    rgba(28,20,40,.08);
}


.dh-profile-overlay {
  position: fixed;
  z-index: 5000;

  inset: 0;

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

  padding: 28px;

  background:
    rgba(13,11,18,.58);

  backdrop-filter:
    blur(9px);
}

.dh-profile-overlay.open {
  display: flex;
}


.dh-profile-modal {
  width: min(
    900px,
    calc(100vw - 36px)
  );

  max-height:
    calc(100vh - 46px);

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border:
    1px solid
    rgba(255,255,255,.5);

  border-radius: 27px;

  background: #fbfaff;

  box-shadow:
    0 35px 100px
    rgba(8,5,15,.32);
}


.dh-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  padding:
    27px 29px 23px;

  border-bottom:
    1px solid #ebe7ef;

  background: #fff;
}

.dh-profile-eyebrow {
  margin-bottom: 7px;

  color: #7a28ff;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.dh-profile-header h2 {
  margin: 0;

  color: #12101d;

  font-size: 29px;
  line-height: 1;
  letter-spacing: -.035em;
}

.dh-profile-header p {
  margin:
    8px 0 0;

  color: #817a89;

  font-size: 12px;
}

.dh-profile-close {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  border:
    1px solid #e3dee8;

  border-radius: 13px;

  background: #fff;

  color: #322b39;

  font-size: 18px;

  cursor: pointer;
}


.dh-profile-body {
  overflow-y: auto;

  padding: 21px;
}


.dh-profile-section {
  margin-bottom: 16px;
  padding: 20px;

  border:
    1px solid #e7e2eb;

  border-radius: 20px;

  background: #fff;
}

.dh-profile-section-head {
  margin-bottom: 17px;
}

.dh-profile-section-head strong {
  display: block;

  color: #171420;

  font-size: 16px;
}

.dh-profile-section-head span {
  display: block;

  margin-top: 4px;

  color: #918a98;

  font-size: 10px;
}


.dh-profile-grid {
  display: grid;

  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap: 14px;
}


.dh-field {
  min-width: 0;
}

.dh-field.full {
  grid-column: 1 / -1;
}

.dh-field label {
  display: block;

  margin-bottom: 7px;

  color: #5c5564;

  font-size: 10px;
  font-weight: 800;
}

.dh-field input,
.dh-field select {
  width: 100%;
  height: 47px;

  box-sizing: border-box;

  padding: 0 13px;

  border:
    1px solid #ded9e4;

  border-radius: 13px;

  outline: none;

  background: #fff;

  color: #17131e;

  font-family: inherit;
  font-size: 13px;
}

.dh-field input:focus,
.dh-field select:focus {
  border-color:
    var(
      --competition-primary,
      #792cff
    );

  box-shadow:
    0 0 0 3px
    color-mix(
      in srgb,
      var(
        --competition-primary,
        #792cff
      ) 10%,
      transparent
    );
}


.dh-domain-preview {
  display: flex;
  align-items: center;

  min-height: 42px;

  margin-top: 8px;
  padding: 0 12px;

  border-radius: 11px;

  background: #f6f3f9;

  color: #746d7c;

  font-size: 11px;
  font-weight: 700;
}


.dh-color-grid {
  display: grid;

  grid-template-columns:
    repeat(3,minmax(0,1fr));

  gap: 12px;
}

.dh-color-field {
  padding: 13px;

  border:
    1px solid #e5e0e9;

  border-radius: 15px;

  background: #faf9fc;
}

.dh-color-field label {
  display: block;

  margin-bottom: 9px;

  color: #5f5866;

  font-size: 10px;
  font-weight: 800;
}

.dh-color-control {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dh-color-control input[type="color"] {
  width: 44px;
  height: 44px;

  flex: 0 0 44px;

  padding: 3px;

  border:
    1px solid #ded9e4;

  border-radius: 11px;

  background: #fff;

  cursor: pointer;
}

.dh-color-control input[type="text"] {
  min-width: 0;
  flex: 1;

  height: 44px;

  padding: 0 10px;

  border:
    1px solid #ded9e4;

  border-radius: 11px;
}


.dh-active-control {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  min-height: 62px;

  padding: 0 15px;

  border:
    1px solid #e5e0e9;

  border-radius: 15px;

  background: #faf9fc;
}

.dh-active-copy strong {
  display: block;

  color: #1b1721;

  font-size: 12px;
}

.dh-active-copy span {
  display: block;

  margin-top: 4px;

  color: #918a98;

  font-size: 10px;
}

.dh-profile-checkbox {
  width: 22px;
  height: 22px;

  accent-color:
    var(
      --competition-primary,
      #792cff
    );
}


.dh-profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding: 17px 22px;

  border-top:
    1px solid #e9e5ed;

  background:
    rgba(255,255,255,.96);
}

.dh-profile-status {
  color: #168445;

  font-size: 11px;
  font-weight: 800;
}

.dh-profile-footer-actions {
  display: flex;
  gap: 9px;
}

.dh-profile-cancel,
.dh-profile-save {
  min-height: 43px;

  padding: 0 17px;

  border-radius: 13px;

  font-family: inherit;
  font-size: 11px;
  font-weight: 900;

  cursor: pointer;
}

.dh-profile-cancel {
  border:
    1px solid #ded9e4;

  background: #fff;

  color: #302a37;
}

.dh-profile-save {
  border: 0;

  background:
    linear-gradient(
      130deg,
      var(
        --competition-primary,
        #792cff
      ),
      var(
        --competition-secondary,
        #d927ff
      )
    );

  color: #fff;

  box-shadow:
    0 8px 22px
    color-mix(
      in srgb,
      var(
        --competition-primary,
        #792cff
      ) 28%,
      transparent
    );
}


.dh-status.inactive {
  background: #f2eff4;
  color: #716a78;
}


@media (max-width: 760px) {

  .dh-profile-grid,
  .dh-color-grid {
    grid-template-columns: 1fr;
  }

  .dh-field.full {
    grid-column: auto;
  }

}

