/*
 * TrebleChasersODL
 * Player Profile Editorial White / Gold / Cyan V1.1
 *
 * Design authority:
 * - pristine white / warm-white foundation
 * - metallic gold hierarchy
 * - restrained cyan for live/current digital signals only
 * - compact editorial panels
 * - no navy application shell
 * - no steel-grey legacy blocks
 */

:root {
  --pp-white: #ffffff;
  --pp-warm: #fffdf8;
  --pp-warm-2: #fbf8ef;

  --pp-ink: #151719;
  --pp-text: #33373b;
  --pp-muted: #70757b;

  --pp-gold: #c99a23;
  --pp-gold-light: #e5c862;
  --pp-gold-pale: #fff2bf;
  --pp-gold-deep: #876515;

  --pp-cyan: #22c7e7;
  --pp-cyan-deep: #0f8fac;

  --pp-line: #dededb;
  --pp-line-soft: #ecebe6;

  --pp-gold-line: rgba(201, 154, 35, .34);
  --pp-cyan-line: rgba(34, 199, 231, .38);

  --pp-shadow:
    0 12px 34px rgba(30, 25, 15, .065);

  --pp-shadow-soft:
    0 7px 22px rgba(30, 25, 15, .045);

  color-scheme: light;
}

html {
  background: var(--pp-white) !important;
}

body.premier-profile-page {
  color: var(--pp-text) !important;

  background:
    radial-gradient(
      circle at 8% 8%,
      rgba(229, 200, 98, .10),
      transparent 24rem
    ),
    radial-gradient(
      circle at 92% 22%,
      rgba(34, 199, 231, .055),
      transparent 24rem
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #ffffff 62%,
      #fffefa 100%
    ) !important;
}

body.premier-profile-page [hidden] {
  display: none !important;
}

body.premier-profile-page,
body.premier-profile-page button,
body.premier-profile-page input,
body.premier-profile-page select,
body.premier-profile-page textarea {
  color: var(--pp-ink);
}

/* ------------------------------------------------------------------------- */
/* PAGE SHELL                                                                */
/* ------------------------------------------------------------------------- */

.profile-page {
  width: min(
    1240px,
    calc(100% - 32px)
  ) !important;

  max-width: 1240px !important;

  margin:
    18px auto
    50px !important;

  padding: 0 !important;

  color: var(--pp-text) !important;

  background: transparent !important;

  border: 0 !important;

  box-shadow: none !important;
}

.profile-account-app {
  padding: 0 !important;

  color: var(--pp-text) !important;

  background: transparent !important;

  border: 0 !important;

  border-radius: 0 !important;

  box-shadow: none !important;
}

.profile-account-app:not([hidden]) {
  display: grid !important;

  gap: 14px !important;
}

.profile-account-app::before,
.profile-account-app::after,
.profile-career-dashboard::before,
.profile-career-dashboard::after {
  display: none !important;

  content: none !important;
}

/* ------------------------------------------------------------------------- */
/* SESSION / ACCESS MESSAGE                                                  */
/* ------------------------------------------------------------------------- */

.profile-access-message {
  width: min(
    1240px,
    calc(100% - 32px)
  ) !important;

  margin:
    16px auto
    0 !important;

  padding:
    12px
    15px !important;

  color: #4c5156 !important;

  background:
    linear-gradient(
      90deg,
      #fff,
      #fffefa
    ) !important;

  border:
    1px solid
    var(--pp-gold-line) !important;

  border-left:
    3px solid
    var(--pp-cyan) !important;

  border-radius: 8px !important;

  box-shadow:
    var(--pp-shadow-soft) !important;
}

/* ------------------------------------------------------------------------- */
/* EDITORIAL HERO                                                            */
/* ------------------------------------------------------------------------- */

.profile-page-heading {
  position: relative !important;

  display: flex !important;

  align-items: flex-start !important;

  justify-content: space-between !important;

  gap: 22px !important;

  overflow: hidden !important;

  padding:
    25px
    27px
    24px !important;

  color: var(--pp-text) !important;

  background:
    linear-gradient(
      145deg,
      #fff 0%,
      #fff 76%,
      #fffdf8 100%
    ) !important;

  border:
    1px solid
    var(--pp-line) !important;

  border-radius: 12px !important;

  box-shadow:
    var(--pp-shadow) !important;
}

.profile-page-heading::before {
  position: absolute !important;

  top: 0 !important;
  right: 0 !important;
  left: 0 !important;

  height: 3px !important;

  background:
    linear-gradient(
      90deg,
      var(--pp-gold),
      var(--pp-gold-light) 45%,
      var(--pp-gold)
    ) !important;

  content: "" !important;
}

.profile-page-heading::after {
  position: absolute !important;

  top: -220px !important;
  right: -220px !important;

  width: 410px !important;
  height: 410px !important;

  border:
    1px solid
    rgba(201, 154, 35, .14) !important;

  border-radius: 50% !important;

  box-shadow:
    0 0 0 42px rgba(201, 154, 35, .020),
    0 0 0 84px rgba(201, 154, 35, .014) !important;

  content: "" !important;

  pointer-events: none !important;
}

.profile-page-heading > * {
  position: relative !important;

  z-index: 1 !important;
}

.profile-eyebrow,
.profile-stat-table-kicker,
.profile-preview-section-label {
  color: var(--pp-gold-deep) !important;

  letter-spacing: .12em !important;

  text-transform: uppercase !important;
}

.profile-page-heading h1 {
  margin:
    5px 0
    8px !important;

  color: var(--pp-ink) !important;

  font-size:
    clamp(
      2.8rem,
      5.1vw,
      4.75rem
    ) !important;

  line-height: .94 !important;

  text-shadow: none !important;
}

.profile-page-heading p {
  color: var(--pp-muted) !important;
}

#openDartsCounterProfileLink,
.profile-preview-dartscounter-link {
  min-height: 40px !important;

  padding:
    0
    14px !important;

  color: var(--pp-ink) !important;

  background: #fff !important;

  border:
    1px solid
    var(--pp-gold) !important;

  border-radius: 7px !important;

  box-shadow: none !important;

  text-decoration: none !important;
}

/* ------------------------------------------------------------------------- */
/* ACCOUNT SUMMARY                                                           */
/* ------------------------------------------------------------------------- */

.profile-summary-grid {
  display: grid !important;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    ) !important;

  gap: 10px !important;

  margin: 0 !important;

  padding: 0 !important;

  background: transparent !important;

  border: 0 !important;
}

.profile-summary-grid article {
  position: relative !important;

  min-height: 98px !important;

  padding:
    15px
    16px !important;

  overflow: hidden !important;

  color: var(--pp-text) !important;

  background: #fff !important;

  border:
    1px solid
    var(--pp-line) !important;

  border-radius: 8px !important;

  box-shadow: none !important;
}

.profile-summary-grid article::before {
  position: absolute !important;

  top: 0 !important;
  left: 14px !important;

  width: 38px !important;
  height: 2px !important;

  background:
    var(--pp-gold) !important;

  content: "" !important;
}

.profile-summary-grid article:nth-child(3)::before {
  background:
    var(--pp-cyan) !important;
}

.profile-summary-grid article > span {
  color: #766c56 !important;
}

.profile-summary-grid article > strong {
  color: var(--pp-ink) !important;

  text-shadow: none !important;
}

/* ------------------------------------------------------------------------- */
/* CAREER DASHBOARD                                                          */
/* ------------------------------------------------------------------------- */

.profile-career-dashboard {
  display: grid !important;

  gap: 12px !important;

  margin: 0 !important;

  padding: 0 !important;

  color: var(--pp-text) !important;

  background: transparent !important;

  border: 0 !important;

  border-radius: 0 !important;

  box-shadow: none !important;
}

.profile-dashboard-heading,
.profile-stat-table-heading {
  position: relative !important;

  padding:
    18px
    20px !important;

  color: var(--pp-text) !important;

  background:
    linear-gradient(
      145deg,
      #fff 0%,
      #fff 82%,
      #fffefa 100%
    ) !important;

  border:
    1px solid
    var(--pp-line) !important;

  border-radius: 10px !important;

  box-shadow:
    var(--pp-shadow-soft) !important;
}

.profile-dashboard-heading {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(300px, 440px) !important;

  align-items: start !important;

  gap: 20px !important;
}

.profile-dashboard-heading h2,
.profile-stat-table-heading h3,
.profile-dashboard-panel h3,
.profile-rival-card h3,
.profile-preview-card h2,
.profile-preview-card h3,
.profile-settings-form h2,
.profile-settings-form h3 {
  color: var(--pp-ink) !important;

  text-shadow: none !important;
}

.profile-dashboard-heading p,
.profile-stat-table-heading p,
.profile-dashboard-note {
  color: var(--pp-muted) !important;
}

/* ------------------------------------------------------------------------- */
/* STAT FILTERS                                                              */
/* ------------------------------------------------------------------------- */

.profile-stat-controls {
  padding: 12px !important;

  color: var(--pp-text) !important;

  background:
    linear-gradient(
      180deg,
      #fff,
      #fffdf8
    ) !important;

  border:
    1px solid
    var(--pp-gold-line) !important;

  border-radius: 8px !important;

  box-shadow: none !important;
}

.profile-stat-controls-title,
.profile-stat-control-label {
  color: var(--pp-gold-deep) !important;
}

.profile-segmented-control {
  overflow: hidden !important;

  background: #fff !important;

  border:
    1px solid
    #e4dfd1 !important;

  border-radius: 7px !important;

  box-shadow: none !important;
}

.profile-segmented-control button {
  color: #50545a !important;

  background: #fff !important;

  border: 0 !important;

  border-radius: 6px !important;

  box-shadow: none !important;
}

.profile-segmented-control button:hover {
  color: var(--pp-ink) !important;

  background: #fafafa !important;
}

.profile-segmented-control button.is-active,
.profile-segmented-control button[aria-pressed="true"] {
  color: #16140e !important;

  background:
    linear-gradient(
      135deg,
      #f3dd95,
      #d1a83c
    ) !important;

  box-shadow:
    inset 0 -1px 0
    rgba(135, 101, 21, .28) !important;
}

/* ------------------------------------------------------------------------- */
/* STATUS / TABLE HEADING                                                    */
/* ------------------------------------------------------------------------- */

.profile-stat-status {
  margin: 0 !important;

  padding:
    10px
    13px !important;

  color: #69655d !important;

  background: #fffaf0 !important;

  border:
    1px solid
    rgba(201, 154, 35, .25) !important;

  border-radius: 7px !important;
}

.profile-stat-table-heading {
  display: flex !important;

  align-items: center !important;

  justify-content: space-between !important;

  gap: 20px !important;
}

/* ------------------------------------------------------------------------- */
/* PRIMARY / BONUS / PREVIEW METRICS                                         */
/* ------------------------------------------------------------------------- */

.profile-primary-stat-grid,
.profile-bonus-stat-grid,
.profile-preview-performance-grid,
.profile-preview-career-grid,
.profile-membership-summary-grid {
  display: grid !important;

  gap: 10px !important;
}

.profile-primary-stat-grid {
  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    ) !important;
}

.profile-bonus-stat-grid {
  grid-template-columns:
    repeat(
      7,
      minmax(0, 1fr)
    ) !important;
}

.profile-preview-performance-grid,
.profile-preview-career-grid {
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    ) !important;
}

.profile-membership-summary-grid {
  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    ) !important;
}

.profile-primary-stat-grid article,
.profile-bonus-stat-grid article,
.profile-preview-performance-grid article,
.profile-preview-career-grid article,
.profile-membership-summary-grid > div,
.profile-rival-record > span {
  position: relative !important;

  padding:
    13px
    14px !important;

  color: var(--pp-text) !important;

  background: #fff !important;

  border:
    1px solid
    #e6e4de !important;

  border-radius: 8px !important;

  box-shadow: none !important;
}

.profile-primary-stat-grid article::before,
.profile-bonus-stat-grid article::before {
  position: absolute !important;

  top: 0 !important;
  left: 12px !important;

  width: 40px !important;
  height: 2px !important;

  background:
    var(--pp-gold) !important;

  content: "" !important;
}

.profile-bonus-stat-grid article:nth-child(2)::before,
.profile-bonus-stat-grid article:nth-child(4)::before,
.profile-bonus-stat-grid article:nth-child(6)::before {
  background:
    var(--pp-cyan) !important;
}

.profile-primary-stat-grid span,
.profile-bonus-stat-grid span,
.profile-preview-performance-grid span,
.profile-preview-career-grid span,
.profile-membership-summary-grid span,
.profile-rival-record span {
  color: #766f61 !important;
}

.profile-primary-stat-grid strong,
.profile-bonus-stat-grid strong,
.profile-preview-performance-grid strong,
.profile-preview-career-grid strong,
.profile-membership-summary-grid strong,
.profile-rival-record strong {
  color: var(--pp-ink) !important;

  text-shadow: none !important;
}

.profile-primary-stat-grid small,
.profile-bonus-stat-grid small,
.profile-preview-performance-grid small,
.profile-preview-career-grid small {
  color: var(--pp-muted) !important;
}

/* ------------------------------------------------------------------------- */
/* EDITORIAL PANELS                                                          */
/* ------------------------------------------------------------------------- */

.profile-dashboard-panel,
.profile-rival-card,
.profile-preview-card,
.profile-settings-form {
  position: relative !important;

  align-self: start !important;

  padding:
    18px
    20px !important;

  color: var(--pp-text) !important;

  background:
    linear-gradient(
      145deg,
      #fff 0%,
      #fff 86%,
      #fffefa 100%
    ) !important;

  border:
    1px solid
    var(--pp-line) !important;

  border-radius: 10px !important;

  box-shadow:
    var(--pp-shadow-soft) !important;
}

.profile-dashboard-panel::before,
.profile-rival-card::before,
.profile-preview-card::before,
.profile-settings-form::before {
  position: absolute !important;

  top: 0 !important;
  left: 16px !important;

  width: 44px !important;
  height: 2px !important;

  background:
    var(--pp-gold) !important;

  content: "" !important;
}

.profile-dashboard-panel > header,
.profile-rival-card > header,
.profile-preview-card > header,
.profile-settings-form > header {
  padding-bottom: 11px !important;

  border-bottom:
    1px solid
    var(--pp-line-soft) !important;
}

/* ------------------------------------------------------------------------- */
/* EXACT HISTORY / RIVALRY / HISTORY                                         */
/* ------------------------------------------------------------------------- */

.profile-exact-history-grid,
.profile-rivalry-grid,
.profile-history-grid {
  display: grid !important;

  align-items: start !important;

  gap: 12px !important;
}

.profile-exact-history-grid {
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    ) !important;
}

.profile-rivalry-grid {
  grid-template-columns:
    minmax(260px, .72fr)
    minmax(0, 1.5fr) !important;
}

.profile-history-grid {
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    ) !important;
}

.profile-membership-history-card {
  grid-column:
    1 / -1 !important;
}

.profile-empty-state {
  display: flex !important;

  min-height: 70px !important;

  align-items: center !important;

  justify-content: center !important;

  padding:
    14px
    16px !important;

  color: #77756e !important;

  text-align: center !important;

  background:
    linear-gradient(
      135deg,
      #fffdf8,
      #fff
    ) !important;

  border:
    1px dashed
    rgba(201, 154, 35, .30) !important;

  border-left:
    2px solid
    var(--pp-cyan) !important;

  border-radius: 7px !important;
}

/* ------------------------------------------------------------------------- */
/* TABLES                                                                    */
/* ------------------------------------------------------------------------- */

.profile-table-scroll {
  overflow: auto !important;

  border:
    1px solid
    #e6e3da !important;

  border-radius: 8px !important;

  background: #fff !important;
}

.profile-table-scroll table {
  width: 100% !important;

  color: var(--pp-text) !important;

  background: #fff !important;

  border-collapse: collapse !important;
}

.profile-table-scroll th {
  color: var(--pp-gold-deep) !important;

  background: #faf6eb !important;

  border-bottom:
    1px solid
    rgba(201, 154, 35, .22) !important;
}

.profile-table-scroll td {
  color: #54585d !important;

  background: #fff !important;

  border-bottom:
    1px solid
    #efeee9 !important;
}

/* ------------------------------------------------------------------------- */
/* PUBLIC PREVIEW + SETTINGS                                                 */
/* ------------------------------------------------------------------------- */

.profile-content-grid {
  display: grid !important;

  grid-template-columns:
    minmax(280px, .72fr)
    minmax(0, 1.65fr) !important;

  align-items: start !important;

  gap: 16px !important;

  margin-top: 0 !important;
}

.profile-preview-card {
  overflow: hidden !important;

  padding:
    18px !important;
}

.profile-preview-identity-header {
  margin:
    -18px
    -18px
    14px !important;

  padding:
    17px
    18px !important;

  background:
    linear-gradient(
      135deg,
      #fff9e8,
      #fff,
      #f3fbfd
    ) !important;

  border-bottom:
    1px solid
    rgba(201, 154, 35, .20) !important;
}

.profile-preview-badges span,
.profile-role-badge,
.profile-membership-badge {
  color: var(--pp-ink) !important;

  background: #fff !important;

  border:
    1px solid
    rgba(201, 154, 35, .42) !important;

  box-shadow: none !important;
}

.profile-preview-details {
  margin:
    12px 0 !important;

  padding:
    0 !important;

  background: transparent !important;
}

.profile-preview-details > div {
  display: grid !important;

  grid-template-columns:
    120px
    minmax(0, 1fr) !important;

  gap: 10px !important;

  padding:
    9px
    8px !important;

  background: #fff !important;

  border-bottom:
    1px solid
    #efeee9 !important;
}

.profile-preview-details dt {
  color: var(--pp-gold-deep) !important;
}

.profile-preview-details dd {
  color: #4b5055 !important;
}

.profile-preview-career,
.profile-preview-oom-card {
  padding:
    14px !important;

  color: var(--pp-text) !important;

  background:
    var(--pp-warm) !important;

  border:
    1px solid
    rgba(201, 154, 35, .24) !important;

  border-radius: 8px !important;

  box-shadow: none !important;
}

.profile-settings-form {
  min-height: 0 !important;
}

.profile-settings-grid {
  display: grid !important;

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

  gap:
    12px
    14px !important;

  margin-top: 15px !important;
}

.profile-settings-grid label,
.profile-readonly-details label,
.profile-login-form label {
  color: #4f4a40 !important;
}

.profile-settings-grid label > span,
.profile-readonly-details label > span,
.profile-login-form label > span {
  color: #504a3f !important;
}

.profile-settings-grid input,
.profile-readonly-details input,
.profile-login-form input {
  width: 100% !important;

  min-height: 44px !important;

  padding:
    0
    12px !important;

  color: var(--pp-ink) !important;

  background: #fff !important;

  border:
    1px solid
    #ddd8ca !important;

  border-radius: 7px !important;

  outline: 0 !important;

  box-shadow: none !important;
}

.profile-settings-grid input:focus,
.profile-login-form input:focus {
  border-color:
    var(--pp-gold) !important;

  box-shadow:
    0 0 0 3px
    rgba(201, 154, 35, .10) !important;
}

.profile-readonly-details {
  margin-top: 16px !important;

  padding:
    15px !important;

  background:
    var(--pp-warm) !important;

  border:
    1px solid
    rgba(201, 154, 35, .25) !important;

  border-radius: 8px !important;
}

.profile-readonly-details > div {
  display: grid !important;

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

  gap: 14px !important;
}

.profile-readonly-details input {
  color: #655f55 !important;

  background: #fffdf8 !important;
}

.profile-settings-actions {
  display: flex !important;

  align-items: center !important;

  flex-wrap: wrap !important;

  gap: 10px !important;

  margin-top: 16px !important;

  padding-top: 14px !important;

  border-top:
    1px solid
    var(--pp-line-soft) !important;
}

#saveProfileSettingsButton,
#profileLoginButton {
  min-height: 42px !important;

  padding:
    0
    16px !important;

  color: #17150f !important;

  background:
    linear-gradient(
      135deg,
      #f3dc91,
      #c99a23
    ) !important;

  border:
    1px solid
    #c2921e !important;

  border-radius: 7px !important;

  box-shadow: none !important;
}

#resetProfileSettingsButton {
  min-height: 42px !important;

  padding:
    0
    16px !important;

  color: #50545a !important;

  background: #fff !important;

  border:
    1px solid
    #dedbd3 !important;

  border-radius: 7px !important;

  box-shadow: none !important;
}

#saveProfileSettingsButton:disabled,
#resetProfileSettingsButton:disabled {
  opacity: .48 !important;
}

/* ------------------------------------------------------------------------- */
/* MEMBERSHIP                                                                */
/* ------------------------------------------------------------------------- */

.profile-membership-history-status {
  color: #69645a !important;

  background: #fffaf0 !important;

  border: 0 !important;
}

/* ------------------------------------------------------------------------- */
/* LOGIN                                                                     */
/* ------------------------------------------------------------------------- */

.profile-login-panel {
  overflow: hidden !important;

  padding:
    22px !important;

  color: var(--pp-text) !important;

  background: #fff !important;

  border:
    1px solid
    var(--pp-line) !important;

  border-radius: 12px !important;

  box-shadow:
    var(--pp-shadow) !important;
}

.profile-information-card,
.profile-login-form {
  color: var(--pp-text) !important;

  background:
    var(--pp-warm) !important;

  border:
    1px solid
    var(--pp-gold-line) !important;

  border-radius: 8px !important;

  box-shadow: none !important;
}

/* ------------------------------------------------------------------------- */
/* FOOTER                                                                    */
/* ------------------------------------------------------------------------- */

.profile-site-footer {
  color: #777 !important;

  background: #fff !important;

  border-top:
    1px solid
    rgba(201, 154, 35, .20) !important;
}

/* ------------------------------------------------------------------------- */
/* RESPONSIVE                                                                */
/* ------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .profile-dashboard-heading {
    grid-template-columns:
      1fr !important;
  }

  .profile-content-grid {
    grid-template-columns:
      1fr !important;
  }

  .profile-bonus-stat-grid {
    grid-template-columns:
      repeat(
        4,
        minmax(0, 1fr)
      ) !important;
  }
}

@media (max-width: 820px) {
  .profile-summary-grid,
  .profile-primary-stat-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;
  }

  .profile-exact-history-grid,
  .profile-rivalry-grid,
  .profile-history-grid {
    grid-template-columns:
      1fr !important;
  }

  .profile-membership-history-card {
    grid-column: auto !important;
  }

  .profile-membership-summary-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;
  }

  .profile-page-heading,
  .profile-stat-table-heading {
    display: grid !important;
  }
}

@media (max-width: 620px) {
  .profile-page,
  .profile-access-message {
    width:
      min(
        100% - 20px,
        1240px
      ) !important;
  }

  .profile-page-heading {
    padding:
      20px
      18px !important;
  }

  .profile-page-heading h1 {
    font-size:
      clamp(
        2.35rem,
        15vw,
        3.55rem
      ) !important;
  }

  .profile-summary-grid,
  .profile-primary-stat-grid,
  .profile-settings-grid,
  .profile-readonly-details > div,
  .profile-preview-performance-grid,
  .profile-preview-career-grid,
  .profile-membership-summary-grid {
    grid-template-columns:
      1fr !important;
  }

  .profile-bonus-stat-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;
  }

  .profile-dashboard-panel,
  .profile-rival-card,
  .profile-preview-card,
  .profile-settings-form {
    padding:
      15px !important;
  }

  .profile-preview-identity-header {
    margin:
      -15px
      -15px
      13px !important;
  }
}
