/* NRI Nexus — member dashboard style overrides */
.nx-dash {
  --nx-navy: #0D1B4B;
  --nx-navy-deep: #060E2A;
  --nx-gold: #D4A831;
  --nx-gold-light: #E4BE50;
  --nx-gold-dark: #926d11; /* WCAG AA compliant gold on white */
  --nx-orange: #F5820A;
  --nx-orange-light: #FF9B30;
  --nx-white: #ffffff;
  --nx-muted: #6c779c; /* Darker muted color for contrast */
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--nx-navy);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  box-sizing: border-box;
  min-height: 100vh;
}
.nx-dash * , .nx-dash *::before , .nx-dash *::after {
  box-sizing: border-box;
}
.nx-dash a {
  text-decoration: none;
}

/* Sidebar */
.nx-dash-side {
  background: #ffffff;
  border: 1px solid rgba(13, 27, 75, 0.07);
  box-shadow: 0 10px 30px rgba(13, 27, 75, 0.02), 0 1px 3px rgba(13, 27, 75, 0.01);
  border-radius: 16px;
  padding: 28px 20px;
  position: sticky;
  top: 96px;
}
.nx-dash-user {
  text-align: center;
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(13, 27, 75, 0.07);
}
.nx-dash-avatar {
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--nx-gold);
}
.nx-dash-avatar-ph {
  background: linear-gradient(135deg, #E4BE50, #D4A831);
  color: #ffffff;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 28px;
  border: none;
  box-shadow: 0 4px 10px rgba(212, 168, 49, 0.25);
}
.nx-dash-uname {
  margin-top: 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--nx-navy);
}
.nx-dash-ref {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--nx-gold-dark);
}
.nx-dash-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nx-dash-link {
  display: block;
  padding: 12px 16px;
  border-radius: 9px;
  color: rgba(13, 27, 75, 0.7);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: none;
  border: none;
  border-left: 4px solid transparent;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
}
.nx-dash-link:hover {
  background: rgba(13, 27, 75, 0.04);
  color: var(--nx-navy);
}
.nx-dash-link.is-active {
  background: rgba(13, 27, 75, 0.05);
  color: var(--nx-navy);
  font-weight: 600;
  border-left: 4px solid var(--nx-orange);
  border-radius: 0 9px 9px 0;
  padding-left: 12px;
}
.nx-dash-logout {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(13, 27, 75, 0.07);
}
.nx-dash-logout-btn {
  color: #dc2626;
  font-weight: 600;
  padding-left: 16px;
}
.nx-dash-logout-btn:hover {
  background: rgba(220, 38, 38, 0.05);
  color: #b91c1c;
}

/* Main */
.nx-dash-main {
  background: #ffffff;
  border: 1px solid rgba(13, 27, 75, 0.07);
  box-shadow: 0 10px 30px rgba(13, 27, 75, 0.02), 0 1px 3px rgba(13, 27, 75, 0.01);
  border-radius: 16px;
  padding: 36px 34px;
  min-height: 420px;
}
.nx-dash-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--nx-navy);
}
.nx-dash-h em {
  font-style: italic;
  color: var(--nx-gold-dark);
}
.nx-dash-lead {
  color: rgba(13, 27, 75, 0.6);
  font-size: 14px;
  font-weight: 300;
  margin: 0 0 26px;
  line-height: 1.6;
}

/* Overview cards */
.nx-dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.nx-dash-card {
  background: #ffffff;
  border: 1px solid rgba(13, 27, 75, 0.07);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(13, 27, 75, 0.01);
  transition: all 0.25s ease;
}
.nx-dash-card:hover {
  border-color: rgba(212, 168, 49, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 27, 75, 0.03);
}
.nx-dash-card-k {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--nx-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.nx-dash-card-v {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--nx-navy);
  word-break: break-word;
}
.nx-dash-card-v--email {
  font-size: 12px;
  font-weight: 500;
}
.nx-dash-quick {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
.nx-dash-btn {
  display: inline-block;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--nx-orange), var(--nx-orange-light));
  color: var(--nx-white);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(245, 130, 10, 0.2);
  text-align: center;
}
.nx-dash-btn:hover {
  background: linear-gradient(135deg, var(--nx-orange-light), var(--nx-orange));
  box-shadow: 0 6px 20px rgba(245, 130, 10, 0.3);
  transform: translateY(-2px);
}
.nx-dash-btn.ghost {
  background: transparent;
  color: var(--nx-navy);
  border: 1px solid rgba(13, 27, 75, 0.22);
  box-shadow: none;
}
.nx-dash-btn.ghost:hover {
  border-color: var(--nx-gold);
  color: var(--nx-gold-dark);
  background: rgba(212, 168, 49, 0.05);
}

/* Forms */
.nx-dash-form {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nx-dash-form .nx-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nx-dash-form label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(13, 27, 75, 0.65);
}
.nx-dash-form input[type=text],
.nx-dash-form input[type=email],
.nx-dash-form input[type=tel],
.nx-dash-form input[type=password] {
  width: 100%;
  padding: 13px 16px;
  background: #ffffff;
  border: 1px solid rgba(13, 27, 75, 0.18);
  border-radius: 10px;
  color: var(--nx-navy);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}
.nx-dash-form select:not(.nx-phone-code) {
  width: 100%;
  padding: 13px 40px 13px 16px;
  background: #ffffff;
  border: 1px solid rgba(13, 27, 75, 0.18);
  border-radius: 10px;
  color: var(--nx-navy);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d1b4b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.nx-dash-form select:not(.nx-phone-code):disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.nx-dash-form input[type=text]:hover,
.nx-dash-form input[type=email]:hover,
.nx-dash-form input[type=tel]:hover,
.nx-dash-form input[type=password]:hover,
.nx-dash-form select:not(.nx-phone-code):hover,
.nx-dash-form .nx-phone-code:hover {
  border-color: rgba(13, 27, 75, 0.35);
}
.nx-dash-form input[type=text]:focus,
.nx-dash-form input[type=email]:focus,
.nx-dash-form input[type=tel]:focus,
.nx-dash-form input[type=password]:focus,
.nx-dash-form select:not(.nx-phone-code):focus,
.nx-dash-form .nx-phone-code:focus {
  border-color: var(--nx-orange);
  box-shadow: 0 0 0 4px rgba(245, 130, 10, 0.12);
}
.nx-dash-form input::placeholder {
  color: rgba(13, 27, 75, 0.52);
}

.nx-phone-row {
  display: flex;
  gap: 12px;
}
.nx-phone-code {
  width: auto;
  min-width: 120px;
  flex: 0 0 auto;
  padding: 13px 16px;
  background: #ffffff;
  border: 1px solid rgba(13, 27, 75, 0.18);
  border-radius: 10px;
  color: var(--nx-navy);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.nx-phone-code option {
  background: #ffffff;
  color: var(--nx-navy);
}
.nx-phone-row input {
  flex: 1;
}

.nx-dash-avatar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}
.nx-dash-upload {
  cursor: pointer;
}
.nx-dash-upload span {
  display: inline-block;
  padding: 10px 18px;
  border: 1px dashed rgba(212, 168, 49, 0.7);
  border-radius: 8px;
  color: var(--nx-gold-dark);
  font-size: 13px;
  font-weight: 600;
  background: rgba(212, 168, 49, 0.05);
  transition: all 0.2s ease;
}
.nx-dash-upload span:hover {
  background: rgba(212, 168, 49, 0.1);
  border-color: var(--nx-gold);
}
.nx-dash-upload input {
  display: none;
}

/* Notices */
.nx-dash-notice {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.nx-dash-notice.ok {
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.25);
  color: #1b7a43;
}
.nx-dash-notice.err {
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.25);
  color: #962d22;
}

/* Events */
.nx-dash-empty {
  padding: 40px;
  text-align: center;
  color: var(--nx-muted);
  background: rgba(13, 27, 75, 0.02);
  border: 1px dashed rgba(13, 27, 75, 0.12);
  border-radius: 12px;
}
.nx-events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.nx-event {
  background: #ffffff;
  border: 1px solid rgba(13, 27, 75, 0.08);
  box-shadow: 0 8px 24px rgba(13, 27, 75, 0.02);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.nx-event:hover {
  border-color: rgba(212, 168, 49, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(13, 27, 75, 0.06);
}
.nx-event.is-joined {
  border-color: var(--nx-gold);
  box-shadow: 0 8px 24px rgba(212, 168, 49, 0.1);
}
.nx-event-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.nx-event-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.nx-event-date {
  display: inline-block;
  align-self: start;
  padding: 4px 10px;
  background: rgba(212, 168, 49, 0.09);
  color: var(--nx-gold-dark);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.nx-event-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--nx-navy);
  line-height: 1.25;
}
.nx-event-loc {
  font-size: 13px;
  color: rgba(13, 27, 75, 0.75);
}
.nx-event-desc {
  font-size: 13px;
  color: rgba(13, 27, 75, 0.65);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}
.nx-event-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(13, 27, 75, 0.05);
}
.nx-event-count {
  font-size: 12px;
  color: var(--nx-muted);
  font-weight: 500;
}
.nx-event-form {
  margin: 0;
}
.nx-event .nx-dash-btn {
  padding: 9px 20px;
  font-size: 13px;
}

/* Guest notice card */
.nx-dash-guest {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nx-dash-guest-card {
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(212, 168, 49, 0.25);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 460px;
  box-shadow: 0 10px 30px rgba(13, 27, 75, 0.04);
}
.nx-dash-guest-card .nx-dash-quick {
  justify-content: center;
  margin-top: 24px;
}

/* Progress bar / completeness card */
.nx-dash-progress {
  background: #ffffff;
  border: 1px solid rgba(13, 27, 75, 0.07);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 26px;
  box-shadow: 0 4px 12px rgba(13, 27, 75, 0.01);
}
.nx-dash-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--nx-navy);
  font-weight: 600;
}
.nx-dash-progress-top strong {
  color: var(--nx-gold-dark);
  font-weight: 700;
  font-size: 15px;
}
.nx-dash-bar {
  height: 8px;
  border-radius: 5px;
  background: rgba(13, 27, 75, 0.08);
  overflow: hidden;
}
.nx-dash-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--nx-gold), var(--nx-orange));
  border-radius: 5px;
  transition: width 0.5s ease;
}
.nx-dash-progress-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(13, 27, 75, 0.6);
}
.nx-dash-progress-hint a {
  color: var(--nx-gold-dark);
  font-weight: 600;
  text-decoration: underline;
}

@media(max-width:880px) {
  .nx-dash {
    grid-template-columns: 1fr;
    padding-top: 96px;
    gap: 20px;
  }
  .nx-dash-side {
    position: static;
  }
  .nx-dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nx-dash-link {
    width: auto;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px;
    padding: 10px 14px;
  }
  .nx-dash-link.is-active {
    border-left: none;
    border-bottom: 3px solid var(--nx-orange);
    border-radius: 8px 8px 0 0;
    padding-left: 14px;
  }
  .nx-dash-logout {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .nx-dash-logout-btn {
    padding-left: 14px;
  }
  .nx-events {
    grid-template-columns: 1fr;
  }
  .nx-dash-cards {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   EVENTS LISTING PAGE  (.nx-events-listing-wrap)
   ================================================================ */
.nx-events-listing-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.nx-events-listing-hero {
  text-align: center;
  margin-bottom: 52px;
}
.nx-events-listing-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 700;
  color: #0D1B4B;
  margin: 0 0 14px 0;
  line-height: 1.1;
}
.nx-events-listing-lead {
  font-size: 17px;
  color: rgba(13, 27, 75, 0.62);
  margin: 0;
  font-weight: 300;
}

/* Filter bar */
.nx-ev-filters {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid rgba(13,27,75,.1);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(13,27,75,.06);
}
.nx-ev-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nx-ev-filter-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(13,27,75,.45);
  white-space: nowrap;
}
.nx-ev-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nx-ev-pill {
  padding: 6px 16px;
  border-radius: 30px;
  border: 1.5px solid rgba(13,27,75,.15);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: rgba(13,27,75,.65);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  line-height: 1;
}
.nx-ev-pill:hover {
  border-color: #0D1B4B;
  color: #0D1B4B;
}
.nx-ev-pill.active {
  background: #0D1B4B;
  border-color: #0D1B4B;
  color: #ffffff;
}
.nx-ev-filter-select {
  padding: 7px 32px 7px 12px;
  border: 1.5px solid rgba(13,27,75,.15);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230d1b4b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  -webkit-appearance: none;
  font-size: 13px;
  font-weight: 600;
  color: #0D1B4B;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s;
}
.nx-ev-filter-select:focus {
  outline: none;
  border-color: #0D1B4B;
}
.nx-ev-no-results {
  text-align: center;
  padding: 60px 20px;
  color: rgba(13,27,75,.5);
}
.nx-ev-no-results .nx-events-empty-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.nx-ev-no-results p { font-size: 15px; margin: 0; }
.nx-ev-clear-filters {
  background: none;
  border: none;
  color: #D4A831;
  font-weight: 700;
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
}

/* Grid of event cards */
.nx-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* Individual event card — the whole card is a link */
.nx-ev-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(13, 27, 75, 0.08);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.28s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.2s;
  box-shadow: 0 4px 18px rgba(13, 27, 75, 0.04);
}
.nx-ev-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13, 27, 75, 0.10);
  border-color: rgba(212, 168, 49, 0.40);
  text-decoration: none;
}
.nx-ev-card--joined {
  border-color: #D4A831;
  box-shadow: 0 4px 18px rgba(212, 168, 49, 0.12);
}

/* Thumbnail area */
.nx-ev-card__thumb {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: linear-gradient(135deg, #0D1B4B 0%, #1a2f6e 100%);
  flex-shrink: 0;
}
.nx-ev-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.nx-ev-card:hover .nx-ev-card__thumb img {
  transform: scale(1.05);
}
.nx-ev-card__thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 48px;
  opacity: 0.35;
}

/* Price badge overlay on thumb */
.nx-ev-card__price-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nx-ev-card__price-badge.free {
  background: rgba(46, 204, 113, 0.85);
  color: #fff;
}
.nx-ev-card__price-badge.paid {
  background: rgba(245, 130, 10, 0.90);
  color: #fff;
}
.nx-ev-card__joined-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(212, 168, 49, 0.92);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Card body */
.nx-ev-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.nx-ev-card__date {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(212, 168, 49, 0.10);
  color: #926d11;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  align-self: flex-start;
}
.nx-ev-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: #0D1B4B;
  margin: 0;
  line-height: 1.25;
}
.nx-ev-card__loc {
  font-size: 13px;
  color: rgba(13, 27, 75, 0.68);
}
.nx-ev-card__desc {
  font-size: 13px;
  color: rgba(13, 27, 75, 0.58);
  line-height: 1.65;
  margin: 0;
  font-weight: 300;
}
.nx-ev-card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(13, 27, 75, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nx-ev-card__count {
  font-size: 12px;
  color: #6c779c;
  font-weight: 500;
}
.nx-ev-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: #F5820A;
  letter-spacing: 0.2px;
}

/* Empty state */
.nx-events-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(13, 27, 75, 0.45);
  font-size: 16px;
}
.nx-events-empty-icon {
  display: block;
  font-size: 48px;
  margin-bottom: 16px;
}

/* ================================================================
   SINGLE EVENT DETAIL PAGE  (.nx-ev-detail-wrap)
   ================================================================ */
.nx-ev-detail-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #0D1B4B;
}

/* Back link */
.nx-ev-detail-back {
  margin-bottom: 24px;
}
.nx-ev-detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(13, 27, 75, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.nx-ev-detail-back-link:hover {
  color: #F5820A;
  text-decoration: none;
}

/* Event title */
.nx-ev-detail-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 700;
  color: #0D1B4B;
  line-height: 1.1;
  margin: 0 0 32px 0;
}

/* Hero image */
.nx-ev-detail-hero {
  position: relative;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 40px;
}
.nx-ev-detail-hero img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.nx-ev-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(6, 14, 42, 0.45) 100%);
  border-radius: 20px;
}

/* Two-column layout */
.nx-ev-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* Left: content */
.nx-ev-detail-content {
  min-width: 0;
}
.nx-ev-detail-body {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(13, 27, 75, 0.80);
}
.nx-ev-detail-body p { margin-bottom: 18px; }
.nx-ev-detail-body h2,
.nx-ev-detail-body h3 {
  font-family: 'Cormorant Garamond', serif;
  color: #0D1B4B;
  margin-top: 32px;
  margin-bottom: 12px;
}
.nx-ev-detail-no-content {
  color: rgba(13, 27, 75, 0.45);
  font-style: italic;
  font-size: 15px;
}

/* Right: sidebar card */
.nx-ev-detail-sidebar {
  position: sticky;
  top: 100px;
}
.nx-ev-detail-card {
  background: #ffffff;
  border: 1px solid rgba(13, 27, 75, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(13, 27, 75, 0.06);
}
.nx-ev-detail-card__header {
  background: linear-gradient(135deg, #0D1B4B 0%, #1a2f6e 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.nx-ev-detail-card__label {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Cormorant Garamond', serif;
}
.nx-ev-detail-card__registered {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(212, 168, 49, 0.22);
  color: #E4BE50;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: 1px solid rgba(212, 168, 49, 0.35);
}

/* Meta list */
.nx-ev-detail-meta {
  list-style: none;
  margin: 0;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid rgba(13, 27, 75, 0.07);
}
.nx-ev-detail-meta li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(13, 27, 75, 0.05);
}
.nx-ev-detail-meta li:last-child {
  border-bottom: none;
}
.nx-ev-detail-meta__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.nx-ev-detail-meta li div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nx-ev-detail-meta li strong {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(13, 27, 75, 0.45);
}
.nx-ev-detail-meta li span {
  font-size: 14px;
  font-weight: 500;
  color: #0D1B4B;
}
.nx-ev-meeting-link {
  color: #2271b1;
  word-break: break-all;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
}
.nx-ev-meeting-link:hover { color: #135e96; }

/* Action area */
.nx-ev-detail-action {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nx-ev-detail-action__joined {
  font-size: 13px;
  color: #2ecc71;
  font-weight: 600;
  margin: 0 0 4px 0;
}
.nx-ev-detail-action__full {
  font-size: 14px;
  color: #c0392b;
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding: 16px;
  background: rgba(192, 57, 43, 0.06);
  border-radius: 10px;
}

/* Register/Cancel buttons */
.nx-ev-detail-action__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-family: 'DM Sans', sans-serif;
  box-sizing: border-box;
}
.nx-ev-detail-action__btn.register {
  background: linear-gradient(135deg, #F5820A 0%, #e06b00 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(245, 130, 10, 0.35);
}
.nx-ev-detail-action__btn.register:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 130, 10, 0.48);
  color: #ffffff;
  text-decoration: none;
}
.nx-ev-detail-action__btn.cancel {
  background: transparent;
  color: rgba(13, 27, 75, 0.55);
  border: 1px solid rgba(13, 27, 75, 0.18);
}
.nx-ev-detail-action__btn.cancel:hover {
  border-color: #c0392b;
  color: #c0392b;
  background: rgba(192, 57, 43, 0.04);
}

/* Login prompt note */
.nx-ev-detail-action__login-note {
  font-size: 12px;
  color: rgba(13, 27, 75, 0.50);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}
.nx-ev-detail-action__login-note a {
  color: #F5820A;
  font-weight: 600;
  text-decoration: none;
}
.nx-ev-detail-action__login-note a:hover {
  text-decoration: underline;
}

/* ================================================================
   LOGIN-GATE NOTICE BANNER  (shown when not logged in)
   ================================================================ */
.nx-ev-login-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(13, 27, 75, 0.04) 0%, rgba(212, 168, 49, 0.06) 100%);
  border: 1px solid rgba(212, 168, 49, 0.25);
  border-radius: 16px;
  text-align: center;
  margin: 0;
}
.nx-ev-login-gate__icon {
  font-size: 36px;
}
.nx-ev-login-gate__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  color: #0D1B4B;
  margin: 0;
}
.nx-ev-login-gate__text {
  font-size: 14px;
  color: rgba(13, 27, 75, 0.58);
  margin: 0;
  line-height: 1.5;
}
.nx-ev-login-gate__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}
.nx-ev-login-gate__btns .btn-login {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.22s;
  background: linear-gradient(135deg, #F5820A 0%, #e06b00 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245, 130, 10, 0.30);
  font-family: 'DM Sans', sans-serif;
}
.nx-ev-login-gate__btns .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 130, 10, 0.45);
  color: #fff;
  text-decoration: none;
}
.nx-ev-login-gate__btns .btn-join {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.22s;
  background: transparent;
  color: #0D1B4B;
  border: 1.5px solid rgba(13, 27, 75, 0.22);
  font-family: 'DM Sans', sans-serif;
}
.nx-ev-login-gate__btns .btn-join:hover {
  border-color: #0D1B4B;
  background: rgba(13, 27, 75, 0.04);
  color: #0D1B4B;
  text-decoration: none;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .nx-ev-detail-layout {
    grid-template-columns: 1fr;
  }
  .nx-ev-detail-sidebar {
    position: static;
  }
  .nx-ev-detail-title {
    font-size: 34px;
  }
  .nx-events-listing-title {
    font-size: 34px;
  }
}
@media (max-width: 640px) {
  .nx-events-grid {
    grid-template-columns: 1fr;
  }
  .nx-ev-detail-layout {
    grid-template-columns: 1fr;
  }
  .nx-ev-detail-hero {
    max-height: 260px;
  }
  .nx-ev-detail-title {
    font-size: 28px;
  }
  .nx-ev-card__title {
    font-size: 18px;
  }
}

/* Family Members Tab */
.nx-family-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.nx-family-header .nx-dash-h { margin-bottom: 2px; }
.nx-family-header .nx-dash-lead { margin-bottom: 0; }
.nx-family-open-btn { white-space: nowrap; flex-shrink: 0; }

/* Empty state */
.nx-family-empty {
  text-align: center;
  padding: 60px 24px;
  color: rgba(13,27,75,.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.nx-family-empty svg { opacity: .35; }
.nx-family-empty p { font-size: 15px; margin: 0; }

/* Table */
.nx-family-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e8eaf0;
}
.nx-family-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.nx-family-table th {
  background: var(--nx-navy, #0d1b4b);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nx-family-table th:first-child { border-radius: 12px 0 0 0; }
.nx-family-table th:last-child  { border-radius: 0 12px 0 0; }
.nx-family-num { color: rgba(13,27,75,.35); font-size: 12px; }
.nx-family-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f0f1f5;
  color: #444;
  vertical-align: middle;
}
.nx-family-table tbody tr:last-child td { border-bottom: none; }
.nx-family-table tbody tr:hover td { background: #fafbff; }
.nx-family-del {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #c0392b;
  cursor: pointer;
  font-size: 11px;
  padding: 4px 9px;
  transition: all 0.2s;
}
.nx-family-del:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.nx-family-del-form { margin: 0; }

/* Drawer overlay */
.nx-family-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,14,42,.45);
  z-index: 9998;
  backdrop-filter: blur(2px);
}
.nx-family-overlay.is-open { display: block; }

/* Drawer */
.nx-family-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.16,1,.3,1);
  box-shadow: -8px 0 40px rgba(13,27,75,.12);
}
.nx-family-drawer.is-open { transform: translateX(0); }
.nx-family-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  font-weight: 700;
  color: var(--nx-navy, #0d1b4b);
}
.nx-family-drawer-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: rgba(13,27,75,.5);
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nx-family-drawer-close:hover { background: #f0f1f5; color: var(--nx-navy); }
.nx-family-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px;
}
.nx-family-drawer-body .nx-dash-form { max-width: 100%; }
.nx-req { color: #c0392b; }

/* Drawer form selects */
.nx-family-drawer-body select {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid rgba(13,27,75,.18);
  border-radius: 10px;
  color: var(--nx-navy, #0d1b4b);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
}
.nx-family-drawer-body select:focus { border-color: var(--nx-orange, #F5820A); box-shadow: 0 0 0 4px rgba(245,130,10,.12); }
.nx-family-drawer-body input[type=date] {
  width: 100%;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid rgba(13,27,75,.18);
  border-radius: 10px;
  color: var(--nx-navy, #0d1b4b);
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.nx-family-drawer-body input[type=date]:focus { border-color: var(--nx-orange, #F5820A); box-shadow: 0 0 0 4px rgba(245,130,10,.12); }

@media (max-width: 600px) {
  .nx-family-drawer { width: 100vw; }
  .nx-family-header { flex-direction: column; gap: 12px; }
}

/* Family email verification */
.nx-family-email-cell { min-width: 180px; }
.nx-family-email-addr { display: block; font-size: 12px; color: #555; word-break: break-all; margin-bottom: 4px; }
.nx-family-no-email { color: rgba(13,27,75,.3); }
.nx-family-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
}
.nx-family-badge.verified { background: rgba(46,204,113,.12); color: #1a8a4a; }
.nx-family-badge.pending  { background: rgba(245,130,10,.1);  color: #c96800; }
.nx-family-inline-form { display: inline-block; margin: 0; }
.nx-family-resend {
  background: none;
  border: 1px solid rgba(13,27,75,.18);
  border-radius: 5px;
  color: rgba(13,27,75,.6);
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.nx-family-resend:hover { border-color: var(--nx-navy,#0d1b4b); color: var(--nx-navy,#0d1b4b); }

/* Family action buttons */
.nx-family-actions-cell { white-space: nowrap; }
.nx-family-edit-btn {
  background: none;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #555;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 9px;
  margin-right: 4px;
  transition: all 0.2s;
}
.nx-family-edit-btn:hover { background: var(--nx-navy,#0d1b4b); color: #fff; border-color: var(--nx-navy,#0d1b4b); }

/* Hint text under fields */
.nx-field-hint { font-size: 11px; color: rgba(13,27,75,.45); margin-top: 4px; display: block; }

/* ============================================================
   Paid event — manual bank payment flow
   ============================================================ */
.nx-ev-detail-card__pending{display:inline-block;background:rgba(191,106,2,.12);color:#bf6a02;font-size:12px;font-weight:700;padding:4px 10px;border-radius:6px;letter-spacing:.3px}
.nx-ev-card__joined-badge--pending{background:rgba(191,106,2,.92)!important}

.nx-pay-box{display:flex;flex-direction:column;gap:16px}
.nx-pay-status{border-radius:8px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.nx-pay-status strong{font-size:14px}
.nx-pay-status span{font-size:13px;line-height:1.5;opacity:.85}
.nx-pay-status.is-pending{background:rgba(191,106,2,.08);color:#8a4d01;border:1px solid rgba(191,106,2,.2)}
.nx-pay-status.is-review{background:rgba(154,103,0,.08);color:#7a5200;border:1px solid rgba(154,103,0,.2)}

.nx-pay-bank{background:#f7f8fb;border:1px solid #e6e9f0;border-radius:8px;padding:16px}
.nx-pay-bank h4{margin:0 0 12px;font-size:13px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--nx-navy,#0d1b4b)}
.nx-pay-bank dl{margin:0;display:flex;flex-direction:column;gap:8px}
.nx-pay-bank dl>div{display:flex;justify-content:space-between;gap:12px;font-size:13px;border-bottom:1px dashed #e0e3ec;padding-bottom:8px}
.nx-pay-bank dl>div:last-child{border-bottom:none;padding-bottom:0}
.nx-pay-bank dt{color:#6b7280;flex:0 0 auto}
.nx-pay-bank dd{margin:0;font-weight:600;text-align:right;color:#1f2937;word-break:break-word}
.nx-pay-instr{margin:12px 0 0;font-size:12.5px;line-height:1.6;color:#52607a;background:#fff;border-radius:6px;padding:10px 12px;border:1px solid #e6e9f0}

.nx-pay-receipt-current{font-size:13px;margin:0;color:#1a7f37}
.nx-pay-upload{display:flex;flex-direction:column;gap:10px}
.nx-pay-upload__label{font-size:13px;font-weight:600;color:var(--nx-navy,#0d1b4b);display:flex;flex-direction:column;gap:6px}
.nx-pay-upload__label input[type=file]{font-size:13px;padding:8px;border:1px dashed #c2c9d6;border-radius:6px;background:#fff;width:100%;box-sizing:border-box}
