/**
 * Dojo Kanri — Public Styles
 * Version: 1.7.1
 * Phase: Club Locator Phase 3 hotfix
 * Updated: 2026-04-25
 *
 * Styles for all public-facing shortcodes.
 * Designed to work within any WordPress theme with minimal conflicts.
 *
 * File: wordpress-plugin/dojo-kanri/assets/css/dk-public.css
 */

/* ==========================================================================
   Base / Reset
   ========================================================================== */

.dk-club-finder,
.dk-events,
.dk-events-member,
.dk-join,
.dk-login,
.dk-dashboard,
.dk-profile,
.dk-login-required {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
}

.dk-club-finder *,
.dk-events *,
.dk-events-member *,
.dk-join *,
.dk-login *,
.dk-dashboard *,
.dk-profile * {
  box-sizing: border-box;
}

/* ==========================================================================
   Common Components
   ========================================================================== */

.dk-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
}

.dk-error a {
  color: #991b1b;
  text-decoration: underline;
}

.dk-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.dk-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.dk-select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  outline: none;
}

.dk-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s;
  text-decoration: none;
}

.dk-btn--primary {
  background-color: #2563eb;
  color: #fff;
}

.dk-btn--primary:hover {
  background-color: #1d4ed8;
}

.dk-btn--secondary {
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.dk-btn--secondary:hover {
  background-color: #e5e7eb;
}

.dk-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dk-login-required {
  text-align: center;
  padding: 40px 20px;
}

.dk-login-required p {
  margin-bottom: 16px;
  color: #6b7280;
}

/* ==========================================================================
   Club Finder
   ========================================================================== */

/* Container constraints — keep the widget inside Divi columns / theme wrappers.
   Children claim the parent's width but never exceed it, so nothing overflows
   when rendered inside a narrow column. */
.dk-club-finder {
  width: 100%;
  max-width: 100%;
}

/* Defensive: Divi sections containing the Club Finder must size to content.
   Some Divi pages cache an explicit `height` on the section in the compiled
   unified CSS, which prevents the section from growing as our cards render. */
.et_pb_section:has(.dk-club-finder) {
  height: auto !important;
  min-height: 0 !important;
}

.dk-club-finder__toolbar,
.dk-club-finder__map-wrap,
.dk-club-finder__map,
.dk-club-finder__clubs {
  width: 100%;
  max-width: 100%;
}

.dk-club-finder__toolbar {
  margin-bottom: 12px;
}

.dk-club-finder__search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.dk-club-finder__search-input {
  flex: 1 1 200px;
  min-width: 0;
  max-width: 320px;
}

.dk-club-finder__radius {
  flex: 0 0 auto;
}

/* Defensive: form controls must not inherit oversized heading/text styles
   (e.g. when the shortcode is mistakenly placed inside an <h1>). */
.dk-club-finder input,
.dk-club-finder select,
.dk-club-finder button,
.dk-club-finder .dk-input,
.dk-club-finder .dk-select,
.dk-club-finder .dk-btn {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.dk-club-finder .dk-btn {
  font-weight: 500;
}

.dk-club-finder__radius:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f9fafb;
}

.dk-club-finder__near-me {
  flex: 0 0 auto;
}

/* Map wrapper — relative so the caption can be positioned over the map */
.dk-club-finder__map-wrap {
  position: relative;
  margin-bottom: 12px;
}

.dk-club-finder__map {
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  min-height: 250px;
  z-index: 1;
}

/* In-map caption (top-left overlay) */
.dk-club-finder__map-caption {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  max-width: calc(100% - 80px);
  pointer-events: none;
}

.dk-club-finder__map-caption:empty {
  display: none;
}

/* Cards stack vertically — same width as their container, one per row */
.dk-club-finder__clubs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dk-club-finder__empty {
  text-align: center;
  color: #6b7280;
  padding: 40px 20px;
  grid-column: 1 / -1;
}

/* Geolocation modal */

.dk-cf-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dk-cf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.dk-cf-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dk-cf-modal__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.dk-cf-modal__body {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #374151;
}

.dk-cf-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Search messages (geolocation errors, etc.) */

.dk-cf-search-msg {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.dk-cf-search-msg--error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.dk-cf-search-msg--info {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Google Maps info window */

.dk-cf-info-window {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  max-width: 220px;
  /* Leave space on the right so text doesn't run under Google's X button */
  padding-right: 18px;
}

/* Trim Google's default info-window padding so the content sits close to
   the top of the bubble. The "close button row" (.gm-style-iw-chr) is the
   biggest offender — it reserves ~30-40px above the content for the X
   button. We absolutely-position it instead so the content starts at the top. */
.gm-style .gm-style-iw-c {
  padding: 6px 12px 8px !important;
}

.gm-style .gm-style-iw-d {
  padding-top: 0 !important;
  overflow: visible !important;
}

.gm-style .gm-style-iw-chr {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.gm-style .gm-style-iw-chr button {
  width: 28px !important;
  height: 28px !important;
}

/* Club Card */

.dk-club-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.15s;
}

.dk-club-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Per-card close button (top-right) */
.dk-club-card__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #9ca3af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background-color 0.15s, color 0.15s;
}

.dk-club-card__close:hover,
.dk-club-card__close:focus {
  background: #f3f4f6;
  color: #1f2937;
  outline: none;
}

.dk-club-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dk-club-card__name {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #111827;
}

.dk-club-card__distance {
  font-size: 12px;
  color: #3b82f6;
  white-space: nowrap;
  font-weight: 500;
  background-color: #eff6ff;
  padding: 2px 8px;
  border-radius: 9999px;
}

.dk-club-card__locations {
  margin-bottom: 10px;
}

.dk-club-card__location {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.dk-club-card__location svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #9ca3af;
}

/* Sessions toggle button */

/* Sessions header — non-interactive label with the session count */
.dk-club-card__sessions-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dk-club-card__sessions-header svg {
  color: #9ca3af;
  flex-shrink: 0;
}

/* Sessions list — always expanded */

.dk-club-card__sessions {
  margin-top: 6px;
}

.dk-club-card__session {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.dk-club-card__session:last-child {
  border-bottom: none;
}

.dk-club-card__session-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.dk-club-card__session-day {
  font-weight: 600;
  font-size: 13px;
  color: #1f2937;
  min-width: 80px;
}

.dk-club-card__session-time {
  font-size: 13px;
  color: #374151;
}

.dk-club-card__session-label {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
  margin-top: 2px;
}

.dk-club-card__session-price {
  font-size: 12px;
  color: #059669;
  font-weight: 500;
  margin-top: 2px;
}

.dk-club-card__session-constraints {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 2px;
}

/* Contact */

.dk-club-card__contact {
  margin-top: 12px;
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
}

.dk-club-card__contact-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.dk-club-card__contact-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 2px;
}

.dk-club-card__contact-link {
  display: block;
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
}

.dk-club-card__contact-link:hover {
  text-decoration: underline;
}

/* Phase 3a — phone / website lines + contact action button + distance badge */

.dk-club-card__line {
  margin-top: 6px;
  font-size: 13px;
  color: #374151;
}

.dk-club-card__line-label {
  font-weight: 600;
  color: #6b7280;
}

.dk-club-card__line-link {
  color: #2563eb;
  text-decoration: none;
}

.dk-club-card__line-link:hover {
  text-decoration: underline;
}

.dk-club-card__actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/* Phase 3c — Instructors block on the card */

.dk-club-card__instructors {
  margin-top: 12px;
  border-top: 1px solid #f3f4f6;
  padding-top: 10px;
}

.dk-club-card__instructors-label {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.dk-club-card__instructor {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.dk-club-card__instructor-pic {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f4f6;
}

.dk-club-card__instructor-pic--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.dk-club-card__instructor-body {
  flex: 1 1 auto;
  min-width: 0;
}

.dk-club-card__instructor-name {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

.dk-club-card__instructor-grade {
  color: #6b7280;
  font-weight: 400;
  font-size: 13px;
}

.dk-club-card__instructor-bio {
  margin-top: 4px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  white-space: pre-wrap;
}

.dk-club-card__contact-btn {
  font-size: 13px;
}

/* Phase 3b — Contact form modal */

.dk-cf-contact-dialog {
  max-width: 500px;
}

.dk-cf-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dk-cf-modal__close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.dk-cf-modal__subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: #6b7280;
}

.dk-cf-contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dk-cf-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dk-cf-field label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.dk-cf-req {
  color: #dc2626;
}

.dk-cf-field input,
.dk-cf-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.dk-cf-field input:focus,
.dk-cf-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.dk-cf-field textarea {
  resize: vertical;
  min-height: 100px;
}

.dk-cf-clean-warn {
  margin: 4px 0 0;
  font-size: 12px;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 6px 8px;
  border-radius: 4px;
}

/* Honeypot — hidden from humans (and accessibility), visible to bots */
.dk-cf-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.dk-cf-captcha {
  margin-top: 4px;
}

.dk-cf-contact-result {
  margin: 6px 0 0;
  font-size: 13px;
  min-height: 18px;
}

.dk-cf-contact-result--ok {
  color: #065f46;
}

.dk-cf-contact-result--err {
  color: #991b1b;
}

/* ==========================================================================
   Events
   ========================================================================== */

.dk-events__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.dk-events__filter .dk-select {
  min-width: 160px;
}

.dk-events__count {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.dk-events__list {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .dk-events__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.dk-events__empty {
  text-align: center;
  color: #6b7280;
  padding: 40px 20px;
  grid-column: 1 / -1;
}

/* Event Card */

.dk-events__card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.dk-events__card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Coloured top accent bar by event type */
.dk-events__card[data-event-type="COURSE"] {
  border-top: 3px solid #3b82f6;
}
.dk-events__card[data-event-type="GRADING"] {
  border-top: 3px solid #8b5cf6;
}
.dk-events__card[data-event-type="TOURNAMENT"] {
  border-top: 3px solid #f59e0b;
}
.dk-events__card[data-event-type="SOCIAL"] {
  border-top: 3px solid #10b981;
}

.dk-events__card-header {
  padding: 16px 16px 12px;
}

.dk-events__card-badges {
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
}

.dk-events__card-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #111827;
  line-height: 1.3;
}

.dk-events__card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #6b7280;
}

.dk-events__date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #374151;
}

.dk-events__location {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Description */

.dk-events__description {
  padding: 0 16px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Tickets */

.dk-events__tickets {
  border-top: 1px solid #f3f4f6;
  padding: 12px 16px;
  margin-top: auto;
  background-color: #fafafa;
}

.dk-events__tickets-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin: 0 0 8px;
}

.dk-events__ticket {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.dk-events__ticket:last-child {
  border-bottom: none;
}

.dk-events__ticket-info {
  flex: 1;
  min-width: 0;
}

.dk-events__ticket-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

.dk-events__ticket-desc {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.dk-events__ticket-price {
  font-size: 15px;
  font-weight: 700;
  color: #059669;
  white-space: nowrap;
}

.dk-events__ticket-status {
  white-space: nowrap;
}

.dk-events__ticket-avail {
  font-size: 12px;
  color: #6b7280;
}

/* Contact */

.dk-events__contact {
  padding: 10px 16px;
  font-size: 13px;
  color: #6b7280;
  border-top: 1px solid #f3f4f6;
  background-color: #fafafa;
}

.dk-events__contact a {
  color: #2563eb;
  text-decoration: none;
}

.dk-events__contact a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Join — Multi-step Form
   ========================================================================== */

.dk-join__steps {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.dk-join__step-indicator {
  flex: 1;
  height: 4px;
  background-color: #e5e7eb;
  border-radius: 2px;
  transition: background-color 0.3s;
}

.dk-join__step-indicator--active {
  background-color: #2563eb;
}

.dk-join__step-indicator--completed {
  background-color: #059669;
}

.dk-join__step-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px;
}

.dk-join__form-group {
  margin-bottom: 16px;
}

.dk-join__form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.dk-join__form-group .dk-input,
.dk-join__form-group .dk-select {
  width: 100%;
}

.dk-join__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .dk-join__form-row {
    grid-template-columns: 1fr;
  }
}

.dk-join__form-error {
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}

.dk-join__actions {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

/* Club Selection Cards */

.dk-join__club-list {
  display: grid;
  gap: 8px;
}

.dk-join__club-option {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.dk-join__club-option:hover {
  border-color: #93c5fd;
}

.dk-join__club-option--selected {
  border-color: #2563eb;
  background-color: #eff6ff;
}

.dk-join__club-option h4 {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 600;
}

.dk-join__club-option span {
  font-size: 12px;
  color: #6b7280;
}

/* Product Selection Cards */

.dk-join__product-list {
  display: grid;
  gap: 8px;
}

.dk-join__product-option {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.dk-join__product-option:hover {
  border-color: #93c5fd;
}

.dk-join__product-option--selected {
  border-color: #2563eb;
  background-color: #eff6ff;
}

.dk-join__product-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px;
}

.dk-join__product-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 4px;
}

.dk-join__product-price {
  font-size: 16px;
  font-weight: 700;
  color: #059669;
}

/* Payment Options */

.dk-join__gateway-list {
  display: grid;
  gap: 8px;
}

.dk-join__gateway-option {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.dk-join__gateway-option:hover {
  border-color: #93c5fd;
}

.dk-join__gateway-option--selected {
  border-color: #2563eb;
  background-color: #eff6ff;
}

/* Bank Transfer Details */

.dk-join__bank-details {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.dk-join__bank-details dt {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.dk-join__bank-details dd {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
  margin: 0 0 8px;
}

/* Square Card Form Container */

.dk-join__card-form {
  margin-top: 12px;
  min-height: 100px;
}

/* Success State */

.dk-join__success {
  text-align: center;
  padding: 40px 20px;
}

.dk-join__success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.dk-join__success h3 {
  font-size: 20px;
  font-weight: 600;
  color: #059669;
  margin: 0 0 8px;
}

.dk-join__success p {
  color: #6b7280;
  margin: 0 0 4px;
}

/* Guardian Fields */

.dk-join__guardian-section {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}

.dk-join__guardian-section h4 {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  margin: 0 0 12px;
}

/* ==========================================================================
   Badge styles
   ========================================================================== */

.dk-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dk-badge--green {
  background-color: #d1fae5;
  color: #065f46;
}

.dk-badge--amber {
  background-color: #fef3c7;
  color: #92400e;
}

.dk-badge--blue {
  background-color: #dbeafe;
  color: #1e40af;
}

.dk-badge--purple {
  background-color: #ede9fe;
  color: #5b21b6;
}

.dk-badge--red {
  background-color: #fee2e2;
  color: #991b1b;
}

.dk-badge--gray {
  background-color: #f3f4f6;
  color: #4b5563;
}

/* ==========================================================================
   Login / Logout Widget
   ========================================================================== */

.dk-login {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.dk-login__greeting {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.dk-login__error {
  margin-bottom: 8px;
}

.dk-login__error p {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 8px 12px;
  color: #991b1b;
  font-size: 13px;
  margin: 0;
}

.dk-login__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.dk-login__button--signin {
  background-color: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
}

.dk-login__button--signin:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  text-decoration: none;
}

.dk-login__button--logout {
  background-color: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.dk-login__button--logout:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
  text-decoration: none;
}

.dk-login--error p {
  color: #991b1b;
  font-size: 13px;
}

/* ==========================================================================
   Dashboard
   ========================================================================== */

.dk-dashboard__heading {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.dk-dashboard__section {
  margin-bottom: 32px;
}

.dk-dashboard__section:empty {
  display: none;
}

.dk-dashboard__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.dk-dashboard__card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.dk-dashboard__card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.dk-dashboard__card-name {
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}

.dk-dashboard__card-body {
  padding: 12px 16px;
}

.dk-dashboard__field {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.dk-dashboard__label {
  font-size: 13px;
  color: #6b7280;
}

.dk-dashboard__value {
  font-size: 13px;
  color: #111827;
  font-weight: 500;
}

.dk-dashboard__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dk-dashboard__list-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px 16px;
}

.dk-dashboard__list-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.dk-dashboard__list-primary strong {
  font-size: 14px;
  color: #111827;
}

.dk-dashboard__list-meta {
  font-size: 13px;
  color: #6b7280;
}

.dk-dashboard__list-secondary {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
}

.dk-dashboard__list-date {
  font-weight: 500;
  color: #374151;
}

.dk-dashboard__tickets {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dk-dashboard__ticket {
  font-size: 12px;
  background-color: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  color: #374151;
}

.dk-dashboard__bill-amount {
  font-weight: 600;
  color: #111827;
}

.dk-dashboard__bill-items {
  margin-top: 8px;
  border-top: 1px solid #f3f4f6;
  padding-top: 8px;
}

.dk-dashboard__bill-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
  padding: 2px 0;
}

.dk-dashboard__empty {
  color: #9ca3af;
  font-size: 14px;
  font-style: italic;
}

/* ==========================================================================
   Profile
   ========================================================================== */

.dk-profile__heading {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.dk-profile__subheading {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  margin: 16px 0 8px 0;
}

.dk-profile__section {
  margin-bottom: 32px;
}

.dk-profile__section:empty {
  display: none;
}

.dk-profile__fields {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.dk-profile__field {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}

.dk-profile__field:last-child {
  border-bottom: none;
}

.dk-profile__label {
  font-size: 13px;
  color: #6b7280;
  min-width: 120px;
}

.dk-profile__value {
  font-size: 13px;
  color: #111827;
  font-weight: 500;
  text-align: right;
}

.dk-profile__note {
  font-size: 12px;
  color: #9ca3af;
  font-style: italic;
  margin-top: 8px;
}

.dk-profile__empty {
  color: #9ca3af;
  font-size: 14px;
  font-style: italic;
}

.dk-profile__table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.dk-profile__table thead th {
  background-color: #f9fafb;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
}

.dk-profile__table tbody td {
  padding: 10px 12px;
  font-size: 13px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.dk-profile__table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Member Events — Eligibility Tags
   ========================================================================== */

.dk-events__ticket-eligibility {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.dk-events__member-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.dk-events__member-tag--eligible {
  background-color: #dcfce7;
  color: #166534;
}

.dk-events__member-tag--ineligible {
  background-color: #f3f4f6;
  color: #9ca3af;
  text-decoration: line-through;
}

.dk-events__ticket-status {
  margin-top: 4px;
}

.dk-events__ticket-avail {
  font-size: 12px;
  color: #059669;
  font-weight: 500;
}

/* ==========================================================================
   Button Variants — Small, Success, Error
   ========================================================================== */

.dk-btn--sm {
  padding: 4px 12px;
  font-size: 13px;
}

.dk-btn--success {
  background-color: #059669 !important;
  color: #fff !important;
  border-color: #059669 !important;
}

.dk-btn--error {
  background-color: #dc2626 !important;
  color: #fff !important;
  border-color: #dc2626 !important;
}

/* ==========================================================================
   Dashboard — Session Booking Actions
   ========================================================================== */

.dk-dashboard__session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.dk-dashboard__session-price {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

/* ==========================================================================
   Member Events — Booking Rows
   ========================================================================== */

.dk-events__ticket-members {
  margin-top: 8px;
}

.dk-events__ticket-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}

.dk-events__ticket-member-row + .dk-events__ticket-member-row {
  border-top: 1px solid #f3f4f6;
}

.dk-events__member-name {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.dk-events__member-name--ineligible {
  color: #9ca3af;
  text-decoration: line-through;
}

.dk-events__ticket-member-row--ineligible {
  opacity: 0.6;
}
