.ycsa-enhancement-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, .82);
  backdrop-filter: blur(6px);
}

.ycsa-enhancement-modal[hidden],
.ycsa-conditional[hidden] {
  display: none !important;
}

#ycsa-hero-heading {
  position: relative;
  min-height: 145px;
  padding: 20px 0 20px 155px;
}

#ycsa-hero-heading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 132px;
  height: 145px;
  background: url("/logo.png") center / contain no-repeat;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .42));
  transform: translateY(-50%);
  pointer-events: none;
}

.ycsa-enhancement-dialog {
  width: min(920px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid #fed7aa;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 25px 60px rgba(15, 23, 42, .35);
}

.ycsa-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  color: #fff;
  background: linear-gradient(90deg, #ea580c, #f97316, #c2410c);
}

.ycsa-dialog-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
}

.ycsa-dialog-header p {
  margin-top: .15rem;
  color: #ffedd5;
  font-size: .75rem;
}

.ycsa-close {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}

.ycsa-close:hover { background: rgba(255, 255, 255, .18); }

.ycsa-form {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: #fffaf5;
}

.ycsa-form-section {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
}

.ycsa-form-section h3 {
  margin-bottom: .2rem;
  color: #0f172a;
  font-size: .95rem;
  font-weight: 800;
}

.ycsa-section-help,
.ycsa-privacy-note {
  color: #64748b;
  font-size: .74rem;
  line-height: 1.5;
}

.ycsa-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .85rem;
}

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

.ycsa-field label,
.ycsa-group-label {
  display: block;
  margin-bottom: .3rem;
  color: #334155;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ycsa-field input,
.ycsa-field textarea,
.ycsa-field select {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid #cbd5e1;
  border-radius: .7rem;
  background: #fff;
  color: #0f172a;
  font-size: .82rem;
  outline: none;
}

.ycsa-field textarea { min-height: 5.5rem; resize: vertical; }

.ycsa-membership-year-field {
  max-width: 22rem;
  margin-top: 1rem;
}

.ycsa-membership-year-field small {
  display: block;
  margin-top: .35rem;
  color: #9a3412;
  font-size: .72rem;
  font-weight: 700;
}

.ycsa-field input:focus,
.ycsa-field textarea:focus,
.ycsa-field select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .14);
}

.ycsa-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-top: .75rem;
}

.ycsa-choice {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem;
  border: 1px solid #e2e8f0;
  border-radius: .75rem;
  color: #334155;
  font-size: .78rem;
  font-weight: 600;
}

.ycsa-choice > span {
  display: grid;
  gap: .12rem;
}

.ycsa-choice strong {
  color: #0f172a;
  font-size: .82rem;
}

.ycsa-choice small {
  color: #64748b;
  font-size: .67rem;
  font-weight: 500;
}

.ycsa-choice b {
  margin-top: .15rem;
  color: #c2410c;
  font-size: .9rem;
}

.ycsa-choice:has(input:checked) {
  border-color: #f97316;
  background: #fff7ed;
  color: #9a3412;
}

@media (min-width: 1024px) {
  .ycsa-membership-plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.ycsa-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .75rem;
}

.ycsa-check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: #475569;
  font-size: .76rem;
  line-height: 1.45;
}

.ycsa-check input { margin-top: .15rem; accent-color: #ea580c; }

.ycsa-terms-overlay {
  z-index: 120;
}

.ycsa-terms-dialog {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.ycsa-terms-body {
  overflow-y: auto;
  padding: 1.15rem 1.35rem;
  background: #fff;
}

.ycsa-terms-body article + article {
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid #e2e8f0;
}

.ycsa-terms-body h4 {
  color: #0f172a;
  font-size: .82rem;
  font-weight: 800;
}

.ycsa-terms-body p {
  margin-top: .3rem;
  color: #475569;
  font-size: .8rem;
  line-height: 1.65;
}

.ycsa-terms-footer {
  position: sticky;
  bottom: 0;
  padding: .9rem 1.25rem 1.15rem;
  border-top: 1px solid #e2e8f0;
  background: #fffaf5;
}

.ycsa-terms-link {
  padding: 0;
  color: #c2410c;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.ycsa-term-check {
  margin-top: .75rem;
  padding: .75rem;
  border: 1px solid #e2e8f0;
  border-radius: .7rem;
  background: #fff;
}

.ycsa-term-check:has(input:checked) {
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
}

.ycsa-child-card {
  position: relative;
  margin-top: .8rem;
  padding: .9rem;
  border: 1px solid #fed7aa;
  border-radius: .85rem;
  background: #fffaf5;
}

.ycsa-child-card h4 {
  color: #9a3412;
  font-size: .8rem;
  font-weight: 800;
}

.ycsa-remove-child {
  position: absolute;
  top: .65rem;
  right: .65rem;
  color: #b91c1c;
  font-size: .72rem;
  font-weight: 700;
}

.ycsa-secondary-button {
  margin-top: .75rem;
  padding: .6rem .9rem;
  border: 1px solid #fdba74;
  border-radius: .7rem;
  color: #c2410c;
  background: #fff7ed;
  font-size: .76rem;
  font-weight: 800;
}

.ycsa-submit {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: .8rem;
  color: #fff;
  background: linear-gradient(90deg, #ea580c, #f97316);
  font-size: .85rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(234, 88, 12, .22);
}

.ycsa-submit:disabled {
  cursor: not-allowed;
  color: #94a3b8;
  background: #e2e8f0;
  box-shadow: none;
}

.ycsa-submit-help {
  margin-top: -.45rem;
  color: #64748b;
  font-size: .7rem;
  text-align: center;
}

.ycsa-status {
  padding: .75rem;
  border-radius: .7rem;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: .78rem;
}

.ycsa-status > strong {
  display: block;
  margin-bottom: .65rem;
  font-size: .9rem;
}

.ycsa-status p + p { margin-top: .55rem; }

.ycsa-payment-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .4rem 1rem;
  margin: .6rem 0;
  padding: .75rem;
  border-radius: .65rem;
  color: #334155;
  background: #fff;
}

.ycsa-payment-summary b {
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: right;
}

.ycsa-admin-approvals {
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 4px 15px rgba(15, 23, 42, .06);
}

.ycsa-admin-approvals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: #fff;
  background: linear-gradient(90deg, #9a3412, #ea580c);
}

.ycsa-admin-approvals-header span {
  color: #fed7aa;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ycsa-admin-approvals-header h2 {
  margin-top: .1rem;
  font-size: 1rem;
  font-weight: 800;
}

.ycsa-admin-approvals-header p {
  margin-top: .2rem;
  color: #ffedd5;
  font-size: .7rem;
}

.ycsa-admin-approvals-header > b {
  flex: 0 0 auto;
  padding: .45rem .7rem;
  border-radius: 999px;
  color: #9a3412;
  background: #fff7ed;
  font-size: .72rem;
}

.ycsa-admin-approvals-header > b span {
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
}

.ycsa-application-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.ycsa-application-row > div {
  display: grid;
  gap: .18rem;
}

.ycsa-application-row strong {
  color: #0f172a;
  font-size: .76rem;
}

.ycsa-application-row span {
  color: #64748b;
  font-size: .68rem;
}

.ycsa-application-status {
  color: #9a3412 !important;
  font-weight: 800;
}

.ycsa-application-status.is-approved { color: #166534 !important; }
.ycsa-application-status.is-rejected { color: #b91c1c !important; }

.ycsa-application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .35rem;
}

.ycsa-approve-button,
.ycsa-reject-button {
  width: fit-content;
  padding: .45rem .65rem;
  border-radius: .55rem;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}

.ycsa-approve-button { background: #15803d; }
.ycsa-reject-button { background: #b91c1c; }

.ycsa-empty-applications {
  padding: 1.2rem;
  color: #64748b;
  font-size: .76rem;
  text-align: center;
}

.ycsa-auth-overlay { z-index: 140; }

.ycsa-auth-dialog {
  width: min(460px, 100%);
  overflow: hidden;
  border: 1px solid #fed7aa;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 25px 60px rgba(15, 23, 42, .4);
}

.ycsa-auth-form {
  display: grid;
  gap: .9rem;
  padding: 1.25rem;
}

.ycsa-auth-notice {
  padding: .75rem;
  border: 1px solid #bfdbfe;
  border-radius: .7rem;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: .75rem;
  line-height: 1.5;
}

.ycsa-auth-error {
  padding: .7rem;
  border: 1px solid #fecaca;
  border-radius: .65rem;
  color: #b91c1c;
  background: #fef2f2;
  font-size: .75rem;
  font-weight: 700;
}

.ycsa-admin-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .55rem;
}

.ycsa-admin-header-actions > b,
.ycsa-admin-header-actions > button {
  padding: .45rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
}

.ycsa-admin-header-actions > b {
  color: #9a3412;
  background: #fff7ed;
}

.ycsa-admin-header-actions > button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
}

.ycsa-content-manager {
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 4px 15px rgba(15, 23, 42, .06);
}

.ycsa-content-manager-header {
  padding: 1rem 1.25rem;
  color: #fff;
  background: linear-gradient(90deg, #1e293b, #334155);
}

.ycsa-content-manager-header span {
  color: #cbd5e1;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ycsa-content-manager-header h2 {
  margin-top: .1rem;
  font-size: 1rem;
  font-weight: 800;
}

.ycsa-content-manager-header p {
  margin-top: .2rem;
  color: #e2e8f0;
  font-size: .72rem;
}

.ycsa-cms-tabs {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding: .75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ycsa-cms-tabs button {
  padding: .55rem .8rem;
  border-radius: .6rem;
  color: #475569;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}

.ycsa-cms-tabs button.is-active {
  color: #fff;
  border-color: #ea580c;
  background: #ea580c;
}

.ycsa-cms-panel { padding: 1rem 1.25rem 1.25rem; }
.ycsa-cms-panel[hidden] { display: none; }

.ycsa-cms-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.ycsa-cms-toolbar label { flex: 1; }

.ycsa-cms-toolbar label,
.ycsa-cms-fields label {
  display: grid;
  gap: .3rem;
  color: #334155;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.ycsa-cms-toolbar select,
.ycsa-cms-fields input,
.ycsa-cms-fields select,
.ycsa-cms-fields textarea {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid #cbd5e1;
  border-radius: .65rem;
  color: #0f172a;
  background: #fff;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.ycsa-cms-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}

.ycsa-cms-fields textarea {
  min-height: 5rem;
  resize: vertical;
}

.ycsa-cms-full { grid-column: 1 / -1; }

.ycsa-danger-button {
  padding: .65rem .8rem;
  border-radius: .6rem;
  color: #fff;
  background: #b91c1c;
  font-size: .72rem;
  font-weight: 800;
}

.ycsa-membership-year-badge {
  display: block;
  width: fit-content;
  margin-top: .25rem;
  padding: .15rem .35rem;
  border-radius: .35rem;
  color: #9a3412;
  background: #ffedd5;
  font-size: .62rem;
  font-weight: 800;
}

.ycsa-about-content {
  padding: 1.5rem;
  color: #334155;
}

.ycsa-about-content h3 {
  margin: 1rem 0 .35rem;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.ycsa-about-content p,
.ycsa-about-content li {
  font-size: .84rem;
  line-height: 1.7;
}

.ycsa-about-content ul {
  padding-left: 1.15rem;
  list-style: disc;
}

@media (max-width: 640px) {
  #ycsa-hero-heading {
    min-height: 98px;
    padding: 10px 0 10px 100px;
  }

  #ycsa-hero-heading::before {
    width: 84px;
    height: 96px;
  }

  .ycsa-enhancement-modal { padding: .35rem; }
  .ycsa-enhancement-dialog { max-height: 97vh; border-radius: 1rem; }
  .ycsa-dialog-header { padding: 1rem; }
  .ycsa-form { padding: .7rem; }
  .ycsa-fields,
  .ycsa-choice-grid,
  .ycsa-check-list { grid-template-columns: 1fr; }
  .ycsa-admin-approvals-header { align-items: flex-start; }
  .ycsa-application-row { grid-template-columns: 1fr; }
  .ycsa-admin-header-actions { flex-direction: column; align-items: flex-end; }
  .ycsa-cms-fields { grid-template-columns: 1fr; }
  .ycsa-cms-full { grid-column: auto; }
  .ycsa-cms-toolbar { align-items: stretch; flex-direction: column; }
}
