.clarityPaymentSection {
  display: grid;
  gap: 14px;
}

.clarityPaymentStatus {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
}

.clarityPaymentStatus strong {
  color: #fff;
  font-size: 16px;
}

.clarityPaymentStatus span {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.35;
}

.clarityPaymentStatus.active {
  border-color: rgba(66, 182, 106, .48);
  background: rgba(66, 182, 106, .12);
}

.clarityPaymentStatus.warning {
  border-color: rgba(255, 159, 47, .42);
  background: rgba(255, 159, 47, .10);
}

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

.clarityPaymentPass {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, .06);
}

.clarityPaymentPass:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.clarityPaymentPass strong {
  font-size: 17px;
}

/* The pass cards render on the app's gold module-button gradient
   (.moduleCard button in gd-app-base.css), so every colour here is dark-on-gold.
   Light text on that background is what made the prices near-invisible. */
.clarityPaymentPass span {
  color: rgba(6, 16, 11, .78);
  font-size: 12px;
  line-height: 1.35;
}

/* The billed amount. Apple 3.1.2(c) requires this to be the most clear and
   conspicuous pricing element in the purchase flow, so it is deliberately the
   largest text on the card - larger than the product name, with every other
   pricing detail in subordinate small print below it. Do not shrink it. */
.clarityPaymentPass b {
  color: #06110b;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

/* Stand-in shown only while the store has not returned a price. Deliberately
   small and quiet - it is not a price, and must never be mistaken for the
   billed amount (Apple 3.1.2(c)). */
.clarityPaymentPass .clarityPaymentPricePending {
  color: rgba(6, 16, 11, .58);
  font-size: 12px;
  font-style: normal;
}

.clarityPaymentPass em {
  color: #06110b;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clarityPaymentActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.clarityPaymentActions button {
  flex: 1;
  min-width: 130px;
}

.clarityPaymentNote {
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  line-height: 1.4;
}

/* Required links, sized as fine print: present and tappable without competing
   with the purchase buttons. 44px min height keeps them inside Apple's touch
   target guidance, since a link a reviewer cannot hit counts as not present. */
.clarityPaymentLegal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .45);
}

.clarityPaymentLegal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, .72);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.clarityPaymentPass small {
  color: rgba(6, 16, 11, .62);
  font-size: 11px;
}

.clarityPaymentAdmin {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.clarityPaymentAdminHead {
  display: grid;
  gap: 4px;
}

.clarityPaymentAdminHead strong {
  color: #fff;
  font-size: 16px;
}

.clarityPaymentAdminHead span,
.clarityPaymentProductRow span,
.clarityPaymentProductRow em {
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.35;
}

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

.clarityPaymentPill {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.76);
  font-size: 12px;
}

.clarityPaymentPill.ok {
  border-color: rgba(66,182,106,.35);
  background: rgba(66,182,106,.12);
}

.clarityPaymentPill.bad {
  border-color: rgba(255,159,47,.35);
  background: rgba(255,159,47,.10);
}

.clarityPaymentPill.unknown {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.07);
}

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

.clarityPaymentDiagGrid span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  color: rgba(255,255,255,.62);
  font-size: 11px;
  background: rgba(255,255,255,.045);
}

.clarityPaymentDiagGrid b {
  color: #fff;
  font-size: 18px;
}

.clarityPaymentAdminActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.clarityPaymentProductList {
  display: grid;
  gap: 8px;
}

.clarityPaymentProductRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}

.clarityPaymentProductRow.selected {
  border-color: rgba(255,159,47,.42);
  background: rgba(255,159,47,.10);
}

.clarityPaymentProductRow div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.clarityPaymentProductRow strong {
  color: #fff;
  font-size: 13px;
}

.clarityPaymentProductRow em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.clarityPaymentProductRow button,
.clarityPaymentAdminActions button,
.clarityPaymentForm button {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(255,255,255,.08);
}

.clarityPaymentAdminHint {
  padding: 10px 12px;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 12px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.35;
  background: rgba(255,255,255,.035);
}

.clarityPaymentAdminDetails {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.clarityPaymentAdminDetails summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}

.clarityPaymentAdminDetails summary::-webkit-details-marker {
  display: none;
}

.clarityPaymentAdminDetails summary strong {
  color: #fff;
  font-size: 13px;
}

.clarityPaymentAdminDetails summary span {
  color: rgba(255,255,255,.56);
  font-size: 11px;
  text-align: right;
}

.clarityPaymentAdminDetails[open] summary {
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.clarityPaymentAdminDetails > .clarityPaymentAdminSection,
.clarityPaymentAdminDetails > .clarityPaymentForm,
.clarityPaymentAdminDetails > .clarityPaymentNote {
  margin: 10px;
}

.clarityPaymentForm {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  background: rgba(0,0,0,.18);
}

.clarityPaymentProductForm {
  border-color: rgba(255,159,47,.25);
  background: rgba(255,159,47,.075);
}

.clarityPaymentFormHead {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.clarityPaymentFormHead button {
  flex: 0 0 auto;
}

.clarityPaymentForm strong {
  color: #fff;
  font-size: 14px;
}

.clarityPaymentForm input,
.clarityPaymentForm select,
.clarityPaymentForm textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px;
  color: #fff;
  background: rgba(0,0,0,.25);
}

.clarityPaymentForm textarea {
  min-height: 68px;
  resize: vertical;
}

.clarityPaymentForm label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
}

.clarityPaymentForm label input {
  width: auto;
}

.clarityPaymentNote code {
  color: #ffcc8a;
}

.clarityReferralPanel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}

.clarityReferralPanel.invitee {
  border-color: rgba(66,182,106,.35);
  background: rgba(66,182,106,.10);
}

.clarityReferralHead {
  display: grid;
  gap: 4px;
}

.clarityReferralHead strong,
.clarityReferralForm strong,
.clarityReferralRow strong {
  color: #fff;
}

.clarityReferralHead span,
.clarityReferralForm span,
.clarityReferralRow span,
.clarityReferralRow em {
  color: rgba(255,255,255,.66);
  font-size: 12px;
  line-height: 1.35;
}

.clarityReferralForm {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(0,0,0,.16);
}

.clarityReferralForm input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px;
  color: #fff;
  background: rgba(0,0,0,.25);
}

/* Email is the secondary path to an invite, so it stays folded away under the
   share buttons rather than sitting in the form as a second empty field. */
.clarityReferralEmail {
  display: grid;
  gap: 8px;
}

.clarityReferralEmail summary {
  color: rgba(255,255,255,.66);
  font-size: 12px;
  cursor: pointer;
}

.clarityReferralList {
  display: grid;
  gap: 8px;
}

.clarityReferralRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(0,0,0,.14);
}

.clarityReferralRow div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

/* Keep Close beside the invite it closes. The settings sheet stretches bare
   buttons to full width, which put a full-width Close under every open invite -
   heavy, and easy to hit by accident while reading the list. */
.clarityReferralList .clarityReferralRow > button {
  width: auto;
  justify-self: end;
  padding: 8px 14px;
  font-size: 13px;
}

.clarityReferralRow em {
  font-style: normal;
}

.clarityReferralLanding {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
}

.clarityReferralLandingBox {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: #101614;
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
}

.clarityReferralLandingBox strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.clarityReferralLandingBox span,
.clarityReferralLandingBox li {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.35;
}

.clarityReferralLandingBox ul {
  margin: 0;
  padding-left: 18px;
}

.clarityReferralLandingBox button {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 10px 12px;
  color: #06110b;
  font-weight: 800;
  background: #ff9f2f;
}

.clarityReferralLandingBox button.secondary {
  color: #fff;
  background: rgba(255,255,255,.08);
}

@media (max-width: 430px) {
  .clarityPaymentConnectGrid,
  .clarityPaymentDiagGrid,
  .clarityPaymentProductRow,
  .clarityReferralSummary,
  .clarityReferralRow {
    grid-template-columns: 1fr;
  }
}

/* Account deletion dialog, and the clear-golf-data dialog that reuses it.
 *
 * Deliberately styled like the referral modal rather than as a destructive-red
 * alert. The wording carries the weight, and the typed confirmation is the real
 * guard; a wall of red on the settings screen reads as an error state.
 * The confirm button is the only red thing here, because it is the only thing
 * that destroys anything.
 *
 * clarity-account-clear-data.js reuses these class names rather than cloning
 * them under a Clear* prefix. The two dialogs are the same object at different
 * severities, and a visual difference between them would suggest a structural
 * one - the only thing that should distinguish them is what they say and which
 * word you have to type. */
.clarityAccountDeleteOverlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
}

.clarityAccountDeleteBox {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  padding: 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: #101614;
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
}

.clarityAccountDeleteBox strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.clarityAccountDeleteBox span,
.clarityAccountDeleteBox label {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.35;
}

.clarityAccountDeleteBox label {
  margin-top: 4px;
  font-weight: 600;
  color: rgba(255,255,255,.86);
}

.clarityAccountDeleteBox input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.clarityAccountDeleteError {
  color: #ff8f8f !important;
}

.clarityAccountDeleteActions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.clarityAccountDeleteActions button {
  flex: 1 1 150px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: #d24a4a;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.clarityAccountDeleteActions button.secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.clarityAccountDeleteActions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.gdPlayerSettingsRowDanger strong {
  color: #ff9c9c;
}

/* Access badges - the MEMBER / MONTH PASS pills (assets/brand/clarity-*-badge.png).
   The art is a wide pill (~3.1:1); each surface sets a height and width follows. */
.clarityAccessBadge {
  display: block;
  width: auto;
}

.clarityAccessBadge--settings {
  height: 34px;
  margin: 0 0 8px;
}

.clarityAccessBadge--profile {
  height: 28px;
  margin-top: 8px;
}

.clarityAccessBadge--home {
  height: 22px;
  margin: 0 auto;
}

.gdHomeAccessBadgeSlot {
  text-align: center;
  margin-top: 6px;
  min-height: 0;
}
