    @import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@1,600&display=swap");

/* ========================================
   TUTORIAL OVERLAY STYLES
   ======================================== */

/* Phase 1: Atmospheric backdrop fade-in */
.tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  animation: atmosphericFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes atmosphericFadeIn {
  0% {
    opacity: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  100% {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
}

.tutorial-overlay.exiting {
  animation: cinematicExit 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cinematicExit {
  0% {
    opacity: 1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  100% {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

.tutorial-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Phase 2: Magnetic panel slide-up reveal */
.tutorial-panel {
  --panel-bg-lightness: color-mix(
    in srgb,
    var(--day-cycle-bleed-top, #f1d7ff),
    var(--day-cycle-bleed-bottom, #b7d9ff)
  );
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--panel-bg-lightness) 3%, rgba(255, 255, 255, 0.16)) 0%,
    color-mix(in srgb, var(--panel-bg-lightness) 3%, rgba(255, 255, 255, 0.16)) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  padding: 56px 64px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  position: relative;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(30px);
  animation: magneticReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}

.tutorial-overlay.exiting .tutorial-panel {
  animation: panelFadeOut 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Noise texture overlay for frosted glass effect */
.tutorial-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 40px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

@keyframes magneticReveal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelFadeOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Phase 3: Staggered text animations */
.tutorial-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0 0 16px 0;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0;
  transform: translateY(10px);
  animation: titleExpand 1s cubic-bezier(0.16, 1, 0.3, 1) 1.95s forwards;
}

@keyframes titleExpand {
  0% {
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: -0.1em;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.05em;
  }
}

.tutorial-title .tutorial-title--accent {
  color: var(--ambient-text-primary);
}

.tutorial-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 40px 0;
  padding: 0 16px;
  font-weight: 500;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(10px);
  animation: subtextFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 2.25s forwards;
}

@keyframes subtextFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.tutorial-tooltip-container {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
  opacity: 0;
  transform: scale(0.95);
  animation: buttonPopIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 2.55s forwards;
}

.tutorial-tooltip-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tutorial-tooltip-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.tutorial-tooltip-text {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.92);
  color: rgba(255, 255, 255, 0.95);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  width: 280px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tutorial-tooltip-icon:hover + .tutorial-tooltip-text {
  opacity: 1;
}

.tutorial-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  opacity: 0;
  transform: scale(0.95);
  animation: buttonPopIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 2.55s forwards;
}

@keyframes buttonPopIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.tutorial-btn {
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Pill-shaped Accept Button with subtle glow */
.tutorial-btn--accept {
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  color: #333;
  border: none;
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.tutorial-btn--accept:hover {
  box-shadow:
    0 0 25px rgba(255, 255, 255, 0.2),
    0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.tutorial-btn--accept:active {
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
}

/* Transparent Decline Button with thin outline */
.tutorial-btn--decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.tutorial-btn--decline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.tutorial-btn--decline:active {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(0);
}

    :root {
      color-scheme: light;
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    }
:root {
  /* fallback-safe DayCycle-aware text */
  --ambient-text-primary: color-mix(
    in srgb,
    color-mix(
      in srgb,
      var(--day-cycle-bleed-top, #f1d7ff),
      var(--day-cycle-bleed-bottom, #b7d9ff)
    ) 65%,
    #111 35%
  );

  --ambient-text-secondary: color-mix(
    in srgb,
    var(--ambient-text-primary) 65%,
    rgba(17, 24, 39, 0.55)
  );
}

    @property --day-cycle-bleed-bottom {
      syntax: "<color>";
      inherits: false;
      initial-value: rgba(0, 0, 0, 0);
    }

    @property --day-cycle-bleed-top {
      syntax: "<color>";
      inherits: false;
      initial-value: rgba(0, 0, 0, 0);
    }

    @property --day-cycle-bleed-opacity {
      syntax: "<number>";
      inherits: false;
      initial-value: 0;
    }

    @property --day-cycle-bleed-pulse {
      syntax: "<number>";
      inherits: false;
      initial-value: 1;
    }

    @property --day-cycle-bleed-pulse-low {
      syntax: "<number>";
      inherits: false;
      initial-value: 0.94;
    }

    @property --day-cycle-bleed-pulse-high {
      syntax: "<number>";
      inherits: false;
      initial-value: 1.04;
    }

    @property --day-cycle-bleed-pulse-duration {
      syntax: "<time>";
      inherits: false;
      initial-value: 34s;
    }

    @property --day-cycle-star-opacity {
      syntax: "<number>";
      inherits: false;
      initial-value: 0;
    }

    @property --arc-fade-strength {
      syntax: "<number>";
      inherits: false;
      initial-value: 0.9;
    }

    @property --arc-glow-core-opacity {
      syntax: "<number>";
      inherits: false;
      initial-value: 0.4;
    }

    @property --phase-clock-color-start {
      syntax: "<color>";
      inherits: false;
      initial-value: #ffffff;
    }

    @property --phase-clock-color-end {
      syntax: "<color>";
      inherits: false;
      initial-value: #ffffff;
    }

    @property --phase-clock-glow-color {
      syntax: "<color>";
      inherits: false;
      initial-value: rgba(255, 255, 255, 0.32);
    }

    .glass-panel {
      position: fixed;
      top: calc(8vh + 16px);
      left: 50%;
      width: 1200px;
      height: calc(28vh + 580px);
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 30px;
      background: rgba(135, 135, 135, 0.39);
      backdrop-filter: blur(25px);
      border: 1px solid rgba(255, 255, 255, 0.7);
      box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 0 18px 4px rgba(255, 255, 255, 0.25);
      z-index: 10;
    }

/* ========================================
   ICON BAR - Pure Minimalist Ghost Buttons
   ======================================== */

.icon-bar {
  position: absolute;
  left: 20px;
  top: 38%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - 200px);
  max-height: 600px;
  z-index: 11;
  pointer-events: auto;
  gap: 12px;
}

.icon-bar__top,
.icon-bar__bottom {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.icon-bar__icon {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;

  /* Completely transparent */
  background: transparent;

  /* Dim semi-transparent grey border */
  border: 1.5px solid rgba(128, 128, 128, 0.15);

  /* No glows, no effects */
  box-shadow: none;

  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-bar__icon:hover {
  transform: scale(1.08);
  border-color: rgba(128, 128, 128, 0.25);
}

.icon-bar__icon:active,
.icon-bar__icon.icon-pressed {
  transform: scale(0.95);
}

.icon-bar__icon.active {
  /* 1. Reset any background/fill logic */
  background: transparent !important;

  /* 2. ONLY the border gets the color */
  border: 2px solid var(--ambient-text-primary, #ffc4d6);

  box-shadow: none;
    opacity: 0.3;
}

/* 3. This forces the ICON to stay dark, even when the button is active */
.icon-bar__icon.active .icon-bar__svg {
  color: rgba(0, 0, 0, 0.76) !important;
  opacity: 1;
}


.icon-bar__svg {
  width: 24px;
  height: 24px;
  color: rgba(128, 128, 128, 0.4);
  transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  filter: none;
    z-index: 11;
}

.icon-bar__icon:hover .icon-bar__svg {
  color: rgba(163, 163, 163, 0.78);
}

.icon-bar__icon.active .icon-bar__svg {
  /* Keep icon same as default - only border changes */
  color: rgba(0, 0, 0, 0.76);
}

.icon-bar__icon:focus-visible {
  outline: 1.5px solid rgba(128, 128, 128, 0.3);
  outline-offset: 3px;
}
.timing__panel {
    position: absolute;
    width: 98%;
    height: 98%;
    background: rgba(197, 197, 197, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow:
        0 8px 25px rgba(151, 151, 151, 0.08),
        inset 0 0 18px 4px rgba(255, 255, 255, 0.06);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 300ms ease;
    z-index: 0;
}

.timing__panel.is-open {
    opacity: 1;
    pointer-events: auto;
}

.timing__expandable-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1160px;
    z-index: 12;
    isolation: isolate;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease;
}

.timing__panel.is-open ~ .timing__expandable-container {
    opacity: 1;
    pointer-events: auto;
    z-index: 40;
}

.timing__expand-toggle {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(200, 200, 200, 0);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 15;
    pointer-events: auto;
    transition:
        top 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
        background 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease,
        width 260ms ease,
        height 260ms ease;
}
.timing__expandable-container:hover .timing__expand-toggle {
    background: rgba(220, 220, 220, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 10px rgba(110, 110, 110, 0.1);
}

.timing__expand-toggle:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.35);
    outline-offset: 3px;
}

.timing__expand-icon {
    width: 8px;
    height: 8px;
    border-left: 1.5px solid rgba(17, 24, 39, 0.5);
    border-bottom: 1.5px solid rgba(17, 24, 39, 0.5);
    transform: rotate(-45deg) translateY(-1px);
    transition: transform 320ms ease, border-color 260ms ease;
}

.timing__expandable-container:hover .timing__expand-icon {
    border-color: rgba(17, 24, 39, 0.7);
}

.timing__expand-toggle.is-open .timing__expand-icon {
    transform: rotate(135deg) translateY(0);
}

.timing__expand-toggle.is-open {
    position: absolute;
    top: 280px;
    z-index: 10000;
    pointer-events: auto;
}

.timing__expand-panel {
    position: absolute;
    top: 1%;
    left: 77px;
    width: 93%;
    height: 0px;
    border-radius: 26px;
    background: rgba(131, 131, 131, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    overflow: hidden;
    opacity: 0;
    z-index: 13;
    transition:
        height 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 300ms ease;
}

.timing__expandable-container:hover .timing__expand-panel {
    height: 30px;
    opacity: 0.6;
}

.timing__expandable-container.is-open .timing__expand-panel {
    height: 645px;
    opacity: 1;
}

.timing__expandable-container.is-open .timing__expand-toggle {
    transform: translateX(-60%) translateY(345px);
}

.timing__expand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    mix-blend-mode: overlay;
    pointer-events: none;
}

.timing__expand-panel::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.timing__expand-content {
    position: relative;
    top: 0px;
    width: 100%;
    height: 100%;
    padding: 26px;
    color: var(--ambient-text-primary);
    overflow-y: auto;
}

.timing__panel_input {
    position: absolute;
    top: 3.5px;
    left: 130px;
    width: 32px;
    height: 30px;
    border-radius: 40px;
     background: rgba(184, 184, 184, 0.02);
    border: 1px solid rgba(214, 214, 214, 0.04);
    box-shadow:
        0 8px 32px rgba(108, 108, 108, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    overflow: hidden;
    opacity: 1;
    z-index: 14;
    transition:
        opacity 300ms ease;

    flex: 1;
      border: none;
      background: transparent;
      color: rgba(17, 17, 17, 0.63);
      font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 0;
    max-lines: 1;
}
.timing__panel_inputtwo {
    position: absolute;
    top: 8px;
    left: 288px;
    width: 32px;
    height: 20px;
    border-radius: 40px;
     background: rgba(184, 184, 184, 0.02);
    border: 1px solid rgba(214, 214, 214, 0.04);
    box-shadow:
        0 8px 32px rgba(108, 108, 108, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    overflow: hidden;
    opacity: 1;
    z-index: 14;
    transition:
        opacity 300ms ease;

    flex: 1;
      border: none;
      background: transparent;
      color: rgba(17, 17, 17, 0.63);
      font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 0;
    max-lines: 1;
  border-bottom-right-radius: 0px;
  border-top-right-radius: 0px;
}

.timing__panel_inputthree {
    position: absolute;
    top: 3.5px;
    left: 525px;
    width: 32px;
    height: 30px;
    border-radius: 40px;
     background: rgba(184, 184, 184, 0.02);
    border: 1px solid rgba(214, 214, 214, 0.04);
    box-shadow:
        0 8px 32px rgba(108, 108, 108, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    overflow: hidden;
    opacity: 1;
    z-index: 14;
    transition:
        opacity 300ms ease;

    flex: 1;
      border: none;
      background: transparent;
      color: rgba(17, 17, 17, 0.63);
      font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 0;
    max-lines: 1;
}
.timing__panel_inputfour {
    position: absolute;
    top: 50px;
    left: 117px;
    width: 170px;
    height: 20px;
    border-radius: 40px;
     background: rgba(184, 184, 184, 0.02);
    border: 1px solid rgba(214, 214, 214, 0.04);
    box-shadow:
        0 8px 32px rgba(108, 108, 108, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    overflow: hidden;
    opacity: 1;
    z-index: 14;
    transition:
        opacity 300ms ease;

    flex: 1;
      border: none;
      background: transparent;
      color: rgba(17, 17, 17, 0.63);
      font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 0;
    max-lines: 1;
}
.timing__panel_inputfive {
    position: absolute;
    top: 8px;
    left: 324px;
    width: 100px;
    height: 20px;
    border-radius: 40px;
  border-bottom-left-radius: 0px;
  border-top-left-radius: 0px;
     background: rgba(184, 184, 184, 0.02);
    border: 1px solid rgba(214, 214, 214, 0.04);
  border-left: transparent;
    box-shadow:
        0 8px 32px rgba(108, 108, 108, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    overflow: hidden;
    opacity: 1;
    z-index: 14;
    transition:
        opacity 300ms ease;

    flex: 1;
      border: none;
      background: transparent;
      color: rgba(17, 17, 17, 0.63);
      font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 0;
    max-lines: 1;
  border-top-radius: 0px;
}
.timing__panel_name {
    top: -1555.5px;
    position: absolute;
    font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 400px;
}
.timing__panel_line {
    position: absolute;
    top: 28px;
    left: 0;
    width: 92%;
    height: 1px;
    background: rgba(234, 234, 234, 0.35);
    backdrop-filter: blur(22px)
}
.timing__custom-expense {
    position: absolute;
    top: 470px;
    left: 60.5%;
    width: 24%;
    max-width: 100px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 15;
}

.timing__custom-expense .planner-adder-age-block {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timing__custom-expense-month,
.timing__custom-expense-age,
.timing__custom-expense-name,
.timing__custom-expense-amount,
.timing__custom-expense-create {
    box-sizing: border-box;
    height: 18px;
    border-radius: 10px;
    border: 1px solid rgba(214, 214, 214, 0.35);
    background: rgba(184, 184, 184, 0.12);
    color: rgba(17, 17, 17, 0.75);
    font: inherit;
    font-weight: 500;
    font-size: 0.58rem;
    letter-spacing: 0.01em;
    outline: none;
}

.timing__custom-expense-month {
    flex: 1;
    min-width: 0;
    padding: 0 6px;
}

.timing__custom-expense-age {
    width: 34px;
    text-align: center;
    padding: 0 4px;
}

.timing__custom-expense-name {
  border-bottom: transparent;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  width: 100%;
    padding: 0 6px;

}
.timing__custom-expense-amount {
  position: relative;
  top: -5px;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
    width: 100%;
    padding: 0 6px;
}

.timing__custom-expense-create {
  position: relative;
  bottom: -55px;
    cursor: pointer;
  background: var(--ambient-text-primary);
  color: #fff;
}

.timing__custom-expense-month option {
    background: rgba(40, 40, 40, 0.95);
    color: #fff;
}
.timing_age__txt {
top: 38.5px;
    left: 3px;
    position: absolute;
    font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 400px;
    row-gap: 200px;
}
.timing_retire__txt {
top: 38.5px;
    left: 175px;
    position: absolute;
    font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 400px;
    row-gap: 200px;
}
.timing_lifespan__txt{
 top: 37.5px;
    left: 440px;
    position: absolute;
    font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 400px;
    row-gap: 200px;
}
.timing_NETWORTH__txt{
 top: 80px;
    left: 3px;
    position: absolute;
    font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 400px;
    row-gap: 200px;
}
.timing__panel-review-panel {
  position: absolute;
  bottom: 16px;
  left: 75px;
  min-height: 184px;
  width: 93.5%;
  box-sizing: border-box;
  padding: 14px 18px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  background: rgba(216, 216, 216, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 20px;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(3px);
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 320ms ease,
    transform 320ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 320ms ease;
}

.timing__panel-review-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.timing__panel-review-panel-what,
.timing__panel-review-panel-how {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.timing__panel-review-panel.is-content-visible .timing__panel-review-panel-what,
.timing__panel-review-panel.is-content-visible .timing__panel-review-panel-how {
  opacity: 1;
  transform: translateY(0);
}

.timing__panel-review-panel-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 5px;
}

.timing__panel-review-panel-path {
  font-size: 0.72rem;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  margin-bottom: 5px;
}

.timing__panel-review-panel-objective {
  font-size: 0.7rem;
  line-height: 1.34;
  color: rgba(255, 255, 255, 0.85);
}

.timing__panel-review-panel-steps {
  margin: 0;
  padding-left: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.67rem;
  line-height: 1.33;
}

.timing__panel-review-panel-steps li {
  margin: 0 0 3px 0;
}

.timing__panel-review-panel-steps li:last-child {
  margin-bottom: 0;
}

.timing__panel-review-panel-divider {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 1px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.32);
  transition: width 430ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.timing__panel-review-panel.is-divider-expanded .timing__panel-review-panel-divider {
  width: calc(100% - 36px);
}

@media (max-width: 1280px) {
  .timing__panel-review-panel {
    left: 12px;
    width: calc(100% - 24px);
  }
}
.timing__panel-pinned-cards-divider {
  position: absolute;
  top: 190px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(182, 182, 182, 0.32);
}

.timing__panel-pinned-cards-holder {
  position: absolute;
  top: 2px;
  left: 16px;
  width: calc(100% - 32px);
  height: 180px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 8px 8px 2px;
  scroll-behavior: smooth;
  z-index: 3;
}

.timing__panel-pinned-cards-holder::-webkit-scrollbar {
  height: 7px;
}

.timing__panel-pinned-cards-holder::-webkit-scrollbar-thumb {
  background: rgba(197, 197, 197, 0.35);
  border-radius: 20px;
}
.stream-slider {
    position: absolute;
    top: 460px;
    left: 255px;
    height: 6px;
    width: 200px;
    color: var(--ambient-text-primary);
    z-index: 20000;
}

.noUi-target {
    position: absolute;
    top: 480px;
    left: 60px;
  background: rgba(174, 174, 174, 0.09);
  border-radius: 40px;
  border: rgba(166, 166, 166, 0.04);
  box-shadow: none;
}
.stream-label {
    position: absolute;
    top: 450px;
    left: 5px;
    width: 150px;
    height: 20px;
    border-radius: 40px;
     background: rgb(255, 0, 0);
    border: 1px solid rgba(214, 214, 214, 0.2);
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
    box-shadow:
        0 8px 32px rgba(108, 108, 108, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    overflow: hidden;
    opacity: 1;
    z-index: 14;
    transition:
        opacity 300ms ease;
    flex: 1;
      border: none;
      background: transparent;
      color: rgba(17, 17, 17, 0.63);
      font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 0;
    max-lines: 1;
}
.stream-amount {
        position: absolute;
    top: 450px;
    left: 160px;
    width: 150px;
    height: 20px;
    border-radius: 40px;
     background: rgb(255, 0, 0);
    border: 1px solid rgba(214, 214, 214, 0.2);
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
    box-shadow:
        0 8px 32px rgba(108, 108, 108, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    overflow: hidden;
    opacity: 1;
    z-index: 14;
    transition:
        opacity 300ms ease;
    flex: 1;
      border: none;
      background: transparent;
      color: rgba(17, 17, 17, 0.63);
      font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 0;
    max-lines: 1;
}
.slider-values {
    position: absolute;
    top: 430px;
    left: 60px;
    width: 200px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.stream-create {
    position: absolute;
    top: 500px;
    width: 200px;
    height: 20px;
    border: 1px solid rgba(214, 214, 214, 0.35);
    border-radius: 12px;
    background: rgba(184, 184, 184, 0.22);
    color: rgba(17, 17, 17, 0.85);
    font: inherit;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    z-index: 15;
}

.stream-create-income {
    left: 60px;
}

.stream-create-expense {
    left: 375px;
}

.stream-created-list {
    position: absolute;
    top: 526px;
    width: 200px;
    max-height: 68px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 15;
}

.stream-created-list-income {
    left: 60px;
}

.stream-created-list-expense {
    left: 375px;
}

.stream-created-entry,
.stream-created-empty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 4px;
    min-height: 18px;
    border-radius: 8px;
    border: 1px solid rgba(214, 214, 214, 0.25);
    background: rgba(184, 184, 184, 0.11);
    color: rgba(17, 17, 17, 0.8);
    font-size: 0.5rem;
    font-weight: 600;
    padding: 0 5px;
}

.stream-created-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stream-created-age,
.stream-created-amount {
    white-space: nowrap;
}

.stream-created-remove {
    width: 16px;
    height: 16px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.28);
    color: rgba(17, 17, 17, 0.78);
    font-size: 0.5rem;
    font-weight: 700;
    cursor: pointer;
}

.stream-created-empty {
    grid-template-columns: 1fr;
    justify-items: center;
    color: rgba(17, 17, 17, 0.56);
}
.noUi-horizontal {
  height: 6px;
}

.noUi-connect {
  background: var(--ambient-text-primary);
}

.noUi-handle {
  width: 1px;
  height: 1px;
  top: 100px;
  border-radius: 100%;
  background: rgba(174, 174, 174, 0.05);
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.noUi-horizontal .noUi-handle-lower {
  width: 20px;
  height: 20px;
    right: -9.5px;
    top: -7.7px;
}
.noUi-horizontal .noUi-handle-upper{
  width: 20px;
  height: 20px;
    right: -9.5px;
    top: -7.7px;
}
.noUi-handle:before,
.noUi-handle:after {
  display: none;
}

/* EXPENSE SLIDER CLASSES */
.stream-slider-expense {
    position: absolute;
    top: 480px;
    left: 380px;
    height: 6px;
    width: 200px;
    color: var(--ambient-text-primary);
    z-index: 20000;
}

.stream-label-expense {
    position: absolute;
    top: 450px;
    left: 320px;
    width: 150px;
    height: 20px;
    border-radius: 40px;
     background: rgb(255, 0, 0);
    border: 1px solid rgba(214, 214, 214, 0.04);
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
    box-shadow:
        0 8px 32px rgba(108, 108, 108, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    overflow: hidden;
    opacity: 1;
    z-index: 14;
    transition:
        opacity 300ms ease;
    flex: 1;
      border: none;
      background: transparent;
      color: rgba(17, 17, 17, 0.63);
      font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 0;
    max-lines: 1;
}
.stream-amount-expense {
        position: absolute;
    top: 450px;
    left: 475px;
    width: 150px;
    height: 20px;
    border-radius: 40px;
     background: rgb(255, 0, 0);
    border: 1px solid rgba(214, 214, 214, 0.04);
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
    box-shadow:
        0 8px 32px rgba(108, 108, 108, 0.12),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
    overflow: hidden;
    opacity: 1;
    z-index: 14;
    transition:
        opacity 300ms ease;
    flex: 1;
      border: none;
      background: transparent;
      color: rgba(17, 17, 17, 0.63);
      font: inherit;
      font-weight: 600;
    font-size: 1rem;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 0;
    max-lines: 1;
}
.slider-values-expense {
    position: absolute;
    top: 430px;
    left: 375px;
    width: 200px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.graph-panel {
    position: absolute;
    top: 200px;
    left: 75.5px;
    width: 93.5%;
    min-height: 53%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0);
      border: 1px solid rgba(253, 253, 253, 0.37);
      box-shadow:
         0 8px 25px rgba(151, 151, 151, 0.08),
        inset 0 0 18px 4px rgba(255, 255, 255, 0.06);
    border-radius: 25px;
    opacity: 1;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-top: rgba(0, 0, 0, 0);
  overflow: hidden;
}

.graph-panel-requirebar {
    position: relative;
  top: 4px;
    width: 100%;
    height: 35px;
    min-height: 35px;
    box-sizing: border-box;
    border-radius: 0px;

    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.03) 100%
    );
    box-shadow: inset 0 0 18px 4px rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    overflow-y: hidden;
    z-index: 8;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.graph-panel-requirebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 16%, transparent 84%, rgba(255, 255, 255, 0.08));
    pointer-events: none;
}

.graph-panel-requirebar::-webkit-scrollbar {
    height: 6px;
}

.graph-panel-requirebar::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.24);
}

.graph-panel-requirebar::-webkit-scrollbar-track {
    background: transparent;
}

.graph-panel-requirebar-track {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    min-width: 100%;
    height: 100%;
    padding: 4px 12px;
    box-sizing: border-box;
    position: relative;
}

.graph-panel-requirebar-track::after {
    content: "";
    flex: 0 0 6px;
}

.graph-panel-requirebar-retire-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 2px;
    padding-left: 12px;
}

.graph-panel-requirebar-retire-group::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(255, 255, 255, 0.28);
}

.graph-panel-requirebar-field {
    --require-expanded-width: 110px;
    --require-compact-width: 35px;
    position: relative;
    display: flex;
    align-items: center;
    width: var(--require-expanded-width);
    min-width: var(--require-expanded-width);
    height: 26px;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(214, 214, 214, 0.32);
    background: linear-gradient(
      180deg,
      rgba(184, 184, 184, 0.2) 0%,
      rgba(184, 184, 184, 0.08) 100%
    );
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18);
    transition:
        width 360ms cubic-bezier(0.18, 0.82, 0.24, 1),
        min-width 360ms cubic-bezier(0.18, 0.82, 0.24, 1),
        border-color 260ms ease,
        background-color 260ms ease,
        filter 280ms ease,
        opacity 280ms ease,
        transform 260ms ease;
}

.graph-panel-requirebar-field.is-compact {
    width: var(--require-compact-width);
    min-width: var(--require-compact-width);
}

.graph-panel-requirebar-field.is-focused {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(220, 220, 220, 0.24);
    transform: translateY(-0.5px);
}

.graph-panel-requirebar-field.is-locked {
    opacity: 0.4;
    filter: grayscale(0.8);
}

.graph-panel-requirebar-field-name {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ambient-text-primary);
    pointer-events: none;
    transition:
        filter 170ms ease,
        opacity 170ms ease 130ms,
        transform 240ms ease,
        color 240ms ease;
    white-space: nowrap;
}

.graph-panel-requirebar-field.is-collapsing .graph-panel-requirebar-field-name {
    filter: grayscale(1);
    opacity: 0;
    transform: translateY(-50%) scale(0.96);
}

.graph-panel-requirebar-field.is-expanding .graph-panel-requirebar-field-name {
    filter: grayscale(1);
    opacity: 0.72;
}

.graph-panel-requirebar-field.is-expanding.is-compact .graph-panel-requirebar-field-name {
    opacity: 0.2;
}

.graph-panel-requirebar-field.is-expanding.is-restoring-color .graph-panel-requirebar-field-name {
    filter: grayscale(0);
    opacity: 1;
}

.graph-panel-requirebar-field.is-compact .graph-panel-requirebar-field-name {
    filter: grayscale(1);
    opacity: 0;
    transform: translateY(-50%) scale(0.96);
}

.graph-panel-requirebar .timing__panel_input,
.graph-panel-requirebar .timing__panel_inputtwo,
.graph-panel-requirebar .timing__panel_inputthree,
.graph-panel-requirebar .timing__panel_inputfour,
.graph-panel-requirebar .timing__panel_inputfive {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 10px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: rgba(17, 17, 17, 0.72);
    font: inherit;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    outline: none;
    z-index: 1;
}

.graph-panel-requirebar .timing__panel_input::placeholder,
.graph-panel-requirebar .timing__panel_inputtwo::placeholder,
.graph-panel-requirebar .timing__panel_inputthree::placeholder,
.graph-panel-requirebar .timing__panel_inputfour::placeholder,
.graph-panel-requirebar .timing__panel_inputfive::placeholder {
    color: transparent;
}

.graph-panel-requirebar .timing__panel_input:disabled,
.graph-panel-requirebar .timing__panel_inputtwo:disabled,
.graph-panel-requirebar .timing__panel_inputthree:disabled,
.graph-panel-requirebar .timing__panel_inputfour:disabled,
.graph-panel-requirebar .timing__panel_inputfive:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.graph-panel-requirebar-field--start-age {
    --require-expanded-width: 122px;
    --require-compact-width: 35px;
}

.graph-panel-requirebar-field--lifespan {
    --require-expanded-width: 98px;
    --require-compact-width: 35px;
}

.graph-panel-requirebar-field--networth {
    --require-expanded-width: 152px;
    --require-compact-width: 120px;
}

.graph-panel-requirebar-field--retire-age {
    --require-expanded-width: 104px;
    --require-compact-width: 35px;
}

.graph-panel-requirebar-field--retire-wealth {
    --require-expanded-width: 150px;
    --require-compact-width: 120px;
}

.graph-panel-requirebar-field--age.is-compact .timing__panel_input,
.graph-panel-requirebar-field--age.is-compact .timing__panel_inputtwo,
.graph-panel-requirebar-field--age.is-compact .timing__panel_inputthree {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

.graph-panel-requirebar-field--networth .timing__panel_inputfour,
.graph-panel-requirebar-field--retire-wealth .timing__panel_inputfive {
    text-align: left;
}

.wealth-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.graph-line {
    stroke: #ffffff; /* Ultra-bright white */
    stroke-width: 1.2;
    stroke-linecap: round;
    filter: none;
    opacity: 0.95;
}

.graph-line-review {
    stroke: var(--ambient-text-primary);
    stroke-width: 1.2;
    stroke-linecap: round;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
}

.graph-line-review.is-visible {
    opacity: 0.35;
}

.graph-area {
    opacity: 0.2;
    pointer-events: none; /* Don't block mouse interactions */
}

/* Optional: Subtle animation to make the 'future' feel alive */
.graph-line {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawCurve 2s cubic-bezier(0.45, 0, 0.55, 1) forwards;
}

@keyframes drawCurve {
    to { stroke-dashoffset: 0; }
}
.graph-stage {
    position: relative;
  top: 4px !important;
    width: 100%;
    flex: 1 1 auto;
    height: auto;
    min-height: 255px;
    overflow: hidden;
}

.wealth-markers-placeholder {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
    overflow: hidden;
    font-family: "Blond Spec", "Blond", "Inter", sans-serif;
    letter-spacing: 0.15em;
}

.rtr-wealth-marker {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1px;
    display: flex;
    align-items: center;
}

.rtr-wealth-marker::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.rtr-wealth-marker.is-zero::after {
    border-top-color: rgba(255, 255, 255, 0.28);
}

.rtr-wealth-marker-label {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.58rem;
    font-weight: 760;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(18, 24, 34, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.rtr-wealth-marker.is-edge-top .rtr-wealth-marker-label {
    transform: translateY(0%);
}

.rtr-wealth-marker.is-edge-bottom .rtr-wealth-marker-label {
    transform: translateY(-100%);
}

.graph-focus-marker {
    position: absolute;
    width: 0;
    height: 0;
    z-index: 8;
}

.graph-focus-crosshair-x {
    position: absolute;
    left: -9999px;
    right: -9999px;
    top: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.graph-focus-crosshair-y {
    position: absolute;
    top: -9999px;
    bottom: -9999px;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.graph-focus-dot {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.35);
}

.graph-focus-marker.is-start .graph-focus-dot {
    background: rgba(186, 220, 255, 0.96);
    border-color: rgba(190, 226, 255, 0.96);
}

.graph-focus-marker.is-peak .graph-focus-dot {
    background: rgba(255, 247, 191, 0.96);
    border-color: rgba(255, 247, 191, 0.96);
}

.graph-focus-label {
    position: absolute;
    min-width: 140px;
    max-width: min(280px, calc(100vw - 90px));
    padding: 4px 8px;
    font-size: 0.5rem;
    font-weight: 760;
    line-height: 1.2;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
    background: rgba(14, 20, 32, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.graph-focus-marker.is-align-right .graph-focus-label {
    left: 8px;
}

.graph-focus-marker.is-align-left .graph-focus-label {
    right: 8px;
}

.graph-focus-marker.is-label-above .graph-focus-label {
    bottom: 8px;
}

.graph-focus-marker.is-label-below .graph-focus-label {
    top: 8px;
}

.age-markers-placeholder {
    position: absolute;
    bottom: 18px;
    left: 8px;
    width: 98%;
    height: 28px;
    pointer-events: none;
    z-index: 7;
  color: var(--ambient-text-primary);
}

.rtr-age-marker {
    position: absolute;
    bottom: 0;
    width: 1px;
    height: 100%;
    transform: translateX(-50%);
}

.rtr-age-marker::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 1px;
    height: 8px;
    background: rgba(255, 255, 255, 0.34);
    transform: translateX(-50%);
}

.rtr-age-marker.is-minor::before {
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
}

.rtr-age-marker-label {
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    font-size: 0.56rem;
    font-family: "Blond Spec", "Blond", "Inter", sans-serif;
    font-weight: 740;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.76);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.38);
}

.rtr-age-marker.is-minor .rtr-age-marker-label {
    opacity: 0;
}

.graph-panel-cards-holder {
    position: absolute;
    top: 2px;
    left: 6.4%;
    width: 93.5%;
    height: 200px;
    gap: 16px;

     background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(253, 253, 253, 0.37);
      box-shadow:
         0 8px 25px rgba(151, 151, 151, 0.08),
        inset 0 0 18px 4px rgba(255, 255, 255, 0.06);
    border-radius: 25px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  z-index: 100000!important;
  pointer-events: auto;

}

.graph-panel-cards-request-button {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 190px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: var(--ambient-text-primary);
    color: rgba(230, 234, 245, 0.95);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    z-index: 100020;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  opacity: 0.5;
}

.graph-panel-cards-request-button-label {
    position: relative;
    z-index: 2;
    opacity: 1;
    transition: opacity 180ms ease;
}

.graph-panel-cards-request-button-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(76, 140, 255, 0.78), rgba(68, 121, 246, 0.82));
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
    z-index: 3;
}

.graph-panel-cards-request-button-timer {
    color: rgba(214, 218, 229, 0.9);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.07em;
}

.graph-panel-cards-request-button.is-cooldown-active .graph-panel-cards-request-button-overlay {
    opacity: 1;
}

.graph-panel-cards-request-button.is-cooldown-active .graph-panel-cards-request-button-label,
.graph-panel-cards-request-button.is-cooldown-ending .graph-panel-cards-request-button-label {
    opacity: 0.24;
}

.graph-panel-cards-request-button.is-cooldown-ending .graph-panel-cards-request-button-overlay {
    transition-duration: 170ms;
}

.graph-panel-cards-request-button:disabled {
    cursor: not-allowed;
}

.graph-panel-cards-delivery-indicator {
    position: absolute;
    right: 16px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    color: rgba(172, 177, 189, 0.88);
    z-index: 100020;
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.graph-panel-cards-delivery-indicator.is-visible {
    opacity: 1;
}

.graph-panel-cards-delivery-indicator-text {
    color: rgba(172, 177, 189, 0.9);
}

.graph-panel-cards-delivery-indicator-dot {
    color: rgba(150, 155, 168, 0.5);
    transition: color 230ms ease;
    font-size: 0.95em;
}

.graph-panel-cards-delivery-indicator-dot.is-active {
    color: rgba(226, 230, 238, 0.95);
}

body:has(.timing__panel.is-open) .planner_panel:not(.is-open),
body:has(.timing__panel.is-open) .trading__sim-panel:not(.is-open) {
  pointer-events: none;
}
.graph-panel-cards {
    position: relative;
    top: 1.5px;
    left: 5px;
    width: 35%;
    height: 95%;

    /* Deep Glassmorphism - Heavy frosted glass effect */
    background: rgba(175, 175, 175, 0.08);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);

    /* Edge Lighting - Simulating light hitting glass */
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    border-left: 2px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);

    /* Floating glow effect */
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.24),
        0 0 80px rgba(255, 255, 255, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);

    border-radius: 25px;
}

.graph-panel-cards--pinned,
.timing__panel-pinned-cards-holder .graph-panel-cards {
    top: -10px;
    left: 0;
    width: 420px;
    min-width: 420px;
    height: 200px;
    flex: 0 0 420px;
}

.graph-panel-cards--effect-disabled {
    opacity: 0.76;
    filter: saturate(0.7);
    transition: opacity 280ms ease, filter 280ms ease;
}

.timing__panel-pinned-cards-holder .graph-panel-cards-button-block-line {
  top: 82%;
}

.timing__panel-pinned-cards-holder .graph-panel-cards-actions {
  bottom: 2px;
  gap: 6px;
}

.timing__panel-pinned-cards-holder .graph-panel-cards-actions button {
  height: 16px;
  font-size: 0.68rem;
  padding: 0 5px;
}
.graph-panel-cards-advanced-overview-stats-block-name {
  position: absolute;
  top: 60px;
  left: 44%;
  width: 224px;
  height: 30px;
  color: var(--ambient-text-primary);
  font-size: 0.8rem;
}
.graph-panel-cards-name-block {
     position: absolute;
    top: 6px;
    left: 8.5px;
    width: 90%;
    height: 27%;
    color: var(--ambient-text-primary);
  font-size: 0.95rem;
}
.graph-panel-cards-name-block-line {
    position: absolute;
    top: 30px;
    left: 0%;
    width: 42.5%;
    height: 1px;
    background: rgba(255, 255, 255, 0.24);
}
.graph-panel-cards-overview-block-line {
  position: absolute;
  top: 30px;
  left: 42%;
  width: 58%;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
  text-align: left;
}
.graph-panel-cards-overview-stats-block {
  position: absolute;
  top: 30px;
  left: 42%;
  width: 224px;
  height: 30px;
  background: rgba(165, 165, 165, 0.15);
}
.graph-panel-cards-advance-overview-stats-block {
  position: absolute;
  top: 75px;
  left: 42%;
  width: 224px;
  height: 88px;
  background: rgba(165, 165, 165, 0.15);
}
.graph-panel-cards-advanced-overview-block-line {
  position: absolute;
  top: 75px;
  left: 42%;
  width: 58%;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
  text-align: left;
}
.graph-panel-cards-overview-ages-stats-block {
  position: absolute;
  top: 33.5px;
  left: 46%;
  width: 200px;
  height: 20px;
  color: rgba(255, 255, 255, 0.41);
  text-align: left;
  font-size: 0.55rem;
}
.graph-panel-cards-overview-networth-stats-block {
  position: absolute;
  top: 33.5px;
  left: 57.5%;
  width: 200px;
  height: 20px;
  color: rgba(255, 255, 255, 0.41);
  text-align: left;
  font-size: 0.55rem;
}
.graph-panel-cards-overview-networth-value-stats-block {
  position: relative;
  left: 13px;
}
.graph-panel-cards-overview-TTE-stats-block {
  position: absolute;
  top: 33.5px;
  left: 76.5%;
  width: 200px;
  height: 20px;
  color: rgba(255, 255, 255, 0.41);
  text-align: left;
  font-size: 0.55rem;
}
.graph-panel-cards-overview-TTE-value-stats-block {
  position: relative;
  left: -6px;
}
.graph-panel-cards-overview-monthlyimpact-stats-block {
  position: absolute;
  top: 33.5px;
  left: 86%;
  width: 200px;
  height: 20px;
  color: rgba(255, 255, 255, 0.41);
  text-align: left;
  font-size: 0.5rem;
}
.graph-panel-cards-advanced-overview-timeline-stats-block-name {
  position: absolute;
  top: 80px;
  left: 45%;
  width: 150px;
  height: 30px;
  color: rgba(255, 255, 255, 0.41);
  font-size: 0.45rem;
}
.graph-panel-cards-advanced-overview-timeline-stats-block-name-line {
  position: absolute;
  top: 40%;
  left: 61%;
  width: 1px;
  height: 46%;
  background: rgba(255, 255, 255, 0.24);
}
.graph-panel-cards-advanced-overview-timeline-stats-block-name-line-2 {
  position: absolute;
  top: 40%;
  left: 77%;
  width: 1px;
  height: 46%;
  background: rgba(255, 255, 255, 0.24);
}
.graph-panel-cards-advanced-overview-risk-stats-block-name {
  position: absolute;
  top: 78px;
  left: 62%;
  width: 150px;
  height: 30px;
  color: rgba(255, 255, 255, 0.41);
  font-size: 0.55rem;
}
.graph-panel-cards-advanced-overview-peaknetworth-stats-block-name {
  position: absolute;
  top: 92.5px;
  left: 62%;
  width: 150px;
  height: 30px;
  color: rgba(255, 255, 255, 0.41);
  font-size: 0.5rem;
}
.graph-panel-cards-advanced-overview-peaknetworthplus-stats-block-name {
  color: rgba(201, 255, 178, 0.6);
}
.graph-panel-cards-advanced-overview-dipnetworth-stats-block-name {
  position: absolute;
  top: 104px;
  left: 62%;
  width: 150px;
  height: 30px;
  color: rgba(255, 255, 255, 0.41);
  font-size: 0.55rem;
}
.graph-panel-cards-advanced-overview-dipnetworthminus-stats-block-name {
  color: rgba(255, 184, 184, 0.46);
}
.graph-panel-cards-advanced-overview-effort-stats-block-name {
  position: absolute;
  top: 140px;
  left: 62%;
  width: 150px;
  height: 30px;
  color: rgba(255, 255, 255, 0.41);
  font-size: 0.5rem;
}
.graph-panel-cards-advanced-overview-effortpercent-stats-block-name {
  color: rgba(201, 255, 178, 0.6);
}
.graph-panel-cards-advanced-overview-commitment-stats-block-name {
  position: absolute;
  top: 130px;
  left: 62%;
  width: 150px;
  height: 30px;
  color: rgba(255, 255, 255, 0.41);
  font-size: 0.37rem;
}
.graph-panel-cards-advanced-overview-commitmentpercent-stats-block-name {
  color: rgba(255, 174, 0, 0.51);
}
.graph-panel-cards-advanced-overview-hingeson-stats-block-name {
  position: absolute;
  top: 80px;
  left: 82%;
  width: 70px;
  height: 30px;
  color: rgba(255, 255, 255, 0.41);
  font-size: 0.55rem;
}
.graph-panel-cards-advanced-overview-hingesonoutcome-stats-block-name {
  position: absolute;
  top: 10px;
  left: -35%;
  width: 100px;
  height: 30px;
  font-size: 0.47rem;
  text-align: center;
}
.graph-panel-cards-advanced-overview-control-stats-block-name {
  position: absolute;
  top: 140px;
  left: 82%;
  width: 70px;
  height: 30px;
  color: rgba(255, 255, 255, 0.41);
  font-size: 0.55rem;
}
.graph-panel-cards-advanced-overview-controlcategory-stats-block-name {
  position: relative;
  color: white;
  left: 3px;
}
.graph-panel-cards-overview-control-stats-block-line {
  position: absolute;
  top: 138px;
  left: 77%;
  width: 23%;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
  opacity: 0;

 }
.graph-panel-cards-advanced-overview-risk--stats-block-name {
  color: rgba(255, 184, 184, 0.46);
  font-size: 0.7rem;
}
.graph-panel-cards-advanced-overview-stability-stats-block-name {
  position: absolute;
  top: 150px;
  left: 62%;
  width: 150px;
  height: 30px;
  color: rgba(255, 255, 255, 0.41);
  font-size: 0.4rem;
}
.graph-panel-cards-advanced-overview-stabilitypercent-stats-block-name {
  font-size: 0.5rem;
  color: rgba(201, 255, 178, 0.6);
}
.graph-panel-cards-ages-block-line {
  position: absolute;
  top: 31px;
  left: 56%;
  width: 1px;
  height: 15%;
  background: rgba(255, 255, 255, 0.24);
}
.graph-panel-cards-networth-block-line {
  position: absolute;
  top: 31px;
  left: 73%;
  width: 1px;
  height: 15%;
  background: rgba(255, 255, 255, 0.24);
}
.graph-panel-cards-TTE-block-line {
  position: absolute;
  top: 31px;
  left: 84%;
  width: 1px;
  height: 15%;
  background: rgba(255, 255, 255, 0.24);
}
.graph-panel-cards-overview-stats-block-line {
  position: absolute;
  top: 60px;
  left: 42%;
  width: 58%;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
  text-align: left;
}
.graph-panel-cards-overview-block {
  position: absolute;
  top: 6px;
  left: 44%;
  width: 58%;
  height: 10px;
  color: var(--ambient-text-primary);
  text-align: left;
  font-size: 1rem;
}

.graph-panel-cards-button-block-line {
  position: absolute;
  top: 86%;
  left: 0%;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
  text-align: left;
}
.graph-panel-cards-sum-block {
    position: absolute;
    left: 3px;
    width: 90%;
    height: 20%;
    color: var(--ambient-text-secondary);
    max-lines: 4;
}
.graph-panel-cards-sum-block-line {
    position: absolute;
    top: -30px;
  left: 108%;
    height: 190px;
    width: 1px;
    background: rgba(255, 255, 255, 0.24);
}
.graph-panel-cards-actions {
  position: absolute;
  right: 12px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.graph-panel-cards-accept {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 20px;

    /* Neumorphic with original colors */
    background: rgba(76, 76, 76, 0.15);
    backdrop-filter: blur(10px);

    /* Pressed/Etched effect */
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.15),
        inset -2px -2px 5px rgba(255, 255, 255, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.05);

    border: 1px solid rgba(74, 74, 74, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;

    color: #303030;
    font: inherit;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    max-lines: 1;
    line-height: 1;
    line-snap: contain;

    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 6px;
}

.graph-panel-cards-accept:hover {
    background: rgba(96, 96, 96, 0.2);
    box-shadow:
        inset 1px 1px 3px rgba(0, 0, 0, 0.1),
        inset -1px -1px 3px rgba(255, 255, 255, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.graph-panel-cards-accept:active {
    box-shadow:
        inset 3px 3px 7px rgba(0, 0, 0, 0.2),
        inset -1px -1px 3px rgba(255, 255, 255, 0.15);
    transform: translateY(0px);
}
.graph-panel-cards-decline {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 20px;

    /* Neumorphic with original colors */
    background: rgba(76, 76, 76, 0.15);
    backdrop-filter: blur(10px);

    /* Pressed/Etched effect */
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.12),
        inset -2px -2px 5px rgba(255, 255, 255, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.05);

    border: 1px solid rgba(74, 74, 74, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;

    color: #303030;
    font: inherit;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    max-lines: 1;
    line-height: 1;
    line-snap: contain;

    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 6px;
}

.graph-panel-cards-decline:hover {
    background: rgba(96, 96, 96, 0.2);
    box-shadow:
        inset 1px 1px 3px rgba(0, 0, 0, 0.1),
        inset -1px -1px 3px rgba(255, 255, 255, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.graph-panel-cards-decline:active {
    box-shadow:
        inset 3px 3px 7px rgba(0, 0, 0, 0.18),
        inset -1px -1px 3px rgba(255, 255, 255, 0.15);
    transform: translateY(0px);
}
.graph-panel-cards-review,
.graph-panel-cards-review-option,
.graph-panel-cards-disable,
.graph-panel-cards-delete {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 20px;

    /* Neumorphic with original colors */
    background: rgba(76, 76, 76, 0.15);
    backdrop-filter: blur(10px);

    /* Pressed/Etched effect */
    box-shadow:
        inset 2px 2px 5px rgba(0, 0, 0, 0.12),
        inset -2px -2px 5px rgba(255, 255, 255, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.05);

    border: 1px solid rgba(74, 74, 74, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;

    color: #303030;
    font: inherit;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    max-lines: 1;
    line-height: 1;


    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 6px;
}
.graph-panel-cards-review-option {
  width: 76px;
}
.graph-panel-cards-review:hover,
.graph-panel-cards-review-option:hover,
.graph-panel-cards-disable:hover,
.graph-panel-cards-delete:hover {
    background: rgba(96, 96, 96, 0.2);
    box-shadow:
        inset 1px 1px 3px rgba(0, 0, 0, 0.1),
        inset -1px -1px 3px rgba(255, 255, 255, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.graph-panel-cards-review:active,
.graph-panel-cards-review-option:active,
.graph-panel-cards-disable:active,
.graph-panel-cards-delete:active {
    box-shadow:
        inset 3px 3px 7px rgba(0, 0, 0, 0.18),
        inset -1px -1px 3px rgba(255, 255, 255, 0.15);
    transform: translateY(0px);
}

.graph-panel-cards-review {
  position: relative;
  z-index: 4;
}

.graph-panel-cards-disable {
  width: 66px;
}

.graph-panel-cards-delete {
  width: 60px;
}

.graph-panel-cards-disable.is-disabled {
  background: var(--ambient-text-primary);
  color: rgba(21, 21, 21, 0.86);
  border-color: rgba(255, 255, 255, 0.38);
  transition: background 300ms ease, color 300ms ease, border-color 300ms ease;
}

.graph-panel-cards-review-floating-menu {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  filter: blur(4px);
  pointer-events: none;
  transition:
    opacity 280ms ease,
    transform 280ms cubic-bezier(0.4, 0, 0.2, 1),
    filter 280ms ease;
  z-index: 10002;
}

.graph-panel-cards-review-floating-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
  pointer-events: auto;
}
.graph-panel-cards-type-indictor-bubble {
  position: absolute;
  bottom: 2.5px;
  left: 15px;
  width: 140px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  box-sizing: border-box;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  background: rgba(197, 197, 197, 0.11);
  border: 1.5px solid rgba(255, 255, 255, 0.41);
  pointer-events: none;
  user-select: none;
  transition:
    background-color 0.9s ease-in-out,
    border-color 0.9s ease-in-out,
    color 0.9s ease-in-out,
    box-shadow 0.9s ease-in-out;
}

.graph-panel-cards-type-indictor-bubble.type-indicator-mental-health {
  background-color: #d4af37;
  border-color: #ffd447;
  color: #ffd447;
  box-shadow: 0 0 8px rgba(255, 212, 71, 0.45);
}

.graph-panel-cards-type-indictor-bubble.type-indicator-income {
  background-color: #013220;
  border-color: #8db600;
  color: #8db600;
  box-shadow: 0 0 8px rgba(141, 182, 0, 0.45);
}

.graph-panel-cards-type-indictor-bubble.type-indicator-refinement {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 1px rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.graph-panel-cards-type-indictor-bubble.type-indicator-schedule {
  background-color: #000080;
  border-color: #00bfff;
  color: #00bfff;
  box-shadow: 0 0 8px rgba(0, 191, 255, 0.45);
}
.rtr-marker {
    --rtr-line-top: 0px;
    --rtr-line-bottom: 0px;
    position: absolute;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
    transition: opacity 220ms ease;
}

.rtr-line-top {
    position: absolute;
    left: -1px;
    bottom: 0;
    width: 2px;
    height: var(--rtr-line-top);
    background: linear-gradient(to top, var(--ambient-text-primary), var(--ambient-text-secondary));
    box-shadow: 0 0 10px var(--ambient-text-primary);
    opacity: 0.85;
}

.rtr-line-bottom {
    position: absolute;
    left: -1px;
    top: 0;
    width: 2px;
    height: var(--rtr-line-bottom);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
}

.rtr-dot {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 12px;
    height: 12px;
    background: var(--ambient-text-secondary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--ambient-text-primary), 0 0 40px var(--ambient-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 11;
    opacity: 1;
}

.rtr-label {
    position: absolute;
    top: -24px;
    left: 0;
    transform: translateX(-50%);
    font-family: "Blond Spec", "Blond", "Inter", sans-serif;
    font-size: 10px;
    font-weight: 800;
    color: var(--ambient-text-secondary);
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px var(--ambient-text-primary);
    white-space: nowrap;
}

.rtr-marker.is-label-below .rtr-label {
    top: 12px;
}

.rtr-marker.is-label-left .rtr-label {
    left: -8px;
    transform: translateX(-100%);
}

.rtr-marker.is-label-right .rtr-label {
    left: 8px;
    transform: translateX(0);
}

.timing__panel.is-open ~ .ai-panel {
    filter: blur(4px) grayscale(0%);
    border-top-left-radius: 0px;
}

.trading__sim-panel {
    position: absolute;
    top: 140px;
    left: 85px;
    width: 90%;
    height: 600px;
    background: rgba(197, 197, 197, 0.32);
    border: 1px solid rgba(253, 253, 253, 0.37);
    box-shadow:
        0 8px 25px rgba(151, 151, 151, 0.08),
        inset 0 0 18px 4px rgba(255, 255, 255, 0.06);
    border-radius: 45px;
    opacity: 0;
    transition: opacity 300ms ease;
    z-index: 1;
    overflow: visible;
    pointer-events: none;
}
.trading__sim-panel.is-open {
    opacity: 1;
    pointer-events: auto;

}
.trading__sim-panel.is-open ~ .ai-panel.is-open {
    opacity: 0;
    transition:
        opacity 0.5s ease-out;
}
.trading__sim-panel.is-open ~ .ai-panel {
    filter: blur(4px) grayscale(0%);
    border-top-left-radius: 0px;
}
/* Asset Selector Container */
.trading__sim-panel-asset-selector {
    position: absolute;
    top: 2px;
    left: 27%;
    width: 45%;
    height: 48px;
    z-index: 100;
}

.trading__sim-panel-asset-name {
    position: relative;
    width: 100%;
    height: 30px;
    border: 2.5px solid rgba(253, 253, 253, 0.37);
    border-top: transparent;
    outline: none;
    letter-spacing: 0.20em;
    font-size: 1.5rem;
    color: var(--ambient-text-primary);
    text-align: center;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.trading__sim-panel-asset-name:hover {
    border-color: rgba(253, 253, 253, 0.5);
}

.asset-icon {
    font-size: 1.5rem;
    font-weight: bold;
}

.asset-label {
    flex: 1;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.trading__sim-panel-asset-selector.is-open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Panel */
.asset-dropdown-panel {
    position: absolute;
    top: 35px;
    left: 0;
    width: 500px;
    height: 0;
    opacity: 0;
    overflow: hidden;
    background: rgba(200, 200, 200, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        inset 0 0 20px rgba(255, 255, 255, 0.15);
    transition: height 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
    pointer-events: none;
}

.asset-dropdown-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.asset-dropdown-panel.is-open {
    height: 400px;
    opacity: 1;
    pointer-events: auto;
}

/* Category Buttons */
.asset-dropdown-categories {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.asset-category-btn {
    flex: 1;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.asset-category-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.asset-category-btn.active {
    background: rgba(255, 255, 255, 0.25);
    color: var(--ambient-text-primary);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Asset List Content */
.asset-dropdown-content {
    position: relative;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.asset-list {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
}

.asset-list.active {
    display: flex;
}

/* Asset Items */
.asset-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.85);
}

.asset-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.asset-item-icon {
    font-size: 1.8rem;
    font-weight: bold;
    width: 32px;
    text-align: center;
}

.asset-item-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
}

.asset-item-pair {
    font-size: 0.85rem;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* Mystery Message */
.mystery-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    font-style: italic;
}

/* Scrollbar Styling */
.asset-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.asset-dropdown-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.asset-dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.asset-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.BCOIN-SYMB {
  color: #cca401; !important;
}
.trading__sim-panel-live {
    position: relative;
    left: 72%;
    top: -37px;
    width: 200px;
    height: 32px;
     border: 2.5px solid rgba(253, 253, 253, 0.37);;
    border-top: transparent;
  border-left: transparent;
    border-radius: 40px;
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    outline: none;
    letter-spacing: 0.70em;
    font-size: 1.5rem;
    color: red;
    filter: drop-shadow(0px 0px 5px var(--ambient-text-secondary));
    text-align: center;
    line-height: 35px;
}
.dot {
    color: red;
    filter: drop-shadow(0px 0px 5px #ff0000);
}
.trading__sim-panel-current-block {
position: relative;
    left: 7.8%;
    top: -2px;
    width: 205px;
    height: 32px;
     border: 2.5px solid rgba(253, 253, 253, 0.37);;
  border-right: transparent;
    border-top: transparent;
    border-radius: 40px;
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;

  border-bottom-right-radius: 0px;
    outline: none;
    letter-spacing: 0.40em;
    font-size: 0.98rem;
  text-align: right;
  line-height: 35px


}

.percent-health {
  color: rgba(250, 250, 250, 0.37);
}
.current-price {
  color: var(--ambient-text-primary);
}

.trading__sim-panel-graph {
    position: absolute;
    top: 14%;
    left: 17%;
    width: 65%;
    height: 400px;
    background: rgba(197, 197, 197, 0.32);
    border: 1px solid rgba(253, 253, 253, 0.37);
    box-shadow:
        0 8px 25px rgba(151, 151, 151, 0.08),
        inset 0 0 18px 4px rgba(255, 255, 255, 0.06);
    border-radius: 25px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    overflow: visible;
}
.trading__sim-panel-graph-inner {
position: absolute;
    top: 0%;
    left: 0%;
    width: 85%;
    height: 85%;
     background: transparent;
    border: 1px solid rgba(253, 253, 253, 0.37);
    box-shadow:
        0 8px 25px rgba(151, 151, 151, 0.08),
        inset 0 0 18px 4px rgba(255, 255, 255, 0.06);
    border-top: transparent;
    border-left: transparent;
    pointer-events: all;
    overflow: hidden;
    isolation: isolate;
}

.trading__sim-panel-graph-inner * {
    pointer-events: auto;
}

.trading__sim-panel-graph-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(
        to right,
        rgba(255, 255, 255, 0.04) 0px,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px,
        transparent 38px
      ),
      repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.04) 0px,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1px,
        transparent 34px
      );
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.sim-target-lines-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.sim-target-line {
    position: absolute;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
    opacity: 0;
    transition: opacity 220ms ease;
}

.sim-target-line.is-visible {
    opacity: 1;
}

.sim-target-line-label,
.sim-target-line-value {
    font-family: "Blond Spec", "Blond", "Inter", sans-serif;
    font-size: 0.56rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sim-target-line-label {
    max-width: 33%;
}

.sim-target-line-value {
    max-width: 33%;
    margin-left: auto;
    text-align: right;
}

.sim-target-line-track {
    flex: 1;
    min-width: 0;
    height: 1px;
    background: currentColor;
    opacity: 0.95;
}

.sim-target-line--buy {
    color: var(--ambient-text-primary);
}

.sim-target-line--sell {
    color: var(--ambient-text-secondary);
}

/* Timestamp Slider */
.timestamp-slider-container {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: all;
}

.slider-wrapper {
    position: relative;
    width: 200px;
}

.timestamp-slider {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: 1px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

/* Slider thumb - WebKit */
.timestamp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 1px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.timestamp-slider::-webkit-slider-thumb:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Slider thumb - Firefox */
.timestamp-slider::-moz-range-thumb {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 1px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.timestamp-slider::-moz-range-thumb:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Slider ticks */
.slider-ticks {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.slider-ticks .tick {
    width: 1px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.15);
}

/* Timestamp labels */
.timestamp-labels {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.timestamp-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    user-select: none;
}

.timestamp-label.active {
    color: var(--ambient-text-primary);
    text-shadow: 0 0 8px var(--ambient-text-primary);
    font-weight: 600;
}
.sim-graph-svg {
    position: relative;
    top: 200px;
    width: 100%;
    height: 100%;
    overflow: visible;
}
/* Aligning the candles within the graph panel */
.candle-container {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center; /* Keeps candles centered vertically */
    justify-content: flex-start;
    gap: 12px;           /* Space between each candle */
    padding: 40px;
    height: 100%;
    overflow-x: auto;
  pointer-events: none;/* Allows scrolling if the chart gets long */
}

/* Base Candle Structure */
.candle {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 14px; /* Thickness of the candle */
}

.candle .body {
    width: 100%;
    border-radius: 2px;
}

/* The "Thin Wick" Look */
.candle .wick {
    width: 1px;
    height: 15px; /* Adjust wick length for more/less volatility */
}

/* MimiR GOLD (Growth) */
.candle.gold .body {
    background: var(--ambient-text-primary);
    box-shadow: 0 0 15px var(--ambient-text-primary);
    border: 1px solid var(--ambient-text-primary);
}
.candle.gold .wick {
    background: rgba(201, 255, 178, 0.6);
}

/* MimiR RED (Loss) */
.candle.red .body {
    background: var(--ambient-text-secondary);
    box-shadow: 0 0 15px var(--ambient-text-secondary);
    border: 1px solid var(--ambient-text-secondary);
}
.candle.red .wick {
    background: rgba(255, 184, 184, 0.46);
}
/* The 'Breathing' Animation
@keyframes glass-pulse-gold {
    0% { box-shadow: 0 8px 25px rgba(151, 151, 151, 0.08), inset 0 0 18px 4px rgba(255, 255, 255, 0.06); border-color: rgba(253, 253, 253, 0.37); }
    20% { box-shadow: 0 0 40px rgba(204, 164, 1, 0.2), inset 0 0 25px rgba(204, 164, 1, 0.1); border-color: rgba(204, 164, 1, 0.5); }
    50% { box-shadow: 0 8px 25px rgba(151, 151, 151, 0.08), inset 0 0 18px 4px rgba(255, 255, 255, 0.06); border-color: rgba(253, 253, 253, 0.37); }
}

/* Apply it to your panel when it's open
.trading__sim-panel-graph-inner {
    opacity: 1;
    animation: glass-pulse-gold 4s infinite ease-in-out; /* Slow 4-second breath */
}
/*
.order-book {
    position: absolute;
    top: 0%;
    right: -29%;
    width: 120px;
    height: 400px;
    border-left: transparent;
    padding: 10px;
    border-radius: 0 20px 20px 0;
}

.order-book-header {
    font-size: 0.5rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
    text-align: center;
}

.order-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    margin-bottom: 8px;
    font-family: 'Courier New', Courier, monospace; /* Monospaced for numbers */
}

.order-item.buy { color: #cca401; opacity: 0.8; }
.order-item.sell { color: #ff3232; opacity: 0.8; }
.trading__sim-stats-bar {
    position: absolute;
    top: 55px;
    left: 17%;
    width: 65%;
    display: flex;
    justify-content: space-around;
    height: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 4px;
  line-height: 10px;
}

.stat-value {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(250, 250, 250, 0.37)
}
.up-dash-left {
  color: rgba(201, 255, 178, 0.6);
}
.up-dash-right {
  color: rgba(201, 255, 178, 0.6);
}
.down-dash-left {
  color: rgba(255, 184, 184, 0.46);
}
.down-dash-right {
  color: rgba(255, 184, 184, 0.46);
}
.info_control-line {
  position: absolute;
  top: 85%;
  right: 104px;
  width: 1px;
  height: 63px;
  background: rgba(253, 253, 253, 0.37);
}
.sim_quick-buy {
  position: absolute;
  bottom: 5px;
  left: 5px;
  width: 70px;
  height: 15px;
background-color: color-mix(in srgb, var(--ambient-text-primary), transparent 50%);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgb(241, 241, 241);
  font-size: 0.6362rem;
  max-lines: 1;
  z-index: 100;

}
.sim_quick-sell {
  position: absolute;
  bottom: 5px;
  left: 85px;
  width: 70px;
  height: 15px;
background-color: color-mix(in srgb, var(--ambient-text-secondary), transparent 50%);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgb(241, 241, 241);
  font-size: 0.5943rem;
  max-lines: 1;
  z-index: 100;

}
.sim_sell {
  position: absolute;
  bottom: 22.5px;
  left: 86px;
  width: 70px;
  height: 35px;
background-color: color-mix(in srgb, var(--ambient-text-secondary), transparent 50%);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgb(241, 241, 241);
  font-size: 1.25rem;
  max-lines: 1;
  z-index: 100;
  font-weight: 600;
  font-family: inherit;

}
/* ========================================
   LEVERAGE DIAL CONTROL
   ======================================== */
.leverage-holder {
  position: absolute;
  bottom: -67.5px;
  left: 8px;
  width: 65px;
  height: 65px;
  border-radius: 40%;
  border: 1px solid rgb(255, 255, 255);
  border-top: transparent;
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;
background: rgba(211, 211, 211, 0.2);
  z-index: 10;
}
.leverage-dial-container {
  position: absolute;
  bottom: -60px;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 100;
}

.leverage-counter {
  position: relative;
  top: 35px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ambient-text-primary);
  text-align: center;
  font-family: inherit;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 0 8px var(--ambient-text-primary);
}

.leverage-dial {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  cursor: grab;
  user-select: none;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2),
              inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.leverage-dial:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
              inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.leverage-dial:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.leverage-dial-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    color-mix(in srgb, var(--ambient-text-primary) 80%, white 20%),
    var(--ambient-text-primary));
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 0 15px var(--ambient-text-primary);
}

.leverage-dial-ticks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.leverage-dial-ticks::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.8) 0deg 2deg,
    transparent 2deg 10deg,
    rgba(255, 255, 255, 0.8) 10deg 12deg,
    transparent 12deg 20deg,
    rgba(255, 255, 255, 0.8) 20deg 22deg,
    transparent 22deg 30deg,
    rgba(255, 255, 255, 0.8) 30deg 32deg,
    transparent 32deg 40deg,
    rgba(255, 255, 255, 0.8) 40deg 42deg,
    transparent 42deg 50deg,
    rgba(255, 255, 255, 0.8) 50deg 52deg,
    transparent 52deg 60deg,
    rgba(255, 255, 255, 0.8) 60deg 62deg,
    transparent 62deg 70deg,
    rgba(255, 255, 255, 0.8) 70deg 72deg,
    transparent 72deg 80deg,
    rgba(255, 255, 255, 0.8) 80deg 82deg,
    transparent 82deg 90deg,
    rgba(255, 255, 255, 0.8) 90deg 92deg,
    transparent 92deg 100deg,
    rgba(255, 255, 255, 0.8) 100deg 102deg,
    transparent 102deg 110deg,
    rgba(255, 255, 255, 0.8) 110deg 112deg,
    transparent 112deg 120deg,
    rgba(255, 255, 255, 0.8) 120deg 122deg,
    transparent 122deg 130deg,
    rgba(255, 255, 255, 0.8) 130deg 132deg,
    transparent 132deg 140deg,
    rgba(255, 255, 255, 0.8) 140deg 142deg,
    transparent 142deg 150deg,
    rgba(255, 255, 255, 0.8) 150deg 152deg,
    transparent 152deg 160deg,
    rgba(255, 255, 255, 0.8) 160deg 162deg,
    transparent 162deg 170deg,
    rgba(255, 255, 255, 0.8) 170deg 172deg,
    transparent 172deg 180deg,
    rgba(255, 255, 255, 0.8) 180deg 182deg,
    transparent 182deg 190deg,
    rgba(255, 255, 255, 0.8) 190deg 192deg,
    transparent 192deg 200deg,
    rgba(255, 255, 255, 0.8) 200deg 202deg,
    transparent 202deg 210deg,
    rgba(255, 255, 255, 0.8) 210deg 212deg,
    transparent 212deg 220deg,
    rgba(255, 255, 255, 0.8) 220deg 222deg,
    transparent 222deg 230deg,
    rgba(255, 255, 255, 0.8) 230deg 232deg,
    transparent 232deg 240deg,
    rgba(255, 255, 255, 0.8) 240deg 242deg,
    transparent 242deg 250deg,
    rgba(255, 255, 255, 0.8) 250deg 252deg,
    transparent 252deg 260deg,
    rgba(255, 255, 255, 0.8) 260deg 262deg,
    transparent 262deg 270deg,
    rgba(255, 255, 255, 0.8) 270deg 272deg,
    transparent 272deg 280deg,
    rgba(255, 255, 255, 0.8) 280deg 282deg,
    transparent 282deg 290deg,
    rgba(255, 255, 255, 0.8) 290deg 292deg,
    transparent 292deg 300deg,
    rgba(255, 255, 255, 0.8) 300deg 302deg,
    transparent 302deg 310deg,
    rgba(255, 255, 255, 0.8) 310deg 312deg,
    transparent 312deg 320deg,
    rgba(255, 255, 255, 0.8) 320deg 322deg,
    transparent 322deg 330deg,
    rgba(255, 255, 255, 0.8) 330deg 332deg,
    transparent 332deg 340deg,
    rgba(255, 255, 255, 0.8) 340deg 342deg,
    transparent 342deg 350deg,
    rgba(255, 255, 255, 0.8) 350deg 352deg,
    transparent 352deg 360deg
  );
  mask: radial-gradient(circle, transparent 55%, black 56%, black 100%);
  -webkit-mask: radial-gradient(circle, transparent 55%, black 56%, black 100%);
}

.leverage-dial-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
  z-index: 3;
}
.leverage-label {
  position: absolute;
  top: 12.5px;
  font-size: 0.6rem;
  color: var(--ambient-text-primary)  ;
}
.leverage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.5rem;
  cursor: pointer;
  padding: 4px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.leverage-arrow:hover {
  color: var(--ambient-text-primary);
  transform: translateY(-50%) scale(1.3);
  text-shadow: 0 0 8px var(--ambient-text-primary);
}

.leverage-arrow:active {
  transform: translateY(-50%) scale(0.9);
}

.leverage-arrow-left {
  left: -14px;
}

.leverage-arrow-right {
  right: -14px;
}

.sim_buy {
  position: absolute;
  bottom: 22.5px;
  left: 5px;
  width: 70px;
  height: 35px;
background-color: color-mix(in srgb, var(--ambient-text-primary), transparent 50%);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgb(241, 241, 241);
  font-size: 1rem;
  max-lines: 1;
  z-index: 100;
  font-weight: 600;
  font-family: inherit;
}
.sim_PNL-panel {
  position: absolute;
  right: 0px;
  height: 90px;
  width: 103px;
  background: rgba(243, 243, 243, 0.09);
  border-bottom: 1px solid rgba(253, 253, 253, 0.37);
  overflow: visible;
  transition: height 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sim_PNL-panel.is-open {
  height: 340px;
}
/* 1. The Container: This defines WHERE the whole box sits */
.sim_PNL-panel-content {
  position: absolute; /* This anchors it to the parent graph panel */
  top: 30px;          /* Move it to the top corner */
  right: 25px;
  width: 100px;       /* Slightly wider for the text */
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Aligns the text to the right side of the box */
  text-align: right;
  gap: 5px;           /* Adds space between the PNL and the Asset Name */
}

.sim_PNL {
  position: absolute;
  top: 5px;
  right: 5px;
  color: rgba(250, 250, 250, 0.37);
  font-size: 0.85rem;
}
/* 3. The Value (+520.24) */
.sim_PNL-value {
  /* Remove position: relative and top/right from here! */
  color: var(--ambient-text-primary);
  font-size: 0.8rem;
  font-weight: bold;
}
/* 4. The Asset Name ((BIT/USD)) */
.PNL-bit {
  color: #cca401;
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Equity Display - positioned under the PNL panel */
.sim_equity {
  position: absolute;
  top: 95px;
  right: 20px;
  color: rgba(250, 250, 250, 0.37);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
}
.sim-panel-equity {
  position: absolute;
  right: 9px;
}
.sim_equity-value {
  position: absolute;
  top: 20px;
  color: var(--ambient-text-primary);
  font-size: 0.8rem;
  font-weight: bold;
}
.sim_equity-icons {
  position: absolute;
  top: 40px;
  right: 7px;
  width: 75px;
  gap: 2px;
}
.equity-bit {
  color: #cca401;
}
.equity-eth {
  color: #5884f3;
}
.equity-sol {
  color: #ffcc00;
}
.icon-left-bracket {
  color: rgba(250, 250, 250, 0.37)
}
.icon-right-bracket {
  color: rgba(250, 250, 250, 0.37)
}
/* sim_PNL-panel toggle button */
.sim_PNL-panel-toggle {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(200, 200, 200, 0.3);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 99999;
    pointer-events: auto !important;
    transition:
        transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
        background 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease,
        width 260ms ease,
        height 260ms ease;
}

.sim_PNL-panel-toggle:hover {
    background: rgba(220, 220, 220, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 10px rgba(110, 110, 110, 0.1);
}

.sim_PNL-panel-toggle:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.35);
    outline-offset: 3px;
}

.sim_PNL-panel-toggle-icon {
    width: 8px;
    height: 8px;
    border-left: 1.5px solid rgba(17, 24, 39, 0.5);
    border-bottom: 1.5px solid rgba(17, 24, 39, 0.5);
    transform: rotate(-45deg) translateY(-1px);
    transition: transform 320ms ease, border-color 260ms ease;
}

.sim_PNL-panel-toggle:hover .sim_PNL-panel-toggle-icon {
    border-color: rgba(17, 24, 39, 0.7);
}

.sim_PNL-panel-toggle.is-open .sim_PNL-panel-toggle-icon {
    transform: rotate(135deg) translateY(0);
}

.stat-value.gold { color: var(--ambient-text-primary) }
.stat-value.red { color: var(--ambient-text-secondary) }
.graph-panel-live-orders {
    position: absolute;
    top: 485px;
    left: 185px;
    width: 700px;
    height: 0;
    background: rgba(197, 197, 197, 0.32);
    border: 1px solid rgba(253, 253, 253, 0.37);
    border-radius: 25px;
    transition: height 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 11;
    border-top-right-radius: 0px;
    border-top-left-radius: 0px;
    border-top: transparent;
    opacity: 1;
    overflow: hidden;
}
.graph-panel-live-orders.is-open {
    opacity: 1;
    height: 200px;
    top: 485px;
}

/* Blur overlay for live orders panel */
.live-orders-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 10000;
    border-radius: 0px;
}

.graph-panel-live-orders.is-open .live-orders-blur-overlay {
    opacity: 1;
    pointer-events: auto;
}

.live-orders-coming-soon {
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
    animation: fadeInScale 560ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    opacity: 0;
    transform: scale(0.9);
}

.graph-panel-live-orders.is-open .live-orders-coming-soon {
    animation-delay: 200ms;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.graph-panel-live-orders-toggle {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(200, 200, 200, 0.3);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 99999;
    pointer-events: auto !important;
    transition:
        transform 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
        background 260ms ease,
        border-color 260ms ease,
        box-shadow 260ms ease,
        width 260ms ease,
        height 260ms ease;
}

.graph-panel-live-orders-toggle:hover {
    background: rgba(220, 220, 220, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 10px rgba(110, 110, 110, 0.1);
}

.graph-panel-live-orders-toggle:focus-visible {
    outline: 2px solid rgba(0, 0, 0, 0.35);
    outline-offset: 3px;
}

.graph-panel-live-orders-toggle-icon {
    width: 8px;
    height: 8px;
    border-left: 1.5px solid rgba(17, 24, 39, 0.5);
    border-bottom: 1.5px solid rgba(17, 24, 39, 0.5);
    transform: rotate(-45deg) translateY(-1px);
    transition: transform 320ms ease, border-color 260ms ease;
}

.graph-panel-live-orders-toggle:hover .graph-panel-live-orders-toggle-icon {
    border-color: rgba(17, 24, 39, 0.7);
}

.graph-panel-live-orders-toggle.is-open .graph-panel-live-orders-toggle-icon {
    transform: rotate(135deg) translateY(0);
}
.sim_ledger-panel {
  position: absolute;
  top: 180px;
  right: 0px;
  height: 220px;
  width: 103px;
  background: rgba(131, 131, 131, 0.09);
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 0.75rem;
  border-top: 1px solid rgba(253, 253, 253, 0.37);
}

.sim_ledger-panel-receipts-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.sim_ledger-panel-receipt {
  position: relative;
  width: 100%;
  min-height: 70px;
  padding-bottom: 5px;
}

.sim_ledger-panel-receipt .sim_ledger-panel-asset {
  position: absolute;
  left: 0px;
  top: 25px;
  color: #cca401;
}

.sim_ledger-panel-receipt .sim_ledger-panel-asset-currency {
  color: var(--ambient-text-primary);
}

.sim_ledger-panel-receipt .sim_ledger-panel-asset-state {
  color: rgba(250, 250, 250, 0.37);
  position: absolute;
  right: -42.5px;
  filter: drop-shadow(0px 0px 2px rgba(73, 104, 55, 0.2));
}

.sim_ledger-panel-receipt .sim_ledger-panel-asset-state-left-dash {
  color: rgba(201, 255, 178, 0.6);
}

.sim_ledger-panel-receipt .sim_ledger-panel-asset-state-right-dash {
  color: rgba(201, 255, 178, 0.6);
}

.sim_ledger-panel-receipt .sim_ledger-panel-asset-value {
  position: absolute;
  left: 0px;
  top: 40px;
  color: var(--ambient-text-secondary);
}

.sim_ledger-panel-receipt .sim_ledger-panel-asset-value-percent {
  color: rgba(250, 250, 250, 0.37);
}

.sim_ledger-panel-receipt .sim_ledger-panel-asset-value-percent-plus {
  color: rgba(201, 255, 178, 0.6);
}

.sim_ledger-panel-receipt .sim_ledger-panel-total {
  position: relative;
  top: 0px;
  left: -7.5px;
  color: var(--ambient-text-primary);
}

.sim_ledger-panel-receipt .sim_ledger-panel-total-name {
  position: absolute;
  right: 5px;
  top: 17px;
  color: var(--ambient-text-secondary);
}

.sim_ledger-panel-receipt .sim_ledger-panel-block-border {
  position: absolute;
  top: 25px;
  left: -24px;
  width: 200%;
  height: 1px;
  background: rgba(250, 250, 250, 0.37);
}

.sim_ledger-panel-name {
  position: absolute;
  right: 25px;
  top: 10px;
  color: rgba(250, 250, 250, 0.37);
  z-index: 10;
}
.sim_crosshair-name {
  position:absolute;
  top: 345px;
  right: 225px;
  color: rgba(250, 250, 250, 0.37);
  font-size: 0.6rem;
}

.sim_crosshair-checkbox {
  position: absolute;
  top: 360px;
  right: 245px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(197, 197, 197, 0.25);
  border: 1px solid rgba(253, 253, 253, 0.37);
  box-shadow:
    0 2px 8px rgba(151, 151, 151, 0.08),
    inset 0 0 6px 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.sim_crosshair-checkbox:hover {
  background: rgba(197, 197, 197, 0.35);
  box-shadow:
    0 3px 12px rgba(151, 151, 151, 0.12),
    inset 0 0 8px 2px rgba(255, 255, 255, 0.08);
}

.sim_crosshair-checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.crosshair-horizontal,
.crosshair-vertical {
  position: absolute;
  background: rgba(250, 250, 250, 0.9);
  transition: all 0.2s ease;
}

.crosshair-horizontal {
  top: 50%;
  left: 15%;
  width: 70%;
  height: 1.5px;
  transform: translateY(-50%);
}

.crosshair-vertical {
  left: 50%;
  top: 15%;
  width: 1.5px;
  height: 70%;
  transform: translateX(-50%);
}

.sim_crosshair-checkbox[aria-pressed="true"] .sim_crosshair-checkmark {
  opacity: 1;
}

.sim_crosshair-checkbox[aria-pressed="true"] {
  background: rgba(197, 197, 197, 0.4);
  border-color: rgba(253, 253, 253, 0.5);
}
.autosell-name {
  position: absolute;
  top: 345px;
  left: 300px;
  color: rgba(250, 250, 250, 0.37);
  display: flex;
  align-items: center;
  gap: 8px;
}

.autosell-checkbox {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(197, 197, 197, 0.25);
  border: 1px solid rgba(253, 253, 253, 0.37);
  box-shadow:
    0 2px 8px rgba(151, 151, 151, 0.08),
    inset 0 0 6px 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.autosell-checkbox:hover {
  background: rgba(197, 197, 197, 0.35);
  box-shadow:
    0 3px 12px rgba(151, 151, 151, 0.12),
    inset 0 0 8px 2px rgba(255, 255, 255, 0.08);
}

.autosell-checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.9);
  transition: transform 0.2s ease;
}

.autosell-checkbox[aria-pressed="true"] .autosell-checkmark {
  transform: translate(-50%, -50%) scale(1);
}

.autosell-checkbox[aria-pressed="true"] {
  background: rgba(197, 197, 197, 0.4);
  border-color: rgba(253, 253, 253, 0.5);
  filter: drop-shadow(0px 0px 2px var(--ambient-text-secondary));
}

.autosell-input-container {
  position: absolute;
  top: 373px;
  left: 290px;
 width: 107px;
  height: 1.5px;
  display: flex;
  align-items: center;
  position: relative;
}

.autosell-input {
  width: 100%;
  height: 100%;
  background: rgba(197, 197, 197, 0.15);
  border: 1px solid rgba(253, 253, 253, 0.25);
  border-radius: 8px;
  padding: 8px 45px 8px 12px;
  color: rgba(250, 250, 250, 0.85);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 0 12px rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.autosell-input::placeholder {
  color: rgba(250, 250, 250, 0.25);
  font-size: 12px;
}

.autosell-input:hover {
  background: rgba(197, 197, 197, 0.2);
  border-color: rgba(253, 253, 253, 0.35);
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 0 16px rgba(255, 255, 255, 0.05);
}

.autosell-input:focus {
background: rgba(197, 197, 197, 0.25);
  border-color: rgba(253, 253, 253, 0.45);
  box-shadow:
    0 4px 16px rgba(9, 97, 159, 0.09),
    0 0 0 1px rgba(9, 97, 159, 0.09),
    inset 0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.autosell-input-currency {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(250, 250, 250, 0.4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
}
.autosell-input-hint {
  position: absolute;
  left: 4px;
  top: calc(100% + 9px);
  max-width: 210px;
  font-family: "Blond Spec", "Blond", "Inter", sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--ambient-text-secondary) 70%, white 30%);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  white-space: nowrap;
}

.autosell-input-container.is-empty-active .autosell-input-hint {
  opacity: 0.9;
  transform: translateY(0);
}
.autobuy-name {
  position: absolute;
  top: 345px;
  left: 185px;
  color: rgba(250, 250, 250, 0.37);
  display: flex;
  align-items: center;
  gap: 8px;
}

.autobuy-checkbox {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(197, 197, 197, 0.25);
  border: 1px solid rgba(253, 253, 253, 0.37);
  box-shadow:
    0 2px 8px rgba(151, 151, 151, 0.08),
    inset 0 0 6px 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.autobuy-checkbox:hover {
  background: rgba(197, 197, 197, 0.35);
  box-shadow:
    0 3px 12px rgba(151, 151, 151, 0.12),
    inset 0 0 8px 2px rgba(255, 255, 255, 0.08);
}

.autobuy-checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.9);
  transition: transform 0.2s ease;
}

.autobuy-checkbox[aria-pressed="true"] .autobuy-checkmark {
  transform: translate(-50%, -50%) scale(1);
}

.autobuy-checkbox[aria-pressed="true"] {
  background: rgba(197, 197, 197, 0.4);
  border-color: rgba(253, 253, 253, 0.5);
  filter: drop-shadow(0px 0px 2px var(--ambient-text-primary));
}

.autobuy-input-container {
  position: absolute;
  top: 375px;
  left: 175px;
  width: 107px;
  height: 1.5px;
  display: flex;
  align-items: center;
  position: relative;
}

.autobuy-input {
  width: 100%;
  height: 100%;
  background: rgba(197, 197, 197, 0.15);
  border: 1px solid rgba(253, 253, 253, 0.25);
  border-radius: 8px;
  padding: 8px 45px 8px 12px;
  color: rgba(250, 250, 250, 0.85);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 3px rgba(0, 0, 0, 0.15),
    inset 0 0 12px rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.autobuy-input::placeholder {
  color: rgba(250, 250, 250, 0.25);
  font-size: 12px;
}

.autobuy-input:hover {
  background: rgba(197, 197, 197, 0.2);
  border-color: rgba(253, 253, 253, 0.35);
  box-shadow:
    0 3px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 0 16px rgba(255, 255, 255, 0.05);
}

.autobuy-input:focus {
  background: rgba(197, 197, 197, 0.25);
  border-color: rgba(253, 253, 253, 0.45);
  box-shadow:
    0 4px 16px rgba(13, 137, 225, 0.09),
    0 0 0 1px rgba(13, 137, 225, 0.09),
    inset 0 1px 3px rgba(0, 0, 0, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.08);
}

.autobuy-input-currency {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(250, 250, 250, 0.4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  pointer-events: none;
  user-select: none;
}
.autobuy-input-hint {
  position: absolute;
  left: 4px;
  top: calc(100% + 9px);
  max-width: 210px;
  font-family: "Blond Spec", "Blond", "Inter", sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--ambient-text-primary) 70%, white 30%);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  white-space: nowrap;
}

.autobuy-input-container.is-empty-active .autobuy-input-hint {
  opacity: 0.9;
  transform: translateY(0);
}
.trend-style-container {
  position: absolute;
  top: 345px;
  right: 110px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trend-style-label {
  color: rgba(250, 250, 250, 0.37);
  font-size: 0.7rem;
  text-align: center;
  letter-spacing: 0.5px;
}

.trend-style-buttons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.trend-style-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(197, 197, 197, 0.25);
  border: 1px solid rgba(253, 253, 253, 0.37);
  box-shadow:
    0 2px 8px rgba(151, 151, 151, 0.08),
    inset 0 0 6px 1px rgba(255, 255, 255, 0.06);
  cursor: pointer;
  padding: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.trend-style-btn:hover {
  background: rgba(197, 197, 197, 0.35);
  box-shadow:
    0 3px 12px rgba(151, 151, 151, 0.12),
    inset 0 0 8px 2px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.trend-style-btn.active {
  background: var(--ambient-text-primary);
  border-color: var(--ambient-text-primary);
  box-shadow:
    0 4px 12px rgba(255, 196, 214, 0.3),
    inset 0 0 8px 2px rgba(255, 255, 255, 0.15);
}

.trend-style-icon {
  width: 12px;
  height: 12px;
  color: rgba(250, 250, 250, 0.7);
  transition: color 0.3s ease;
}

.trend-style-btn.active .trend-style-icon {
  color: rgba(255, 255, 255, 0.95);
}
.trendstyle-divider {
    position: absolute;
  top: 340px;
  left: 490px;
  width: 1px;
  height: 60px;
  background: rgba(250, 250, 250, 0.37);
}
.planner_panel {
  position: absolute;
  top: 30px;
  left: 85px;
  width: 90%;
  height: 750px;
  background: rgba(197, 197, 197, 0.22);
  border: 1px solid rgba(253, 253, 253, 0.37);
  box-shadow:
    0 8px 25px rgba(151, 151, 151, 0.08),
    inset 0 0 18px 4px rgba(255, 255, 255, 0.06);
  border-radius: 45px;
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.planner_panel.is-open .ai-panel {
  height: 20px;
}
.planner_panel-pin-block {
  position: relative;
  top: -183px;
  left: 26.5px;
  width: 91.2%;
  height: 20%;
  background: rgba(213, 213, 213, 0.04);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-bottom: transparent;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  padding: 40px 20px 20px 20px;
  scroll-behavior: smooth;
  z-index: 1000000!important;
}
.note-info-card.pinned-card.visible {
  position: relative;
top: -18% !important;
}

.planner_panel-pin-block::-webkit-scrollbar {
  height: 6px;
}

.planner_panel-pin-block::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.planner_panel-pin-block::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.planner_panel-pin-block::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
.planner_panel-pin-name {
  position: relative;
  color: white;
  top: -20px;
  left: -10px;
}
.planner_panel-pin-name-line {
  position: relative;
  background: rgba(255, 255, 255, 0.25);
  top: -13px;
  left: 0%;
  width: 100%;
  height: 1px;
}
/*
.planner_panel-pin-control-line {
  position: relative;
  background: rgba(255, 255, 255, 0.25);
  top: -38px;
  left: 5%;
  width: 1px;
  height: 152%;
}
 */
.planner_panel-links-block {
  position: relative;
  bottom: -526px;
  left: 26px;
  width: 512.5px;
  height: 26%;
  background: rgba(198, 198, 198, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: transparent;
  border-bottom-left-radius: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}
.planner_panel-links-block-name {
  position: relative;
  color: white;
  top: 2px;
  left: 5px;
}
.planner_panel-links-block-name-line {
  position: relative;
  background: rgba(255, 255, 255, 0.25);
  top: 25px;
  left: 0px;
  height: 1px;
  width: 100%;
}

/* Link entry styling */
.planner-link-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.planner-link-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.7rem;
  margin-right: 2px;
}

.planner-link-text.link-valid {
  color: #6B9BD1;
}

.planner-link-text.link-invalid {
  color: rgba(255, 255, 255, 0.3);
}

.planner-link-state {
  margin-top: 2px;
  flex-shrink: 0;
  font-weight: 500;
  font-size: 0.85em;
  border-radius: 4px;
  padding: 2px 6px;
  transition: all 0.3s ease;
}

.planner-link-state.state-valid {
  color: #4CAF50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.4),
              0 0 12px rgba(76, 175, 80, 0.2);
  animation: pulseGreenGlow 2s ease-in-out infinite;
}

.planner-link-state.state-no-rad {
  color: #FF9800;
  box-shadow: 0 0 8px rgba(255, 152, 0, 0.4),
              0 0 12px rgba(255, 152, 0, 0.2);
  animation: pulseOrangeGlow 2s ease-in-out infinite;
}

.planner-link-state.state-invalid {
  color: #F44336;
  box-shadow: 0 0 8px rgba(244, 67, 54, 0.4),
              0 0 12px rgba(244, 67, 54, 0.2);
  animation: pulseRedGlow 2s ease-in-out infinite;
}

@keyframes pulseGreenGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.4),
                0 0 12px rgba(76, 175, 80, 0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.6),
                0 0 16px rgba(76, 175, 80, 0.3);
  }
}

@keyframes pulseOrangeGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.4),
                0 0 12px rgba(255, 152, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.6),
                0 0 16px rgba(255, 152, 0, 0.3);
  }
}

@keyframes pulseRedGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(244, 67, 54, 0.4),
                0 0 12px rgba(244, 67, 54, 0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(244, 67, 54, 0.6),
                0 0 16px rgba(244, 67, 54, 0.3);
  }
}
.planner_panel-adder-block {
  position: absolute;
  bottom: 28px;
  right: 26px;
  width: 512.5px;
  height: 26%;
  background: rgba(198, 198, 198, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-top: transparent;
  border-bottom-right-radius: 10px
}
.planner_panel-adder-block-name {
  position: absolute;
  top: 2.5px;
  left: 5px;
  color: white;
}
.planner_panel-adder-block-name-line {
  position: absolute;
  top: 25px;
  left: 0px;
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.25);
}

/* Planner Adder Age Block (Month + Age row) */
.planner-adder-age-block {
  position: absolute;
  top: 16%;
  left: 32.75%;
  width: 94%;
  height: 8%;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Month Dropdown */
.planner-adder-month-dropdown {
  flex: 1;
  height: 110%;
  max-width: 115px !important;
  background: rgba(197, 197, 197, 0.22);
  border: 1px solid rgba(253, 253, 253, 0.49);
  border-radius: 15px;
  color: rgb(120, 120, 120);
  font-size: 0.7rem;
  padding: 0 12px;
  outline: transparent;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 500;
  text-align: center;
  line-height: 100% !important;
}

.planner-adder-month-dropdown option {
  background: rgba(40, 40, 40, 0.95);
  color: white;
}

/* Age Input */
.planner-adder-age-input {
  width: 26px;
  height: 100%;
  background: rgba(197, 197, 197, 0.22);
  border: 1px solid rgba(253, 253, 253, 0.49);
  border-radius: 15px;
  color: rgb(120, 120, 120);
  font-size: 0.7rem;
  padding: 0 12px;
  outline: transparent;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.5px;
}

/* Image Block */
.planner-adder-img-block {
  position: absolute;
  top: 27%;
  left: 30.5%;
  height: 28%;
  width: 39%;
  background: rgba(248, 248, 248, 0.06);
  border-top: ;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: default;
}

.planner-upload-icon {
  width: 28px;
  height: 28px;
  color: var(--ambient-text-primary);
  opacity: 1;
}

/* Type Block */
.planner-adder-type-block {
  position: absolute;
  top: 56%;
  left: 40%;
  width: 20% !important;
  height: 5.5%;
  background: rgba(197, 197, 197, 0.22);
  border: 1px solid rgba(253, 253, 253, 0.49);
  border-radius: 15px;
  transition: opacity 0.3s ease;
}

/* Planner Type Dropdown Selector */
.planner-type-selector {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.planner-type-selector:hover {
  border-color: rgba(253, 253, 253, 0.7);
}

.planner-type-icon {
  position: relative;
  top: 0.5px;
  left: 3px;
  font-size: 0.5rem;
}

.planner-type-label {
  flex: 1;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
}

.planner-type-dropdown-arrow {
  font-size: 0.5rem;
  transition: transform 0.3s ease;
}

.planner-adder-type-block.is-open .planner-type-dropdown-arrow {
  transform: rotate(180deg);
}

/* Planner Type Dropdown Panel */
.planner-type-dropdown-panel {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  height: 0%;
  opacity: 0;
  overflow: hidden;
  background: rgba(140, 140, 140, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 0 20px rgba(255, 255, 255, 0.15);
  transition: height 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  z-index: 100;
}

.planner-type-dropdown-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.planner-adder-type-block.is-open .planner-type-dropdown-panel {
  height: 230%;
  opacity: 1;
  pointer-events: auto;
}

/* Planner Type Options */
.planner-type-option {
  position: relative;
  left: 0%;
  margin-bottom: 2px;
  height: 10px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.planner-type-option:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.4);
}

.planner-type-option.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}

/* Name Block */
.planner-adder-name-block {
  position: absolute;
  top: 65%;
  left: 32.5%;
  height: 8%;
  width: 35%;
  background: rgba(197, 197, 197, 0.22);
  border: 1px solid rgba(253, 253, 253, 0.49);
  border-radius: 15px;
  border-bottom: transparent;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  outline: transparent;
  text-align: center
}

.planner-adder-name-block-text {
  position: relative;
  top: -37%;
  width: 95%;
  left: 0px;
  height: 70%;
  color: rgb(120, 120, 120);
  background: transparent;
  outline: transparent;
  border: transparent;
  font-size: 0.7rem;
  text-align: center;
  resize: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 500;
  padding: 5px;
  text-align: center !important;
  max-lines: 1 !important;
   white-space: nowrap;     /* Forces all text onto one line */
  overflow-x: auto; /* Adds a scrollbar only when needed */
}

/* Description Block */
.planner-adder-desc-block {
  position: absolute;
  top: 74%;
  left: 32.5%;
  height: 18%;
  width: 35%;
  background: rgba(197, 197, 197, 0.22);
  border: 1px solid rgba(253, 253, 253, 0.49);
  border-radius: 15px;
  border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.planner-adder-desc-block-text {
  position: absolute;
  left: -3px;
  top: -20%;
  width: 98%;
  height: 85%;
  font-size: 0.7rem;
  color: rgb(120, 120, 120);
  background: transparent;
  outline: transparent;
  border: transparent;
  resize: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 500;
  padding: 8px;
}

/* Links Block */
.planner-adder-links-block {
  position: absolute;
  top: 95%;
  left: 30%;
  max-height: 5px !important;
  width: 37.5%;
  background: rgba(197, 197, 197, 0.22);
  border-top: 1px solid rgba(253, 253, 253, 0.49);
  border-bottom: 1px solid rgba(253, 253, 253, 0.49);
  border-left: transparent;
  border-right: transparent;
  color: rgb(120, 120, 120);
  outline: transparent;
  font-size: 0.7rem;
  resize: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 500;
  padding: 6px;
  white-space: nowrap;     /* Forces all text onto one line */
  overflow-x: hidden;
  line-height: 1.5px;
  text-align: left !important;

}

/* Create Button */
.planner-adder-create-button {
  position: absolute;
  top: 105%;
  left: 42.5%;
  transform: translateX(-2%);
  height: 9%;
  width: 15%;
  background: var(--ambient-text-primary);
  border: 1px solid rgba(253, 253, 253, 0.49);
  filter: blur(40%);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.2s ease,
              border-color 0.2s ease;
  border-radius: 12px;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.planner-adder-create-button:hover {
  transform: translateX(-2%) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(253, 253, 253, 0.7);
}

.planner-adder-create-button:active {
  transform: translateX(-2%) scale(0.98);
}
.planner-adder-line-right {
  position: absolute;
  top: 13%;
  right: 30%;
  width: 1px;
  height: 103%;
  background: rgba(255, 255, 255, 0.3);
}
.planner-adder-line-left {
  position: absolute;
  top: 13%;
left: 30%;
  width: 1px;
  height: 103%;
  background: rgba(255, 255, 255, 0.3);
}
.planner-adder-img-line-top {
  position: absolute;
  top: 26%;
left: 30%;
  width: 40%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}
.planner-adder-img-line-bottom {
  position: absolute;
  top: 55%;
left: 30%;
  width: 40%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}
.planner_panel.is-open {
  opacity: 1;
  pointer-events: auto;
}
.planner_panel.is-open ~ .trading__sim-panel {
  top: 10000px;
}
.planner_panel.is-open ~ .achievement-panel {
  top: 10000px;
}
.planner_panel.is-open ~ .ai-panel.is-open {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.planner_panel.is-open ~ .ai-panel {
  filter: blur(4px) grayscale(0%);
  border-top-left-radius: 0px;
}

/* Plan View Timeline Container */
.plan-view-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 300px;
  background: linear-gradient(
    to bottom,
    rgba(240, 240, 245, 0.05) 0%,
    rgba(240, 240, 245, 0.08) 50%,
    rgba(240, 240, 245, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0px;

  overflow-x: scroll;
  overflow-y: hidden;
  pointer-events: auto;
  scroll-behavior: smooth;
  user-select: none;
  -webkit-user-select: none;
}

.plan-view-container:active {
  cursor: grabbing;
}

/* Scrollbar styling - Glassmorphic */
.plan-view-container::-webkit-scrollbar {
  height: 8px;
}

.plan-view-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin: 0 8px;
}

.plan-view-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.plan-view-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.plan-view-label {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--ambient-text-primary);
  z-index: 10;
  pointer-events: none;
}

.plan-view-timeline {
  position: relative;
  width: 12000px; /* 100 years × 12 months × 10px per month */
  height: 100%;
  background-image:
    /* Vertical grid lines (monthly) */
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px,
      transparent 10px
    ),
    /* Horizontal grid lines */
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 20px
    );
}

/* Central horizontal axis line */
.plan-view-timeline::before {
  content: '';
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ambient-text-primary);
  transform: translateY(-50%);
  z-index: 2;
  opacity: 20%;
}

/* Scroll ticks element */
.plan-view-ticks {
  position: absolute;
  bottom: 250px;
  left: 0;
  width: 100%;
  height: 30px;
  background-image: repeating-linear-gradient(
    90deg,
    white 0px,
    white 2px,
    transparent 2px,
    transparent 5px
  );
  opacity: 0.6;
  cursor: grab;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.plan-view-ticks:active {
  cursor: grabbing;
}

.plan-view-ticks.dragging {
  cursor: grabbing;
}

/* Scroll label */
.plan-view-scroll-label {
  position: absolute;
  bottom: 0px;
  left: 60px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 200, 0.7);
  z-index: 10;
  pointer-events: none;
}

/* Scroll ticks trailing animation */
@keyframes tickTrail {
  0% {
    opacity: 0.6;
    filter: blur(0px);
  }
  100% {
    opacity: 0.2;
    filter: blur(2px);
  }
}

.plan-view-container.scrolling .plan-view-ticks {
  animation: tickTrail 0.4s ease-out;
}

.plan-view-scale {
  position: absolute;
  top: 45px;
  left: 0;
  right: 0;
  height: 30px;
  display: flex;
  z-index: 5;
}

.age-marker {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.age-marker-year {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 4px;
  white-space: nowrap;
}

.age-marker-tick {
  width: 2px;
  height: 18px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.age-marker-tick:not(.expanded):hover {
  height: 15px;
  background: rgba(255, 255, 255, 0.8);
  transform: scaleY(1.5);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.age-marker-tick.expanded {
  position: absolute;
  top: 85% !important;
  background: white;
  height: 25px !important;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Month markers (subtle) */
.month-marker {
  position: absolute;
  top: 55px;
  width: 2.5px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 6;
}

.month-marker:not(.expanded):hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scaleY(1.5);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.month-marker.expanded {
  position: absolute;
  top: 18.5% !important;
  background: white;
  height: 30px !important;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* NOTE INFO CARD */
.note-info-card {
  position: absolute;
  top: 64% !important;
  width: 1px;
  height: 1px;
  background: rgba(197, 197, 197, 0.29);
  border: 1px solid rgba(253, 253, 253, 0.37);
  box-shadow:
    0 8px 25px rgba(151, 151, 151, 0.08),
    inset 0 0 18px 4px rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  transform: translate(-50%, -50%);
  pointer-events: all;
  z-index: 1000;
  overflow: hidden;
  transition:
    width 0.3s cubic-bezier(0.8, 0, 0.6, 1),
    height 0.3s cubic-bezier(0.8, 0, 0.6, 1) 0.3s;
}
.note-info-card-month-dropdown {
  position: relative;
  top: -1.5px;
  flex: 1;
  height: 33.5%;
  left: -30px;
  max-width: 115px !important;
  background: rgba(197, 197, 197, 0.22);
  border: 1px solid rgba(253, 253, 253, 0.49);
  border-radius: 15px;
  color: rgb(120, 120, 120);
  font-size: 0.7rem;
  outline: transparent;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 500;
  text-align: center;
  text-anchor: middle ;
}
.note-info-card-age-input {
  position: relative;
  top: -22.5px;
  right: -75px;
    width: 26px;
  height: 23.5%;
  background: rgba(197, 197, 197, 0.22);
  border: 1px solid rgba(253, 253, 253, 0.49);
  border-radius: 15px;
  color: rgb(120, 120, 120);
  font-size: 0.7rem;
  padding: 0 12px;
  outline: transparent;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.5px;
}
.note-info-card.visible {
  height: 200px;
  transition:
    height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  width: 200px;
}

/* Pinned card styling */
.note-info-card.pinned-card {
  position: relative;
  top: 0 !important;
  left: 0 !important;
  transform: none;
  flex-shrink: 0;
  width: 1px;
  height: 180px;
  opacity: 1;
  animation: pinCardSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.note-info-card.pinned-card.visible {
  width: 200px;
  height: 180px;
}

@keyframes pinCardSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}
.note-info-card-img-block {
  position: absolute;
  top: 8%;
  left: 0%;
  height: 37%;
  width: 100%;
  background: rgba(197, 197, 197, 0.22);
   transition: opacity 4s ease;
  border-radius: 0px;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-image-text {
  position: absolute;
  bottom: 10px;
  color: var(--ambient-text-primary);
  font-size: 0.65rem;
  opacity: 0;
}

.upload-icon {
  position: absolute;
  bottom: 20px;
  width: 30px;
  height: 30px;
  color: var(--ambient-text-primary);
}
.note-info-card-name-block {
  position: absolute;
  top: 57%;
  left: 3%;
  height: 6%;
  width: 94%;
  background: rgba(197, 197, 197, 0.22);
  border: 1px solid rgba(253, 253, 253, 0.49);
  border-radius: 15px;
  outline: transparent;
   transition: opacity 4s ease;
  opacity: 0;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border-bottom-radius: 0px;
  border-bottom: transparent;
  text-align: center;
}
.note-info-card-desc-block {
  position: absolute;
  top: 63%;
  left: 3%;
  height: 20%;
  width: 94%;
  background: rgba(197, 197, 197, 0.22);
  border: 1px solid rgba(253, 253, 253, 0.49);
  border-radius: 15px;
  transition: opacity 4s ease;
  opacity: 0;
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;
  border-top-radius: 0px;
}
.note-info-card-age-block {
  position: absolute;
  top: -0.4%;
  left: 25%;
  width: 50%;
  height: 22.5%;
   border-radius: 999px;
}
.note-info-card-type-block {
  position: absolute;
  top: 48%;
  left: 25%;
  width: 50%;
  height: 5.5%;
  background: rgba(197, 197, 197, 0.22);
  border: 1px solid rgba(253, 253, 253, 0.49);
  border-radius: 15px;
  transition: opacity 4s ease;
  opacity: 0;
}

/* Note Type Dropdown Selector */
.note-type-selector {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.note-type-selector:hover {
  border-color: rgba(253, 253, 253, 0.7);
}

.note-type-icon {
  position: relative;
  top: 0.5px;
  left: 3px;
  font-size: 0.5rem;
}

.note-type-label {
  flex: 1;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
}

.note-type-dropdown-arrow {
  font-size: 0.5rem;
  transition: transform 0.3s ease;
}

.note-info-card-type-block.is-open .note-type-dropdown-arrow {
  transform: rotate(180deg);
}

/* Note Type Dropdown Panel */
.note-type-dropdown-panel {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 100%;
  height: 0%;
  opacity: 0;
  overflow: hidden;
  background: rgba(140, 140, 140, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 0 20px rgba(255, 255, 255, 0.15);
  transition: height 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  z-index: 100;
}

.note-type-dropdown-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.note-info-card-type-block.is-open .note-type-dropdown-panel {
  height: 230%;
  opacity: 1;
  pointer-events: auto;
}

/* Note Type Options */
.note-type-option {
  position: relative;
  left: 0%;
  margin-bottom: 2px;
  height: 10px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.2);;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.note-type-option:hover {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.4);
}

.note-type-option.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}
.note-info-card-links-block {
  position: absolute;
  top: 85%;
  left: -1%;
  height: 4%;
  width: 100%;
  background: rgba(197, 197, 197, 0.22);
  color: #000000;
  outline: transparent;
   transition: opacity 4s ease;
  opacity: 0;
  border-top: 1px solid rgba(253, 253, 253, 0.49);
  border-bottom: 1px solid rgba(253, 253, 253, 0.49);
  resize: none;
  overflow-y: hidden;
  font-size: 0.6rem;
  max-lines: 1;
}
.note-info-card-create-button {
  top: 92%;
  left: 30%;
  transform: translateX(-2%);
  position: absolute;
  height: 8%;
  width: 40%;
  background: var(--ambient-text-primary);
  border: 1px solid rgba(253, 253, 253, 0.49);
  filter: blur(40%);
  transition: opacity 4s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  border-radius: 40px;
  outline: none;
  color: rgb(255, 255, 255);
  outline: transparent;
  text-align: center;
  line-height: 1px;
  font-size: 0.8rem;
  resize: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 500;
  max-lines: 1 !important;
  cursor: pointer;
}

.note-info-card-create-button:hover {
  transform: translateX(-2%) scale(1.05);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(253, 253, 253, 0.7);
}

.note-info-card-create-button:active {
  transform: translateX(-2%) scale(0.98);
}
.note-info-card-links-block-text {
  color: rgb(255, 255, 255);
  outline: transparent;
  text-align: left;
  font-size: 0.2rem;
  resize: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 500;
  max-lines: 1 !important;
}
.note-info-card-age-block-counter {
  position: relative;
  top: 4%;
  color: white;
  font-size: 0.6rem;
  font-weight: 600;
  text-align: center;
}

.note-info-card-age-block-line {
  position: absolute;
  top: 7.5%;
  left: 0%;
  width: 100%;
  height: 1px;
  background: rgba(253, 253, 253, 0.49);
}
.note-info-card-img-block-line {
  position: absolute;
  top: 45%;
  left: 0%;
  width: 100%;
  height: 1px;
  background: rgba(253, 253, 253, 0.49);
}
.note-info-card-desc-block-text {
  position: absolute;
  left: 1.5px;
  top: 0%;
  width: 98%;
  height: 85%;
  font-size: 14px;
  color: rgb(120, 120, 120);
  background: transparent;
  outline: transparent;
  border: transparent;
  opacity: 0;
  font-size: 0.5rem;
  resize: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 400;
}
.note-info-card-name-block-text {
  position: relative;
  top: -40%;
  width: 80%;
  height: 70%;
  color: rgb(120, 120, 120);
  background: transparent;
  outline: transparent;
  border: transparent;
  font-size: 0.5rem;
  text-align: left !important;
  resize: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-weight: 500;
}
/* 1. Set the STARTING state (Hidden) */
.note-info-card-img-block,
.note-info-card-name-block,
.note-info-card-desc-block,
.note-info-card-type-block,
.note-info-card-links-block,
.note-info-card-create-button {
  opacity: 0;
  pointer-events: none; /* Prevents clicking them while they are invisible */
  transition: opacity 1.26s ease-in-out; /* 4s is a bit slow for a HUD, 0.5s is snappy */
}

/* 2. Set the ACTIVE state (Visible) */
/* Notice the SPACE between .visible and the block class */
.note-info-card.visible .note-info-card-img-block,
.note-info-card.visible .note-info-card-name-block,
.note-info-card.visible .note-info-card-desc-block,
.note-info-card.visible .note-info-card-type-block,
.note-info-card.visible .note-info-card-links-block,
.note-info-card.visible .note-info-card-create-button {
  opacity: 1;
  pointer-events: all;
}

/* 3. Don't forget the text inside! */
.note-info-card.visible .note-info-card-desc-block-text,
.note-info-card.visible .note-info-card-name-block-text,
.note-info-card.visible .note-info-card-type-block-text,
.note-info-card.visible .note-info-card-links-block-text,
.note-info-card.visible .note-info-card-create-button {
  opacity: 1;
  transition: opacity 0.5s ease-out 0.3s; /* Delay the text slightly for a premium feel */
}
.color_engine-panel {
  position: absolute;
  top: 10%;
  left: 20%;
  width: 60%;
  height: auto;
  min-height: 600px;
  background: rgba(193, 193, 193, 0.35);
  border: 1px solid rgba(253, 253, 253, 0.37);
  border-radius: 15px;
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.color_engine-panel.is-open {
  opacity: 1;
  pointer-events: all;
}
.color_engine-name {
  position: absolute;
  top: 2px;
  left: 5px;
  color: var(--ambient-text-primary);
  width: 140px;
  height: 5px;
  font-size: 1rem;
}
.color_engine-name-line {
  position: absolute;
  top: 24px;
  left: 0px;
  width: 100%;
  height: 1px;
  background: rgba(253, 253, 253, 0.37);
}
.color_engine-line-1 {
  position: absolute;
  top: 24px;
  left: 20%;
  height: 93%;
  width: 1px;
  background: rgba(253, 253, 253, 0.37);
}
.color_engine-line-2 {
  position: absolute;
  top: 24px;
  left: 40%;
  height: 93%;
  width: 1px;
  background: rgba(253, 253, 253, 0.37);
}
.color_engine-line-3 {
  position: absolute;
  top: 24px;
  left: 60%;
  height: 93%;
  width: 1px;
  background: rgba(253, 253, 253, 0.37);
}
.color_engine-line-4 {
  position: absolute;
  top: 24px;
  left: 80%;
  height: 93%;
  width: 1px;
  background: rgba(253, 253, 253, 0.37);
}
.color_engine-text-text {
  position: absolute;
  top: 30px;
  left: 1%;
  color: var(--ambient-text-primary);
  width: 18%;
  height: auto;
  min-height: 500px;
  font-size: 0.9rem;
  filter: drop-shadow(0px 0px 3px var(--ambient-text-secondary));
}
.color_engine-panel-text {
  position: absolute;
  top: 30px;
  left: 21%;
  color: var(--ambient-text-primary);
  width: 18%;
  height: auto;
  min-height: 500px;
  font-size: 0.9rem;
  filter: drop-shadow(0px 0px 3px var(--ambient-text-secondary));
}
.color_engine-border-text {
  position: absolute;
  top: 30px;
  left: 41%;
  color: var(--ambient-text-primary);
  width: 18%;
  height: auto;
  min-height: 500px;
  font-size: 0.9rem;
  filter: drop-shadow(0px 0px 3px var(--ambient-text-secondary));
}
.color_engine-button-text {
  position: absolute;
  top: 30px;
  left: 61%;
  color: var(--ambient-text-primary);
  width: 18%;
  height: auto;
  min-height: 500px;
  font-size: 0.9rem;
  filter: drop-shadow(0px 0px 3px var(--ambient-text-secondary));
}
.color_engine-arc-text {
  position: absolute;
  top: 30px;
  left: 81%;
  color: var(--ambient-text-primary);
  width: 18%;
  height: auto;
  min-height: 500px;
  font-size: 0.9rem;
  filter: drop-shadow(0px 0px 3px var(--ambient-text-secondary));
}

/* Color Picker Styles */
.color-picker-rgba-container {
  position: relative;
  margin-top: 35px;
  width: 90%;
  left: 5%;
}

.color-picker-rgba-input {
  position: absolute;
  top: -30px;
  left: -5px;
  width: 100%;
  padding: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(253, 253, 253, 0.2);
  border-radius: 8px;
  color: var(--ambient-text-primary);
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.color-picker-rgba-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  opacity: 1;
}

/* Style the dashes in the template as low opacity */
.color-picker-rgba-input[value*="---"] {
  opacity: 0.6;
}

.color-picker-rgba-input:focus {
  border-color: rgba(253, 253, 253, 0.4);
}

/* Recent Colors Section */
.color-picker-recent-container {
  position: relative;
  margin-top: 20px;
  width: 90%;
  left: 5%;
}

.color-picker-recent-label {
  color: var(--ambient-text-primary);
  font-size: 0.75rem;
  margin-bottom: 8px;
  opacity: 0.8;
}

.color-picker-recent-line-top {
  width: 100%;
  height: 1px;
  background: rgba(253, 253, 253, 0.2);
  margin-top: 5px;
}

.color-picker-recent-line-bottom {
  width: 100%;
  height: 1px;
  background: rgba(253, 253, 253, 0.2);
  margin-top: 25px;
}

.color-picker-recent-boxes {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.color-picker-recent-box {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.15s;
}

.color-picker-recent-box:hover {
  transform: scale(1.2);
}

/* Color Wheel */
.color-picker-wheel-container {
  position: relative;
  margin-top: 20px;
  width: 80px;
  height: 80px;
  left: 50%;
  transform: translateX(-50%);
}

.color-picker-wheel {
  border-radius: 50%;
  cursor: crosshair;
  width: 80px;
  height: 80px;
}

.color-picker-wheel-indicator {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 2px solid white;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
}

/* Hex Code Display */
.color-picker-hex-container {
  position: relative;
  margin-top: 15px;
  width: 90%;
  left: 5%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.color-picker-hex-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.85rem;
  font-family: 'SF Mono', Monaco, monospace;
  font-weight: 500;
  padding: 0;
  min-width: 0;
}

.color-picker-copy-icon {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.color-picker-copy-icon:hover {
  opacity: 1;
}

/* Sliders */
.color-picker-slider-container {
  position: relative;
  margin-top: 18px;
  width: 90%;
  left: 5%;
}

.color-picker-slider-label {
  color: var(--ambient-text-primary);
  font-size: 0.75rem;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.color-picker-slider-percent {
  color: rgba(150, 150, 150, 1);
  font-size: 0.7rem;
}

.color-picker-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
}

.color-picker-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: var(--ambient-text-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.color-picker-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--ambient-text-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Reset Button */
.color-picker-reset-btn {
  position: relative;
  margin-top: 20px;
  width: 90%;
  left: 5%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(253, 253, 253, 0.3);
  border-radius: 10px;
  color: var(--ambient-text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.color-picker-reset-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(253, 253, 253, 0.5);
}
.achievement-panel {
    position: absolute;
    top: 250px;
    left: 200px;
    width: 70%;
    height: 500px;
     background: rgba(197, 197, 197, 0.32);
      border: 1px solid rgba(253, 253, 253, 0.37);
      box-shadow:
        0 8px 25px rgba(151, 151, 151, 0.08),
        inset 0 0 18px 4px rgba(255, 255, 255, 0.06);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 300ms ease, z-index 0s 300ms;
    z-index: 1;
    overflow-y: auto;
    pointer-events: all;
}
.achievement-panel.is-open {
    opacity: 1;
}
.trading__sim-panel.is-open ~ .achievement-panel {
    z-index: 0;
    pointer-events: none;
}
.achievement-panel.is-open ~ .ai-panel.is-open {
    opacity: 0;
      transition:
      opacity 0.5s ease-out;
}

/* Container for all cards */
.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 40px;
    padding: 30px;
    max-width: 800px;
    overflow: hidden;
  pointer-events: none;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 40px;
    padding-top: 300px; /* This creates the scrollable room at the top */
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    max-width: 800px;
    /* overflow: hidden;  <-- DELETE THIS LINE, it kills scrolling */
    pointer-events: none;
}
.ending-achievements-divider {
  position: relative;
  top: 280px;
  left: 0px;
  height: 1px;
  width: 100%;
  background: rgba(80, 31, 31, 0.6);
  color: rgba(80, 31, 31, 0.6);
  text-align: center;
}
.ENDING-ACHIEVEMENTS {
  position: relative;
  top: -20px;
}
#ach-fox3 {
  position: relative;
  top: -285px;
  left: -400px;
}
.artists-achievements-divider {
  position: relative;
  top: 570px;
  left: 0px;
  height: 1px;
  width: 100%;
  background: rgba(77, 58, 124, 0.6);
  color: rgba(46, 35, 73, 0.6);
  text-align: center;
}
.ARTISTS-ACHIEVEMENTS {
  position: relative;
  top: -20px;
}
/* The Vertical Rectangle Card */
.achievement-card {
    width: 160px;
    height: 210px;
    background: rgba(151, 151, 151, 0.07); /* Subtle frosted glass */
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    transition: transform 0.3s ease;
}

/* The 150px Circular Icon */
.icon-circle {
    width: 130px; /* Adjusted slightly so it has breathing room in the 160px width */
    height: 130px;
    background: #ffffff; /* The stark "Blonde" white */
    border-radius: 50%; /* Makes it circular */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}
.icon-circle img {
    width: 70%; /* Keeps your logo centered and sharp */
    height: auto;
    filter: blur(4px) grayscale(100%);
    opacity: 0.4;
    transition: filter 0.8s ease, opacity 0.8s ease;
}

/* BASEDWORLD achievement - fill the circle completely */
#ach-placeholder-2 .icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text at the bottom */
.card-content {
    margin-top: 15px;
    text-align: center;
    filter: blur(3px) grayscale(100%);
    opacity: 0.5;
    transition: filter 0.8s ease, opacity 0.8s ease;
}

.card-content h3 {
    font-size: 13px;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content p {
    font-size: 15px;
    color: var(--ambient-text-primary);
    margin-top: 5px;
}

/* Unlocked state - sharp and full color */
.achievement-card.unlocked .icon-circle img {
    filter: blur(0) grayscale(0);
    opacity: 1;
}

.achievement-card.unlocked .card-content {
    filter: blur(0) grayscale(0);
    opacity: 1;
}

/* ========================================
   TOAST NOTIFICATION STYLES
   ======================================== */

.achievement-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 340px;
    height: 110px;
    background: rgba(151, 151, 151, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateX(-400px);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    overflow: hidden;
}

.achievement-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.achievement-toast.fade-out {
    opacity: 0;
    transform: translateX(-50px);
}

.toast-icon-circle {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.toast-icon-circle img {
    width: 100%;
    height: auto;
}

.toast-content {
    flex: 1;
    text-align: left;
}

.toast-content h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ambient-text-secondary);
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toast-content p {
    font-size: 13px;
    color: var(--ambient-text-primary);
    margin: 0;
    opacity: 0.9;
}

/* Premium Shine Effect */
.toast-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 90%,
        var(--ambient-text-primary) 20%,
        transparent 100%
    );
    pointer-events: none;
}

.achievement-toast.show .toast-shine {
    animation: shine-sweep 1.5s ease-out 0.3s;
}

@keyframes shine-sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
#ach-fox3 .icon-circle {
    width: 130px; /* Adjusted slightly so it has breathing room in the 160px width */
    height: 120px;
    background: #ffffff; /* The stark "Blonde" white */
    border-radius: 50%; /* Makes it circular */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}


#ach-fox3 .icon-circle img  {
  width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Target ONLY the 'Should've Declined' image by its filename */
#ach-fox3 .icon-circle img[src*="SHOULDVEDECLINDEDICON"] {
    width: 100%;          /* Gives it a little 'breathing room' inside the white circle */
    height: 100%;
    object-fit: contain; /* Prevents the 'Green Circles' from being cut off by the edges */
    transform: scale(1.1); /* Optional: Use this to 'zoom in' slightly if it looks too small */
}
#ach-blondedrain .icon-circle img {
  width: 100%;
    height: 100%;
    object-fit: cover;
}

#ach-blondedrain {
  position: relative;
  right: 200px;
}
.feature-card__desc {
  margin-top: 4px;
  font-size: 0.78rem;
  opacity: 0.55;
  color: var(--ambient-text-primary);
  line-height: 1.3;
}
.feature-drawer {
  position: fixed;
  left: 50%;
  bottom: -100%;
  transform: translateX(-50%);
  width: 560px;
  height: 620px;

  opacity: 0;
  pointer-events: none;
  transition:
    bottom 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 420ms ease;
  z-index: 60;
}

.feature-drawer.is-open {
  bottom: 6vh;
  opacity: 1;
  pointer-events: auto;
}

.feature-drawer__surface {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 26px;
  border-radius: 26px;

  background: color-mix(in srgb, rgba(186, 186, 186, 0.19) 54%, rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.55);

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);

  backdrop-filter: blur(22px) saturate(118%);
  -webkit-backdrop-filter: blur(22px) saturate(118%);
}

.feature-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.25s ease;
}

.feature-drawer__close:hover {
  opacity: 0.9;
}

.feature-drawer__intro {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.4;
}

.feature-drawer__content-placeholder {
  margin-top: 40px;
  width: 100%;
  height: 300px;
  border-radius: 20px;

  color: var(--ambient-text-primary);
  border: 1px dashed rgba(255,255,255,0.4);

  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}
.feature-fullpanel {
  position: absolute;
  inset: 0;

  /* PREMIUM APPLE STYLE START */
  opacity: 0;
  transform: translateY(8px) scale(0.992);
  /* ---------------------------------- */

  width: 100%;
  height: 100%;
  z-index: 50;

  pointer-events: none;

  transition:
    opacity 380ms cubic-bezier(0.25, 0.60, 0.30, 1),
    transform 420ms cubic-bezier(0.25, 0.60, 0.30, 1);
}

/* When panel opens */
.feature-fullpanel.is-open {
  opacity: 1;
  transform: translateY(0px) scale(1);
  pointer-events: auto;
}

    .ai-panel {
      position: absolute;
      bottom: 0px;
      left: 50%;
      transform: translateX(-50%);
        opacity: 65%;
    overflow: hidden;
      width: 42%;
      max-width: 100%;
      height: 95px; !important; /* <-- CLOSED height (input pill + 3px) */
         border-radius: 30px;
color: var(--ambient-text-primary);
      transition:
      filter 2s ease-in,
      filter 0.4s ease-out,
      opacity 500ms ease-in,
      height 540ms cubic-bezier(0.22, 0.61, 0.36, 1),
      width 670ms cubic-bezier(0.22, 0.61, 0.36, 1);
      z-index: 20;
        opacity: 40%;
        filter: blur(0px);
      pointer-events: none;
    }
    .ai-panel.is-open {
      height: 100%; /* expand upward */
        width: 50%;
    }
    .ai-panel__divider {
      position: absolute;
      top: 0;
      bottom: 0;          /* ← critical */
      right: 30px;        /* adjust to your layout */

      width: 0.6px;
      height: auto;

      background: rgba(151, 200, 136, 0.17);

      opacity: 0;         /* TEMPORARY: force visible */
      pointer-events: none;
        transition: opacity 300ms ease;
    }

    .ai-panel__divider::before {
      content: "";
      position: absolute;
      inset: 0;

      background: rgba(255, 255, 255, 0.98);
      );

      filter: blur(1.5px);
      opacity: 0.8;
    }
    .ai-panel__divider::after {
      content: "";
      position: absolute;
      inset: 0;
    background-size: 100% 12px;
      background: linear-gradient(
        to bottom,
        rgba(41, 90, 0, 0.53),
        rgba(185, 241, 255, 0.53),
        rgba(1, 73, 45, 0.53),
        rgba(255, 255, 255, 0.53)
      );

      filter: blur(2px);
      mix-blend-mode: screen;
      opacity: 0.45;
    }


    .ai-panel.is-open .ai-panel__divider {
        opacity: 1;
    }
    .ai-panel__surface.is-open{
        border: 1px solid rgba(255, 255, 255, 0.01);
        border-radius: 25px;
        background: rgba(195, 195, 195, 0.16);
        box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.08),
        inset 0 0 18px 4px rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(25px);
    }
    .ai-panel__surface {
  position: absolute;
  inset: 14px 18px 18px;
  border-radius: 26px;
  background: color-mix(in srgb, rgba(186, 186, 186, 0.19) 54%, rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(22px) saturate(118%);
  -webkit-backdrop-filter: blur(22px) saturate(118%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ai-panel__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 35%,
    rgba(255, 255, 255, 0.06) 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.ai-panel__surface::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: none;
}



    .ai-panel__toggle {
      position: absolute;
      top: 25px;
      left: 50%;
      transform: translateX(-50%);
      width: 56px;
      height: 36px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.5);
      background: color-mix(in srgb, rgb(181, 179, 179) 60%, rgba(255, 255, 255, 0.16));
      box-shadow:
        0 10px 18px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
      display: grid;
      place-items: center;
      cursor: pointer;
      z-index: 6;
      pointer-events: auto;
    }
    .ai-panel.is-open .ai-panel__toggle {
      top: 60px;
    }
    .ai-panel__toggle:focus-visible {
      outline: 2px solid rgba(0, 0, 0, 0.35);
      outline-offset: 3px;
    }

    .ai-panel__toggle-icon {
      width: 10px;
      height: 10px;
      border-left: 2px solid rgba(17, 24, 39, 0.6);
      border-top: 2px solid rgba(17, 24, 39, 0.6);
      transform: rotate(45deg) translateY(1px);
      transition: transform 320ms ease;
    }

    .ai-panel.is-open .ai-panel__toggle-icon {
      transform: rotate(225deg) translateY(0);
    }

    .ai-panel__input {
      position: absolute;
      left: 50%;
        height: 51.5px;
      bottom: 22px;
      width: min(760px, 78%);
      transform: translate(-50%, 140%);
      z-index: 2;
      display: flex;
      justify-content: center;
      pointer-events: auto;
    }
    .ai-panel__input {
      position: absolute;
      bottom: 23px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 5;

      width: 460px; /* fixed max width */
      max-width: 78vw; /* responsive fallback */
      pointer-events: auto;
    }

    .ai-panel__messages {
      --ai-panel-scrollbar-visibility: 1;
      --ai-panel-scrollbar-thumb: rgba(255, 255, 255, 0.56);
      --ai-panel-scrollbar-track: rgba(255, 255, 255, 0.14);

      position: absolute;
      inset: 50px 32px 120px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      overflow-y: scroll;
      overflow-x: hidden;
      padding: 4px;
      padding-right: 8px;
      scrollbar-width: thin;
      scrollbar-color: color-mix(
          in srgb,
          var(--ai-panel-scrollbar-thumb) calc(var(--ai-panel-scrollbar-visibility) * 100%),
          transparent
        )
        transparent;
      transition: scrollbar-color 320ms ease;
      overscroll-behavior: contain;
    }

    .ai-panel__messages::-webkit-scrollbar {
      width: 20px;
    }

    .ai-panel__messages::-webkit-scrollbar-thumb {
      background: rgb(255, 50, 50);
      border: 2px solid transparent;
      border-radius: 999px;
      background-clip: content-box;
      transition: background 320ms ease;
    }

    .ai-panel__messages::-webkit-scrollbar-thumb:hover {
      background: rgb(255, 100, 100);
      background-clip: content-box;
    }

    .ai-panel__messages::-webkit-scrollbar-track {
      background: rgba(255, 50, 50, 0.2);
      border-radius: 999px;
      transition: background 320ms ease;
    }

    .ai-panel__message {
      --ai-message-bg: color-mix(
        in srgb,
        rgba(200, 200, 200, 0.45) 48%,
        rgba(180, 180, 180, 0.15)
      );
      --ai-message-accent-low: color-mix(
        in srgb,
        var(--day-cycle-bleed-bottom, #b7d9ff) 40%,
        rgba(200, 200, 200, 0.6)
      );
      --ai-message-accent-high: color-mix(
        in srgb,
        var(--day-cycle-bleed-top, #f1d7ff) 35%,
        rgba(200, 200, 200, 0.6)
      );
      --ai-message-entry-gradient: linear-gradient(
        135deg,
        color-mix(in srgb, var(--day-cycle-bleed-bottom, #b7d9ff) 50%, rgba(200, 200, 200, 0.08)),
        color-mix(in srgb, var(--day-cycle-bleed-top, #f1d7ff) 55%, rgba(180, 180, 180, 0.05))
      );

      align-self: flex-start;
      flex-shrink: 0;
      width: fit-content;
      max-width: 100%;
      min-height: fit-content;
      padding: 14px 16px;
      border-radius: 18px;
      background: var(--ai-message-bg);
      border: 1px solid rgba(200, 200, 200, 0.35);
      box-shadow:
        0 12px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(220, 220, 220, 0.4);
      font-weight: 600;
      line-height: 1.5;
      word-break: break-word;
      opacity: 0;
      transform: translateY(12px);
      transition: filter 380ms ease;
      position: relative;
      overflow: visible;
      isolation: isolate;
      will-change: opacity, transform;
    }

    .ai-panel__message::before {
      content: "";
      position: absolute;
      inset: -1px;
      border-radius: inherit;
      background:
        radial-gradient(
          circle at 18% 22%,
          color-mix(in srgb, var(--ai-message-accent-high) 82%, transparent) 0%,
          transparent 52%
        ),
        linear-gradient(130deg, var(--ai-message-accent-low), var(--ai-message-accent-high));
      opacity: 0;
      transform: translateY(10px) scale(0.98);
      filter: saturate(1.08);
      z-index: 0;
      pointer-events: none;
    }

    .ai-panel__message--user {
      align-self: flex-end;
      --ai-message-bg: color-mix(
        in srgb,
        rgba(210, 210, 210, 0.55) 64%,
        rgba(190, 190, 190, 0.2)
      );
      --ai-message-accent-low: color-mix(
        in srgb,
        var(--day-cycle-bleed-bottom, #b7d9ff) 38%,
        rgba(210, 210, 210, 0.65)
      );
      --ai-message-accent-high: color-mix(
        in srgb,
        var(--day-cycle-bleed-top, #f1d7ff) 42%,
        rgba(210, 210, 210, 0.6)
      );
    }

    .ai-panel__message--thinking {
      font-weight: 500;
    }

    .ai-panel__message--entering {
      opacity: 0;
    }

    .ai-panel__message--visible {
      opacity: 1;
      transform: translateY(0);
      animation: ai-panel-message-enter 720ms ease forwards;
    }

    .ai-panel__message--visible::before {
      animation: ai-panel-message-wash 640ms ease forwards;
    }

    @keyframes ai-panel-message-enter {
      0% {
        opacity: 0;
        transform: translateY(12px);
        background: var(--ai-message-entry-gradient);
        filter: saturate(1.02);
      }

      48% {
        opacity: 1;
        transform: translateY(4px);
        background: var(--ai-message-entry-gradient);
        filter: saturate(1.08);
      }

      100% {
        opacity: 1;
        transform: translateY(0);
        background: var(--ai-message-bg);
        filter: saturate(1);
      }
    }

    @keyframes ai-panel-message-wash {
      0% {
        opacity: 0.7;
        transform: translateY(10px) scale(0.98);
      }

      42% {
        opacity: 0.35;
      }

      100% {
        opacity: 0;
        transform: translateY(0) scale(1);
      }
    }

    .ai-panel__input-pill {
      width: 100%;
    }


    .ai-panel__input-pill {
      width: 100%;
      pointer-events: auto;
      padding: 14px 18px;
      border-radius: 999px;
      background: color-mix(in srgb, rgba(255, 255, 255, 0.92) 55%, rgba(255, 255, 255, 0.22));
      border: 1px solid rgba(255, 255, 255, 0.46);
      box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .ai-panel__input-field {
      flex: 1;
      border: none;
      background: transparent;

      font: inherit;
      font-weight: 600;
      letter-spacing: 0.01em;
      outline: none;
      min-width: 0;
    }

    .ai-panel__input-field::placeholder {
        color: #111111;
    }

    .ai-panel__input-placeholder {
      font-weight: 500;
    }

    .ai-panel__input-hint {
      font-weight: 600;
      letter-spacing: 0.04em;
    }


    .ai-panel.is-open .ai-panel__surface {
      pointer-events: auto;
    }


    .ai-panel.is-open .ai-panel__input {
        transition:
        top: 10000000ms cubic-bezier(0.22, 0.61, 0.36, 1);
    }

    .ai-panel:not(.is-open) .ai-panel__surface,
    .ai-panel:not(.is-open) .ai-panel__input {
      pointer-events: none;
    }

    .glass-panel::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.24), transparent 38%),
        radial-gradient(circle at 82% 6%, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
      mix-blend-mode: screen;
      pointer-events: none;
    }

    .glass-panel::after {
      content: "";
      position: absolute;
      inset: 1px;
      border-radius: inherit;
      pointer-events: none;
      background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(255, 255, 255, 0.12) 38%,
        rgba(255, 255, 255, 0.08) 100%
      );
      box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 0 rgba(255, 255, 255, 0.22);
    }

    .content {
      position: relative;
      z-index: 10;
      max-width: 720px;
      margin: 6rem auto;
      padding: 0 1.5rem;
      line-height: 1.6;
    }

    .content h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    .day-cycle-arc {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 2;
      overflow: hidden;
      --arc-fade-strength: 0.9;
      --arc-glow-core-opacity: 0.4;
      --sun-rays-opacity: 0;
      --sun-rays-length: 0.6;
      --sun-rays-color: #f2c499;
      --cloud-opacity: 0;
      --cloud-tint-color: #d9ecff;
      --sun-core-opacity: 0;
      --sun-core-color: #f6b26c;
      --sun-haze-opacity: 0;
      --sun-haze-color: rgba(255, 214, 170, 0.35);
      --sun-rays-bottom: 6%;
      --sun-haze-bottom: 10%;
      --sun-core-bottom: 7%;
      --sun-size: 1;
      --sun-offset: 1;
      --moon-opacity: 0;
      --moon-glow-opacity: 0;
      --moon-size: 1;
      --moon-bottom: 6%;
      --moon-offset: 1;
      --moon-core-color: #f4f6ff;
      --moon-glow-color: rgba(210, 220, 255, 0.38);
      transition: --arc-fade-strength 10s ease, --arc-glow-core-opacity 10s ease;
    }

    .day-cycle-arc__phase-clock {
      position: absolute;
      left: 50%;
      top: -36%;
      transform: translateX(-50%);
      display: inline-flex;
      align-items: baseline;
      gap: 0.4rem;
      padding: 0.5rem 0.75rem;
      font-family: "Inter", "Helvetica Neue", "HelveticaNeue",
        "Neue Haas Grotesk Text Pro", Helvetica, Arial, sans-serif;
      font-weight: 600;
      font-style: italic;
      font-size: clamp(1.125rem, 1.6vw + 0.9rem, 2.4rem);
      letter-spacing: -0.035em;
      line-height: 1.04;
      text-transform: lowercase;
      font-kerning: normal;
      font-feature-settings: "kern" 1, "liga" 0;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      z-index: 2;
      background-image: linear-gradient(
        120deg,
        var(--phase-clock-color-start),
        var(--phase-clock-color-end)
      );
      color: transparent;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      -webkit-background-clip: text;
      text-shadow:
        0 0 12px var(--phase-clock-glow-color),
        0 0 36px var(--phase-clock-glow-color);
      filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
      opacity: 0;
      pointer-events: none;
      white-space: nowrap;
      transition:
        opacity 0.6s ease,
        top 0.8s ease,
        --phase-clock-color-start 12s linear,
        --phase-clock-color-end 12s linear,
        --phase-clock-glow-color 12s linear;
    }

    .day-cycle-arc__phase-clock.is-visible {
      opacity: 1;
    }

    .day-cycle-arc__phase-clock span {
      display: inline-block;
      font-weight: inherit;
      font-style: inherit;
      letter-spacing: inherit;
      background-image: inherit;
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
    }

    .day-cycle-arc__phase-clock-time {
      font-variant-numeric: tabular-nums;
    }

    .day-cycle-arc__ambient {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 220vmax;
      height: 220vmax;
      transform: translate(-50%, -50%);
      pointer-events: none;
      background: linear-gradient(
        to top,
        var(--day-cycle-bleed-bottom) 0%,
        var(--day-cycle-bleed-top) 100%
      );
      --day-cycle-bleed-pulse: 1;
      --day-cycle-bleed-pulse-low: 0.94;
      --day-cycle-bleed-pulse-high: 1.04;
      --day-cycle-bleed-pulse-duration: 34s;
      opacity: calc(var(--day-cycle-bleed-opacity) * var(--day-cycle-bleed-pulse));
      mix-blend-mode: screen;
      filter: blur(240px);
      transition:
        opacity 36s ease,
        --day-cycle-bleed-bottom 32s linear,
        --day-cycle-bleed-top 32s linear,
        --day-cycle-bleed-pulse-low 32s ease,
        --day-cycle-bleed-pulse-high 32s ease;
      animation: day-cycle-ambient-pulse var(--day-cycle-bleed-pulse-duration)
        ease-in-out infinite;
      will-change: opacity;
    }

    .day-cycle-arc__celestial {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: visible;
      will-change: clip-path;
    }

    .day-cycle-arc__ambient-effects {
      position: absolute;
      inset: 0;
      pointer-events: none;
      overflow: hidden;
    }

    .day-cycle-arc__sun-rays {
      position: absolute;
      left: 50%;
      bottom: var(--sun-rays-bottom);
      width: min(120vmin, 140vmax);
      height: min(120vmin, 140vmax);
      transform: translate(-50%, 0) scaleY(var(--sun-rays-length));
      transform-origin: 50% 82%;
      background: repeating-conic-gradient(
        from 180deg at 50% 100%,
        rgba(255, 214, 170, 0.55) 0deg 7deg,
        rgba(255, 214, 170, 0) 7deg 18deg
      );
      background: repeating-conic-gradient(
        from 180deg at 50% 100%,
        color-mix(in srgb, var(--sun-rays-color) 72%, transparent) 0deg 7deg,
        rgba(255, 255, 255, 0) 7deg 18deg
      );
      filter: blur(24px);
      opacity: var(--sun-rays-opacity);
      transition: opacity 12s ease, transform 12s ease;
      mask-image: radial-gradient(
        circle at 50% 82%,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 64%
      );
      mix-blend-mode: screen;
      will-change: opacity, transform;
    }

    .day-cycle-arc__sun-haze {
      position: absolute;
      left: 50%;
      bottom: var(--sun-haze-bottom);
      width: calc(60vmin * var(--sun-size));
      height: calc(30vmin * var(--sun-size));
      transform: translate(-50%, calc(var(--sun-offset) * 32%));
      border-radius: 50%;
      background: radial-gradient(
        circle,
        color-mix(in srgb, white 42%, var(--sun-haze-color) 58%) 0%,
        color-mix(in srgb, var(--sun-haze-color) 62%, transparent) 48%,
        color-mix(in srgb, var(--sun-haze-color) 18%, transparent) 82%
      );
      opacity: var(--sun-haze-opacity);
      filter: blur(56px);
      mix-blend-mode: screen;
      transition: opacity 12s ease, transform 12s ease, filter 12s ease;
      will-change: opacity, transform, filter;
    }

    .day-cycle-arc__sun {
      position: absolute;
      left: 50%;
      bottom: var(--sun-core-bottom);
      width: calc(16vmin * var(--sun-size));
      height: calc(16vmin * var(--sun-size));
      transform: translate(-50%, calc(var(--sun-offset) * 44%));
      border-radius: 50%;
      background: radial-gradient(
        circle,
        color-mix(in srgb, white 75%, var(--sun-core-color) 25%) 0%,
        color-mix(in srgb, white 42%, var(--sun-core-color) 58%) 32%,
        color-mix(in srgb, var(--sun-core-color) 82%, transparent) 62%,
        color-mix(in srgb, var(--sun-core-color) 28%, transparent) 86%
      );
      opacity: var(--sun-core-opacity);
      filter: blur(0.35px);
      mix-blend-mode: screen;
      box-shadow: 0 0 220px color-mix(
          in srgb,
          var(--sun-core-color) 38%,
          rgba(0, 0, 0, 0)
        );
      transition: opacity 12s ease, transform 12s ease, filter 12s ease,
        box-shadow 12s ease;
      will-change: opacity, transform, filter;
    }

    .day-cycle-arc__sun::after {
      content: "";
      position: absolute;
      inset: 20%;
      border-radius: 50%;
      background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.78) 45%,
        rgba(255, 255, 255, 0) 76%
      );
      opacity: var(--sun-core-opacity);
      mix-blend-mode: screen;
      filter: blur(6px);
      pointer-events: none;
    }

    .day-cycle-arc__moon-halo {
      position: absolute;
      left: 50%;
      bottom: var(--moon-bottom);
      width: calc(24vmin * var(--moon-size));
      height: calc(24vmin * var(--moon-size));
      transform: translate(-50%, calc(var(--moon-offset) * 36%));
      border-radius: 50%;
      background: radial-gradient(
        circle,
        color-mix(in srgb, var(--moon-glow-color) 75%, transparent) 0%,
        rgba(255, 255, 255, 0) 80%
      );
      opacity: var(--moon-glow-opacity);
      filter: blur(46px);
      mix-blend-mode: screen;
      transition: opacity 16s ease, transform 16s ease, filter 16s ease,
        background 12s ease;
      will-change: opacity, transform, filter;
    }

    .day-cycle-arc__moon {
      position: absolute;
      left: 50%;
      bottom: var(--moon-bottom);
      width: calc(10vmin * var(--moon-size));
      height: calc(10vmin * var(--moon-size));
      transform: translate(-50%, calc(var(--moon-offset) * 44%));
      border-radius: 50%;
      background: radial-gradient(
          110% 110% at 30% 30%,
          rgba(255, 255, 255, 0.6) 0%,
          rgba(255, 255, 255, 0) 60%
        ),
        radial-gradient(
          circle,
          color-mix(in srgb, var(--moon-core-color) 92%, white 8%) 0%,
          color-mix(in srgb, var(--moon-core-color) 62%, transparent) 65%,
          rgba(255, 255, 255, 0) 82%
        );
      box-shadow: 0 0 80px color-mix(
          in srgb,
          var(--moon-core-color) 24%,
          rgba(0, 0, 0, 0)
        );
      opacity: var(--moon-opacity);
      filter: blur(0.6px);
      mix-blend-mode: screen;
      transition: opacity 16s ease, transform 16s ease, filter 16s ease,
        box-shadow 16s ease, background 12s ease;
      will-change: opacity, transform, filter;
    }

    .day-cycle-arc__clouds {
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: var(--cloud-opacity);
      transition: opacity 18s ease;
      mix-blend-mode: screen;
      mask-image: radial-gradient(
        circle at 50% 78%,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 88%
      );
      will-change: opacity;
    }

    .day-cycle-arc__clouds::before,
    .day-cycle-arc__clouds::after {
      content: "";
      position: absolute;
      top: 12%;
      left: -12%;
      width: 160vmax;
      height: 90vmax;
      background:
        radial-gradient(
          circle at 18% 42%,
          rgba(255, 255, 255, 0.72) 0%,
          rgba(255, 255, 255, 0) 58%
        ),
        radial-gradient(
          circle at 38% 30%,
          rgba(255, 255, 255, 0.68) 0%,
          rgba(255, 255, 255, 0) 55%
        ),
        radial-gradient(
          circle at 58% 46%,
          rgba(255, 255, 255, 0.7) 0%,
          rgba(255, 255, 255, 0) 60%
        ),
        radial-gradient(
          circle at 78% 34%,
          rgba(255, 255, 255, 0.74) 0%,
          rgba(255, 255, 255, 0) 62%
        );
      background:
        radial-gradient(
            circle at 18% 42%,
            color-mix(in srgb, white 86%, var(--cloud-tint-color) 14%) 0%,
            rgba(255, 255, 255, 0) 58%
          ),
        radial-gradient(
            circle at 38% 30%,
            color-mix(in srgb, white 82%, var(--cloud-tint-color) 18%) 0%,
            rgba(255, 255, 255, 0) 55%
          ),
        radial-gradient(
            circle at 58% 46%,
            color-mix(in srgb, white 84%, var(--cloud-tint-color) 16%) 0%,
            rgba(255, 255, 255, 0) 60%
          ),
        radial-gradient(
            circle at 78% 34%,
            color-mix(in srgb, white 88%, var(--cloud-tint-color) 12%) 0%,
            rgba(255, 255, 255, 0) 62%
          );
      opacity: 0.8;
      filter: blur(12px);
      animation: day-cycle-cloud-drift 120s ease-in-out infinite;
      will-change: transform;
    }

    .day-cycle-arc__clouds::after {
      top: 22%;
      left: -18%;
      width: 180vmax;
      height: 80vmax;
      opacity: 0.6;
      filter: blur(18px);
      animation: day-cycle-cloud-drift-alt 160s ease-in-out infinite;
    }

    @keyframes day-cycle-cloud-drift {
      0% {
        transform: translate3d(-8%, 0, 0);
      }
      50% {
        transform: translate3d(8%, 0, 0);
      }
      100% {
        transform: translate3d(-8%, 0, 0);
      }
    }

    @keyframes day-cycle-cloud-drift-alt {
      0% {
        transform: translate3d(10%, 0, 0);
      }
      50% {
        transform: translate3d(-12%, 2%, 0);
      }
      100% {
        transform: translate3d(10%, 0, 0);
      }
    }

    @keyframes day-cycle-ambient-pulse {
      0%,
      100% {
        --day-cycle-bleed-pulse: var(--day-cycle-bleed-pulse-low);
      }
      52% {
        --day-cycle-bleed-pulse: var(--day-cycle-bleed-pulse-high);
      }
    }

    .day-cycle-arc__svg {
      width: 100%;
      height: 100%;
      display: block;
      position: relative;
    }

    .day-cycle-arc #day-cycle-arc-gradient stop[data-stop="edge"] {
      stop-opacity: 0;
    }

    .day-cycle-arc #day-cycle-arc-gradient stop[data-stop="core"] {
      stop-opacity: clamp(0, var(--arc-fade-strength), 1);
    }

    .day-cycle-arc #day-cycle-arc-gradient-glow stop[data-stop="edge"] {
      stop-opacity: 0;
    }

    .day-cycle-arc #day-cycle-arc-gradient-glow stop[data-stop="core"] {
      stop-opacity: var(--arc-glow-core-opacity);
    }

    .day-cycle-arc__glow {
      mix-blend-mode: screen;
      opacity: 0.38;
      filter: blur(28px);
      transform-origin: center;
      animation: day-cycle-arc-glow-shift var(--day-cycle-glow-duration, 40s)
          linear infinite;
      will-change: transform, opacity;
    }

    .day-cycle-arc--calm .day-cycle-arc__glow {
      animation-play-state: paused;
    }

    @keyframes day-cycle-arc-glow-shift {
      0% {
        transform: translate3d(calc(var(--day-cycle-glow-amplitude, 3px) * -0.8), 0, 0)
          scale3d(0.99, 1.02, 1);
        opacity: 0.36;
      }
      19% {
        transform: translate3d(
            calc(var(--day-cycle-glow-amplitude, 3px) * 0.4),
            calc(var(--day-cycle-glow-amplitude, 3px) * -0.35),
            0
          )
          scale3d(1.02, 0.99, 1);
        opacity: 0.43;
      }
      37% {
        transform: translate3d(
            calc(var(--day-cycle-glow-amplitude, 3px) * -0.6),
            calc(var(--day-cycle-glow-amplitude, 3px) * 0.28),
            0
          )
          scale3d(1.01, 1.01, 1);
        opacity: 0.4;
      }
      58% {
        transform: translate3d(
            calc(var(--day-cycle-glow-amplitude, 3px) * 0.75),
            calc(var(--day-cycle-glow-amplitude, 3px) * -0.18),
            0
          )
          scale3d(0.98, 1.03, 1);
        opacity: 0.45;
      }
      79% {
        transform: translate3d(
            calc(var(--day-cycle-glow-amplitude, 3px) * -0.3),
            calc(var(--day-cycle-glow-amplitude, 3px) * 0.42),
            0
          )
          scale3d(1.03, 0.98, 1);
        opacity: 0.41;
      }
      100% {
        transform: translate3d(
            calc(var(--day-cycle-glow-amplitude, 3px) * 0.55),
            calc(var(--day-cycle-glow-amplitude, 3px) * 0.1),
            0
          )
          scale3d(1.0, 1.02, 1);
        opacity: 0.37;
      }
    }

    .day-cycle-arc__stars circle {
      fill: #ffffff;
      opacity: 0;
      transition: opacity 1s ease;
      transform-box: fill-box;
      transform-origin: center;
      will-change: transform, opacity;
    }

    .day-cycle-arc__stars circle[data-visible="true"] {
      opacity: 1;
    }

    .day-cycle-arc__stars {
      opacity: var(--day-cycle-star-opacity);
      transition: opacity 1.5s ease; /* shorter fade */
      will-change: opacity;
    }


    .day-cycle-debug {
      position: fixed;
      top: 16px;
      right: 16px;
      z-index: 20;
      width: 260px;
      padding: 12px 14px;
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid rgba(17, 17, 17, 0.08);
      border-radius: 12px;
      box-shadow: 0 18px 40px rgba(12, 21, 38, 0.18);
      font-size: 0.85rem;
      color: #142033;
      backdrop-filter: blur(12px);
    }

    .day-cycle-debug h2 {
      margin: 0 0 0.75rem;
      font-size: 1rem;
    }

    .day-cycle-debug label {
      display: flex;
      flex-direction: column;
      gap: 4px;
      margin-bottom: 0.75rem;
    }

    .day-cycle-debug input,
    .day-cycle-debug select {
      padding: 6px 8px;
      border-radius: 8px;
      border: 1px solid rgba(17, 17, 17, 0.12);
      font: inherit;
    }

    .day-cycle-debug button {
      align-self: flex-start;
      padding: 6px 10px;
      border-radius: 8px;
      border: 1px solid rgba(17, 17, 17, 0.12);
      background: #f5f7fa;
      cursor: pointer;
      font: inherit;
    }

    .day-cycle-debug button:hover {
      background: #e9ecf2;
    }

    .day-cycle-debug__row {
      display: flex;
      gap: 8px;
    }

    .day-cycle-debug__row label {
      flex: 1;
    }

    .day-cycle-debug__footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
    }

    .day-cycle-debug__footer span {
      font-size: 0.75rem;
      color: rgba(20, 32, 51, 0.7);
    }

    .day-cycle-debug__note {
      font-size: 0.7rem;
      color: rgba(21, 32, 51, 0.6);
    }
    /* Force arc to be fully opaque */
    .day-cycle-arc stop {
      stop-opacity: 1 !important;
    }

    .daycycle-arc-svg stop {
      stop-opacity: 1 !important;
    }

    .day-cycle-arc__glow {
        display: none !important;
    }
    #aiMessages {
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      height: 100%;
      padding: 16px;
    }
    .divider-Conversation__button {
      position: absolute;
      top: -405px;
      right: -265px !important;
      width: 20px;
      height: 20px;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      z-index: 10000;
      opacity: 1;
    }
    .ai-panel .divider-Conversation__button {
      opacity: 0;
      transition: opacity 200ms ease-out;
         }
    .ai-panel.is-open .divider-Conversation__button {
      opacity: 1;
      transition: opacity 1500ms ease-in;
         }

    .divider-Conversation__button img {
      width: 20px;
      height: 19px;
      display: block;
    }
    .divider-Conversation__button {
      pointer-events: auto;
      cursor: pointer;
      position: relative;
      z-index: 20;
    }
    .ai-panel__conversations {
      position: absolute;
      top: 14px;
      bottom: 18px;
      left: 605px;
        height: 100%;
      width: 500px;
      border-top-left-radius: 25px;
      border-bottom-left-radius: 25px;


      background: rgba(239, 238, 238, 0.23);
      backdrop-filter: blur(25px);

      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
        color: #111111;

      z-index: 15;
        transform: translateX(0%);
      opacity: 0;
      pointer-events: none;
    transition:
        transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 600ms ease;
    }

    .ai-panel__conversations.is-open {
      transform: translateX(-110%);
      opacity: 1;
      pointer-events: auto;
    }
.ai-panel-Premium-connect-line {
  position: absolute;
  top: 40px;
  left: 0px;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.74);
}
.ai-panel-Premium-connect-circle-select {
  position: absolute;
  top: -38px;
  left: 49.25%;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.ai-panel-Premium-connect-circle-select-2 {
  position: absolute;
  top: -38px;
  left: 58%;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.ai-panel-Premium-connect-circle-select-3 {
  position: absolute;
  top: -38px;
  left: 67%;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.ai-panel-Premium-connect-circle-select-4 {
  position: absolute;
  top: -38px;
  left: 75.5%;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.ai-panel-Premium-connect-circle-select-5 {
  position: absolute;
  top: -38px;
  left: 84.5%;
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
/* Plus sign and circle-select states */
.circle-select-plus {
  width: 18px;
  height: 18px;
  color: var(--ambient-text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.ai-panel-Premium-connect-circle-select.active .circle-select-plus,
.ai-panel-Premium-connect-circle-select-2.active .circle-select-plus,
.ai-panel-Premium-connect-circle-select-3.active .circle-select-plus,
.ai-panel-Premium-connect-circle-select-4.active .circle-select-plus,
.ai-panel-Premium-connect-circle-select-5.active .circle-select-plus {
  transform: scale(0.3);
  opacity: 0;
}

.ai-panel-Premium-connect-circle-select.active,
.ai-panel-Premium-connect-circle-select-2.active,
.ai-panel-Premium-connect-circle-select-3.active,
.ai-panel-Premium-connect-circle-select-4.active,
.ai-panel-Premium-connect-circle-select-5.active {
  z-index: 10001;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Hover animations for circle-select */
.ai-panel-Premium-connect-circle-select:hover,
.ai-panel-Premium-connect-circle-select-2:hover,
.ai-panel-Premium-connect-circle-select-3:hover,
.ai-panel-Premium-connect-circle-select-4:hover,
.ai-panel-Premium-connect-circle-select-5:hover {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.4);
}

/* Selected icon that replaces plus */
.circle-select-selected-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.74);
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.circle-select-selected-icon.visible {
  opacity: 1;
  transform: scale(1);
}

/* Background blur overlay */
.circle-select-blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
}

.circle-select-blur-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Icon bar popup container */
.circle-select-icon-popup {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10002;
  top: 100%;
  margin-top: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
}

.circle-select-icon-popup.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.circle-select-icon-popup .icon-bar__icon {
  width: 45px;
  height: 45px;
}
.ai-panel-Premium-connect-focus-input {
  position: absolute;
  top: 1.9%;
  left: 5%;
  width: 30%;
  height: 15px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 20px;
  cursor: text;
  resize: none;
  z-index: 999;
  pointer-events: auto;
}
.ai-panel-Premium-connect-focus-input-text {
  position: absolute;
  top: 1%;
  left: 20%;
  transform: translate(-50%, -50%);
  color: var(--ambient-text-primary);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.ai-panel-Premium-connect-locked-overlay {
  position: absolute;
  top: 10% !important;
  left: 0;
  width: 94.5%;
  height: 40px;
  background: rgba(255, 255, 255, 0.67);
  z-index: 1000;
  filter: blur(2px);
  opacity: 0;
  transition: opacity 400ms ease-out;
}
.ai-panel-Premium-connect-locked-overlay-text {
  position: absolute;
  color: #858585;
  font-size: 1.6rem;
  top: 10%;
  left: 40%;
  filter: blur(0px) !important;
  z-index: 10000;
  opacity: 0;
  transition: opacity 400ms ease-out;
}
.ai-panel.is-open .ai-panel-Premium-connect-locked-overlay-text,
.ai-panel.is-open .ai-panel-Premium-connect-locked-overlay {
  opacity: 0;
  transition: opacity 400ms ease-in;
}
    .conversation-item {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 1000px;
    top: 10px;
        left: 150px;
      padding: 14px 16px;
      border-radius: 40px;;
        width: 220px;
        height: 300px;
      background: rgba(209, 209, 209, 0.13);
        border: 2px solid rgba(165, 165, 165, 0.46);
      backdrop-filter: blur(10px);
    box-sizing: border-box;
      cursor: pointer;
        transform: translateZ(0);
      will-change: transform;
        contain: layout paint;
        flex-shrink: 0;


      transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
    }

    .conversation-item:hover {
      background: rgba(255, 255, 255, 0.9);
    }

    .conversation-title {
      font-weight: 600;
      font-size: 0.9rem;
    }

    .conversation-preview {
      font-size: 0.75rem;
      opacity: 0.6;
    }

    .ai-panel__conversations__card__name__divider {
         position: absolute;
        top: 70px;
        left: 0px;
        border-radius: 30px;
        width: 232px;
        height: 2px;
        background: rgba(165, 165, 165, 0.46);
    }
    .ai-panel__conversations__card__etc__divider {
         position: relative;
        top: 57px;
        left: 160px;
        border-radius: 30px;
        width: 2px;
        height: 85%;
        background: rgba(165, 165, 165, 0.46);
    }
    .ai-panel__conversations__card {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 1000px;
    top: 10px;
        left: 150px;
      padding: 14px 16px;
        width: 220px;
        height: 300px;
      --card-bg: color-mix(
    in srgb,
    rgba(255, 255, 255, 0.85) 48%,
    rgba(255, 255, 255, 0.18)
  );

  background: var(--card-bg);

  border-radius: 27px;
  border: 1px solid rgba(255, 255, 255, 0.5);

  box-shadow:
    0 12px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);

  backdrop-filter: blur(18px) saturate(118%);
    box-sizing: border-box;
      cursor: pointer;
        transform: translateZ(0);
      will-change: transform;
        contain: layout paint;
        flex-shrink: 0;
        overflow: hidden;


      transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
    }
.ai-panel__conversations__card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;

  background:
    radial-gradient(
      circle at 18% 22%,
      color-mix(in srgb, var(--day-cycle-bleed-top, #f1d7ff) 62%, transparent) 0%,
      transparent 52%
    ),
    linear-gradient(
      130deg,
      color-mix(in srgb, var(--day-cycle-bleed-bottom, #b7d9ff) 52%, transparent),
      color-mix(in srgb, var(--day-cycle-bleed-top, #f1d7ff) 52%, transparent)
    );

  opacity: 0.18;
  pointer-events: none;
}

   .ai-panel__conversations__card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}


    .ai-panel__conversations__card::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background: linear-gradient(
        120deg,
        rgba(184, 165, 193, 0.08),
        rgba(255,255,255,0)
      );
      opacity: 0;
      transition: opacity 0.25s ease;
      pointer-events: none;
    }

    .ai-panel__conversations__card:hover::after {
      opacity: 1;
    }
    .ai-panel__conversations-list {
      position: relative;
        top: 100px;
        left: 10px;
        width: 550px;
        height: 330px;

        display: flex;
      flex-direction: column;
        gap: 6px;
      overflow-y: auto;



    }
    .ai-panel__conversations__card__name__block {
      position: absolute;
      top: 15px;
      left: 10px;
      width: 200px;
      min-height: 50px;

      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
 color: rgba(120, 118, 120, 0.66);
  font-weight: 600;
      line-height: 1.25;
      white-space: normal;
      word-break: break-word;
font-weight: 600;
font-size: 0.9rem;
line-height: 1.4;
linearGradient:

max-height: 3.2em;
overflow: hidden;

        /* ← THIS FIXES EVERYTHING */
    }


    .title-fade-out {
      opacity: 0;
      transform: translateY(-2px);
    }

    .title-fade-in {
      opacity: 1;
      transform: translateY(0);
    }
.ai-panel__message {
  color: var(--ambient-text-primary);
}

.ai-panel__message--thinking,
.conversation-preview {
  color: var(--ambient-text-secondary);
}
.ai-panel__input-field {
  color: var(--ambient-text-primary);
}

.ai-panel__input-field::placeholder,
.ai-panel__input-placeholder,
.ai-panel__input-hint {
  color: var(--ambient-text-secondary);
}

.ai-panel__conversations__card__summary__block {
  position: absolute;
  top: 74px;
  left: 10px;
  width: 135px;
    height: 100px;

  font-size: 0.8rem;
  line-height: 1.5;
  font-weight: 500;

  color: var(--ambient-text-primary);

  white-space: normal;
  word-break: break-word;

  z-index: 1;
  pointer-events: none;
}


.day-cycle-arc__settings-gear {
    position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
    left: 50%;
    top: 80%;
    transform: translateX(-50%) translateY(0.5rem);

  width: clamp(2.2rem, 2vw + 1.2rem, 3.2rem);
  height: clamp(2.2rem, 2vw + 1.2rem, 3.2rem);
  margin-left: 0;

  background: transparent;
  border: none;
  border-radius: 50%;
    overflow: hidden;

  /* Override parent gradient */
  background-image: none !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;

  cursor: pointer;

  opacity: 0;
  pointer-events: auto;

  transition:
    background 0.2s ease,
    opacity 0.6s ease;
}

.day-cycle-arc__phase-clock.is-visible .day-cycle-arc__settings-gear {
  transition: opacity 15s ease ;
    opacity: 1;
}

.day-cycle-arc__settings-gear svg {
  width: 75%;
  height: 75%;
  display: block;

    overflow: hidden;
  color: var(--ambient-text-primary);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));

  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.day-cycle-arc__settings-gear:hover {
  background: rgba(255, 255, 255, 0.08);
}

.day-cycle-arc__settings-gear:hover svg {
  color: var(--ambient-text-primary);
  opacity: 1;
}

.day-cycle-arc__settings-gear:hover svg {
  transform: rotate(90deg);
}

.day-cycle-arc__settings-gear:active svg {
  transform: rotate(180deg);
  transition-duration: 0.3s;
}

.day-cycle-arc__settings-gear:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.day-cycle-settings-panel {
  position: fixed;
  top: calc(8vh + 25px);
  left: 50%;
  transform: translateX(-50%);

  width: 10px;
  height: 0;
  max-width: 800px;
  max-height: 900px;

  opacity: 0;
  pointer-events: none;
  overflow: visible;

  border-radius: 26px;
  background: color-mix(in srgb, rgba(186, 186, 186, 0.19) 54%, rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.55);

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);

  backdrop-filter: blur(22px) saturate(118%);
  -webkit-backdrop-filter: blur(22px) saturate(118%);

  z-index: 100;

  transition:
    opacity 300ms ease,
    height 800ms cubic-bezier(0.22, 0.61, 0.36, 1),
    width 350ms cubic-bezier(0.22, 0.61, 0.36, 1) 400ms;
}

.day-cycle-settings-panel.is-open {
  width: 600px;
  height: 305px;
  opacity: 1;
  pointer-events: auto;
}
.day-cycle-settings-panel .day-cycle-settings-panel__content {
  opacity: 0;
  transition: opacity 300ms ease 400ms;
}
.day-cycle-settings-panel.is-open .day-cycle-settings-panel__content {
  opacity: 1;
}
.day-cycle-settings-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 35%,
    rgba(255, 255, 255, 0.06) 100%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

.day-cycle-settings-panel::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: none;
}

.day-cycle-settings-panel__content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 26px;
  color: var(--ambient-text-primary);
  z-index: 1;
}

.day-cycle-settings-panel__close:hover {
  opacity: 1;
  background: color-mix(in srgb, rgb(181, 179, 179) 70%, rgba(255, 255, 255, 0.3));
}

.day-cycle-settings-panel__title {
    position: relative;
    top: -45px;
    left: -14px;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--ambient-text-primary);
  opacity: 0;
  transition: opacity 300ms ease;
}

.day-cycle-settings-panel.is-open .day-cycle-settings-panel__title {
  opacity: 1;
  transition-delay: 800ms;
}
.day-cycle-settings-panel__line {
position: relative;
    top: 33px;
    left: 0px;
    width: 100%;
    height: 2px;
    background: rgba(234, 234, 234, 0.44);

}

/* Device Last Seen Dropdown */
.device-last-seen-dropdown {
  position: absolute;
  top: 38px;
  left: 26px;
  right: 26px;
  width: calc(100% - 52px);
  display: none;
  z-index: 10;
}

.device-last-seen-dropdown.visible {
  display: block;
}

/* Solid background panel that covers entire dropdown when active */
.device-last-seen-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: 0;
}

.device-last-seen-dropdown.active::before {
  opacity: 1;
}

.device-last-seen-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 300ms ease;
  opacity: 0;
  z-index: 1;
}

.day-cycle-settings-panel.is-open .device-last-seen-trigger {
  opacity: 1;
  transition-delay: 850ms;
}

.device-last-seen-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

/* Main device advanced details */
.device-last-seen-trigger-advanced {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease;
  padding: 0 14px;
}

.device-last-seen-dropdown.main-expanded .device-last-seen-trigger-advanced {
  max-height: 500px;
  opacity: 1;
  padding: 12px 14px;
}

/* Border when main device is expanded */
.device-last-seen-dropdown.main-expanded .device-last-seen-trigger {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  border-radius: 12px 12px 0 0;
}

.device-last-seen-dropdown.main-expanded .device-last-seen-trigger-advanced {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 0 12px 12px;
  margin-top: -1px;
}

.device-icon {
  width: 18px;
  height: 18px;
  color: #404040;
  opacity: 0.7;
  flex-shrink: 0;
}

.device-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: #404040;
  opacity: 0.85;
  letter-spacing: 0.01em;
}

.device-last-seen {
  font-size: 0.65rem;
  font-weight: 400;
  color: #404040;
  opacity: 0.6;
  letter-spacing: 0.01em;
}

.device-location {
  font-size: 0.65rem;
  font-weight: 600;
  color: #404040;
  opacity: 0.7;
  letter-spacing: 0.02em;
  position: relative;
  cursor: default;
  transition: opacity 300ms ease;
}

.device-location:hover {
  opacity: 0.9;
}

.device-location::after {
  content: attr(data-full-location);
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  color: #404040;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 300ms ease;
}

.device-location:hover::after {
  opacity: 1;
}

.device-location:hover {
  color: transparent;
}

.device-status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
  transition: all 300ms ease;
}

.device-status-light.active {
  background: var(--ambient-text-primary);
  box-shadow: 0 0 8px var(--ambient-text-primary),
              0 0 12px var(--ambient-text-primary);
  animation: pulse-glow 2s ease-in-out infinite;
}

.device-status-light.warning {
  background: #ff9500;
  box-shadow: 0 0 8px rgba(255, 149, 0, 0.8),
              0 0 12px rgba(255, 149, 0, 0.6);
  animation: pulse-glow-orange 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 8px var(--ambient-text-primary),
                0 0 12px var(--ambient-text-primary);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px var(--ambient-text-primary),
                0 0 16px var(--ambient-text-primary);
  }
}

@keyframes pulse-glow-orange {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 8px rgba(255, 149, 0, 0.8),
                0 0 12px rgba(255, 149, 0, 0.6);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(255, 149, 0, 0.9),
                0 0 16px rgba(255, 149, 0, 0.7);
  }
}

.device-last-seen-menu {
  position: relative;
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  z-index: 1;
}

.device-last-seen-dropdown.active .device-last-seen-menu {
  max-height: 500px;
}

.device-item {
  position: relative;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 300ms ease;
  cursor: pointer;
}

.device-item-basic {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-expand-btn {
  width: 20px;
  height: 20px;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: all 300ms ease;
  padding: 0;
  flex-shrink: 0;
}

.device-expand-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.device-expand-btn svg {
  width: 12px;
  height: 12px;
  color: var(--ambient-text-primary);
  transition: transform 300ms ease;
}

.device-expand-btn.expanded svg {
  transform: rotate(180deg);
}

.device-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Advanced details (hidden by default) */
.device-item-advanced {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease;
  margin-top: 0;
}

.device-item.expanded .device-item-advanced {
  max-height: 500px;
  opacity: 1;
  margin-top: 12px;
}

/* Border when expanded */
.device-item.expanded {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}

/* Device detail rows */
.device-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.65rem;
}

.device-detail-label {
  color: var(--ambient-text-primary);
  opacity: 0.5;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.device-detail-value {
  color: var(--ambient-text-primary);
  opacity: 0.8;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: right;
}

/* Live latency pulse */
.device-detail-value.latency-live {
  animation: pulse-latency 2s ease-in-out infinite;
}

@keyframes pulse-latency {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

/* Category Dropdown */
.settings-category-selector {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
  margin-top: -20px;
  z-index: 10;
}

.settings-category-trigger {
  position: relative;
  top: -55px;
  width: 70%;
  left: 85px;
  height: 20px;
  background: rgba(214, 214, 214, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.settings-category-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.settings-category-trigger.clicking {
  transform: scale(0.97);
  box-shadow:
    inset 0 3px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(0, 0, 0, 0.15),
    0 1px 4px rgba(0, 0, 0, 0.06);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-category-label {
  flex: 1;
  text-align: center;
}

.settings-dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  position: absolute;
  right: 16px;
}

.settings-category-selector.is-open .settings-dropdown-arrow {
  transform: rotate(180deg);
}

.settings-category-dropdown {
  position: absolute;
  top: 15px;
  left: 45px;
  width: 70%;
  height: 0;
  opacity: 0;
  overflow: hidden;
  background: rgba(200, 200, 200, 0.02);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 0 20px rgba(255, 255, 255, 0.15);
  transition: height 560ms cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 560ms cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: auto;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  z-index: 23;
}

.settings-category-dropdown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.settings-category-dropdown.is-open {
  height: 280px;
  opacity: 1;
  pointer-events: auto;
  padding: 12px;
  z-index: 23;
}

.settings-category-btn {
  flex: 1;
  min-height: 48px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(8px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.settings-category-btn--account {
  text-transform: uppercase;
}

.account-btn-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.account-title-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.account-btn-text {
  font-family: "Blond Spec", "Blond", "Inter", sans-serif;
  letter-spacing: 0.12em;
}

.account-ivy-logo {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: brightness(1.08);
}

.account-ivy-logo-svg {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.34))
          drop-shadow(0 0 1px rgba(72, 80, 88, 0.35));
}

/* Subscription tier styling */
.account-ivy-logo-svg--basic {
  display: block;
}

.account-ivy-logo-svg--pro,
.account-ivy-logo-svg--select {
  display: none;
}

/* Pro tier gradient classes (ambient colors) */
.ivy-pro-gradient-start {
  stop-color: var(--ambient-text-primary);
  stop-opacity: 0.9;
}

.ivy-pro-gradient-mid {
  stop-color: var(--ambient-text-secondary);
  stop-opacity: 0.85;
}

.ivy-pro-gradient-end {
  stop-color: var(--ambient-text-primary);
  stop-opacity: 0.75;
}

.ivy-pro-stem-start {
  stop-color: var(--ambient-text-secondary);
  stop-opacity: 0.8;
}

.ivy-pro-stem-end {
  stop-color: var(--ambient-text-primary);
  stop-opacity: 0.6;
}

.ivy-pro-leaves {
  fill: var(--ambient-text-primary);
  opacity: 0.85;
}

/* Subscription status display */
.subscription-status-display {
  display: flex;
  position: relative;
  left: 65px;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  opacity: 0.5;
  font-size: 0.6rem;
  color: var(--ambient-text-primary);
  transition: opacity 300ms ease;
  width: 400px;
}

.subscription-status-display:hover {
  opacity: 0.7;
}

.subscription-status-text {
  font-weight: 400;
  letter-spacing: 0.01em;
}

.subscription-tier-name {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.subscription-tier-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
}

.subscription-tier-icon-svg {
  width: 16px;
  height: 16px;
  display: block;
}

.subscription-tier-icon-svg--basic {
  display: block;
}

.subscription-tier-icon-svg--pro,
.subscription-tier-icon-svg--select {
  display: none;
}

/* Account status row with Member Since and Subscription Status */
.account-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

/* Member Since Display (under account name) */
.member-since-display {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 8px;
  opacity: 0.5;
  font-size: 0.6rem;
  color: var(--ambient-text-primary);
  transition: opacity 300ms ease;
  cursor: default;
}

.member-since-display:hover {
  opacity: 0.7;
}

.member-since-text {
  position: relative;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.member-since-expanded {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: opacity 300ms ease;
}

.member-since-display:hover .member-since-text {
  opacity: 0;
}

.member-since-display:hover .member-since-expanded {
  opacity: 1;
}

/* Subscription Status Display (under lastname) */
.subscription-status-display {
  position: relative;
  margin-top: 8px;
  cursor: pointer;
}

.subscription-history-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 300ms ease, transform 300ms ease;
  z-index: 100;
}

.subscription-status-display.active .subscription-history-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.subscription-history-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 200ms ease;
}

.subscription-history-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.subscription-history-item + .subscription-history-item {
  margin-top: 4px;
}

.subscription-history-tier {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--ambient-text-primary);
  opacity: 0.9;
  letter-spacing: 0.02em;
}

.subscription-history-text {
  font-size: 0.55rem;
  font-weight: 400;
  color: var(--ambient-text-primary);
  opacity: 0.6;
  letter-spacing: 0.01em;
}

.subscription-history-dates {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--ambient-text-primary);
  opacity: 0.7;
  letter-spacing: 0.01em;
}

.account-profile-placeholder {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(145deg, rgba(245, 245, 245, 0.24), rgba(180, 180, 180, 0.08));
  position: relative;
  pointer-events: none;
  flex-shrink: 0;
}

.account-profile-placeholder::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  transform: translateX(-50%);
}

.account-profile-placeholder::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 10px;
  height: 5px;
  border-radius: 999px 999px 3px 3px;
  background: rgba(255, 255, 255, 0.66);
  transform: translateX(-50%);
}
.settings-toggles-container {
  position: static;
  width: 100%;
  height: auto;
  overflow: visible;
}
/* Account Name Input */
.account-name-container {
  position: absolute;
  top: 85px;
  left: 26px;
  width: 220px;
  display: none;
  z-index: 3;
}
.account-name-container.visible {
  display: block;
}

.account-name-input {
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: var(--ambient-text-primary);
  font-size: 1.4rem;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 300ms ease;
}

.account-name-input::placeholder {
  color: var(--ambient-text-primary);
  opacity: 0.45;
}

.account-name-input:focus {
  border-color: var(--ambient-text-primary);
}

/* Account Last Name Input */
.account-lastname-container {
  position: absolute;
  top: 85px;
  right: 26px;
  width: 270px;
  display: none;
  z-index: 3;
}
.account-lastname-container.visible {
  display: block;
}

.account-lastname-input {
  width: 100%;
  position: relative;
  left: -70px;
  padding: 8px 12px;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: var(--ambient-text-primary);
  font-size: 1.4rem;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 300ms ease;
}

.account-lastname-input::placeholder {
  color: var(--ambient-text-primary);
  opacity: 0.45;
}

.account-lastname-input:focus {
  border-color: var(--ambient-text-primary);
}

/* Currency Dropdown */
.account-currency-container {
  position: absolute;
  bottom: 26px;
  left: 26px;
  width: 240px;
  display: none;
  z-index: 10;
}

.account-currency-container.visible {
  display: block;
}

.account-currency-label {
  display: block;
  position: relative;
  top: -37px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ambient-text-primary);
  opacity: 0.65;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.account-currency-dropdown {
  position: relative;
  top: -40px;
  width: 100%;
}

.account-currency-button {
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--ambient-text-primary);
  font-size: 1.4rem;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: all 300ms ease;
  outline: none;
}

.account-currency-button:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.account-currency-button:focus {
  border-color: var(--ambient-text-primary);
}

.account-currency-code {
  font-weight: 600;
}

.account-currency-symbol {
  opacity: 0.7;
  margin-left: auto;
}

.account-currency-arrow {
  width: 12px;
  height: 8px;
  opacity: 0.6;
  transition: transform 300ms ease;
}

.account-currency-dropdown.is-open .account-currency-arrow {
  transform: rotate(180deg);
}

.account-currency-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background: rgba(15, 18, 22, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  opacity: 0;
  transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 250;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);
}

.account-currency-dropdown.is-open .account-currency-menu {
  max-height: 340px;
  overflow-y: auto;
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.25);
}

.account-currency-menu::-webkit-scrollbar {
  width: 6px;
}

.account-currency-menu::-webkit-scrollbar-track {
  background: transparent;
}

.account-currency-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.account-currency-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.account-currency-option {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  position: relative;
  border-radius: 8px;
  margin: 4px 6px;
}

.account-currency-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-radius: 8px;
  opacity: 0;
  transition: opacity 250ms ease;
}

.account-currency-option:hover::before {
  opacity: 1;
}

.account-currency-option:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.account-currency-option:active {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px) scale(0.98);
}

.account-currency-option-code {
  font-weight: 700;
  letter-spacing: 0.05em;
  min-width: 48px;
  font-size: 1.4rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, currentColor, currentColor);
  -webkit-background-clip: text;
  background-clip: text;
}

.account-currency-option-name {
  color: var(--ambient-text-primary);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-left: auto;
}

/* Country Flag Code Colors in Dropdown */
.account-currency-option[data-currency="USD"] .account-currency-option-code {
  background: linear-gradient(to right, #B22234 0%, #B22234 33%, #FFFFFF 33%, #FFFFFF 66%, #3C3B6E 66%, #3C3B6E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="EUR"] .account-currency-option-code {
  background: linear-gradient(to right, #003399 0%, #003399 50%, #FFCC00 50%, #FFCC00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="GBP"] .account-currency-option-code {
  background: linear-gradient(135deg, #012169 0%, #FFFFFF 35%, #C8102E 50%, #FFFFFF 65%, #012169 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="JPY"] .account-currency-option-code {
  background: linear-gradient(to right, #FFFFFF 0%, #FFFFFF 35%, #BC002D 35%, #BC002D 65%, #FFFFFF 65%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="CNY"] .account-currency-option-code {
  background: linear-gradient(to right, #DE2910 0%, #DE2910 50%, #FFDE00 50%, #FFDE00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="AUD"] .account-currency-option-code {
  background: linear-gradient(to right, #012169 0%, #012169 33%, #FFFFFF 33%, #FFFFFF 66%, #E4002B 66%, #E4002B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="CAD"] .account-currency-option-code {
  background: linear-gradient(to right, #FF0000 0%, #FF0000 33%, #FFFFFF 33%, #FFFFFF 66%, #FF0000 66%, #FF0000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="CHF"] .account-currency-option-code {
  background: linear-gradient(to right, #FF0000 0%, #FF0000 50%, #FFFFFF 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="ZAR"] .account-currency-option-code {
  background: linear-gradient(to bottom, #DE3831 0%, #007A4D 25%, #FFB612 50%, #007A4D 75%, #000000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="INR"] .account-currency-option-code {
  background: linear-gradient(to bottom, #FF9933 0%, #FF9933 33%, #FFFFFF 33%, #FFFFFF 66%, #138808 66%, #138808 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="BRL"] .account-currency-option-code {
  background: linear-gradient(to right, #009B3A 0%, #009B3A 33%, #FEDD00 33%, #FEDD00 66%, #002776 66%, #002776 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="MXN"] .account-currency-option-code {
  background: linear-gradient(to right, #006847 0%, #006847 33%, #FFFFFF 33%, #FFFFFF 66%, #CE1126 66%, #CE1126 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="KRW"] .account-currency-option-code {
  background: linear-gradient(to right, #FFFFFF 0%, #FFFFFF 33%, #C60C30 33%, #C60C30 50%, #003478 50%, #003478 66%, #FFFFFF 66%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="SGD"] .account-currency-option-code {
  background: linear-gradient(to bottom, #ED2939 0%, #ED2939 50%, #FFFFFF 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="HKD"] .account-currency-option-code {
  background: linear-gradient(to right, #DE2910 0%, #DE2910 50%, #FFFFFF 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="SEK"] .account-currency-option-code {
  background: linear-gradient(to right, #006AA7 0%, #006AA7 33%, #FECC00 33%, #FECC00 66%, #006AA7 66%, #006AA7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="NOK"] .account-currency-option-code {
  background: linear-gradient(to right, #BA0C2F 0%, #BA0C2F 33%, #FFFFFF 33%, #00205B 50%, #FFFFFF 66%, #BA0C2F 83%, #BA0C2F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="NZD"] .account-currency-option-code {
  background: linear-gradient(to right, #00247D 0%, #00247D 50%, #CC142B 50%, #CC142B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="RUB"] .account-currency-option-code {
  background: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 33%, #0039A6 33%, #0039A6 66%, #D52B1E 66%, #D52B1E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

.account-currency-option[data-currency="TRY"] .account-currency-option-code {
  background: linear-gradient(to right, #E30A17 0%, #E30A17 50%, #FFFFFF 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: brightness(1.3) saturate(1.2);
}

/* Country Flag Border Styles */
.account-currency-dropdown[data-currency="USD"] .account-currency-button {
  border-image: linear-gradient(to right, #B22234 0%, #B22234 33%, #FFFFFF 33%, #FFFFFF 66%, #3C3B6E 66%, #3C3B6E 100%) 2;
}

.account-currency-dropdown[data-currency="EUR"] .account-currency-button {
  border-image: linear-gradient(to right, #003399 0%, #003399 50%, #FFCC00 50%, #FFCC00 100%) 2;
}

.account-currency-dropdown[data-currency="GBP"] .account-currency-button {
  border-image: linear-gradient(135deg, #012169 0%, #012169 30%, #FFFFFF 30%, #FFFFFF 35%, #C8102E 35%, #C8102E 40%, #FFFFFF 40%, #FFFFFF 60%, #C8102E 60%, #C8102E 65%, #FFFFFF 65%, #FFFFFF 70%, #012169 70%, #012169 100%) 2;
}

.account-currency-dropdown[data-currency="JPY"] .account-currency-button {
  border-image: linear-gradient(to right, #FFFFFF 0%, #FFFFFF 35%, #BC002D 35%, #BC002D 65%, #FFFFFF 65%, #FFFFFF 100%) 2;
}

.account-currency-dropdown[data-currency="CNY"] .account-currency-button {
  border-image: linear-gradient(to right, #DE2910 0%, #DE2910 50%, #FFDE00 50%, #FFDE00 100%) 2;
}

.account-currency-dropdown[data-currency="AUD"] .account-currency-button {
  border-image: linear-gradient(to right, #012169 0%, #012169 33%, #FFFFFF 33%, #FFFFFF 66%, #E4002B 66%, #E4002B 100%) 2;
}

.account-currency-dropdown[data-currency="CAD"] .account-currency-button {
  border-image: linear-gradient(to right, #FF0000 0%, #FF0000 33%, #FFFFFF 33%, #FFFFFF 66%, #FF0000 66%, #FF0000 100%) 2;
}

.account-currency-dropdown[data-currency="CHF"] .account-currency-button {
  border-image: linear-gradient(to right, #FF0000 0%, #FF0000 50%, #FFFFFF 50%, #FFFFFF 100%) 2;
}

.account-currency-dropdown[data-currency="ZAR"] .account-currency-button {
  border-image: linear-gradient(to bottom, #DE3831 0%, #DE3831 16%, #FFFFFF 16%, #FFFFFF 33%, #007A4D 33%, #007A4D 66%, #FFB612 66%, #FFB612 83%, #000000 83%, #000000 100%) 2;
}

.account-currency-dropdown[data-currency="INR"] .account-currency-button {
  border-image: linear-gradient(to bottom, #FF9933 0%, #FF9933 33%, #FFFFFF 33%, #FFFFFF 66%, #138808 66%, #138808 100%) 2;
}

.account-currency-dropdown[data-currency="BRL"] .account-currency-button {
  border-image: linear-gradient(to right, #009B3A 0%, #009B3A 33%, #FEDD00 33%, #FEDD00 66%, #002776 66%, #002776 100%) 2;
}

.account-currency-dropdown[data-currency="MXN"] .account-currency-button {
  border-image: linear-gradient(to right, #006847 0%, #006847 33%, #FFFFFF 33%, #FFFFFF 66%, #CE1126 66%, #CE1126 100%) 2;
}

.account-currency-dropdown[data-currency="KRW"] .account-currency-button {
  border-image: linear-gradient(to right, #FFFFFF 0%, #FFFFFF 33%, #C60C30 33%, #C60C30 50%, #003478 50%, #003478 66%, #FFFFFF 66%, #FFFFFF 100%) 2;
}

.account-currency-dropdown[data-currency="SGD"] .account-currency-button {
  border-image: linear-gradient(to bottom, #ED2939 0%, #ED2939 50%, #FFFFFF 50%, #FFFFFF 100%) 2;
}

.account-currency-dropdown[data-currency="HKD"] .account-currency-button {
  border-image: linear-gradient(to right, #DE2910 0%, #DE2910 50%, #FFFFFF 50%, #FFFFFF 100%) 2;
}

.account-currency-dropdown[data-currency="SEK"] .account-currency-button {
  border-image: linear-gradient(to right, #006AA7 0%, #006AA7 33%, #FECC00 33%, #FECC00 66%, #006AA7 66%, #006AA7 100%) 2;
}

.account-currency-dropdown[data-currency="NOK"] .account-currency-button {
  border-image: linear-gradient(to right, #BA0C2F 0%, #BA0C2F 33%, #FFFFFF 33%, #FFFFFF 50%, #00205B 50%, #00205B 66%, #FFFFFF 66%, #FFFFFF 83%, #BA0C2F 83%, #BA0C2F 100%) 2;
}

.account-currency-dropdown[data-currency="NZD"] .account-currency-button {
  border-image: linear-gradient(to right, #00247D 0%, #00247D 50%, #CC142B 50%, #CC142B 100%) 2;
}

.account-currency-dropdown[data-currency="RUB"] .account-currency-button {
  border-image: linear-gradient(to bottom, #FFFFFF 0%, #FFFFFF 33%, #0039A6 33%, #0039A6 66%, #D52B1E 66%, #D52B1E 100%) 2;
}

.account-currency-dropdown[data-currency="TRY"] .account-currency-button {
  border-image: linear-gradient(to right, #E30A17 0%, #E30A17 50%, #FFFFFF 50%, #FFFFFF 100%) 2;
}

.account-login-overlay {
  position: absolute;
  top: 32px;
  left: 0px;
  right: 50px;
  bottom: 56px;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 1;
  background: rgba(214, 214, 214, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(1px);
  pointer-events: none;
  transition: opacity 300ms ease;
  z-index: 2000;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
}

.account-login-overlay.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.account-login-overlay__content {
  width: min(520px, 95%);
  text-align: center;
  transform: translateY(-8px);
  pointer-events: all;
}

.account-login-overlay__text {
  margin: 0;
  color: #ffffff;
  font-size: 1.06rem;
  line-height: 1.45;
  font-weight: 560;
  text-wrap: balance;
  z-index: 2;
}

.account-login-overlay__subtext {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  z-index: 2;
}

.account-login-overlay__button {
  --account-login-button-color: var(--ambient-text-primary);
  margin-top: 16px;
  width: min(280px, 90%);
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(237, 237, 237, 0.98),
    rgba(208, 208, 208, 0.92)
  );
  color: var(--account-login-button-color);
  font-size: 1.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    9px 9px 22px rgba(123, 123, 123, 0.3),
    -9px -9px 22px rgba(255, 255, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition:
    transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.account-login-overlay__button:hover {
  transform: translateY(-1px);
  box-shadow:
    11px 11px 26px rgba(118, 118, 118, 0.3),
    -10px -10px 24px rgba(255, 255, 255, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.account-login-overlay__button:active,
.account-login-overlay__button.is-pressing {
  transform: translateY(2px) scale(0.985);
  box-shadow:
    inset 8px 8px 16px rgba(148, 148, 148, 0.34),
    inset -8px -8px 16px rgba(255, 255, 255, 0.64);
}

.account-login-overlay__button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.88);
  outline-offset: 2px;
}

.google-manual-login-button {
  margin-top: 12px;
  width: min(280px, 90%);
  min-height: 48px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.google-manual-login-button:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

.google-manual-login-button:active {
  transform: scale(0.98);
}

#setings_premium-btn {
  background: var(--ambient-text-primary);
  filter: blur(1px) grayscale(100%);
}
.settings-category-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.settings-category-btn.clicking {
  transform: scale(0.96);
  box-shadow:
    inset 0 3px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(0, 0, 0, 0.15);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-category-btn.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 1);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Night Shift */
.night-shift-container {
  position: relative;
  height: 300px;
  display: none;
  left: -17px !important;
  top: -115px;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}
.night-shift-desc-container {
  position: relative;
  top:-45px;
  left: -10px;
  width: 75px;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  font-size: 0.5rem;
  color: rgba(175, 175, 175, 0.48);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.night-shift-desc-container.visible {
  display: flex;
  opacity: 1;
}
.night-shift-container.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  height: 300px;
  z-index: 1;
}
.night-shift-line {
  position: absolute;
  top: 25%;
  left: 15%;
  width: 1px;
  height: 38%;
  background: rgba(255, 255, 255, 0.1);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.night-shift-line.visible {
  display: block;
  opacity: 1;
}
.night-shift-name {
  display: flex;
  align-items: left;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ambient-text-primary);
  background: rgba(197, 197, 197, 0.09);
  border-radius: 12px;
  position: relative;
  z-index: 11;
  padding-left: 5px;
  padding-right: 5px;
  width: 100px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: auto;
  line-height: -2px !important;
}

.night-shift-checkbox {
  top: 5px;
  right: 2px;
  position: relative;
  z-index: 12;
  pointer-events: auto;
}
body.night-shift-active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: rgba(255, 138, 0, 0.15);
  mix-blend-mode: multiply;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Night Shift */
.ambience-container {
  position: relative;
  height: 300px;
  display: none;
  left: -17px !important;
  top: -95px;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
  font-size: 0.3rem ;
}
.ambience-desc-container {
  position: relative;
  top:-395px;
  left: 460px;
  width: 75px;
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: transparent;
  font-size: 0.5rem;
  color: rgba(126, 126, 126, 0.74);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ambience-desc-container.visible {
  display: flex;
  opacity: 1;
}
.ambience-container.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  height: 300px;
}
.ambience-line {
  position: absolute;
  top: 25%;
  left: 87.5%;
  width: 1px;
  height: 38%;
  background: rgba(255, 255, 255, 0.1);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ambience-line.visible {
  display: block;
  opacity: 1;
}
.ambience-name {
  position: relative;
  top: -375px;
  left: 470px;
  display: flex;
  align-items: left;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ambient-text-primary);
  background: rgba(197, 197, 197, 0.09);
  border-radius: 12px;
  position: relative;
  z-index: 11;
  padding-left: 5px;
  padding-right: 5px;
  width: 100px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: auto;
  line-height: -2px !important;
}

.ambience-checkbox {
  top: 5px;
  right: 2px;
  position: relative;
  z-index: 12;
  pointer-events: auto;
}
body.ambience-active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: rgba(255, 138, 0, 0.15);
  mix-blend-mode: multiply;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Debug Section */
.settings-debug-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(165, 165, 165, 0.18);
}

.settings-debug-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ambient-text-primary);
  opacity: 0.7;
}

.settings-debug-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: linear-gradient(145deg, #e6e6e6, #ffffff);
  color: #333;
  box-shadow:
    4px 4px 8px rgba(0, 0, 0, 0.1),
    -4px -4px 8px rgba(255, 255, 255, 0.5);
}

.settings-debug-btn:hover {
  box-shadow:
    3px 3px 6px rgba(0, 0, 0, 0.15),
    -3px -3px 6px rgba(255, 255, 255, 0.6),
    inset 1px 1px 2px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.settings-debug-btn:active {
  box-shadow:
    inset 3px 3px 6px rgba(0, 0, 0, 0.15),
    inset -3px -3px 6px rgba(255, 255, 255, 0.6);
  transform: translateY(1px);
}

/* ========================================
   FEATURE TOGGLES: FUNCTIONAL STYLES
   ======================================== */

/* Night Shift: Reduce blue light */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(255, 153, 102, 0.18) 0%,
    rgba(255, 140, 80, 0.22) 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.night-shift-enabled::before,
body.night-shift-enabled::after {
  opacity: 1;
}

body.night-shift-enabled * {
  --ambient-text-primary: color-mix(in srgb, var(--ambient-text-primary) 90%, #ff9966 10%);
}

/* Ambience: Toggle environmental visuals */
body.ambience-disabled .day-cycle-arc__sun-rays,
body.ambience-disabled .day-cycle-arc__clouds,
body.ambience-disabled .day-cycle-arc__stars,
body.ambience-disabled .day-cycle-arc__sun-haze,
body.ambience-disabled .day-cycle-arc__moon-halo {
  opacity: 0 !important;
  transition: opacity 0.8s ease;
}

/* Motion: Smooth and slow animations */
body.motion-enabled * {
  transition-duration: calc(var(--original-duration, 1s) * 1.4) !important;
  animation-duration: calc(var(--original-duration, 1s) * 1.4) !important;
}

body.motion-enabled .ai-panel__message--visible {
  animation-duration: 1000ms !important;
}

body.motion-enabled .ai-panel__message--visible::before {
  animation-duration: 900ms !important;
}

/* Compact: Adjustable spacing and density */
body.compact-enabled {
  --compact-scale: 1;
}

body.compact-enabled .ai-panel__messages {
  gap: calc(12px * var(--compact-scale));
}

body.compact-enabled .ai-panel__message {
  padding: calc(14px * var(--compact-scale)) calc(16px * var(--compact-scale));
  font-size: calc(1rem * var(--compact-scale));
  line-height: calc(1.5 * var(--compact-scale));
}

body.compact-enabled .ai-panel__input-pill {
  padding: calc(14px * var(--compact-scale)) calc(18px * var(--compact-scale));
}

/* Focus: Minimal UI with larger text */
body.focus-enabled .day-cycle-arc__phase-clock {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.focus-enabled {
  --phase-clock-color-start: var(--day-cycle-bleed-top) !important;
  --phase-clock-color-end: var(--day-cycle-bleed-bottom) !important;
}

body.focus-enabled .day-cycle-arc__ambient {
  transition:
    opacity 0.5s ease,
    --day-cycle-bleed-bottom 0.5s linear,
    --day-cycle-bleed-top 0.5s linear !important;
}

body.focus-enabled .ai-panel__message {
  font-size: 1.1rem;
  line-height: 1.6;
}

body.focus-enabled .ai-panel__input-field {
  font-size: 1.05rem;
}

/* Instant: Disable all animation delays */
body.instant-enabled * {
  transition-duration: 0.05s !important;
  animation-duration: 0.05s !important;
  transition-delay: 0s !important;
  animation-delay: 0s !important;
}

body.instant-enabled .ai-panel__message--visible {
  animation: none !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

body.instant-enabled .ai-panel__message--visible::before {
  animation: none !important;
  opacity: 0 !important;
}

/* ========================================
   FOX3 CALL OVERLAY STYLES
   ======================================== */

.fox3-call-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fox3-call-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.fox3-iphone-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fox3-bg-image {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  border-radius: 20px;
}

.fox3-call-timer {
  position: absolute;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  font-weight: 300;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: -0.05em;
  z-index: 10;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.fox3-btn-accept-overlay,
.fox3-btn-end-overlay {
  position: absolute;
  bottom: 12%;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}

.fox3-btn-accept-overlay {
  left: 37%;
  bottom: 20%;
}

.fox3-btn-end-overlay {
  right: 35%;
  bottom: 6%;
}

.fox3-btn-accept-overlay:hover,
.fox3-btn-end-overlay:hover {
  transform: scale(1.1);
}

.fox3-btn-accept-overlay:active,
.fox3-btn-end-overlay:active {
  transform: scale(0.95);
}

/* ========================================
   SAFETY MODE BLUE SCREEN STYLES
   ======================================== */

.safety-mode-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #0000aa;
  z-index: 200000;
  opacity: 0;
  pointer-events: none;
}

.safety-mode-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.safety-mode-content {
  width: 100%;
  height: 100%;
  padding: 40px;
  overflow: hidden;
}

.safety-mode-logs {
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
  overflow-y: auto;
  height: 100%;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.safety-log-line {
  margin-bottom: 8px;
}

/* ========================================
   SCREEN SHAKE ANIMATION
   ======================================== */

@keyframes screenShake {
  0%, 100% {
    transform: translate(0, 0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translate(-10px, -10px);
  }
  20%, 40%, 60%, 80% {
    transform: translate(10px, 10px);
  }
}

/* Timeline card styles */
.note-info-card.timeline-card {
  position: absolute;
  top: 85px !important;
  width: 200px !important;
  height: 200px !important;
  opacity: 0;
  transform: translateY(20px) scale(0.9) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible !important;
}

.note-info-card.timeline-card.timeline-card-animating {
  opacity: 0;
  transform: translateY(20px) scale(0.9) !important;
}

.note-info-card.timeline-card.timeline-card-visible {
  opacity: 1;
  transform: translateY(0) scale(1) !important;
}

/* Readonly content styling */
.note-info-card-readonly {
  position: relative;
  top: 1.5px;
  left: 6px;
  pointer-events: none !important;
  user-select: none;
  cursor: default !important;
  border: none !important;
  resize: none !important;
  background: transparent !important;
  outline: none !important;
  text-align: left !important;
}

/* Readonly links styling */
.note-info-card-links-readonly {
  height: 10px !important;
  left: 0px !important;
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  white-space: pre-wrap;
  pointer-events: auto !important;
}

.note-info-card-links-readonly a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
  pointer-events: auto;
  cursor: pointer;
}

.note-info-card-links-readonly a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ========================================
   PREMIUM CONNECT RADIAL SELECTOR
   ======================================== */

.selector-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  opacity: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: backdrop-filter 0.3s ease, opacity 0.3s ease;
  z-index: 10000;
}

.selector-origin-active {
  z-index: 10002 !important;
}

.selector-menu {
  position: fixed;
  left: 0;
  top: 0;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10003;
  pointer-events: none;
}

.selector-menu.is-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.selector-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.ai-panel-Premium-connect-circle-select-selections {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
}

.selection-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  scale: 0.85;
  filter: brightness(1);
  pointer-events: auto;
  transition-delay: var(--selection-delay, 0ms) !important;
  transition:
    opacity 260ms ease,
    scale 200ms ease,
    filter 200ms ease,
    box-shadow 200ms ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.selector-menu.is-open .selection-circle {
  opacity: 1;
  scale: 1;
}

.selection-circle:hover {
  scale: 1.08;
  filter: brightness(1.08);
}

.selection-circle .icon-bar__svg {
  width: 18px;
  height: 18px;
}

@starting-style {
  .selector-overlay {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}
