/* =============================================================
   ADDEYUS — AI PILL STYLES
   Extracted from global-backend.css and center-top.css
   DO NOT add layout, zone, or system styles here.
============================================================= */

/* ── From global-backend.css ────────────────────────────── */

.addeyus-quick-bar {
  position: fixed;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--overlay-dark);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  z-index: 6;
  animation: addeyus-pop 0.25s ease-out;
}

.addeyus-chip {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent-deep));
  color: var(--bg-main);
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.addeyus-chip:active {
  transform: scale(.96);
}

@keyframes addeyus-pop{





	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: none;
	}





}

.addeyus-highlight {
  outline: 2px solid var(--accent-focus-strong);
  outline-offset: 4px;
  border-radius: 10px;
}

.addeyus-pulse {
  animation: addeyusPulse 1.2s ease-in-out infinite;
}

@keyframes addeyusPulse{





	0% {
		box-shadow: 0 0 0 0 var(--accent-focus);
	}

	70% {
		box-shadow: 0 0 0 12px var(--accent-focus-none);
	}

	100% {
		box-shadow: 0 0 0 0 var(--accent-focus-none);
	}





}

.addeyus-cinematic {
  box-shadow: 0 12px 30px var(--overlay-half),
		0 0 30px var(--accent-25);
}

.addeyus-chip-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
  flex-wrap: nowrap;
  max-width: 45vw;
}

.ct-siri.listening {
  box-shadow: 0 0 0 0 var(--accent-pulse-alt);
  animation: pulseListen 1.2s infinite;
}

@keyframes pulseListen{





	0% {
		box-shadow: 0 0 0 0 var(--accent-pulse-alt);
	}

	70% {
		box-shadow: 0 0 0 12px var(--accent-pulse-none);
	}

	100% {
		box-shadow: 0 0 0 0 var(--accent-pulse-none);
	}





}

.ct-siri.speaking {
  animation: speakingGlow .8s infinite alternate;
}

@keyframes speakingGlow{





	from {
		filter: brightness(1);
	}

	to {
		filter: brightness(1.2);
	}





}

.ct-mic,
.ct-mic::before,
.ct-mic::after {
  background: none;
  border: none;
  box-shadow: none;
}

.ct-mic {
  width: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.addeyus-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  opacity: 0;
  transition: opacity .2s ease;
}

.addeyus-wave span {
  width: 3px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 2px;
  animation: wave 1s infinite ease-in-out;
}

.addeyus-wave span:nth-child(2) {
  animation-delay: .15s;
}

.addeyus-wave span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes wave{





	0%,
	100% {
		height: 6px;
	}

	50% {
		height: 16px;
	}





}

.addeyus-pill.listening .addeyus-wave {
  opacity: 1;
}

.addeyus-pill.ripple::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 40px;
  border: 2px solid var(--accent-pulse-mid);
  animation: ripplePulse .6s ease-out;
}

@keyframes ripplePulse{





	0% {
		transform: scale(1);
		opacity: .8;
	}

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





}





.addeyus-pill:not(.listening):not(.speaking) {
  animation: breathe 4s infinite ease-in-out;
}

@keyframes breathe{





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

	50% {
		transform: scale(1.015);
	}





}

.addeyus-pill.expanded {
  box-shadow: 0 0 0 1px var(--accent-glow-strong),
    0 10px 35px var(--overlay-heavy),
    0 0 28px var(--accent-35);
  width: min(92vw, 540px);
  border-radius: 18px;
  padding: 20px 24px;
  max-width: 92vw;
  max-height: 160px;
  overflow: auto;
  align-items: flex-start;
  display: block;
}

.addeyus-pill .ct-siri-text {
  white-space: normal;
  line-height: 1.4;
}

.addeyus-highlight-focus {
  position: relative;
  z-index: 1000;
}

.addeyus-pill.expanded .ct-siri-text {
  white-space: normal;
  line-height: 1.45;
  text-align: left;
  max-height: 5em;
  overflow: hidden;
  font-size: 17px;
}

.addeyus-pill.speaking {
  box-shadow: 0 0 25px var(--accent-pulse-mid),
    0 20px 60px var(--overlay-black-55);
}

.ct-siri-text {
  text-shadow: 0 0 8px var(--accent-pulse-faint);
  flex: 1;
  font-size: 17px;
  line-height: 1.4;
  color: var(--text-main);
  word-break: break-word;
  text-align: left;
  white-space: normal;
  display: inline;
  overflow: visible;
  text-overflow: unset;
  min-width: 0;
  font-weight: 600;
}

.addeyus-pill:not(.expanded):not(.speaking) {
  animation: addeyusBreath 4s ease-in-out infinite;
}

@keyframes addeyusBreath{





	0% {
		transform: translateY(0px);
	}

	50% {
		transform: translateY(-2px);
	}

	100% {
		transform: translateY(0px);
	}





}

.addeyus-content {
  display: block;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  flex-direction: row;
  flex: 1;
  flex-wrap: wrap;
}

.addeyus-pill.expanded::-webkit-scrollbar {
  width: 0;
}

.ct-siri-text.typing::after {
  content: "|";
  animation: blink 1s infinite;
  margin-left: 3px;
}

@keyframes blink{





	0% {
		opacity: 0;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}





}

.voice-focus {
  box-shadow: 0 0 40px var(--accent-pulse);
}

.ct-ai-left {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ct-ai-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent-highlight-2), var(--accent-shadow));
  box-shadow: 0 0 8px var(--accent-pulse-strong);
  opacity: .85;
  flex-shrink: 0;
}

.ct-text-wrap {
  width: 100%;
}

.addeyus-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 8px;
}

.addeyus-pill {
  position: relative;
  display: block;
  width: calc(100% - 24px);
  margin: 0;
  padding: 14px 20px;
  border-radius: 26px;
  background: linear-gradient(
    145deg,
    var(--bg-warm-dark-1),
    var(--bg-warm-dark-2)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px var(--overlay-heavy),
    0 0 0 1px var(--accent-15) inset;
  border: 1px solid var(--accent-pulse);
  transition: border-radius 0.25s ease,
    width 0.25s ease,
    padding 0.25s ease;
  max-width: 100%;
  bottom: 10px;
}

.addeyus-pill.in-below-mode {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 65;
  pointer-events: auto;
  box-shadow: 0 8px 30px var(--overlay-half),
    0 0 0 1px var(--accent-25);
}

/* ── From center-top.css ────────────────────────────────── */

.ct-ai-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
  flex: 0 0 auto;
  flex-shrink: 1;
}

.ct-ai-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  opacity: .95;
}

.ct-ai-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent);
}

.ct-ai-tag {
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .8px;
  color: var(--text-inverse);
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--overlay-medium);
  display: inline;
  align-items: center;
  align-self: center;
  line-height: 1;
  vertical-align: middle;
  margin-right: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.ct-siri-text {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-align: right;
  display: inline-flex;
  max-width: calc(100vw - 140px);
  will-change: transform;
  font-weight: 700 !important;
  line-height: 1.2;
  align-items: center;
}

.ct-siri-dots {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}

.ct-siri-dots i {
  animation: siriDotSoft 4.2s ease-in-out infinite;
  opacity: .28;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.ct-siri-dots i:nth-child(2) {
  animation-delay: .6s;
}

.ct-siri-dots i:nth-child(3) {
  animation-delay: 1.2s;
}

.ct-siri-text strong {
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow-soft);
  cursor: pointer;
}

.ct-siri-text.ticker-active {
  will-change: transform;
}

.ct-siri-text-inner {
  font-weight: 700 !important;
}
.addeyus-chip {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent-deep));
  color: var(--bg-main);

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;

  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
  white-space: nowrap;

  box-shadow:
    0 4px 14px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,.2);

  backdrop-filter: blur(6px);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease;

  animation: addeyus-pop .25s ease;
}

.addeyus-chip:hover {
  filter: brightness(1.08);
  box-shadow:
    0 6px 18px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,.25);
}

.addeyus-chip:active {
  transform: scale(.95);
}

.addeyus-chip:first-child {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}

.addeyus-chip:last-child {
  background: rgba(255,255,255,.08);
  color: var(--text-primary);
}
.addeyus-pill {
  position: relative;
}
.addeyus-chip-row {
  padding: 6px;
  border-radius: 999px;

  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);

  box-shadow:
    0 10px 30px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.05) inset;
}
.addeyus-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 6px 8px;
  border-radius: 999px;

  background: rgba(10,10,10,.75);
  backdrop-filter: blur(14px);

  box-shadow:
    0 12px 32px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.06) inset;

  pointer-events: auto;
}
.addeyus-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;

  width: calc(100vw - 32px);
  padding: 7px 10px;
  margin-top: 8px;           /* gap below the pill */
  border-radius: 999px;
  box-sizing: border-box;

  background: rgba(10, 10, 10, .80);
  backdrop-filter: blur(14px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, .6),
    inset 0 0 0 1px rgba(255, 255, 255, .06);

  pointer-events: auto;

  /* entrance */
  animation: chipRowEnter .3s cubic-bezier(.2, .8, .2, 1) both;
}

.addeyus-chip-row::-webkit-scrollbar { display: none; }

@keyframes chipRowEnter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes addeyus-pop {
  0%   { opacity: 0; transform: scale(.78) translateY(8px); filter: blur(2px); }
  60%  { opacity: 1; transform: scale(1.05) translateY(-1px); filter: blur(0); }
  100% { transform: scale(1) translateY(0); }
}

.addeyus-chip { animation: addeyus-pop .32s cubic-bezier(.2,.8,.2,1) both; }
.addeyus-chip:nth-child(1) { animation-delay: .06s; }
.addeyus-chip:nth-child(2) { animation-delay: .14s; }
.addeyus-chip:nth-child(3) { animation-delay: .22s; }
.addeyus-chip:nth-child(4) { animation-delay: .30s; }
.addeyus-chip:nth-child(5) { animation-delay: .38s; }
.addeyus-chip:nth-child(6) { animation-delay: .46s; }
/* ================= ADDEYUS LAYOUT RESET ================= */




/* ================= CONTENT FLOW ================= */



/* IMPORTANT:
   tag and text must stay in normal inline flow
   so line 1 sits beside the tag,
   and later lines wrap from full left edge */


.ct-siri-text {
  display: inline !important;
  white-space: normal !important;
  word-break: break-word;
  overflow: visible !important;

  font-size: 17px;
  line-height: 1.35;
  font-weight: 700 !important;
  color: var(--text-main);
  text-align: left !important;
}

.ct-siri-text-inner {
  display: inline !important;
  white-space: normal !important;
  word-break: break-word;
}
/* =====================================================
   ADDEYUS — CLEAN ANIMATION SYSTEM (STATE BASED)
   States: idle | listening | thinking | speaking | ripple
===================================================== */

/* ================= BASE ================= */

#ctGreetingFloat,
.addeyus-pill {
  position: relative;
  transition: box-shadow .25s ease, transform .25s ease, filter .25s ease;
}

/* ================= IDLE ================= */

.addeyus-pill:not(.listening):not(.thinking):not(.speaking) {
  animation: aiIdleFloat 4s ease-in-out infinite;
}

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

/* ================= LISTENING ================= */

#ctGreetingFloat.listening,
.addeyus-pill.listening {
  animation: aiListeningPulse 1.4s ease-in-out infinite;
}

@keyframes aiListeningPulse {
  0%,100% {
    box-shadow:
      0 6px 18px rgba(0,0,0,.35),
      0 0 0 1px var(--accent-soft);
  }
  50% {
    box-shadow:
      0 10px 26px rgba(0,0,0,.45),
      0 0 0 2px var(--accent),
      0 0 20px var(--accent-glow-soft);
  }
}

/* wave visible ONLY when listening */
.addeyus-pill.listening .addeyus-wave {
  opacity: 1;
}

/* ================= THINKING ================= */

#ctGreetingFloat.thinking,
.addeyus-pill.thinking {
  animation: aiThinkingPulse 2s ease-in-out infinite;
}

@keyframes aiThinkingPulse {
  0%,100% { opacity: .85; }
  50%     { opacity: 1; }
}

/* thinking dots */
#ctGreetingFloat.thinking .ct-siri-dots i {
  animation: aiThinkingDots 1.2s ease-in-out infinite;
}

@keyframes aiThinkingDots {
  0%,100% { opacity: .25; transform: scale(1); }
  50%     { opacity: .9; transform: scale(1.4); }
}

/* ================= SPEAKING ================= */

#ctGreetingFloat.speaking,
.addeyus-pill.speaking {
  animation: aiSpeakingGlow 1.1s ease-in-out infinite;
}

@keyframes aiSpeakingGlow {
  0%,100% {
    box-shadow:
      0 6px 18px rgba(0,0,0,.4),
      0 0 10px var(--accent-glow-soft);
  }
  50% {
    box-shadow:
      0 12px 30px rgba(0,0,0,.5),
      0 0 24px var(--accent-glow-strong);
  }
}

/* ================= RIPPLE (ON ACTION) ================= */

.addeyus-pill.ripple::after,
#ctGreetingFloat.ripple::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid var(--accent);
  animation: aiRipple .6s ease-out;
}

@keyframes aiRipple {
  from {
    transform: scale(.95);
    opacity: .7;
  }
  to {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* ================= SHIMMER (OPTIONAL) ================= */

.ct-ai-tag::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    120deg,
    transparent 0%,
    var(--ui-light-30) 50%,
    transparent 100%
  );
  animation: aiShimmer 3s infinite;
}

@keyframes aiShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ================= WAVE ================= */

.addeyus-wave {
  display: flex;
  gap: 3px;
  margin-left: 8px;
  opacity: 0;
  transition: opacity .2s ease;
}

.addeyus-wave span {
  width: 3px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 2px;
  animation: aiWave 1s infinite ease-in-out;
}

.addeyus-wave span:nth-child(2) { animation-delay: .15s; }
.addeyus-wave span:nth-child(3) { animation-delay: .3s; }

@keyframes aiWave {
  0%,100% { height: 6px; }
  50%     { height: 16px; }
}
/* ================= AI GLARE (INSIDE PILL) ================= */

#ctGreetingFloat::after,
.addeyus-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.18) 45%,
    rgba(255,255,255,0.05) 65%,
    transparent 100%
  );

  transform: translateX(-120%);
  animation: aiGlareSweep 6s ease-in-out infinite;

  pointer-events: none;
  mix-blend-mode: screen;
}

/* smoother + less aggressive than before */
@keyframes aiGlareSweep {
  0%   { transform: translateX(-120%); opacity: 0; }
  15%  { opacity: 0.4; }
  50%  { transform: translateX(120%); opacity: 0.7; }
  70%  { opacity: 0.3; }
  100% { transform: translateX(120%); opacity: 0; }
}
/* faster when thinking */
#ctGreetingFloat.thinking::after,
.addeyus-pill.thinking::after {
  animation-duration: 2.2s;
  opacity: 0.8;
}

/* softer when speaking */
#ctGreetingFloat.speaking::after,
.addeyus-pill.speaking::after {
  opacity: 0.5;
}

/* subtle when idle */
.addeyus-pill:not(.listening):not(.thinking):not(.speaking)::after {
  opacity: 0.25;
}