/* =========================================================
   STUDENTS HOME — MY EVENTS VISUAL REDESIGN
   Visual overrides only. Existing HTML, IDs and JS preserved.
   ========================================================= */

#myeven203-page {
  background:
    radial-gradient(1000px 420px at 90% 0%, rgba(220,235,224,.65), transparent 65%),
    #F7F8F3;
}

#myeven203-main {
  max-width: 1180px;
}

/* Page headings */
#myeven203or8,
#myeven203st9 {
  color: #174D39;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}

#myeven203or9,
#myeven203st10 {
  color: #718078;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 8px;
  margin-bottom: 18px;
}

/* Mode selector */
#switch-mode-organiser,
#switch-mode-student {
  box-sizing: border-box;
  width: 100%;
  max-width: 300px;
  min-height: 42px;
  border: 1px solid #DCE5DD;
  border-radius: 10px;
  background: #fff;
  color: #202923;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
}

/* New event action */
#myeven203or16-new-event {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 10px;
  background: #174D39;
  border-color: #174D39;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(23,77,57,.12);
  transition: background .18s ease, transform .18s ease;
}

#myeven203or16-new-event:hover {
  background: #236B4E;
  transform: translateY(-1px);
}

/* Organiser events table container */
#myeven203or17 {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid #E2E9E2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(23,77,57,.035), 0 8px 24px rgba(23,77,57,.045);
  scrollbar-width: thin;
  scrollbar-color: #B8CDBD #F3F6F2;
}

#myeven203or18 {
  width: 100%;
  min-width: 650px;
  border-collapse: separate;
  border-spacing: 0;
}

#myeven203or18 th {
  padding: 15px 16px;
  border-bottom: 1px solid #E2E9E2;
  background: #F3F7F2;
  color: #718078;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

#myeven203or18 td {
  padding: 16px;
  border-bottom: 1px solid #EDF1EC;
  color: #202923;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  line-height: 1.55;
  vertical-align: middle;
}

#myeven203or18 tr:last-child td {
  border-bottom: 0;
}

#myeven203or18 tbody tr:not(:first-child):hover td {
  background: #FAFCF9;
}

#myeven203or18 .sh-my-event-actions {
  min-width: 210px;
  white-space: normal;
}

#myeven203or18 .sh-my-event-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 3px 4px 3px 0;
  padding: 5px 11px;
  border: 1px solid #D5E2D7;
  border-radius: 9px;
  background: #fff;
  color: #174D39;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

#myeven203or18 .sh-my-event-action:hover {
  border-color: #AFC9B5;
  background: #E5F0E8;
  box-shadow: none;
}

#myeven203or18 [data-my-event-action="submit"] {
  border-color: #174D39;
  background: #174D39;
  color: #fff;
}

#myeven203or18 [data-my-event-action="submit"]:hover {
  background: #236B4E;
}

#myeven203or18 [data-my-event-action="delete"] {
  border-color: #E8C9C6;
  color: #B42318;
}

#myeven203or18 [data-my-event-action="delete"]:hover {
  background: #FEF3F2;
}

#myeven203or18 .sh-my-event-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 10px;
  border-radius: 99px;
  background: #E5F0E8;
  color: #174D39;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

#myeven203or18 .sh-status-pending {
  background: #FFF4D6;
  color: #805B00;
}

#myeven203or18 .sh-status-published {
  background: #E5F0E8;
  color: #174D39;
}

#myeven203or18 .sh-status-cancelled {
  background: #FEF3F2;
  color: #B42318;
}

/* Existing promotion and cancellation controls */
#myeven203or18 [id*="promote-"] button,
#myeven203or18 [id*="cancel-event-"] button {
  font-family: "DM Sans", sans-serif;
  border-radius: 9px;
}

/* Mobile / tablet page adjustments */
@media (max-width: 700px) {
  #myeven203-main {
    padding: 28px 14px 40px;
  }

  #myeven203or8,
  #myeven203st9 {
    font-size: 30px;
    line-height: 1.2;
  }

  #myeven203or9,
  #myeven203st10 {
    font-size: 14px;
    margin-bottom: 14px;
  }

  #myeven203or16-new-event {
    min-height: 38px;
  }

  #myeven203or17 {
    margin-top: 16px;
    border-radius: 13px;
  }

  #myeven203or18 {
    min-width: 650px;
  }

  #myeven203or18 th,
  #myeven203or18 td {
    padding: 12px;
  }
}

@media (max-width: 380px) {
  #myeven203-main {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #myeven203or16-new-event {
    transition: none;
  }
}

/* =========================================================
   MY EVENTS — EVENT DETAILS / RECEIPT POPUP REDESIGN
   ========================================================= */

#sh-myreg-modal {
  padding: 24px;
  background: rgba(12, 25, 17, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

#sh-myreg-modal .sh-myreg-modal-panel {
  width: min(760px, 100%);
  max-height: min(90vh, 860px);
  padding: 24px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  font-family: "DM Sans", sans-serif;
}

#sh-myreg-modal .sh-myreg-modal-close {
  position: sticky;
  float: right;
  top: 0;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 1px solid #dbe6dd;
  border-radius: 12px;
  background: #fff;
  color: #174d39;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 3px 14px rgba(23,77,57,.08);
}

#sh-myreg-modal .sh-myreg-modal-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 7px 12px;
  border-radius: 99px;
  background: #e5f0e8;
  color: #174d39;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

#sh-myreg-modal .sh-myreg-modal-panel h2 {
  margin: 0 44px 14px 0;
  color: #174d39;
  font-family: "Manrope", sans-serif;
  font-size: clamp(23px, 4vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.035em;
}

#sh-myreg-modal .sh-myreg-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#sh-myreg-modal .sh-myreg-info-box {
  border: 1px solid #e5e9e3;
  border-radius: 12px;
  background: #fff;
}

#sh-myreg-modal .sh-myreg-info-box-image,
#sh-myreg-modal .sh-myreg-info-box-access,
#sh-myreg-modal .sh-myreg-info-box-full {
  grid-column: 1 / -1;
}

#sh-myreg-modal .sh-myreg-info-label {
  color: #718078;
  font-weight: 700;
}

#sh-myreg-modal .sh-myreg-info-value {
  color: #174d39;
}

#sh-myreg-modal .sh-myreg-modal-image {
  width: 100%;
  max-height: 260px;
  border-radius: 10px;
  object-fit: cover;
}

#sh-myreg-modal .sh-myreg-modal-description {
  color: #202923;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#sh-myreg-modal .sh-receipt-qr-wrap {
  border: 1px solid #e5e9e3;
  border-radius: 12px;
  background: #fff;
}

#sh-myreg-modal .sh-receipt-qr-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  image-rendering: pixelated;
}

@media (max-width: 600px) {
  #sh-myreg-modal {
    padding: 12px;
  }

  #sh-myreg-modal .sh-myreg-modal-panel {
    max-height: 92vh;
    padding: 18px;
    border-radius: 16px;
  }

  #sh-myreg-modal .sh-myreg-detail-grid,
  #sh-myreg-modal .sh-receipt-grid {
    grid-template-columns: 1fr;
  }
}


/* My Events registration card — final layout correction */
#myeven203st17 .ev {
  display: flex;
  align-items: center;
  gap: 14px;
}

#myeven203st17 .dt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 62px;
  min-width: 62px;
  text-align: center;
  white-space: normal;
}

#myeven203st17 .dt .dt-date {
  display: block;
  line-height: 1.25;
  white-space: nowrap;
}

#myeven203st17 .dt small {
  display: block;
  margin-top: 3px;
  line-height: 1.2;
}

#myeven203st17 .act {
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

#myeven203st17 .act .b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  white-space: nowrap;
}

#myeven203st17 .sh-open-online-link {
  display: block;
  width: fit-content;
  margin-top: 7px;
}

@media (max-width: 640px) {
  #myeven203st17 .ev {
    flex-wrap: wrap;
  }

  #myeven203st17 .act {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
  }

  #myeven203st17 .act .b {
    flex: 1 1 auto;
  }
}


/* =========================================================
   MY EVENTS — "VIEW EVENT" + "VIEW RECEIPT" POPUPS, POLISHED LOOK
   Same layout and content as before. Only the look is refined.
   Uses the site's own fonts (Manrope + DM Sans) and green palette.
   ========================================================= */

@keyframes shModalFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes shModalRise { from { opacity: 0; transform: translateY(14px) scale(.985) } to { opacity: 1; transform: none } }

#sh-myreg-modal { animation: shModalFade .2s ease both; }

#sh-myreg-modal .sh-myreg-modal-panel {
  padding: 26px 28px 28px;
  border: 0;
  border-top: 6px solid #174D39;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(10, 24, 16, .35), 0 2px 6px rgba(10, 24, 16, .08);
  animation: shModalRise .28s cubic-bezier(.2, .8, .2, 1) both;
  scrollbar-width: thin;
  scrollbar-color: #B8CDBD transparent;
}

/* close button */
#sh-myreg-modal .sh-myreg-modal-close {
  width: 38px;
  height: 38px;
  margin: -4px -6px 0 10px;
  border: 1px solid #E2E9E2;
  border-radius: 50%;
  background: #F7F8F3;
  color: #174D39;
  font-size: 22px;
  box-shadow: none;
  transition: background .18s ease, transform .18s ease;
}
#sh-myreg-modal .sh-myreg-modal-close:hover { background: #E5F0E8; transform: rotate(90deg); }
#sh-myreg-modal .sh-myreg-modal-close:focus-visible { outline: 2px solid #F48C06; outline-offset: 2px; }

/* small label above the title */
#sh-myreg-modal .sh-myreg-modal-kicker {
  padding: 6px 12px 6px 10px;
  margin-bottom: 12px;
  background: #E5F0E8;
  color: #174D39;
  font-size: 10.5px;
  letter-spacing: .12em;
}
#sh-myreg-modal .sh-myreg-modal-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #F48C06;
}

#sh-myreg-modal .sh-myreg-modal-panel h2 {
  margin: 0 46px 20px 0;
  font-size: clamp(24px, 4vw, 31px);
  line-height: 1.2;
}

/* detail boxes */
#sh-myreg-modal .sh-myreg-detail-grid { gap: 12px; }

#sh-myreg-modal .sh-myreg-info-box {
  padding: 14px 16px;
  border: 1px solid #E8EDE6;
  border-radius: 14px;
  background: #F7F8F3;
  transition: border-color .18s ease, background .18s ease;
}
#sh-myreg-modal .sh-myreg-info-box:hover { border-color: #CFE0D3; background: #F3F7F2; }

#sh-myreg-modal .sh-myreg-info-label {
  margin: 0 0 7px;
  color: #718078;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
#sh-myreg-modal .sh-myreg-info-value {
  color: #174D39;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

/* event picture: no box, no label, just a clean rounded image */
#sh-myreg-modal .sh-myreg-info-box-image {
  padding: 0;
  border: 0;
  background: none;
}
#sh-myreg-modal .sh-myreg-info-box-image:hover { background: none; }
#sh-myreg-modal .sh-myreg-info-box-image .sh-myreg-info-label { display: none; }
#sh-myreg-modal .sh-myreg-modal-image {
  max-height: 250px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(23, 77, 57, .14);
}

/* description reads like a paragraph on white */
#sh-myreg-modal .sh-myreg-info-box-full {
  background: #fff;
}
#sh-myreg-modal .sh-myreg-modal-description {
  font-size: 14.5px;
  line-height: 1.75;
  color: #3a463f;
}

/* meeting link area + button */
#sh-myreg-modal .sh-myreg-info-box-access {
  background: #E5F0E8;
  border-color: #CFE0D3;
}
#sh-myreg-modal .sh-event-join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #236B4E, #174D39);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(23, 77, 57, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}
#sh-myreg-modal .sh-event-join-button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(23, 77, 57, .28); }
#sh-myreg-modal .sh-event-link-pending { margin: 0; color: #718078; font-size: 14px; }

/* ---------- Receipt: ticket look ---------- */
#sh-myreg-modal .sh-myreg-receipt-panel { width: min(800px, 100%); }

#sh-myreg-modal .sh-receipt-layout {
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 22px;
}

/* QR "stub": deep green card with the code on a white tile */
#sh-myreg-modal .sh-receipt-qr-wrap {
  position: sticky;
  top: 0;
  max-width: 232px;
  padding: 16px 16px 14px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(160deg, #174D39 0%, #236B4E 100%);
  text-align: center;
  box-shadow: 0 14px 30px rgba(23, 77, 57, .25);
}
#sh-myreg-modal .sh-receipt-qr-image {
  box-sizing: border-box;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}
#sh-myreg-modal .sh-receipt-qr-placeholder {
  border-radius: 14px;
  background: #fff;
  color: #718078;
}
#sh-myreg-modal .sh-receipt-qr-wrap::after {
  content: "Scan at the entrance";
  display: block;
  margin-top: 13px;
  color: #E5F0E8;
  font: 700 10.5px/1.3 "DM Sans", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#sh-myreg-modal .sh-receipt-event-image {
  max-height: 150px;
  border-radius: 12px;
}

/* the most important receipt fields stand out */
#sh-myreg-modal .sh-receipt-code {
  grid-column: 1 / -1;
  border: 1.5px dashed #9CC3AA;
  background: #E5F0E8;
}
#sh-myreg-modal .sh-receipt-code .sh-myreg-info-value {
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .07em;
}
#sh-myreg-modal .sh-receipt-amount .sh-myreg-info-value {
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
}
#sh-myreg-modal .sh-receipt-paid .sh-myreg-info-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px 4px 10px;
  border-radius: 99px;
  background: #174D39;
  color: #fff;
  font-size: 13.5px;
}
#sh-myreg-modal .sh-receipt-paid .sh-myreg-info-value::before {
  content: "\2713";
  font-size: 13px;
  color: #F5C77A;
}

@media (max-width: 700px) {
  #sh-myreg-modal .sh-receipt-layout { grid-template-columns: 1fr; }
  #sh-myreg-modal .sh-receipt-qr-wrap { position: static; max-width: 250px; margin: 0 auto; }
}
@media (max-width: 600px) {
  #sh-myreg-modal .sh-myreg-modal-panel { padding: 20px 18px 22px; border-radius: 18px; }
  #sh-myreg-modal .sh-event-join-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #sh-myreg-modal, #sh-myreg-modal .sh-myreg-modal-panel { animation: none; }
  #sh-myreg-modal .sh-myreg-modal-close:hover { transform: none; }
}


/* =========================================================
   FINAL POPUP STYLE — Soft cards (chosen). Overrides the earlier popup rules above.
   ========================================================= */
#sh-myreg-modal{background:rgba(32,41,35,.55);-webkit-backdrop-filter:none;backdrop-filter:none}  /* same backdrop as the wallet Add money popup */
#sh-myreg-modal .sh-myreg-modal-panel{padding:28px;border:0;border-radius:30px;background:#F7F8F3;box-shadow:0 30px 90px rgba(23,77,57,.28)}
#sh-myreg-modal .sh-myreg-modal-close{border:0;background:#fff;box-shadow:0 4px 14px rgba(23,77,57,.14);width:40px;height:40px}
#sh-myreg-modal .sh-myreg-modal-close:hover{background:#fff;transform:scale(1.06)}
#sh-myreg-modal .sh-myreg-modal-kicker{background:#FFF4D6;color:#805B00}
#sh-myreg-modal .sh-myreg-modal-kicker::before{background:#F48C06}
#sh-myreg-modal .sh-myreg-modal-panel h2{font-size:clamp(25px,4vw,32px)}
#sh-myreg-modal .sh-myreg-detail-grid{gap:14px}
#sh-myreg-modal .sh-myreg-info-box{padding:16px 18px;border:0;border-radius:20px;background:#fff;box-shadow:0 4px 16px rgba(23,77,57,.07)}
#sh-myreg-modal .sh-myreg-info-box:hover{background:#fff;box-shadow:0 8px 22px rgba(23,77,57,.11)}
#sh-myreg-modal .sh-myreg-info-box-image{padding:0;background:none;box-shadow:none}
#sh-myreg-modal .sh-myreg-modal-image{border-radius:22px;box-shadow:0 10px 28px rgba(23,77,57,.16)}
#sh-myreg-modal .sh-myreg-info-box-access{background:#E5F0E8;box-shadow:none}
#sh-myreg-modal .sh-event-join-button{border-radius:99px;padding:11px 24px}
#sh-myreg-modal .sh-receipt-qr-wrap{background:#fff;border:0;border-radius:26px;box-shadow:0 10px 28px rgba(23,77,57,.12);padding:16px}
#sh-myreg-modal .sh-receipt-qr-image{padding:0;border-radius:10px}
#sh-myreg-modal .sh-receipt-qr-wrap::after{color:#174D39}
#sh-myreg-modal .sh-receipt-event-image{border-radius:16px}
#sh-myreg-modal .sh-receipt-code{background:#E5F0E8;border:0;box-shadow:none}
#sh-myreg-modal .sh-receipt-amount .sh-myreg-info-value{color:#B45F00}
#sh-myreg-modal .sh-receipt-paid .sh-myreg-info-value{background:#E5F0E8;color:#174D39}
#sh-myreg-modal .sh-receipt-paid .sh-myreg-info-value::before{color:#F48C06}
