* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-gradient: linear-gradient(135deg, #2d3436, #000000, #1f1c2c, #928DAB);
  --text-color: #ffffff;
  --container-bg: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(255, 255, 255, 0.2);
  --option-bg: #2d3436;
  --button-bg: #8c7ae6;
  --button-hover-bg: #a29bfe;
  --overlay-bg: rgba(0, 0, 0, 0.8);
  --neon: #8c7ae6;
  --table-th-color: #a29bfe;
  --table-td-border: rgba(255, 255, 255, 0.2);
  --table-past-bg: rgba(255, 255, 255, 0.1);
  --table-past-color: rgba(255, 255, 255, 0.5);
  --payday-bg: #8c7ae6;
  --payday-border: #a29bfe;
  --holiday-bg: rgba(255, 255, 255, 0.2);
  --holiday-color: rgba(255, 255, 255, 0.5);
  --calendar-bg: rgba(255, 255, 255, 0.1);
  --month-card-bg: rgba(255, 255, 255, 0.05);
  --select-bg: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] {
  --bg-gradient: linear-gradient(135deg, #ffffff, #e0e0e0, #f5f5f5, #ffffff);
  --text-color: #000000;
  --container-bg: rgba(0, 0, 0, 0.05);
  --input-bg: rgba(0, 0, 0, 0.1);
  --option-bg: #ffffff;
  --button-bg: #3498db;
  --button-hover-bg: #5dade2;
  --overlay-bg: rgba(255, 255, 255, 0.8);
  --table-th-color: #2c3e50;
  --table-td-border: rgba(0, 0, 0, 0.2);
  --table-past-bg: rgba(0, 0, 0, 0.1);
  --table-past-color: rgba(0, 0, 0, 0.5);
  --payday-bg: #3498db;
  --payday-border: #5dade2;
  --holiday-bg: rgba(0, 0, 0, 0.05);
  --holiday-color: rgba(0, 0, 0, 0.5);
  --calendar-bg: rgba(0, 0, 0, 0.1);
  --month-card-bg: rgba(0, 0, 0, 0.05);
  --select-bg: rgba(0, 0, 0, 0.2);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--text-color);
  overflow-x: hidden;
}
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
main, section {
  width: 100%;
}
.main-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  position: relative;
}
.container {
  background: var(--container-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.7);
  position: relative;
  backdrop-filter: blur(20px);
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.container h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.schedule-selector {
  max-width: 18rem;
  margin-bottom: 1rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.inputs {
  margin-bottom: 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-group label {
  text-align: center;
}
.input-group {
  max-width: 18rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Inputs on contact page */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  background: var(--input-bg);
  color: var(--text-color);
}
.contact-form textarea {
  resize: vertical;
  min-height: 6rem;
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
select, input[type="date"], input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  background: var(--input-bg);
  color: var(--text-color);
}

input[type="date"] {
  text-align: center;
  padding-right: 2.5rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) drop-shadow(0 0 4px var(--neon));
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

input[type="date"]:hover::-webkit-calendar-picker-indicator,
input[type="date"]:focus::-webkit-calendar-picker-indicator {
  opacity: 1;
}

#schedule {
  text-align: center;
  text-align-last: center;
}
select option {
  background: var(--option-bg);
  color: var(--text-color);
}
.countdown {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 2.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,255,255,0.6);
  position: relative;
  min-height: 4rem;
  overflow: hidden;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 4rem;
  min-width: 4rem;
}

.countdown-value {
  line-height: 1;
}

.countdown-item small {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.countdown-value.pop {
  animation: countdown-pop 0.6s ease;
}

@keyframes countdown-pop {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.countdown.is-payday {
  position: relative;
  font-size: 2.5rem;
  overflow: visible;
  min-height: 3.5rem;
}

.countdown.is-payday .countdown-item {
  display: none;
}

.countdown.is-payday .countdown-message {
  display: none;
}

.countdown-message {
  font-size: 1rem;
  margin-top: 0.5rem;
  width: 100%;
}

.countdown-message:empty {
  display: none;
}

.countdown.has-message .countdown-item {
  display: none;
}

.countdown.has-message .countdown-message {
  display: block;
}

.countdown.is-payday::after {
  content: 'Payday!';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.calendar-share-group {
  display: flex;
  align-items: center;
}
.button {
  padding: 0.75rem 1.5rem;
  background: var(--button-bg);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.button:hover {
  background: var(--button-hover-bg);
  transform: scale(1.05);
}

.add-calendar:hover {
  box-shadow: 0 0 10px var(--neon);
}

/* Redesigned calendar buttons */
.btn-add,
.btn-show {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 9999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-add {
  color: #ffffff;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  border: none;
}

/* Contact form submit button */
.btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-color);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-left: auto;
  margin-right: auto;
}
.btn-send:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}
.btn-send:active {
  transform: scale(0.98);
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.btn-share .icon {
  width: 0.75rem;
  height: 0.75rem;
}


.btn-share:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}


.btn-share:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px rgba(0, 0, 0, 0.4);
}

.share-fab {
  position: absolute;
  top: 0.25rem;
  right: 0.5rem;
  z-index: 1100;
}

@media (max-width: 480px) {
  .share-fab {
    top: 0.25rem;
    right: 0.25rem;
  }
}

.btn-add .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-add:hover {
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

.btn-add:active {
  transform: scale(1.05);
}

.btn-show {
  color: #a78bfa;
  background: transparent;
  border: 2px solid #a78bfa;
}

.btn-show .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-show:hover {
  box-shadow: inset 0 0 10px rgba(167, 139, 250, 0.5);
}

.btn-show:active {
  transform: scale(0.95);
}
.ad-container {
  margin-bottom: 1.5rem;
}
.fade-in-section {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  filter: blur(2px);
  transition: opacity 0.6s cubic-bezier(.23,1,.32,1),
              transform 0.6s cubic-bezier(.23,1,.32,1),
              filter 0.6s cubic-bezier(.23,1,.32,1);
  will-change: opacity, transform, filter;
}
.fade-in-section.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Calendar Overlay */
.calendar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  justify-content: center;
  align-items: center;
  z-index: 1200; /* ensure overlay sits above theme toggle */
}
.calendar-overlay.active {
  display: flex;
}
.calendar-print-container {
  display: flex;
  justify-content: center;
  width: 100%;
}
.calendar-container.fade-in {
  animation: overlayFade 0.6s cubic-bezier(.25,.8,.25,1) forwards;
}
.calendar-container {
  background: var(--container-bg);
  padding: 1rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  width: min(95vw, 450px);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-sizing: border-box;
}
.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
}
.home-link {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text-color);
  opacity: 0.8;
}
.home-link:hover {
  opacity: 1;
}
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
}
.calendar-table {
  width: 100%;
  border-collapse: collapse;
}
.calendar-table th, .calendar-table td {
  width: 14.28%;
  padding: 0.5rem;
  text-align: center;
}
.calendar-table th {
  color: var(--table-th-color);
}
.calendar-table td {
  color: var(--text-color);
  border: 1px solid var(--table-td-border);
}
.calendar-table td.past {
  background: var(--table-past-bg);
  color: var(--table-past-color);
}
.calendar-table td.payday {
  background: var(--payday-bg);
  color: #000;
  font-weight: bold;
  border: 2px solid var(--payday-border);
}
.calendar-table td.holiday {
  background: var(--holiday-bg);
  color: var(--holiday-color);
}
.calendar-month-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--text-color);
}

  @media (max-width: 480px) {
    .buttons {
      flex-direction: column;
      align-items: stretch;
    }
    .buttons .button,
    .buttons .btn-add,
    .buttons .btn-show {
      width: 100%;
    }
    .calendar-share-group {
      width: 100%;
    }
    .calendar-share-group .btn-add {
      flex: 1;
      font-size: 0.875rem;
      padding: 0.5rem 1rem;
    }
    .buttons .btn-show {
      font-size: 0.875rem;
      padding: 0.5rem 1rem;
    }
    #fullscreenToggle {
      top: 0.5rem;
      left: 0.5rem;
      width: 3rem;
      height: 3rem;
    }
    #fullscreenToggle .fullscreen-icon {
      width: 1.5rem;
      height: 1.5rem;
    }
  }

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
}

#fullscreenToggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--container-bg);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 0.5rem;
  color: var(--text-color);
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.3s ease;
  z-index: 1100;
}
#fullscreenToggle:hover {
  background: var(--input-bg);
}
#fullscreenToggle .fullscreen-icon {
  width: 1.2rem;
  height: 1.2rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
#fullscreenToggle .exit-icon {
  display: none;
}
body.fullscreen-active #fullscreenToggle .enter-icon {
  display: none;
}
body.fullscreen-active #fullscreenToggle .exit-icon {
  display: block;
}

#fullscreenToggle.animate-icon {
  animation: fullscreen-bounce 0.3s ease;
}

@keyframes fullscreen-bounce {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Futuristic calendar styles */
.calendar-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}
.calendar {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  background: var(--calendar-bg);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  box-sizing: border-box;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.header {
  font-weight: bold;
  text-align: center;
  padding: 0.25rem 0;
}
.empty {
  visibility: hidden;
  pointer-events: none;
}
.calendar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x,50%) var(--mouse-y,50%),
                              rgba(140,122,230,0.1), transparent 50%);
  pointer-events: none;
  transition: background 0.1s;
  border-radius: inherit;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  user-select: none;
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.calendar-toolbar select,
.calendar-toolbar button {
  background: transparent;
  border: 1px solid var(--table-td-border);
  color: var(--text-color);
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}
.view-toggle,
.segmented-control {
  display: inline-flex;
  background: #1e1e1e;
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}
.segment {
  flex: 1;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #bbb;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.segment:first-child {
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
}
.segment:last-child {
  border-top-right-radius: 9999px;
  border-bottom-right-radius: 9999px;
}
.segment.active {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  box-shadow: inset 0 0 8px rgba(124, 58, 237, 0.7);
}
.segment:not(.active):hover {
  background: rgba(167, 139, 250, 0.15);
  color: #eee;
}
.segment:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.4);
}

/* Light theme adjustments for view toggle */
[data-theme="light"] .segmented-control {
  background: #f0f0f0;
}
[data-theme="light"] .segment {
  color: #555;
}
[data-theme="light"] .segment.active {
  color: #fff;
}
.nav-btn {
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  padding: 0 0.5rem;
}
#printCalendarBtn {
  margin-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.print-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  display: block;
}
.printer-paper {
  fill: currentColor;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#printCalendarBtn:hover .printer-paper {
  animation: paperSlide 0.6s ease;
}
.month-title {
  font-weight: bold;
  font-size: 1.2rem;
}
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  color: var(--table-th-color);
  justify-items: center;
}
.weekday {
  padding: 0.25rem 0;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 0.4rem;
  justify-items: center;
  overflow: visible;
}
.months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.month-card {
  background: var(--month-card-bg);
  border-radius: 1rem;
  padding: 0.5rem;
  overflow: hidden;
  box-sizing: border-box;
}
.month-card .month-name {
  text-align: center;
  margin-bottom: 0.25rem;
  font-weight: bold;
}
.day {
  position: relative;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
  padding: 0.75rem;
  color: var(--text-color);
  border-radius: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.day.placeholder {
  visibility: hidden;
  pointer-events: none;
}
.day:hover {
  background: rgba(140,122,230,0.2);
  box-shadow: 0 0 8px rgba(140,122,230,0.6);
  transform: scale(1.05);
  z-index: 1;
}
.day.today {
  background: var(--neon);
  color: #fff;
}
.day.payday {
  background: var(--neon);
  color: #fff;
  font-weight: bold;
  border: 2px solid var(--neon);
  animation: pulse 2s infinite;
}
.day.payday.past {
  opacity: 1;
  filter: none;
}
.day.past {
  opacity: 0.4;
  filter: grayscale(0.5);
}
.day.bank-holiday {
  background: var(--holiday-bg);
  color: var(--holiday-color);
}

.day.payday.bank-holiday {
  background: var(--neon);
  color: #fff;
}

.money-burst {
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1500;
}
.money-burst span {
  position: absolute;
  font-size: 1.25rem;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--neon); }
  70% { box-shadow: 0 0 10px 4px rgba(140,122,230,0); }
  100% { box-shadow: 0 0 0 0 var(--neon); }
}

@keyframes overlayFade {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes paperSlide {
  from { transform: translateY(-6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 480px) {
  .calendar { padding: 0.5rem; }
  .nav-btn { font-size: 1.2rem; }
  .month-title { font-size: 1rem; }
  .day { padding: 0.5rem; font-size: 0.9rem; }
  .weekdays { font-size: 0.65rem; }
}

body.fullscreen-active .container {
  max-width: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.fullscreen-active .schedule-selector,
body.fullscreen-active .inputs,
body.fullscreen-active .ad-container,
body.fullscreen-active .buttons,
body.fullscreen-active #themeToggle {
  display: none;
}
body.fullscreen-active #countdown {
  font-size: clamp(3rem, 18vw, 6rem);
  min-height: clamp(3rem, 18vw, 6rem);
}
body.fullscreen-active #fullscreenToggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}


/* Pay Schedule Dropdown Styles v2 */
#paySchedule.frost-select-v2 {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: var(--select-bg);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  text-align: center;
  text-align-last: center;
  transition: box-shadow 0.3s ease;
}

#paySchedule.frost-select-v2:hover,
#paySchedule.frost-select-v2:focus {
  box-shadow: 0 0 8px var(--neon);
  outline: none;
}

.frost-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.frost-select-wrapper::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 0.8rem;
  height: 0.8rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  line-height: 1;
}

.frost-select-wrapper:hover::after {
  opacity: 1;
}

.frost-select-wrapper:focus-within::after {
  transform: translateY(-50%) rotate(180deg);
}


/* Terms footer */
.terms-footer {
  font-size: 0.75rem;
  opacity: 0.7;
  padding: 1rem;
  text-align: left;
}
.terms-footer ol {
  margin-left: 1rem;
}
.terms-footer summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.terms-footer details {
  margin-bottom: 0.75rem;
}

/* Glassmorphism footer */
.glass-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 1rem;
  width: 100%;
  background: var(--container-bg);
  backdrop-filter: blur(10px);
  color: var(--text-color);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.glass-footer .links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.glass-footer a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.8;
}
.glass-footer a:hover {
  opacity: 1;
}
.glass-footer button {
  padding: 0.25rem 0.75rem;
  background: var(--button-bg);
  border: none;
  border-radius: 0.5rem;
  color: #fff;
  cursor: pointer;
}
.glass-footer button:hover {
  background: var(--button-hover-bg);
}

/* Policy pages */
.policy-container {
  background: var(--container-bg);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(20px);
  max-width: 42rem;
  margin: 0 auto;
}

/* Wider container for contact page */
.contact-container {
  max-width: 48rem;
}

.policy-container h1 {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 2rem;
}

/* Subtext for contact page */
.contact-subtext {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.policy-list {
  list-style: decimal inside;
  padding-left: 0;
}

.policy-list li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

@media print {
  :root { --text-color: #000; }
  @page { size: landscape; margin: 0.2in; }
  body {
    background: #fff;
    color: #000;
    -webkit-print-color-adjust: exact;
            color-adjust: exact;
  }
  body > *:not(#calendarOverlay) { display: none !important; }
  .calendar-print-container {
    width: 100%;
    margin: 0;
    padding: 0;
    page-break-inside: avoid;
    break-inside: avoid;
    transform: scale(0.9);
    transform-origin: top left;
  }
  .month-card {
    overflow: visible;
    break-inside: avoid;
    padding: 0.2rem;
  }
  .month-card .month-name {
    font-size: 0.65rem;
  }
  .calendar-overlay { position: static; display: block; background: none; }
  .calendar-container {
    box-shadow: none;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    page-break-inside: avoid;
    break-inside: avoid;
  }
  .calendar { font-size: 0.55rem; }
  .day {
    padding: 0.3rem;
    font-size: 0.5rem;
  }
  .close-btn, .calendar-toolbar, #themeToggle, #fullscreenToggle, .buttons { display: none !important; }
  .calendar::before { display: none !important; }
  .day.payday {
    background: var(--neon);
    color: #fff;
    border-color: var(--neon);
    box-shadow: 0 0 8px var(--neon);
    animation: none;
    -webkit-print-color-adjust: exact;
            color-adjust: exact;
  }
  .day.past { opacity: 1 !important; filter: none !important; }
  .day.bank-holiday { background: var(--holiday-bg); color: var(--holiday-color); }
  .months-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.4rem;
  }
}
