


    html,
    body {
      margin: 0;
      overflow: hidden !important;
      height: 100%;
    }

    body {
      margin: 0;
      overflow: hidden;
      font-family: 'Inter', sans-serif;
      background-color: #000;
      color: white;
    }

    #scene-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
    }

    #scene-container canvas {
      width: 100%;
      height: 100%;
      display: block;
    }

    #cloud-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 2;
      opacity: 0;
      visibility: hidden;
      transition: opacity 2s ease-in-out, visibility 2s, filter 2s ease-in-out;
    }

    #ui-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 3;
      pointer-events: none;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 15px;
      box-sizing: border-box;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
      font-weight: bold;
    }

    #loading-overlay {
      z-index: 1000;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 2em;
    }

    .cloud-layer {
      position: absolute;
      top: 0;
      left: 0;
      width: 200%;
      height: 100%;
      display: flex;
      animation-name: drift;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
    }

    .cloud-image {
      width: 50%;
      height: 100%;
      background-image: url('cloud.png');
      background-size: cover;
      background-repeat: no-repeat;
    }

    .cloud-layer.mid-ground {
      opacity: 0.7;
    }

    .cloud-layer.background {
      transform: scale(1.5, 1.5);
    }

    .cloud-layer.foreground {
      animation-duration: 60s;
    }

    .cloud-layer.mid-ground {
      animation-duration: 90s;
    }

    .cloud-layer.background {
      animation-duration: 120s;
    }

    @keyframes drift {
      from {
        transform: translateX(0%);
      }

      to {
        transform: translateX(-50%);
      }
    }

    .ui-element {
      border-radius: 8px;
      background-color: rgba(0, 0, 0, 0.5);
      pointer-events: auto;
      padding: 0.5rem 1rem;
    }

    #top-container {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      width: 100%;
    }

    #location-info,
    #weather-info,
    #temperature-info,
    #wind-info {
      font-size: 1.25rem;
    }

    #wind-info {
      position: absolute;
      bottom: 15px;
      left: 15px;
    }

    #temperature-info {
      position: absolute;
      bottom: 15px;
      right: 15px;
    }

    @media (min-width: 768px) {

      #location-info,
      #weather-info,
      #temperature-info,
      #wind-info {
        font-size: 2rem;
      }
    }

    @media (min-width: 1024px) {

      #location-info,
      #weather-info,
      #temperature-info,
      #wind-info {
        font-size: 2.3rem;
      }
    }

    #city-input-container {
      pointer-events: auto !important;
      /* Forces clicks to work */
    }

    #search-button {
      background-image: url('textalk.png');
    }

    #digital-clock {
      position: fixed;
      inset: 0;
      display: flex;
      flex-direction: column;
      /* stack date and time vertically */
      justify-content: center;
      align-items: center;
      width: 100vw;
      height: 100vh;
      line-height: 1.1;
      overflow: hidden;
      pointer-events: none;
      user-select: none;
      z-index: 1001;
      font-family: 'Orbitron', sans-serif;
      text-shadow: 0 0 5px #00ffe0, 0 0 10px #00ffe0, 0 0 20px #00ffe0, 0 0 40px #00ffe0;
      will-change: opacity,
        transform;
      transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-transform: translateZ(0);
      -webkit-font-smoothing: antialiased;
    }

    #current-date {
      font-size: 0.4em;
      opacity: 0.8;
    }

    #weather-desc {
      font-size: 0.75em;
      opacity: 0.7;
      margin-top: 2px;
    }

    .min-max {
      display: block;
    }

    #day-counter {
      position: fixed;
      top: 15px;
      left: 0;
      width: 100vw;
      display: flex;
      justify-content: center;
      font-size: 2rem;
      font-family: 'Orbitron', sans-serif;
      color: white;
      text-shadow:
        0 0 5px #00ffe0,
        0 0 10px #00ffe0,
        0 0 20px #00ffe0;
      z-index: 1002;
      user-select: none;
      pointer-events: none;
    }


    /* --- Frosted glass overlay for API key instructions --- */
    #api-key-glass {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 3000;
      /* higher than other UI elements */
      pointer-events: auto;
      backdrop-filter: blur(6px) saturate(1.05);
      /* frosted effect behind */
      -webkit-backdrop-filter: blur(6px) saturate(1.05);
    }

	  #api-key-glass {
	  display: none !important;
	  visibility: hidden !important;
	  opacity: 0 !important;
	  pointer-events: none !important;
	  position: static !important;
	  inset: auto !important;
	}

	  
    #api-key-glass .glass-card {
      width: min(720px, 94vw);
      max-height: 90vh;
      overflow-y: auto;
      background: linear-gradient(77deg, rgb(255 0 0 / 60%), rgb(255 0 0 / 30%));
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 16px;
      box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
      padding: 1.25rem;
      color: #e9f6ff;
      font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      transform: translateZ(0);
      backdrop-filter: blur(8px);
    }

    /* header row */
    #api-key-glass .glass-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 0.6rem;
    }

    #api-key-glass h2 {
      margin: 0;
      font-size: 1.25rem;
    }

    #api-key-glass p.lead {
      margin: 0.25rem 0 1rem 0;
      opacity: 0.9;
      font-size: 0.95rem;
    }

    /* content */
    #api-key-glass ol {
      padding-left: 1.25rem;
      margin: 0.5rem 0 1rem 0;
      color: #dcefff;
    }

    #api-key-glass a {
      color: #cbeffd;
      text-decoration: underline;
    }

    /* input + buttons */
    #owm-key-input {
      width: 100%;
      padding: 0.6rem 0.75rem;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: rgba(0, 0, 0, 0.25);
      color: #fff;
      font-size: 1rem;
      box-sizing: border-box;
      margin-bottom: 0.75rem;
    }

    #api-key-glass .btn-row {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .api-btn {
      padding: 0.5rem 0.9rem;
      border-radius: 8px;
      border: none;
      cursor: pointer;
      font-weight: 600;
    }

    .api-btn.primary {
      background: rgba(0, 123, 255, 0.95);
      color: white;
    }

    .api-btn.ghost {
      background: transparent;
      color: #e6f4ff;
      border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .api-btn.warn {
      background: rgba(255, 90, 70, 0.95);
      color: white;
    }

    /* small note */
    #api-key-glass .small {
      font-size: 0.85rem;
      opacity: 0.85;
      margin-top: 0.6rem;
    }


    /* On narrow screens, use full-width padding */
    @media (max-width: 420px) {
      #api-key-glass .glass-card {
        padding: 1rem;
        border-radius: 12px;
      }

      #api-key-glass h2 {
        font-size: 1.05rem;
      }
    }

    #city-input {
      width: 260px;
      padding: 0.75rem 1.2rem;
      font-size: 1rem;
      font-weight: 500;
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.25);
      background: rgba(255, 255, 255, 0.08);
      color: #f9f9f9;
      box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 0 0 0 rgba(255, 255, 255, 0);
      backdrop-filter: blur(14px) saturate(180%);
      -webkit-backdrop-filter: blur(14px) saturate(180%);
      transition: all 0.25s ease;
      outline: none;
    }

    /* Focus State */
    #city-input:focus {
      background: rgba(255, 255, 255, 0.15);
      border-color: rgba(255, 255, 255, 0.4);
      box-shadow:
        0 6px 25px rgba(0, 0, 0, 0.25),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
      transform: translateY(-1px);
    }

    /* Placeholder */
    #city-input::placeholder {
      color: rgba(255, 255, 255, 0.6);
      font-weight: 400;
      letter-spacing: 0.3px;
      transition: color 0.3s ease;
    }

    #city-input:focus::placeholder {
      color: rgba(255, 255, 255, 0.4);
    }

    /* Optional subtle hover glow */
    #city-input:hover:not(:focus) {
      border-color: rgba(255, 255, 255, 0.35);
      box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 0 0 rgba(255, 255, 255, 0);
    }

    message-container {
      position: absolute;
      width: 80%;
      text-align: center;
      z-index: 5555;
    }

    .top-text {
      top: 33%;
    }

    .bottom-text {
      bottom: 33%;
    }

    .text {
      font-size: 1.5rem;
      line-height: 1.8rem;
      margin: 10px 0;
    }

    .daily-text {
      margin: auto;
      padding-bottom: 20%;
      width: 90%;
      max-width: 600px;

      text-align: center;
      line-height: 1.45;

      font-size: clamp(17px, 1.2vw, 25px);
      font-weight: 600;
      font-family: "Roboto", Arial, sans-serif;

      /* High-contrast outline for readability */
      color: white;
      text-shadow:
        0 0 1px #ff4d4d,
        0 0 1px #ff4d4d,
        0 0 1px #ff1a1a,
        0 0 2px #ff0000;

      will-change: opacity, transform;
      transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-transform: translateZ(0);
      -webkit-font-smoothing: antialiased;

      letter-spacing: 0.3px;

      /* Simple fade animation (cheap tablet safe) */
      opacity: 0;
      animation: fadeIn 0.8s ease-out forwards;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }



    /* Positions */
    #sentenceTop {
      top: 20%;
    }

    #sentenceBottom {
      bottom: 18%;
    }

    #digital-clock {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    #current-date,
    #current-time {
      display: inline-block;
      width: max-content;
      /* key line */
      text-align: center;
    }

    .clock-box {
      display: inline-block;
      /* container grows with content */
      text-align: center;
    }

    #current-time,
    #current-date {
      display: block;
      /* stack them     */
      white-space: nowrap;
      /* prevents wrapping */
    }

:root {
      --glass-bg: rgba(255,255,255,0.12);
      --glass-border: rgba(255,255,255,0.25);
      --accent: #2ef2e9;
      --text-main: #ffffff;
      --text-muted: rgba(255,255,255,0.75);
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: 'Inter', system-ui, sans-serif;
      color: var(--text-main);
      background: radial-gradient(circle at top, #0b1a2a, #02040a 70%);
      overflow-x: hidden;
    }

    header {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .stars {
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(1px 1px at 20% 30%, #fff, transparent),
        radial-gradient(1px 1px at 80% 40%, #fff, transparent),
        radial-gradient(1px 1px at 60% 70%, #fff, transparent);
      animation: drift 60s linear infinite;
      opacity: 0.4;
    }

    @keyframes drift {
      from { background-position: 0 0; }
      to { background-position: 1000px 1000px; }
    }

    .hero {
      max-width: 1100px;
      width: 100%;
      background: var(--glass-bg);
      backdrop-filter: blur(16px) saturate(140%);
      -webkit-backdrop-filter: blur(16px) saturate(140%);
      border: 1px solid var(--glass-border);
      border-radius: 24px;
      padding: 3rem;
      box-shadow: 0 30px 80px rgba(0,0,0,0.45);
      display: grid;
      grid-template-columns: 1.1fr 0.9fr;
      gap: 2.5rem;
      position: relative;
      z-index: 2;
    }

    @media (max-width: 900px) {
      .hero {
        grid-template-columns: 1fr;
        padding: 2rem;
      }
    }

    h1 {
      font-size: clamp(2rem, 3.5vw, 3rem);
      margin: 0 0 1rem 0;
      letter-spacing: -0.02em;
    }

    h1 span {
      color: var(--accent);
    }

    p.lead {
      font-size: 1.05rem;
      line-height: 1.6;
      color: var(--text-muted);
      margin-bottom: 2rem;
    }

    .cta {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .btn {
      padding: 0.85rem 1.4rem;
      border-radius: 14px;
      border: 1px solid var(--glass-border);
      background: rgba(255,255,255,0.08);
      color: #fff;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.25s ease;
      backdrop-filter: blur(8px);
    }

    .btn.primary {
      background: linear-gradient(135deg, #2ef2e9, #1fb9c4);
      color: #041418;
      border: none;
    }

    .btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    }

    .note {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .features {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1.2rem;
      margin-top: 2.5rem;
    }

    .card {
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--glass-border);
      border-radius: 18px;
      padding: 1.2rem 1.3rem;
      backdrop-filter: blur(10px);
      transition: transform 0.3s ease;
    }

    .card:hover { transform: translateY(-4px); }

    .card h3 {
      margin: 0 0 0.5rem 0;
      font-size: 1rem;
    }

    .card p {
      margin: 0;
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.5;
    }

	.preview {
	  display: flex;
	  flex-direction: column;
	  justify-content: center;   /* vertical centering */
	  align-items: center;       /* horizontal centering */
	  height: 100%;
	  gap: 1.2rem;
	}

    .preview img {
      width: 100%;
      border-radius: 18px;
      border: 1px solid var(--glass-border);
      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
      animation: float 8s ease-in-out infinite;
    }

    @keyframes float {
      0%,100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

    section.donate {
      padding: 5rem 1.5rem;
      display: flex;
      justify-content: center;
    }

    .donate-box {
      max-width: 800px;
      width: 100%;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      border-radius: 24px;
      padding: 2.5rem;
      backdrop-filter: blur(16px);
      text-align: center;
    }

    .donate-box h2 {
      margin-top: 0;
    }

    footer {
      text-align: center;
      padding: 2rem 1rem 3rem;
      font-size: 0.8rem;
      color: var(--text-muted);
    }
	  /* ===== Donate Floating Overlay ===== */
.donate-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(20,40,60,0.55),
    rgba(0,0,0,0.75)
  );
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 555;
}

/* Floating glass card */
.donate-box {
  max-width: 560px;
  width: 92%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.08)
  );
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 26px;
  padding: 2.6rem 2.4rem 2.8rem;
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 40px 120px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.25);
  text-align: center;
  animation: donateFloatIn 0.6s ease forwards;
  position: relative;
}

/* Subtle floating animation */
@keyframes donateFloatIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.donate-box h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.donate-box .lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.donate-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(46,242,233,0.35),
    transparent 40%,
    transparent 60%,
    rgba(46,242,233,0.15)
  );
  pointer-events: none;
}
	.btn {
		cursor: pointer;
}
	  @media (prefers-reduced-motion: no-preference) {
  .donate-box {
    animation:
      donateFloatIn 0.6s ease forwards,
      slowFloat 12s ease-in-out infinite;
  }

  @keyframes slowFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }
}
/* Hard anchor for PayPal */
.paypal-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: block;
}

/* Neutralize flex / transforms for PayPal */
#paypal-container-CBZ5VDMPB7MNW {
  width: 100%;
  display: block;
}

/* Force iframe to obey wrapper */
#paypal-container-CBZ5VDMPB7MNW iframe {
  width: 100% !important;
  min-width: 280px !important;
  max-width: 360px !important;
  display: block !important;
  margin: 0 auto !important;
}
.setup-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  backdrop-filter: blur(12px);
}


.setup-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.2rem 0;
}

.setup-options label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.3rem;
}

.primary-btn {
  width: 100%;
  padding: 0.7rem;
  border-radius: 14px;
  border: none;
  background: #6ea8ff;
  color: #000;
  font-weight: 600;
  cursor: pointer;
}
/* === Atmospire Input Fields === */

.setup-options input,
.setup-options select {
  width: 100%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.04)
  );
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  color: #ffffff;
  font-size: 0.92rem;
  outline: none;
  backdrop-filter: blur(14px) saturate(160%);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

/* Placeholder */
.setup-options input::placeholder {
  color: rgba(255,255,255,0.55);
}

/* Focus state */
.setup-options input:focus,
.setup-options select:focus {
  border-color: #7da6ff;
  background: linear-gradient(
    180deg,
    rgba(125,166,255,0.22),
    rgba(255,255,255,0.08)
  );
  box-shadow:
    0 0 0 1px rgba(125,166,255,0.4),
    0 10px 24px rgba(0,0,0,0.35);
}

/* Hover (desktop) */
.setup-options input:hover,
.setup-options select:hover {
  border-color: rgba(255,255,255,0.35);
}

/* Disabled (future use) */
.setup-options input:disabled,
.setup-options select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.setup-options label {
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.75);
}
/* === Compact vertical rhythm === */
.setup-step {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;          /* was too large */
}

/* Remove default margins that create hidden gaps */
.setup-step h2,
.setup-step p {
  margin: auto;
}
.preview img {
  cursor: zoom-in;
}


.hidden {
  display: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.link {
  font-size: 0.8rem;
  color: #7da6ff;
  text-decoration: none;
  text-align: center;
  margin-bottom: 10px;
}
/* === Force Atmospire glass inputs === */
.setup-box input {
	margin: 10px auto;
  width: 100%;
  box-sizing: border-box;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.14),
    rgba(255,255,255,0.05)
  );
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;

  padding: 0.6rem 0.75rem;
  color: #ffffff;
  font-size: 0.9rem;

  outline: none;
  backdrop-filter: blur(14px) saturate(160%);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.platform-notes {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.platform-notes .note {
  font-size: 0.95rem;
  color: #ffffff;
}

.platform-notes .label {
  opacity: 0.7;
  margin-right: 0.35rem;
}

.platform-notes a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.platform-notes .muted {
  opacity: 0.65;
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
  .platform-notes {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}



.image-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.image-viewer.hidden {
  display: none;
}

.image-viewer img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.image-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}
.atmospire-loader {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, #0d1224 0%, #06080f 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 6000;
  transition: opacity 1s ease, visibility 1s ease;
}

.atmospire-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Core system */
.loader-center {
  position: relative;
  width: 120px;
  height: 120px;
}

/* Sun */
.sun-core {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  background: #ffd27d;
  border-radius: 50%;
  box-shadow:
    0 0 18px rgba(255,210,125,0.9),
    0 0 50px rgba(255,210,125,0.35);
}

/* Orbits */
.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: spin linear infinite;
}

.orbit.earth {
  border: 1px solid rgba(124,156,255,0.45);
  animation-duration: 6s;
}

.orbit.moon {
  inset: 18px;
  border: 1px solid rgba(255,255,255,0.25);
  animation-duration: 10s;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Label */
.loader-label {
  margin-top: 34px;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}


.code-input {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.2rem 0 1.4rem;
}

.code-input input {
  width: 46px;
  height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.16),
    rgba(255,255,255,0.06)
  );
  color: #fff;
  outline: none;
  caret-color: transparent;
  backdrop-filter: blur(14px) saturate(160%);
}

.code-input input:focus {
  border-color: #7da6ff;
  box-shadow:
    0 0 0 1px rgba(125,166,255,0.5),
    0 10px 26px rgba(0,0,0,0.4);
}

@media (max-width: 480px) {
  .code-input input {
    width: 40px;
    height: 52px;
    font-size: 1.25rem;
  }
}
button {
	cursor: pointer;
}




/* Overlay */
#plansModal {
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(10, 12, 16, 0.55);
}

/* Modal box */
#plansModal .donate-box {
  max-width: 720px;
  padding: 2.2rem 2.4rem 2.6rem;
  border-radius: 28px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.12),
      rgba(255,255,255,0.04)
    );
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 40px 120px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Title */
#plansModal h2 {
  font-size: 1.9rem;
  letter-spacing: 0.2px;
  margin-bottom: 0.4rem;
}

#plansModal .lead {
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.8rem;
}

/* Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}

/* Cards */
.plan-card {
  position: relative;
  padding: 1.8rem 1.6rem 2rem;
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.14),
      rgba(255,255,255,0.05)
    );
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* Highlighted plan */
.plan-card.highlight {
  border-color: rgba(255, 209, 64, 0.9);
  box-shadow:
    0 0 0 1px rgba(255,209,64,0.55),
    0 30px 90px rgba(255,209,64,0.18);
}

.plan-card.highlight::before {
  content: "Recommended";
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 999px;
  background: #FFD140;
  color: #000;
}

/* Headings */
.plan-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

/* Price */
.price {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0.6rem 0 1rem;
}

.price span {
  font-size: 0.9rem;
  opacity: 0.65;
  font-weight: 400;
}

/* Features */
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}

.plan-features li {
  font-size: 0.88rem;
  padding: 0.35rem 0;
  opacity: 0.85;
}

/* Buttons */
.plan-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.plan-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.plan-btn.personal {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.plan-btn.professional {
  background: linear-gradient(180deg, #FFE08A, #FFD140);
  color: #000;
}

/* Close button */
#plansModal .modal-close {
  font-size: 1.2rem;
  opacity: 0.7;
}

#plansModal .modal-close:hover {
  opacity: 1;
}
#donate-btn{
	display: none;
}

/* Make overlay scrollable on small screens */
#plansModal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.2rem;
}

/* Constrain modal height */
#plansModal .donate-box {
  max-height: calc(100vh - 2.4rem);
  overflow-y: auto;
  overflow-x: hidden;
}

/* Mobile-specific tightening */
@media (max-width: 480px) {
  #plansModal .donate-box {
    padding: 1.4rem 1.2rem 1.6rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .plan-card {
    padding: 1.2rem 1.1rem 1.3rem;
  }

  .price {
    font-size: 1.7rem;
  }
}
@media (max-width: 480px) {
  #plansModal {
    padding: 0.5rem;
  }

  #plansModal .donate-box {
    max-width: calc(100vw - 1rem);
    width: 100%;
    box-sizing: border-box;
  }
}

/* Hide vertical scrollbar on desktop */
@media (min-width: 768px) {
  #plansModal .donate-box{
     overflow-y: hidden;/* Firefox */
  }
}

.loader-text {
	display:none;
}

#temperature-info {
	z-index:6666;
}

/* ===== UI ALERT (MATCHES SETUP MODAL EXACTLY) ===== */
.ui-alert {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: auto;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
}

.ui-alert.hidden {
  display: none;
}

.ui-alert-box {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: translateY(-50%);
  width: min(92vw, 420px);
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: rgba(20,20,20,0.55);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 12px 35px rgba(0,0,0,0.35);
  color: #eaf6ff;
  text-align: center;
}


.ui-alert-box button {
  display: inline-block;
  width: 33%;
  max-width: 100px;

  padding: 0.5rem 1rem;
  margin: 1rem auto 0;

  border: none;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    rgba(120,190,255,0.95),
    rgba(80,140,255,0.95)
  );

  color: #021526;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2px;

  cursor: pointer;
  text-align: center;

  box-shadow:
    0 8px 26px rgba(80,140,255,0.45),
    inset 0 1px 0 rgba(255,255,255,0.65);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

#topActionBtn {
  margin: 0 auto;           /* horizontal centering */
  display: block;           /* ensures margin auto works */
  padding: 10px 18px;
  font-size: clamp(14px, 1.2vw, 18px); /* responsive font */
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;

  background: #000;
  color: #fff;

  width: fit-content;       /* shrink to content size */
  max-width: 90%;           /* optional limit on small screens */
  text-align: center;

  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;

  /* Cheap-tablet-friendly rendering */
  will-change: opacity, transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

/* Optional fade-in like .daily-text */
#topActionBtn.fadeIn {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Hidden state */
#topActionBtn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* SVG scale on hover */
#topActionBtn svg {
  transition: transform 0.15s ease;
}

#topActionBtn:hover svg {
  transform: scale(1.25);
}

/* Vertical positioning */
#topActionBtn.top {
  margin-top: 5%;    /* distance from top */
}
