:root {
  color-scheme: dark;
  --bg: #040914;
  --bg-accent: #0d1628;
  --panel: rgba(10, 16, 30, 0.84);
  --panel-strong: rgba(14, 22, 38, 0.96);
  --panel-soft: rgba(15, 23, 40, 0.74);
  --line: rgba(148, 163, 184, 0.14);
  --text: #f6f8fc;
  --muted: #94a6bf;
  --accent: #69d2ff;
  --accent-strong: #8aa4ff;
  --accent-soft: rgba(105, 210, 255, 0.14);
  --success: #d9e7fb;
  --live-accent: #f0b35a;
  --live-accent-strong: #ffd38a;
  --live-accent-soft: rgba(240, 179, 90, 0.12);
  --flow-accent: #b782ff;
  --flow-accent-strong: #e1b7ff;
  --flow-accent-soft: rgba(183, 130, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(105, 210, 255, 0.1), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(138, 164, 255, 0.13), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(183, 130, 255, 0.08), transparent 32%),
    linear-gradient(180deg, #091220 0%, #050a15 42%, #040914 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 35%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.025), transparent 55%);
  pointer-events: none;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 3.5rem);
}

.app-card {
  width: min(1120px, 100%);
  padding: clamp(1.8rem, 3vw, 3.2rem);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(16, 24, 40, 0.96), rgba(8, 12, 22, 0.9)),
    var(--panel);
  box-shadow:
    0 42px 120px rgba(2, 6, 23, 0.56),
    0 0 80px rgba(15, 23, 42, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 3rem;
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.035), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
  pointer-events: none;
}

.hero {
  text-align: center;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  padding: 1.55rem 0 1.35rem;
  position: relative;
}

.hero-topline {
  width: min(100%, 44rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.location-badge {
  width: fit-content;
  margin: 0;
  padding: 0.5rem 0.88rem;
  border: 1px solid rgba(105, 210, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 18, 31, 0.78);
  color: #dcecff;
  box-shadow:
    0 0 24px rgba(105, 210, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  letter-spacing: 0.03em;
  font-size: 0.86rem;
  font-weight: 500;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  min-height: 2.05rem;
  padding: 0.36rem 0.74rem;
  border: 1px solid rgba(240, 179, 90, 0.2);
  border-radius: 999px;
  background: rgba(240, 179, 90, 0.1);
  color: #fde1ad;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 12px 28px rgba(2, 6, 23, 0.14),
    0 0 18px rgba(240, 179, 90, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.eyebrow {
  margin: 0.05rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.78;
}

.hero-title-wrap {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 10.5vw, 8rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-wrap: balance;
  text-shadow:
    0 12px 40px rgba(15, 23, 42, 0.45),
    0 0 32px rgba(138, 164, 255, 0.08);
}

.hero-copy {
  margin: 0;
  max-width: 43rem;
  font-size: clamp(1rem, 1.65vw, 1.1rem);
  line-height: 1.45;
  font-weight: 700;
  color: #edf5ff;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(105, 210, 255, 0.08);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(16, 25, 42, 0.48), rgba(10, 17, 31, 0.58));
  box-shadow:
    0 10px 26px rgba(2, 6, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-wrap: balance;
}

.hero-preview-note {
  margin: -0.18rem 0 0;
  color: rgba(219, 234, 254, 0.76);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  opacity: 0.74;
}

.controls-panel {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(260px, 360px);
  justify-content: center;
}

.hero-controls {
  width: min(100%, 35rem);
  margin-top: 0.95rem;
  padding: 1.15rem 1.15rem 1.05rem;
  grid-template-columns: 1fr;
  border: 1px solid rgba(105, 210, 255, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(14, 22, 38, 0.82), rgba(8, 14, 27, 0.9)),
    var(--panel-soft);
  box-shadow:
    0 26px 60px rgba(2, 6, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hero-control-group {
  gap: 0.62rem;
  text-align: left;
}

.hero-control-group .control-label {
  color: #d7e7fb;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-control-copy {
  margin: -0.04rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  max-width: 24rem;
}

.account-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding-top: 0.72rem;
  margin-top: 0.08rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.account-preview-copy {
  display: grid;
  gap: 0.28rem;
  text-align: left;
}

.account-preview-status {
  margin: 0;
  color: #eef6ff;
  font-size: 0.96rem;
  font-weight: 700;
}

.account-preview-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef6ff;
  padding: 0.64rem 0.98rem;
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.account-preview-action:hover,
.account-preview-action:focus-visible {
  border-color: rgba(105, 210, 255, 0.2);
  background: rgba(105, 210, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.account-preview-feedback {
  margin: -0.02rem 0 0;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  min-height: 1.2rem;
  text-align: left;
}

.control-group {
  display: grid;
  gap: 0.6rem;
}

.control-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
}

select,
input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 25, 42, 0.96), rgba(12, 20, 36, 0.96));
  color: var(--text);
  padding: 1rem 1.08rem;
  font: inherit;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 24px rgba(2, 6, 23, 0.12);
}

select:focus,
input:focus {
  border-color: rgba(105, 210, 255, 0.38);
  box-shadow:
    0 0 0 4px rgba(105, 210, 255, 0.08),
    0 16px 34px rgba(15, 23, 42, 0.28);
}

.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.95rem;
  align-items: end;
}

.composer-field {
  min-width: 0;
}

.add-button {
  border: 0;
  border-radius: 18px;
  padding: 1rem 1.35rem;
  font: inherit;
  font-weight: 700;
  color: #03111f;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow:
    0 18px 36px rgba(105, 210, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
  letter-spacing: 0.01em;
}

.add-button:hover,
.add-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 24px 46px rgba(105, 210, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ticker-panel {
  display: grid;
  gap: 1.28rem;
  padding: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(10, 17, 31, 0.62), rgba(5, 10, 18, 0.84));
  box-shadow:
    0 24px 56px rgba(2, 6, 23, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.ticker-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%);
  pointer-events: none;
}

.ticker-panel-main {
  background: linear-gradient(180deg, rgba(11, 18, 30, 0.78), rgba(6, 11, 20, 0.9));
  box-shadow:
    0 30px 70px rgba(2, 6, 23, 0.35),
    0 0 38px rgba(240, 179, 90, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  border-color: rgba(240, 179, 90, 0.12);
}

.ticker-panel-user {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.62), rgba(10, 17, 31, 0.88));
  box-shadow:
    0 30px 70px rgba(2, 6, 23, 0.34),
    0 0 42px rgba(183, 130, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  border-color: rgba(183, 130, 255, 0.14);
}

.ticker-panel-user .composer {
  padding: 1.15rem;
  border: 1px solid rgba(183, 130, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(24, 16, 42, 0.78), rgba(14, 11, 29, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 44px rgba(4, 3, 12, 0.32);
}

.ticker-topline {
  display: flex;
  justify-content: space-between;
  gap: 1.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.ticker-title-group {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.ticker-label,
.ticker-city {
  margin: 0;
}

.ticker-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--success);
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.ticker-label-main {
  color: #e2e8f0;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.16);
}

.ticker-city {
  color: var(--muted);
  font-size: 0.95rem;
}

.ticker-city-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(105, 210, 255, 0.2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(105, 210, 255, 0.12), rgba(138, 164, 255, 0.08));
  color: #e8f1ff;
  box-shadow:
    0 12px 26px rgba(2, 6, 23, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.ticker-city-highlight-user {
  border-color: rgba(183, 130, 255, 0.2);
  background: rgba(183, 130, 255, 0.12);
}

.ticker-subcopy {
  margin: 0;
  color: rgba(215, 231, 251, 0.84);
  font-size: 0.86rem;
  line-height: 1.5;
}

.ticker-subcopy-user {
  color: #ead9ff;
}

.flow-filters {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.flow-hashtag-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: -0.2rem;
}

.flow-hashtag-filter.is-hidden {
  display: none;
}

.flow-hashtag-filter-label {
  color: rgba(225, 206, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-hashtag-pill,
.flow-hashtag-clear {
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.flow-hashtag-pill {
  border: 1px solid rgba(183, 130, 255, 0.2);
  background: rgba(183, 130, 255, 0.1);
  color: #efdeff;
  padding: 0.38rem 0.76rem;
}

.flow-hashtag-clear {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(239, 222, 255, 0.76);
  padding: 0.38rem 0.7rem;
}

.flow-hashtag-pill:hover,
.flow-hashtag-pill:focus-visible,
.flow-hashtag-clear:hover,
.flow-hashtag-clear:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.flow-hashtag-pill:hover,
.flow-hashtag-pill:focus-visible {
  border-color: rgba(183, 130, 255, 0.28);
  background: rgba(183, 130, 255, 0.15);
}

.flow-hashtag-clear:hover,
.flow-hashtag-clear:focus-visible {
  border-color: rgba(183, 130, 255, 0.18);
  background: rgba(183, 130, 255, 0.08);
  color: #f5e8ff;
}

.flow-filter-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(233, 213, 255, 0.76);
  padding: 0.36rem 0.74rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.flow-filter-button:hover,
.flow-filter-button:focus-visible {
  border-color: rgba(183, 130, 255, 0.18);
  background: rgba(183, 130, 255, 0.08);
  color: #f5e8ff;
  transform: translateY(-1px);
  outline: none;
}

.flow-filter-button.is-active {
  border-color: rgba(183, 130, 255, 0.22);
  background: rgba(183, 130, 255, 0.15);
  color: #fdf4ff;
  box-shadow: 0 0 18px rgba(183, 130, 255, 0.08);
}

.live-feed-admin {
  display: grid;
  gap: 0.9rem;
  padding: 0.95rem;
  border: 1px solid rgba(240, 179, 90, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(26, 21, 13, 0.68), rgba(15, 17, 25, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 20px 44px rgba(10, 8, 3, 0.2);
}

.live-feed-admin.is-hidden {
  display: none;
}

.footer-admin-link {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: transparent;
  color: rgba(226, 232, 240, 0.42);
  padding: 0.22rem 0.5rem;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-admin-link:hover,
.footer-admin-link:focus-visible {
  color: rgba(248, 250, 252, 0.82);
  border-color: rgba(240, 179, 90, 0.12);
  background: rgba(240, 179, 90, 0.05);
  outline: none;
}

.footer-admin-link.is-unlocked {
  color: var(--live-accent-strong);
  border-color: rgba(240, 179, 90, 0.18);
  background: rgba(240, 179, 90, 0.08);
}

.app-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.4rem;
}

.live-feed-admin-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.live-feed-admin-title,
.live-feed-admin-copy {
  margin: 0;
}

.live-feed-admin-title {
  color: #fef3c7;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-feed-admin-copy {
  margin-top: 0.28rem;
  color: rgba(215, 231, 251, 0.82);
  font-size: 0.88rem;
  line-height: 1.45;
}

.live-feed-admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.64rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 179, 90, 0.16);
  background: rgba(240, 179, 90, 0.08);
  color: var(--live-accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-feed-admin-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.9rem;
  align-items: end;
}

.live-feed-admin-field {
  min-width: 0;
}

.live-feed-admin-button {
  min-height: 54px;
  white-space: nowrap;
}

.live-feed-admin-feedback {
  margin: 0;
  min-height: 1.2rem;
  color: #d7e7fb;
  font-size: 0.88rem;
  grid-column: 1 / -1;
}

.live-feed-admin-feedback.is-error {
  color: #fca5a5;
}

.live-feed-admin-list {
  display: grid;
  gap: 0.7rem;
}

.live-feed-admin-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.live-feed-admin-item-text,
.live-feed-admin-item-meta,
.live-feed-admin-empty {
  margin: 0;
}

.live-feed-admin-item-text {
  color: #f8fafc;
  font-size: 0.94rem;
  line-height: 1.45;
}

.live-feed-admin-item-meta {
  color: #fde68a;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-feed-admin-delete {
  border: 1px solid rgba(248, 113, 113, 0.16);
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
  padding: 0.48rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.live-feed-admin-delete:hover,
.live-feed-admin-delete:focus-visible {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.live-feed-admin-empty {
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  color: var(--muted);
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.02);
}

.ticker-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.68rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticker-badge-main {
  color: var(--live-accent-strong);
  border: 1px solid rgba(240, 179, 90, 0.22);
  background: var(--live-accent-soft);
  box-shadow: 0 0 18px rgba(240, 179, 90, 0.08);
}

.ticker-badge-user {
  color: #f2dcff;
  border: 1px solid rgba(183, 130, 255, 0.18);
  background: rgba(183, 130, 255, 0.09);
  box-shadow: 0 0 18px rgba(183, 130, 255, 0.09);
}

.ticker-button {
  width: 100%;
  padding: 0;
  border: 1px solid rgba(105, 210, 255, 0.16);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(9, 16, 29, 0.99), rgba(16, 27, 44, 0.99));
  box-shadow:
    0 22px 52px rgba(2, 6, 23, 0.36),
    0 0 32px rgba(105, 210, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.ticker-button-main .ticker-content span {
  color: var(--text);
  font-weight: 800;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.03),
    0 0 24px rgba(240, 179, 90, 0.06);
}

.ticker-button-main .ticker-content {
  animation-duration: 40s;
  gap: 3.25rem;
  padding-block: 2.05rem;
}

.ticker-button-main {
  border-color: rgba(240, 179, 90, 0.18);
  background:
    linear-gradient(180deg, rgba(22, 18, 12, 0.96), rgba(12, 17, 28, 0.98));
  box-shadow:
    0 30px 82px rgba(2, 6, 23, 0.54),
    0 0 52px rgba(240, 179, 90, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.ticker-button-main::before {
  background: linear-gradient(90deg, transparent, rgba(240, 179, 90, 0.08), transparent);
}

.ticker-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(105, 210, 255, 0.06), transparent);
  pointer-events: none;
}

.ticker-label-user {
  color: var(--flow-accent);
}

.ticker-button-user {
  border-color: rgba(183, 130, 255, 0.24);
  background: linear-gradient(180deg, rgba(24, 17, 41, 0.98), rgba(23, 17, 43, 0.98));
  box-shadow:
    0 30px 82px rgba(2, 6, 23, 0.52),
    0 0 48px rgba(183, 130, 255, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 260ms ease, box-shadow 260ms ease, transform 260ms ease;
}

.ticker-button-user::before {
  background: linear-gradient(90deg, transparent, rgba(183, 130, 255, 0.08), transparent);
}

.ticker-button-user .ticker-content span {
  color: #efdeff;
  text-shadow: 0 0 14px rgba(183, 130, 255, 0.18);
}

.ticker-button-user .ticker-content {
  animation-duration: 46s;
}

.ticker-button-user .ticker-post {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.56rem 0.9rem;
  border: 1px solid rgba(183, 130, 255, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 10px 28px rgba(8, 5, 20, 0.14);
}

.ticker-button-user .ticker-post[data-following="true"] {
  border-color: rgba(105, 210, 255, 0.14);
}

.ticker-button-user .ticker-post[data-trending="true"] {
  border-color: rgba(240, 179, 90, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 10px 28px rgba(8, 5, 20, 0.14),
    0 0 22px rgba(240, 179, 90, 0.08);
}

.ticker-button-user .ticker-post[data-post-id^="placeholder-"] {
  border-color: rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(19, 28, 45, 0.72), rgba(12, 18, 31, 0.88));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 34px rgba(2, 6, 23, 0.18);
}

.ticker-button-user .ticker-post[data-post-id^="placeholder-"] .ticker-username {
  color: #dbeafe;
}

.ticker-button-user .ticker-post[data-post-id^="placeholder-"] .ticker-message {
  color: #dbeafe;
}

.ticker-button-user .ticker-post[data-post-id^="placeholder-"] .ticker-live-dot {
  background: #93c5fd;
  box-shadow:
    0 0 0 0 rgba(147, 197, 253, 0.26),
    0 0 14px rgba(147, 197, 253, 0.38);
}

.ticker-button-user .ticker-post.is-new {
  animation: ticker-post-arrival 1.8s ease;
}

.ticker-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(225, 183, 255, 0.18), rgba(183, 130, 255, 0.12));
  color: #fdf4ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: none;
}

.ticker-post-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.ticker-post-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.ticker-button-user .ticker-username {
  color: #f3deff;
  font-weight: 800;
}

.ticker-button-user .ticker-timestamp {
  color: rgba(225, 183, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 500;
  text-shadow: none;
}

.ticker-button-user .ticker-message {
  color: #f6ecff;
  line-height: 1.45;
}

.ticker-hashtag {
  border: 0;
  background: transparent;
  color: #cdb6ff;
  font: inherit;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(183, 130, 255, 0.18);
  cursor: pointer;
  padding: 0;
  transition: color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.ticker-hashtag:hover,
.ticker-hashtag:focus-visible {
  color: #ead9ff;
  text-shadow: 0 0 16px rgba(183, 130, 255, 0.24);
  transform: translateY(-1px);
  outline: none;
}

.ticker-live-dot {
  width: 0.52rem;
  height: 0.52rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--accent);
  box-shadow:
    0 0 0 0 rgba(105, 210, 255, 0.3),
    0 0 14px rgba(105, 210, 255, 0.4);
  animation: ticker-live-pulse 2.4s ease-in-out infinite;
}

.ticker-post-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
}

.ticker-post-tag-trending {
  color: #fde1ad;
  background: rgba(240, 179, 90, 0.14);
  border: 1px solid rgba(240, 179, 90, 0.22);
  box-shadow: 0 0 18px rgba(240, 179, 90, 0.08);
}

.ticker-post-tag-following {
  color: #d9f4ff;
  background: rgba(105, 210, 255, 0.09);
  border: 1px solid rgba(105, 210, 255, 0.16);
  box-shadow: 0 0 18px rgba(105, 210, 255, 0.05);
}

.ticker-engagement {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
}

.ticker-reaction-button {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: #f3e5ff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ticker-reaction-button:hover,
.ticker-reaction-button:focus-visible {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(183, 130, 255, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.ticker-delete {
  margin-left: 0.55rem;
  border: 1px solid rgba(244, 114, 182, 0.18);
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.08);
  color: #fbcfe8;
  padding: 0.28rem 0.62rem;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.ticker-delete:hover,
.ticker-delete:focus-visible {
  background: rgba(244, 114, 182, 0.14);
  border-color: rgba(244, 114, 182, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.ticker-button-user .ticker-content span::after {
  color: var(--flow-accent);
}

.ticker-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.ticker-track {
  display: flex;
  width: max-content;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.55rem 2.1rem;
  animation: ticker-scroll 20s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.ticker-content span {
  font-size: clamp(1.12rem, 2.15vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.ticker-content span::after {
  content: "•";
  margin-left: 2.5rem;
  color: var(--accent);
}

.ticker-track.is-paused .ticker-content {
  animation-play-state: paused;
}

.ticker-button.is-city-updating {
  transform: translateY(-1px);
}

.ticker-button-main.is-city-updating {
  box-shadow:
    0 30px 82px rgba(2, 6, 23, 0.54),
    0 0 68px rgba(240, 179, 90, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.ticker-button-user.is-city-updating {
  box-shadow:
    0 30px 82px rgba(2, 6, 23, 0.52),
    0 0 64px rgba(183, 130, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ticker-city-highlight.is-city-updating {
  transform: translateY(-1px);
}

.ticker-city-highlight.is-city-updating,
.ticker-city-highlight-user.is-city-updating {
  animation: city-pill-pulse 850ms ease;
}

.ticker-button[aria-pressed="true"] {
  box-shadow:
    0 24px 80px rgba(2, 6, 23, 0.5),
    0 0 40px rgba(105, 210, 255, 0.1),
    inset 0 0 0 1px rgba(105, 210, 255, 0.24);
}

.ticker-button-user[aria-pressed="true"] {
  box-shadow:
    0 24px 80px rgba(2, 6, 23, 0.5),
    0 0 40px rgba(183, 130, 255, 0.16),
    inset 0 0 0 1px rgba(183, 130, 255, 0.28);
}

.ticker-hint {
  margin: 0;
  color: rgba(144, 163, 189, 0.82);
  font-size: 0.82rem;
}

.ticker-hint-mobile {
  display: none;
  margin-top: -0.4rem;
  font-size: 0.8rem;
  color: rgba(219, 234, 254, 0.64);
}

body.has-dismissed-mobile-hint .ticker-hint-mobile {
  display: none !important;
}

.composer-user {
  grid-template-columns: minmax(160px, 220px) 1fr auto;
  gap: 1rem;
}

.composer-username {
  min-width: 0;
}

.add-button-user {
  color: #190a24;
  background: linear-gradient(135deg, var(--flow-accent) 0%, #9e62f2 100%);
  box-shadow:
    0 16px 30px rgba(183, 130, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  min-height: 54px;
  padding-inline: 1.4rem;
}

.add-button-user:hover,
.add-button-user:focus-visible {
  box-shadow:
    0 20px 40px rgba(183, 130, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.composer-feedback {
  margin: 0;
  min-height: 1.2rem;
  color: rgba(225, 183, 255, 0.78);
  font-size: 0.84rem;
  grid-column: 1 / -1;
  padding-left: 0.15rem;
}

.composer-feedback.is-error {
  color: #f9a8d4;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

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

@keyframes ticker-live-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(105, 210, 255, 0.12),
      0 0 12px rgba(105, 210, 255, 0.32);
    opacity: 0.82;
  }

  50% {
    box-shadow:
      0 0 0 0.32rem rgba(105, 210, 255, 0),
      0 0 18px rgba(105, 210, 255, 0.52);
    opacity: 1;
  }
}

@keyframes ticker-post-arrival {
  0% {
    transform: translateY(6px) scale(0.985);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.02),
      0 0 0 rgba(183, 130, 255, 0);
  }

  35% {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 0 26px rgba(183, 130, 255, 0.2);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.02),
      0 10px 28px rgba(8, 5, 20, 0.14);
  }
}

@keyframes city-pill-pulse {
  0% {
    box-shadow:
      0 12px 30px rgba(2, 6, 23, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  50% {
    box-shadow:
      0 18px 38px rgba(2, 6, 23, 0.22),
      0 0 28px rgba(105, 210, 255, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  100% {
    box-shadow:
      0 12px 30px rgba(2, 6, 23, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 1.25rem;
  }

  .app-card {
    border-radius: 24px;
    gap: 1.5rem;
    padding: 1.15rem;
  }

  .hero {
    padding-top: 0.55rem;
    padding-bottom: 0.6rem;
    gap: 0.92rem;
  }

  h1 {
    font-size: clamp(3.15rem, 17vw, 4.9rem);
  }

  .hero-topline {
    width: 100%;
    gap: 0.5rem;
  }

  .hero-status,
  .location-badge {
    font-size: 0.74rem;
  }

  .hero-controls {
    width: 100%;
    margin-top: 0.7rem;
    padding: 0.95rem 0.9rem 0.88rem;
    border-radius: 22px;
  }

  .account-preview {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .account-preview-action {
    width: 100%;
  }

  .hero-control-copy,
  .ticker-subcopy,
  .hero-preview-note {
    font-size: 0.88rem;
  }

  .ticker-city-highlight {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .flow-filters {
    width: 100%;
  }

  .flow-hashtag-filter {
    width: 100%;
  }

  .flow-filter-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .controls-panel,
  .composer,
  .live-feed-admin-form {
    grid-template-columns: 1fr;
  }

  .ticker-panel {
    padding: 1.05rem;
    border-radius: 22px;
  }

  .ticker-hint-mobile {
    display: block;
  }

  .live-feed-admin-item {
    grid-template-columns: 1fr;
  }

  .live-feed-admin-delete,
  .live-feed-admin-button,
  .footer-admin-link {
    width: 100%;
  }

  .app-footer {
    margin-top: -0.1rem;
  }

  .hero-copy {
    padding: 0.68rem 0.84rem;
    font-size: 0.98rem;
  }

  .ticker-content {
    gap: 1.5rem;
    padding: 1rem 1.25rem;
  }

  .ticker-button-user .ticker-post {
    padding: 0.48rem 0.72rem;
    gap: 0.38rem;
  }

  .ticker-post-meta {
    gap: 0.34rem;
  }

  .ticker-post-identity {
    gap: 0.34rem;
  }

  .ticker-avatar {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.72rem;
  }

  .ticker-delete {
    padding: 0.26rem 0.58rem;
    font-size: 0.72rem;
  }

  .ticker-reaction-button {
    font-size: 0.68rem;
    padding: 0.16rem 0.42rem;
  }

  .ticker-content span::after {
    margin-left: 1.5rem;
  }
}
