/* =========================================================
   DARTO GLOBAL DARTS CALENDAR
   Layout CSS matched to the current global-darts-calendar.js
   Keeps the existing black / white / red theme.
   ========================================================= */

* { box-sizing: border-box; }



/* ------------------------- HEADER ------------------------- */
/*
.topbar {
  height: 72px;
  border-bottom: 1px solid #252525;
  display: flex;
  align-items: center;
  padding: 0 5%;
  gap: 34px;
  position: sticky;
  top: 0;
  background: #090909ee;
  backdrop-filter: blur(12px);
  z-index: 20;
}
*/

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  white-space: nowrap;
}

.brand strong {
  font-size: 25px;
  letter-spacing: 2px;
}

.brand span {
  color: #888;
  border-left: 1px solid #444;
  padding-left: 10px;
}



/* -------------------------- HERO -------------------------- */
.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 24px 55px;
  display: flex;
  justify-content: space-between;
  min-height: 290px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: #999;
  font-weight: bold;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.03;
  margin: 15px 0;
	text-align-last: left;
}

.hero h1 span { color: #ec038a; }

.hero p {
  color: #aaa;
  max-width: 620px;
  line-height: 1.6;
}

.hero-dart {
  font-size: 160px;
  line-height: 1;
  color: #ec038a;
  transform: rotate(25deg);
  opacity: .7;
}

/* ------------------------- FINDER ------------------------- */
.finder {
  background: #000f18;
  border-top: 1px solid #242424;
  border-bottom: 1px solid #242424;
  padding: 24px max(5%, 24px);
}

.search-wrap {
  max-width: 1180px;
  margin: 0 auto 18px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 7px;
  padding: 6px 16px;
  display: flex;
  gap: 10px;
}

.search-wrap span {
  font-size: 25px;
  color: #999;
}

.search-wrap input {
  background: none;
  border: 0;
  outline: 0;
  color: #fff;
  width: 100%;
  font-size: 15px;
}

.quick-filters,
.controls,
.advanced {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-filters button {
  border: 1px solid #383838;
  background: #191919;
  color: #aaa;
  padding: 3px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.quick-filters button.active {
  background: #ec038a;
  color: #fff;
  border-color: #ec038a;
}

.controls { margin-top: 15px; }

.controls select,
.controls button,
.advanced select {
  background: #344049;
  color: #ddd;
  border: 1px solid #000f29;
  border-radius: 5px;
  padding: 10px 12px;
  min-height: 40px;
}

.controls select:focus,
.controls button:focus,
.advanced select:focus,
.search-wrap:focus-within {
  border-color: #666;
  outline: none;
}

.advanced {
  display: none;
  margin-top: 12px;
}

.advanced.show { display: flex; }

.check {
  padding: 10px;
  color: #aaa;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --------------------- RESULTS AREA ----------------------- */
.calendar-area,
.info-section,
.my-calendar {
  max-width: 1180px;
  margin: auto;
  padding: 48px 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: 1px solid #252525;
  padding-bottom: 18px;
  gap: 20px;
}

.section-head h2,
.info-section h2,
.my-calendar h2 {
  margin: 8px 0 0;
  font-size: 30px;
}

.view-note {
  color: #777;
  font-size: 12px;
  text-align: right;
}

.events {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

/* =========================================================
   LIST VIEW
   JS creates .event-row, not the old .event class.
   ========================================================= */
.event-row {
  width: 100%;
  min-height: 86px;
  background: var(--card-background);
  border: 1px solid #292929;
  border-left: 4px solid #ec038a;
  border-radius: 7px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 82px 145px minmax(220px, 1.7fr) minmax(145px, 1fr) minmax(110px, .7fr) 72px;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}


.event-row:hover {
  background: var(--background-color);
  border-color: #00bbff;
}

.event-row:focus-visible {
  outline: 2px solid #ec038a;
  outline-offset: 2px;
}

.event-row.past-event { border-left-color: #666; }

.event-row-date {
  min-width: 0;
  line-height: 1.1;
}

.event-row-date strong {
  display: block;
  font-size: 24px;
  color: #00bbff;
  letter-spacing: .2px;
}

.past-event .event-row-date strong { color: #aaa; }

.event-row-date span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.event-row-date small {
  display: block;
  margin-top: 4px;
  color: #999;
  font-size: 10px;
}

.event-row-org {
  align-self: center;
  min-width: 0;
}

.event-row-org strong {
  display: block;
  font-size: 18px;
  color: #fff;
  line-height: 1.3;
}

.verified-badge,
.past-badge,
.event-status {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 8px;
  line-height: 1;
  letter-spacing: .6px;
  text-transform: uppercase;
/*
	margin-left: 12px;
	margin-bottom: 12px;
*/
}

.verified-badge {
  border: 1px solid #4a4;
  color: #9d9;
}

.past-badge {
  margin-left: 4px;
  border: 1px solid #555;
  color: #aaa;
}

.event-row-main {
  min-width: 0;
}

.event-row-main h3 {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.25;
  color: #f5f5f5;
  overflow-wrap: anywhere;
}

.event-row-location {
  color: #aaa;
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

.event-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.event-row-meta > span {
      display: inline-block;
    border: 1px solid #555;
    color: #999;
    border-radius: 22px;
    padding: 3px 9px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .4px;
    align-content: center;
}

.event-row-format,
.event-row-prize {
  min-width: 0;
  align-self: center;
}

.row-label {
  display: block;
  margin-bottom: 5px;
  color: #666;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 1px;
}

.event-row-format strong,
.event-row-prize strong {
  display: block;
  color: #ddd;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.event-row-format small {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 9px;
  line-height: 1.3;
}

.event-row-action {
  display: flex;
  justify-content: flex-end;
}

.event-view-btn {
  background: #222;
  color: #ddd;
  border: 2px solid var(--blue-to-blue);
  border-radius: 36px;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: .5px;
}

.event-view-btn:hover {
  background: #ec038a;
  border-color: #ec038a;
  color: #fff;
}

/* ----------------------- MONTH VIEW -----------------------
   IMPORTANT: JS puts title, weekdays and days INSIDE #monthGrid.
   The outer container therefore must be block, while the two
   repeating rows use their own 7-column grids.
   --------------------------------------------------------- */
.month-grid {
  display: block;
  margin-top: 18px;
  border: 1px solid #292929;
  background: #0d0d0d;
  border-radius: 7px;
  overflow: hidden;
}

.calendar-month-title {
  min-height: 58px;
  padding: 13px 16px;
  background: #111;
  border-bottom: 1px solid #292929;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-month-title strong {
  font-size: 19px;
  color: var(--blue-to-blue);
}

.calendar-month-title span {
  color: #777;
  font-size: 11px;
	    min-width: 100px;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekday {
  min-height: 34px;
  padding: 10px 8px;
  background: #171717;
  border-right: 1px solid #292929;
  border-bottom: 1px solid #292929;
  color: #777;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
}

.calendar-weekday:last-child { border-right: 0; }

.calendar-day {
  min-height: 128px;
  padding: 8px;
  background: #0f0f0f;
  border-right: 1px solid #292929;
  border-bottom: 1px solid #292929;
  overflow: hidden;
}

.calendar-day:nth-child(7n) { border-right: 0; }

.calendar-day-number {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 20px;
  color: #777;
  font-size: 11px;
  font-weight: bold;
}

.calendar-day.other-month {
  background: #0b0b0b;
}

.calendar-day.other-month .calendar-day-number {
  color: #333;
}

.calendar-day.today {
  background: #131313;
  box-shadow: inset 0 0 0 1px rgba(226, 29, 46, .45);
}

.calendar-day.today .calendar-day-number {
  color: #ec038a;
}

.calendar-cell-events {
  display: grid;
  gap: 5px;
  margin-top: 6px;
}

.calendar-event {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: left;
  border: 0;
  border-left: 3px solid #ec038a;
  border-radius: 3px;
  background: #1a1a1a;
  color: #ddd;
  padding: 6px 6px 6px 7px;
  overflow: hidden;
}

.calendar-event:hover {
  background: #222;
}

.calendar-event:focus-visible {
  outline: 2px solid #ec038a;
  outline-offset: 1px;
}

.calendar-event strong,
.calendar-event span {
/*  display: block;*/
	display: contents;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event strong {
  font-size: 9px;
  line-height: 1.25;
}

.calendar-event span {
  margin-top: 3px;
  
  font-size: 9px;
	color: var(--accent-aqua);
}

/* Organization accents — only for calendar event markers.
   These do not change the overall DARTO theme. */
.calendar-event.org-pdc { 
	border-left-color: #ec038a; 
	border-bottom: 1px solid #00bbff;
    border-top: 1px solid #00bbff;
    border-right: 1px solid #00bbff;
}
.calendar-event.org-wdf { 
	border-left-color: #777;
	border-bottom: 1px solid #00bbff;
    border-top: 1px solid #00bbff;
    border-right: 1px solid #00bbff;

}
.calendar-event.org-idc { 
	border-left-color: #ec038a;
	border-bottom: 1px solid #00bbff;
    border-top: 1px solid #00bbff;
    border-right: 1px solid #00bbff;

}
.calendar-event.org-darto { 
	border-left-color: #ec038a; 
	border-bottom: 1px solid #00bbff;
    border-top: 1px solid #00bbff;
    border-right: 1px solid #00bbff;
}
.calendar-event.org-darts-club { 
	border-left-color: #ec038a; 
	border-bottom: 1px solid #00bbff;
    border-top: 1px solid #00bbff;
    border-right: 1px solid #00bbff;}

/* ------------------------- SHARED -------------------------- */
.empty {
  text-align: center;
  padding: 60px;
  color: #777;
}

.loading {
  text-align: center;
  padding: 40px;
  color: #777;
  border: 1px solid #292929;
  background: #111;
  border-radius: 7px;
}

.hidden { display: none !important; }

/* ---------------- ORGANIZATIONS / COUNTRIES --------------- */
.info-section {
  border-top: 1px solid #222;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.browse-card {
      border: 1px solid #292929;
    background: var(--card-background);
    padding: 9px 15px;
    border-radius: 5px;
	    text-align: left;
}

.browse-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
	color: #00bbff;
}

.browse-card span {
  font-size: 11px;
  color: #888;
}

/* ----------------------- MY CALENDAR ----------------------- */
.my-calendar {
  border-top: 1px solid #222;
  padding-bottom: 80px;
}

.my-calendar p {
  color: #999;
  max-width: 650px;
  line-height: 1.6;
}

.primary {
  background: #ec038a;
  color: #fff;
  border: 0;
  padding: 13px 18px;
  border-radius: 5px;
  font-weight: bold;
}

/* -------------------------- MODAL -------------------------- */
.modal {
  position: fixed;
  inset: 0;
  background: #000b;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  width: min(620px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 28px;
  position: relative;
}

.close {
  position: absolute;
  right: 16px;
  top: 12px;
  background: none;
  border: 0;
  color: #aaa;
  font-size: 28px;
}

.modal h2 {
  font-size: 28px;
  margin: 8px 0;
}

.detail-row {
  padding: 13px 0;
  border-bottom: 1px solid #292929;
  color: #aaa;
  font-size: 12px;
}

.detail-row strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.modal-actions a,
.modal-actions button {
  background: #ec038a;
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 11px 14px;
  font-weight: bold;
}

.modal-actions .secondary { background: #ec038a; }



/* =========================================================
   CALENDAR MODAL
   Prefixed with cal- to avoid conflicts
   ========================================================= */

.cal-modal {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 12px !important;
    box-sizing: border-box !important;

    background: rgba(0, 0, 0, 0.72) !important;

    z-index: 2147483000 !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    visibility: visible !important;
    opacity: 1 !important;
}

.cal-modal.cal-hidden {
    display: none !important;
}

.cal-modal-card {
    position: relative !important;

    width: min(900px, 100%) !important;
    max-width: 900px !important;

    max-height: calc(100vh - 48px) !important;

    margin: auto !important;
    padding: 12px !important;

    box-sizing: border-box !important;

    background: #000f50 !important;
    color: #fff !important;
	

    border-radius: 16px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    z-index: 2147483001 !important;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45) !important;
	   
}

.cal-close {
    position: absolute !important;

    top: 12px !important;
    right: 14px !important;

    width: 40px !important;
    height: 40px !important;

    border: 0 !important;
    border-radius: 50% !important;

    background: #fff !important;
    color: #111 !important;

    font-size: 28px !important;
    line-height: 1 !important;

    cursor: pointer !important;

    z-index: 2147483002 !important;
}

body.cal-modal-open {
    overflow: hidden !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .event-row {
    grid-template-columns: 72px 125px minmax(180px, 1fr) minmax(120px, .8fr) 68px;
  }

  .event-row-prize { display: none; }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand span { display: none; }

  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    margin: 0;
    padding-bottom: 2px;
  }

  .login-btn { margin-left: auto; }

  .hero {
    padding: 3px 20px 35px;
    min-height: 0;
  }

  .hero h1 { 
	font-size: 39px; 
	text-align-last: left;
	}
  .hero-dart { display: none; }

  .finder { padding: 18px; }

  .controls select,
  .controls button {
    flex: 1 1 140px;
  }

  .calendar-area,
  .info-section,
  .my-calendar {
    padding-left: 5px;
    padding-right: 5px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .view-note { text-align: left; }

  /* List becomes a clean mobile information row/card. */
  .event-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
    min-height: 0;
  }

  .event-row-date strong { font-size: 21px; }

  .event-row-org {
    grid-column: 2 / -1;
    grid-row: 1;
  }

  .event-row-main {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .event-row-format {
    grid-column: 2;
    grid-row: 3;
  }

  .event-row-prize { display: none; }

  .event-row-action {
    grid-column: 3;
    grid-row: 3;
  }

  .event-view-btn { 
	  padding: 6px 14px; 
	}

  /* Real calendar remains a real Sunday-Saturday grid.
     It scrolls horizontally rather than crushing event text. */
  .month-grid {
    overflow-x: auto;
  }

  .calendar-month-title,
  .calendar-weekdays,
  .calendar-days {
    min-width: 680px;
  }

  .calendar-day {
    min-height: 105px;
    padding: 6px;
  }

  .calendar-event strong { font-size: 8px; }
  .calendar-event span { font-size: 7px; }

  .info-section { display: block; }

  .info-section > div:first-child { margin-bottom: 20px; }

  .browse-grid { grid-template-columns: 1fr 1fr; }
}

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

  .event-row {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .event-row-location { font-size: 12px; }

  .event-row-meta > span {
    font-size: 10px;
        padding: 3px 12px;
  }
	
}


/* ---------------- LIST PAGINATION ---------------- */
.list-controls {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #292929;
  background: #111;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.list-controls-left,
.list-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.list-controls label {
  color: #777;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
}

.list-controls select,
.list-pagination button {
  min-height: 34px;
  padding: 7px 10px;
  background: #191919;
  color: #ddd;
  border: 1px solid #383838;
  border-radius: 5px;
  font-size: 10px;
  font-weight: bold;
}

.list-pagination button:hover:not(:disabled) {
  background: #ec038a;
  border-color: #ec038a;
  color: #fff;
}

.list-pagination button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.list-range,
.list-page {
  color: #777;
  font-size: 10px;
}

/* ---------------- MONTH NAVIGATION ---------------- */
.calendar-month-nav {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.calendar-month-nav strong {
  text-align: center;
}

.calendar-nav-btn {
  min-height: 32px;
  padding: 6px 10px;
  background: #191919;
  color: #bbb;
  border: 1px solid #383838;
  border-radius: 5px;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: .5px;
	width: fit-content;
    min-width: 80px;
}

.calendar-nav-btn:hover:not(:disabled) {
  background: #ec038a;
  border-color: #ec038a;
  color: #fff;
}

.calendar-nav-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .list-controls {
    align-items: stretch;
  }

  .list-controls-left,
  .list-pagination {
    width: 100%;
    justify-content: space-between;
  }

  .calendar-month-nav {
    grid-template-columns: 1fr 1fr;
  }

  .calendar-month-nav strong {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .calendar-month-nav .calendar-nav-btn:first-child {
    grid-column: 1;
    grid-row: 2;
  }

  .calendar-month-nav .calendar-nav-btn:last-child {
    grid-column: 2;
    grid-row: 2;
  }
}

/* =========================================================
   DARTO CALENDAR — TOURNAMENT FORMAT DETAILS
   Prefixed with "calendar-" to avoid global CSS conflicts.
   ========================================================= */

.calendar-modal-section {
  margin-top: 26px;
}

.calendar-modal-section > h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Individual format */
.calendar-format-item {
  position: relative;
  padding: 0 0 24px;
  margin-bottom: 24px;
}

/* Divider between formats */
.calendar-format-item:not(:last-child) {
  border-bottom: 1px solid #333;
}

/* Format header */
.calendar-format-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.calendar-format-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 24px;
  padding: 0 15px;
  background: #00bbff;
  color: #fff;
  border-radius: 50px;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
}

.calendar-format-title {
  color: #fff;
  font-size: 17px;
  font-weight: bold;
}

/* Format information */
.calendar-format-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #292929;
  border: 1px solid #292929;
  border-radius: 6px;
  overflow: hidden;
}

.calendar-format-detail {
  background: var(--background-color);
  padding: 11px 12px;
}

.calendar-format-label {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-to-blue);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
}

.calendar-format-detail strong {
  display: block;
  color: #ddd;
  font-size: 12px;
  line-height: 1.35;
}

/* Entry fee */
.calendar-fee-box,
.calendar-prize-box {
  margin-top: 12px;
  padding: 14px;
  background: #151515;
  border: 1px solid #292929;
  border-radius: 6px;
}

.calendar-box-heading {
      margin-bottom: 9px;
    color: var(--accent-pink);
    font-size: 12px;
    font-weight: 900;
  letter-spacing: 1.2px;
}

.calendar-fee-details {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.calendar-fee-details div {
  min-width: 90px;
}

.calendar-fee-details span,
.calendar-prize-pool span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-to-blue);
    font-size: 10px;
  letter-spacing: .8px;
}

.calendar-fee-details strong,
.calendar-prize-pool strong {
  color: #fff;
  font-size: 14px;
}

/* Prize */
.calendar-prize-pool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 11px;
  margin-bottom: 10px;
  border-bottom: 1px solid #292929;
}

.calendar-prize-list {
  display: grid;
  gap: 0;
}

/* Individual prize row */
.calendar-prize-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  padding: 8px 0;
  border-bottom: 1px solid #222;
}

.calendar-prize-item:last-child {
  border-bottom: 0;
}

.calendar-prize-position {
  color: #aaa;
  font-size: 11px;
}

.calendar-prize-amount {
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  text-align: right;
}

/* Format description */
.calendar-format-description {
  margin-top: 12px;
  padding: 11px 12px;
  background: #101010;
  border-left: 3px solid #ec038a;
  color: #999;
  font-size: 11px;
  line-height: 1.55;
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 600px) {

  .calendar-format-details {
    grid-template-columns: 1fr;
  }

  .calendar-format-header {
    align-items: flex-start;
  }

  .calendar-format-title {
    font-size: 15px;
  }

  .calendar-fee-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .calendar-prize-pool {
    align-items: flex-start;
    gap: 10px;
  }

}

/* =========================================================
   DARTO CALENDAR — LOCAL NAVIGATION
   Navigation only; no standalone header.
   ========================================================= */

.calendar-local-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 22px;
}

.calendar-local-nav nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #252525;
  color: #888;
  font-size: 12px;
  font-weight: bold;
}

.calendar-local-nav nav a {
  color: #ec038a;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s ease;
}

.calendar-local-nav nav a:hover,
.calendar-local-nav nav a.active {
  color: #00bbff;
}

@media (max-width: 760px) {
  .calendar-local-nav {
    padding: 0 18px 18px;
  }

  .calendar-local-nav nav {
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
  }
}


/* =========================================================
   DARTO CALENDAR MODAL — PREMIUM SCROLL DESIGN
   ========================================================= */

.cal-modal {
    position: fixed !important;
    inset: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 12px !important;
    box-sizing: border-box !important;

    background: rgba(0, 5, 15, 0.78) !important;

    /* Background blur */
    backdrop-filter: blur(7px) !important;
    -webkit-backdrop-filter: blur(7px) !important;

    z-index: 2147483000 !important;

    overflow: hidden !important;
}

.cal-hidden {
    display: none !important;
}


/* =========================================================
   MODAL CARD
   ========================================================= */

.cal-modal-card {
    position: relative !important;

    width: min(900px, 94vw) !important;
    max-height: 88vh !important;

    box-sizing: border-box !important;

    background:
        linear-gradient(
            145deg,
            rgba(8, 24, 55, 0.97),
            rgba(3, 12, 30, 0.98)
        ) !important;

    border: 1px solid rgba(0, 170, 255, 0.45) !important;

    border-radius: 6px !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.65),
        0 0 35px rgba(0, 150, 255, 0.12) !important;

    scroll-behavior: smooth !important;

    scrollbar-width: thin;
    scrollbar-color: rgba(0, 174, 255, 0.75) transparent;
}


/* =========================================================
   CHROME / EDGE / SAFARI SCROLLBAR
   ========================================================= */

.cal-modal-card::-webkit-scrollbar {
    width: 7px;
}

.cal-modal-card::-webkit-scrollbar-track {
    background: transparent;
}

.cal-modal-card::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #00c6ff,
        #087cff
    );

    border-radius: 20px;

    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        0 0 8px rgba(0, 174, 255, 0.65);
}

.cal-modal-card::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #28d7ff,
        #1590ff
    );

    box-shadow:
        0 0 14px rgba(0, 174, 255, 0.9);
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.cal-close {
    position: sticky !important;

    top: 3px !important;
    float: right !important;

    margin-right: 14px !important;

    width: 40px !important;
    height: 40px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;

/*    border: 1px solid rgba(255,255,255,0.25) !important;*/

    background: rgba(0,0,0,0.35) !important;
    color: #fff !important;

    font-size: 36px !important;

    cursor: pointer !important;

    z-index: 10 !important;

    backdrop-filter: blur(6px);
}

.cal-close:hover {
    background: rgba(0, 174, 255, 0.25) !important;

    border-color: rgba(0, 190, 255, 0.8) !important;

    box-shadow:
        0 0 15px rgba(0, 174, 255, 0.45);
}


/* =========================================================
   BODY SCROLL LOCK
   ========================================================= */

body.cal-modal-open {
    overflow: hidden !important;
}


/* Prize row */
.calendar-prize-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  /* Space between "1st" and "₹8,000" */
  gap: 20px;

  padding: 9px 12px;
  border-bottom: 1px solid #292929;
}

/* Position */
.calendar-prize-row > span {
  color: #aaa;
  font-size: 11px;
  min-width: 45px;
}

/* Prize amount */
.calendar-prize-row > strong {
  color: #fff;
  font-size: 12px;

  /* Space inside amount around ₹ */
  letter-spacing: 0.3px;

  /* Optional left/right breathing space */
  padding-left: 8px;
}

/* =========================================================
   CALENDAR ENTRY FEE DETAILS
   ========================================================= */

.calendar-fee-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 1px;

  background: #292929;
  border: 1px solid #292929;
  border-radius: 6px;
  overflow: hidden;
}

.calendar-fee-item {
  background: #151515;
  padding: 12px 14px;

  min-width: 0;
}

.calendar-fee-label {
  display: block;

  margin-bottom: 6px;

  color: #666;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.calendar-fee-value {
  display: block;

  color: #fff;
  font-size: 12px;
  font-weight: bold;

  /* gives breathing room around ₹ amount */
  padding-left: 4px;

  line-height: 1.35;
}

/* Space specifically between ₹ and amount */
.calendar-fee-value {
  word-spacing: 2px;
}

/* Mobile */
@media (max-width: 600px) {

  .calendar-fee-details {
    grid-template-columns: 1fr;
  }

  .calendar-fee-item {
    padding: 11px 12px;
  }

}

.calendar-location-icon {
  color: #00bbff;
  font-size: 11px;
  margin-right: 6px;
  flex-shrink: 0;
}

.event-row-location {
  display: flex;
  align-items: center;
  gap: 0;
  color: #aaa;
  font-size: 11px;
  line-height: 1.35;
}

.event-org{
	font-size: 28px;
    font-weight: bold;
}

/* Organization name + badges stay on one line */
.calendar-org-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: nowrap;
}

.calendar-org-line strong {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-org-line .verified-badge,
.calendar-org-line .past-badge {
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
	    margin-left: 10px;
}

/* =========================================================
   CALENDAR MODAL — ORGANIZATION + BADGES
   ========================================================= */

.calendar-modal-org-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  min-width: 0;
  margin-bottom: 8px;
}

.calendar-modal-org {
  min-width: 0;

  color: var(--blue-to-blue);
    font-size: 21px;
  font-weight: bold;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-modal-org-line .verified-badge,
.calendar-modal-org-line .past-badge {
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
	margin-left: 12px;
}


/* =========================================================
   MOBILE MONTH VIEW — RESPONSIVE ONLY
   Desktop layout remains unchanged
   ========================================================= */

@media (max-width: 700px) {

  /* Remove the mobile forced horizontal width */
  .month-grid {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  .calendar-month-title,
  .calendar-weekdays,
  .calendar-days {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  /* Keep the real 7-column calendar */
  .calendar-weekdays,
  .calendar-days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  /* Smaller weekday heading */
  .calendar-weekday {
    min-width: 0;
    padding: 8px 2px;
    font-size: 8px;
    letter-spacing: 0;
  }

  /* Smaller day cells */
  .calendar-day {
    min-width: 0;
    width: 100%;
    min-height: 90px;
    padding: 5px;
  }

  .calendar-day-number {
    font-size: 10px;
    min-height: 18px;
  }

  /* Events must stay inside their cell */
  .calendar-event {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .calendar-event strong,
  .calendar-event span {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calendar-event strong {
    font-size: 8px;
  }

  .calendar-event span {
    font-size: 9px;
	  color: var(--accent-aqua);
  }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 480px) {

  .calendar-weekday {
    padding: 7px 1px;
    font-size: 7px;
  }

  .calendar-day {
    min-height: 72px;
    padding: 4px 2px;
  }

  .calendar-day-number {
    font-size: 9px;
  }

  .calendar-event {
    padding: 3px 2px;
  }

  .calendar-event strong {
    font-size: 7px;
  }

  .calendar-event span {
/*    display: none;*/
	  display: contents;
  }
	
	.calendar-month-nav strong {
		text-align: left;
	}
}

/* =========================================================
   MOBILE MONTH HEADER
   Desktop remains completely unchanged
   ========================================================= */

@media (max-width: 700px) {

  .calendar-month-title {
    position: relative;
    display: block;
    min-height: 86px;
    padding: 10px 10px 9px;
  }

  .calendar-month-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    gap: 6px;
    padding-top: 24px;
  }

  .calendar-month-nav .calendar-nav-btn:first-child {
    justify-self: start;
  }

  .calendar-month-nav strong {
    justify-self: center;
    white-space: nowrap;
    font-size: 16px;
  }

  .calendar-month-nav .calendar-nav-btn:last-child {
    justify-self: end;
	  grid-column: 3;
        grid-row: 2;
  }

  /* Event count moves above the NEXT button */
  .calendar-month-title > span {
    position: absolute;
    right: 10px;
    top: 10px;
    margin: 0;
    font-size: 8px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
  }

  .calendar-nav-btn {
    padding: 7px 8px;
    font-size: 8px;
    white-space: nowrap;
  }
}


@media (max-width: 480px) {

  .calendar-month-title {
    min-height: 82px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .calendar-month-nav {
    gap: 4px;
    padding-top: 23px;
  }

  .calendar-month-nav strong {
    font-size: 14px;
	  justify-self: left;
        margin-bottom: 10px;
    
  }

  .calendar-month-title > span {
    right: 9px;
    top: 9px;
    font-size: 12px;
	color: var(--accent-aqua);
  }

  .calendar-nav-btn {
    padding: 6px 7px;
    font-size: 9px;
  }
}

/* =========================================================
   EVENT DATE HIGHLIGHT
   ========================================================= */

.calendar-day.has-events {
  background: #101419;
}

.calendar-day.has-events .calendar-day-number {
  color: #00bbff;
}

.calendar-day.single-event {
  box-shadow: inset 0 0 0 1px rgba(0, 187, 255, .22);
}

.calendar-day.multiple-events {
  box-shadow: inset 0 0 0 1px rgba(236, 3, 138, .40);
}


/* =========================================================
   SINGLE EVENT PANEL
   ========================================================= */

.calendar-event-single {
  min-height: 58px;
  padding: 9px 10px;
  border-left: 3px solid #00bbff;
  background: #151515;
}

.calendar-event-single strong {
  display: block;
  color: #fff;
  font-size: 10px;
  line-height: 1.3;
  margin-bottom: 5px;
}

.calendar-event-single span {
  display: block;
  color: #888;
  font-size: 8px;
  line-height: 1.3;
}


/* =========================================================
   MULTIPLE EVENT PANEL
   ========================================================= */

.calendar-event-multiple {
  min-height: 58px;
  padding: 9px 10px;
  border-left: 3px solid #ec038a;
  background: linear-gradient(
    135deg,
    #171317,
    #141414
  );
}

.calendar-event-multiple > strong {
  display: block;
  color: #fff;
  font-size: 10px;
  letter-spacing: .7px;
  margin-bottom: 7px;
}

.calendar-event-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
}

.calendar-event-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #aaa;
  font-size: 7px;
  line-height: 1;
  white-space: nowrap;
}

.calendar-event-dot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00bbff;
  flex: 0 0 auto;
}


/* =========================================================
   MULTIPLE EVENT SELECTOR
   ========================================================= */

.calendar-event-selector-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, .72);
  opacity: 0;

  transition: opacity .16s ease;
}

.calendar-event-selector-overlay.is-open {
  opacity: 1;
}

.calendar-event-selector {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));

  display: flex;
  flex-direction: column;

  background: #101010;
  border: 1px solid #333;
  border-radius: 8px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);

  overflow: hidden;
  transform: translateY(8px);
  transition: transform .16s ease;
}

.calendar-event-selector-overlay.is-open
.calendar-event-selector {
  transform: translateY(0);
}


/* Header */

.calendar-event-selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 18px;

  background: #151515;
  border-bottom: 1px solid #292929;
}

.calendar-selector-label {
  display: block;
  color: #00bbff;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: 1.2px;
  margin-bottom: 5px;
}

.calendar-event-selector-head h3 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}

.calendar-selector-close {
  width: 30px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #333;
  background: #1a1a1a;
  color: #aaa;

  border-radius: 4px;
  font-size: 20px;
  cursor: pointer;
}


/* Event list */

.calendar-selector-list {
  padding: 12px;
  overflow-y: auto;
}

.calendar-selector-event {
  display: block;
  width: 100%;

  margin: 0 0 8px;
  padding: 13px 14px;

  text-align: left;

  background: #151515;
  border: 1px solid #292929;
  border-left: 3px solid #ec038a;

  border-radius: 5px;
  cursor: pointer;

  transition:
    background .15s ease,
    border-color .15s ease,
    transform .15s ease;
}

.calendar-selector-event:last-child {
  margin-bottom: 0;
}

.calendar-selector-event:hover {
  background: #1b1b1b;
  border-color: #00bbff;
  transform: translateY(-1px);
}

.calendar-selector-event strong {
  display: block;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.calendar-selector-event span {
  display: block;
  color: #aaa;
  font-size: 9px;
  font-weight: bold;
  margin-bottom: 5px;
}

.calendar-selector-event small {
  display: flex;
  align-items: center;
  gap: 4px;

  color: #777;
  font-size: 8px;
}

.calendar-selector-event small i {
  color: #00bbff;
  font-size: 9px;
}


/* Footer */

.calendar-selector-footer {
  padding: 12px 16px;

  background: #111;
  border-top: 1px solid #292929;

  display: flex;
  justify-content: flex-end;
}

.calendar-selector-close-btn {
  border: 1px solid #333;
  background: transparent;
  color: #aaa;

  padding: 8px 12px;

  border-radius: 3px;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: .8px;

  cursor: pointer;
}

.calendar-selector-close-btn:hover {
  color: #fff;
  border-color: #00bbff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .calendar-event-single,
  .calendar-event-multiple {
    min-height: 70px;
    padding: 8px;
  }

  .calendar-event-single strong,
  .calendar-event-multiple > strong {
    font-size: 8px;
  }

  .calendar-event-single span {
    font-size: 7px;
  }

  .calendar-event-dot {
    font-size: 6px;
  }

  .calendar-event-selector-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .calendar-event-selector {
    width: 100%;
    max-height: 82vh;

    border-radius: 10px 10px 0 0;
    border-bottom: 0;

    transform: translateY(20px);
  }

  .calendar-event-selector-head {
    padding: 14px 15px;
  }

  .calendar-event-selector-head h3 {
    font-size: 15px;
  }

  .calendar-selector-list {
    padding: 10px;
  }

  .calendar-selector-event {
    padding: 12px;
  }

  .calendar-selector-event strong {
    font-size: 11px;
  }

  .calendar-selector-event span {
    font-size: 8px;
  }
}


@media (max-width: 480px) {

  .calendar-event-selector {
    max-height: 86vh;
  }

  .calendar-event-multiple {
    min-height: 68px;
  }

  .calendar-event-preview {
    gap: 4px 6px;
  }

  .calendar-event-dot {
    font-size: 5.5px;
  }
}

/* =========================================================
   MONTH SUMMARY — RESPONSIVE VISIBILITY
   ========================================================= */

.calendar-month-title .calendar-month-meta {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  width: auto;
  max-width: 100%;
  min-width: 0;
  opacity: 1;
  visibility: visible;
  overflow: visible;
  position: static;
  z-index: 2;
}

.calendar-month-title .calendar-month-event-count,
.calendar-month-title .calendar-month-org-summary {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  white-space: nowrap;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .calendar-month-title {
    display: block !important;
    min-width: 0 !important;
    width: 100%;
    height: auto;
    min-height: 88px;
    overflow: visible !important;
    padding: 10px 10px 9px;
  }

  .calendar-month-title .calendar-month-nav {
    width: 100%;
  }

  .calendar-month-title .calendar-month-meta {
    width: 100%;
    margin: 8px 0 0;
    justify-content: flex-end;
    align-items: center;
    gap: 4px 7px;
    line-height: 1.2;
  }

  .calendar-month-title .calendar-month-event-count {
    font-size: 8px;
  }

  .calendar-month-title .calendar-month-org-summary {
    font-size: 7px;
  }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 480px) {

  .calendar-month-title {
    min-height: 84px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .calendar-month-title .calendar-month-meta {
    margin-top: 7px;
    gap: 3px 5px;
  }

  .calendar-month-title .calendar-month-event-count {
    font-size: 7px;
  }

  .calendar-month-title .calendar-month-org-summary {
    font-size: 6px;
  }
}

/* =========================================================
   MONTH HEADER + WEEKDAY ROW
   Keep summary above the weekday row
   ========================================================= */

.calendar-month-title {
  position: relative;
  display: block;
  min-height: 92px;
  padding: 12px 16px 10px;
  overflow: visible;
}

.calendar-month-title .calendar-month-nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.calendar-month-title .calendar-month-nav .calendar-nav-btn:first-child {
  justify-self: start;
}

.calendar-month-title .calendar-month-nav strong {
  justify-self: center;
  white-space: nowrap;
}

.calendar-month-title .calendar-month-nav .calendar-nav-btn:last-child {
  justify-self: end;
}

/* Event summary sits on its own line */
.calendar-month-title .calendar-month-meta {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 9px;
  min-height: 16px;

  opacity: 1 !important;
  visibility: visible !important;
  position: static;
}

.calendar-month-title .calendar-month-event-count,
.calendar-month-title .calendar-month-org-summary {
  display: inline-block !important;
  white-space: nowrap;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Weekday row must always start BELOW the month header */
.calendar-weekdays {
  position: relative;
  z-index: 2;
  clear: both;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .calendar-month-title {
    min-height: 96px;
    padding: 10px 8px 9px;
  }

  .calendar-month-title .calendar-month-nav {
    grid-template-columns: auto 1fr auto;
    gap: 5px;
  }

  .calendar-month-title .calendar-month-nav strong {
    font-size: 14px;
  }

  .calendar-month-title .calendar-month-meta {
    margin-top: 9px;
    justify-content: space-between;
    gap: 5px;
  }

  .calendar-month-title .calendar-month-event-count {
    font-size: 7px;
  }

  .calendar-month-title .calendar-month-org-summary {
    font-size: 6.5px;
  }

  .calendar-weekdays {
    margin-top: 0;
  }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 480px) {

  .calendar-month-title {
    min-height: 94px;
    padding: 9px 6px 8px;
  }

  .calendar-month-title .calendar-month-nav strong {
    font-size: 13px;
  }

  .calendar-month-title .calendar-month-meta {
    margin-top: 8px;
    gap: 4px;
  }

  .calendar-month-title .calendar-month-event-count {
    font-size: 12px;
	color: var(--blue-to-blue);
   
  }

  .calendar-month-title .calendar-month-org-summary {
    font-size: 10px;
	  
  }
}

/* =========================================================
   DAY-BASED WEEKDAY LABEL
   Weekday stays attached to its actual date box
   ========================================================= */

.calendar-day-number {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 20px;
  color: #777;
  font-size: 11px;
  font-weight: bold;
}

.calendar-day-weekday {
  margin-top: 1px;
  margin-bottom: 6px;
  text-align: right;

  color: #555;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: .6px;
  line-height: 1;
}

/* Event dates */
.calendar-day.has-events .calendar-day-weekday {
  color: #777;
}

/* Today */
.calendar-day.today .calendar-day-weekday {
  color: #ec038a;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .calendar-day-weekday {
    margin-top: 1px;
    margin-bottom: 5px;
    font-size: 5.5px;
    letter-spacing: .4px;
  }

  .calendar-day-number {
    min-height: 17px;
    font-size: 9px;
  }
}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 480px) {

  .calendar-day-weekday {
    font-size: 9px;
    margin-bottom: 4px;
	  color: #777;
  }

  .calendar-day-number {
    font-size: 12px;
  }
}

/* =========================================================
   MONTH VIEW / EVENT ENHANCEMENT
   Visual styling only
   ========================================================= */


/* ---------------------------------------------------------
   EVENT DATE HIGHLIGHT
   --------------------------------------------------------- */

.calendar-day.calendar-has-events {
  position: relative;
  z-index: 2;
}

.calendar-day.calendar-has-events .calendar-day-number {
  color: #00bbff;
}

.calendar-day.calendar-single-event {
  box-shadow:
    inset 0 0 0 1px rgba(0, 187, 255, .26);
}

.calendar-day.calendar-multiple-events {
  box-shadow:
    inset 0 0 0 1px rgba(236, 3, 138, .45);
}


/* ---------------------------------------------------------
   EXPANDED EVENT DATE CELL
   Actual calendar cell spans 3 columns
   --------------------------------------------------------- */

.calendar-day.calendar-event-panel-cell {
  grid-column: span 3;

  min-width: 0;
  min-height: 145px;
  height: 145px;

  box-sizing: border-box;
  overflow: hidden;

  z-index: 10;
}

.calendar-day.calendar-event-panel-wide {
  z-index: 20;
}


/* ---------------------------------------------------------
   EVENT AREA INSIDE EXPANDED DATE
   --------------------------------------------------------- */

.calendar-day.calendar-event-panel-cell
.calendar-cell-events {
  position: static;

  width: 100%;
  min-width: 0;

  margin-top: 6px;

  z-index: 2;
}

.calendar-day.calendar-event-panel-cell
.calendar-event {
  position: relative;

  width: 100%;
  min-width: 0;
  min-height: 54px;

  box-sizing: border-box;

  text-align: left;
}


/* ---------------------------------------------------------
   SINGLE EVENT
   --------------------------------------------------------- */

.calendar-event-single-panel {
  padding: 10px 11px;

  background: #151515;
  border-left: 3px solid #00bbff;
  border-radius: 4px;
}

.calendar-event-single-panel strong {
  display: block;

  color: #fff;
  font-size: 10px;
  line-height: 1.35;

  margin-bottom: 5px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event-single-panel span {
  display: block;

  color: #999;
  font-size: 8px;
  line-height: 1.3;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ---------------------------------------------------------
   MULTIPLE EVENTS
   --------------------------------------------------------- */

.calendar-event-multiple-panel {
  padding: 9px 11px;

  background: #171317;
  border-left: 3px solid #ec038a;
  border-radius: 4px;
	border-bottom: 1px solid #00bbff;
    border-top: 1px solid #00bbff;
    border-right: 1px solid #00bbff;
}

.calendar-event-multiple-panel > strong {
  display: block;

  color: #fff;
  font-size: 12px;
  letter-spacing: .7px;

  margin-bottom: 7px;
}


/* Event organization preview */

.calendar-event-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.calendar-event-preview-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;

  color: #aaa;

  font-size: 7px;
  line-height: 1.2;

  white-space: nowrap;
}

.calendar-event-preview-item i {
  width: 5px;
  height: 5px;

  flex: 0 0 auto;

  border-radius: 50%;
  background: #00bbff;
}

.calendar-event-multiple-panel small {
  display: block;

  margin-top: 6px;

  color: #ec038a;

  font-size: 7px;
  font-weight: bold;
  letter-spacing: .5px;
}


/* =========================================================
   MULTIPLE EVENT SELECTOR
   ========================================================= */

.calendar-event-selector-overlay {
  position: fixed;
  inset: 0;

  z-index: 9998;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, .72);

  opacity: 0;

  transition: opacity .16s ease;
}

.calendar-event-selector-overlay.is-open {
  opacity: 1;
}

.calendar-event-selector {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));

  display: flex;
  flex-direction: column;

  background: #101010;

  border: 1px solid #333;
  border-radius: 8px;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, .55);

  overflow: hidden;

  transform: translateY(8px);
  transition: transform .16s ease;
}

.calendar-event-selector-overlay.is-open
.calendar-event-selector {
  transform: translateY(0);
}


/* ---------------------------------------------------------
   Selector header
   --------------------------------------------------------- */

.calendar-event-selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 18px;

  background: #151515;
  border-bottom: 1px solid #292929;
}

.calendar-selector-label {
  display: block;

  color: #00bbff;

  font-size: 8px;
  font-weight: bold;
  letter-spacing: 1.2px;

  margin-bottom: 5px;
}

.calendar-event-selector-head h3 {
  margin: 0;

  color: #fff;

  font-size: 17px;
  line-height: 1.2;
}

.calendar-selector-close {
  width: 41px;
  height: 41px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #333;
  background: #1a1a1a;
color: var(--blue-to-blue);
    border-radius: 50px;
    font-size: 36px;
  cursor: pointer;
}


/* ---------------------------------------------------------
   Selector event list
   --------------------------------------------------------- */

.calendar-selector-list {
  padding: 12px;

  overflow-y: auto;
}

.calendar-selector-event {
  display: block;

  width: 100%;

  margin: 0 0 8px;
  padding: 13px 14px;

  text-align: left;

  background: #151515;

  border: 1px solid #292929;
  border-left: 3px solid #ec038a;

  border-radius: 5px;

  cursor: pointer;

  transition:
    background .15s ease,
    border-color .15s ease,
    transform .15s ease;
}

.calendar-selector-event:last-child {
  margin-bottom: 0;
}

.calendar-selector-event:hover {
  background: #1b1b1b;
  border-color: #00bbff;

  transform: translateY(-1px);
}

.calendar-selector-event strong {
  display: block;

  color: #fff;

  font-size: 12px;
  line-height: 1.35;

  margin-bottom: 4px;
}

.calendar-selector-event span {
  display: block;

  color: var(--blue-to-blue);
    font-size: 12px;
  font-weight: bold;

  margin-bottom: 5px;
}

.calendar-selector-event small {
  display: flex;
  align-items: center;
  gap: 4px;
color: var(--footer-text);
    font-size: 11px;
    font-weight: normal;
}

.calendar-selector-event small i {
  color: #00bbff;
  font-size: 9px;
}


/* ---------------------------------------------------------
   Selector footer
   --------------------------------------------------------- */

.calendar-selector-footer {
  display: flex;
  justify-content: flex-end;

  padding: 12px 16px;

  background: #111;
  border-top: 1px solid #292929;
}

.calendar-selector-close-btn {
  border: 3px solid var(--blue-to-blue);
    background: transparent;
  color: #fff;
    padding: 8px 16px;
    border-radius: 36px;
    font-size: 9px;
  font-weight: bold;
  letter-spacing: .8px;

  cursor: pointer;
}

.calendar-selector-close-btn:hover {
  color: #fff;
  border-color: #ec038a;
}


/* =========================================================
   RESPONSIVE / MOBILE
   ========================================================= */

/* =========================================================
   RESPONSIVE / MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .calendar-day.calendar-event-panel-cell {
    min-height: 96px;
    height: 96px;
  }

  .calendar-event-single-panel,
  .calendar-event-multiple-panel {
    min-height: 60px;
    padding: 8px;
  }

  .calendar-event-single-panel strong,
  .calendar-event-multiple-panel > strong {
    font-size: 8px;
  }

  .calendar-event-single-panel span {
    font-size: 7px;
  }

  .calendar-event-preview {
    gap: 3px 7px;
  }

  .calendar-event-preview-item {
    font-size: 6px;
  }


  /* =========================================
     MULTIPLE EVENT SELECTOR
     CENTERED ON MOBILE
     ========================================= */

  .calendar-event-selector-overlay {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .calendar-event-selector {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);

    border-radius: 8px;
    border-bottom: 1px solid #333;

    display: flex;
    flex-direction: column;
  }

  .calendar-event-selector-head {
    flex: 0 0 auto;
    padding: 14px 15px;
  }

  .calendar-event-selector-head h3 {
    font-size: 15px;
  }

  /* Only event list scrolls */
  .calendar-selector-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px;

    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .calendar-selector-event {
    padding: 12px;
  }

  .calendar-selector-event strong {
    font-size: 12px;
  }

  .calendar-selector-event span {
    font-size: 8px;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

  .calendar-day.calendar-event-panel-cell {
    min-height: 88px;
    height: 100px;
  }

  .calendar-event-preview-item {
    font-size: 5.5px;
  }

  .calendar-event-selector-overlay {
    padding: 12px;
  }

  .calendar-event-selector {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
}