:root {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #18181b;
  --primary-foreground: #09090b;
  --secondary: #27272a;
  --muted-foreground: #a1a1aa;
  --accent: #2dd4bf;
  --border: #27272a;
  --vote-yes: #22c55e;
  --vote-yes-glow: #4ade80;
  --vote-no: #dc2626;
  --vote-no-deep: #b91c1c;
  --vote-no-hover: #ef4444;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.glass-card {
  border-radius: 1rem;
  border: 1px solid rgba(39, 39, 42, 0.65);
  background: rgba(24, 24, 27, 0.88);
  backdrop-filter: blur(14px);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.55;
  }
}

.animate-pulse-glow {
  animation: pulse-glow 4s ease-in-out infinite;
}

.glow-green {
  box-shadow:
    0 0 20px rgba(34, 197, 94, 0.35),
    0 0 40px rgba(34, 197, 94, 0.12);
}

.glow-red {
  box-shadow:
    0 0 20px rgba(220, 38, 38, 0.38),
    0 0 40px rgba(34, 197, 94, 0.08);
}

/* Layout shell */
.page {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--background);
}

.page__blobs {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.page__blobs .blob-a {
  position: absolute;
  top: 0;
  left: 25%;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  background: rgba(45, 212, 191, 0.1);
  filter: blur(48px);
}

.page__blobs .blob-b {
  position: absolute;
  right: 25%;
  bottom: 25%;
  width: 16rem;
  height: 16rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.05);
  filter: blur(48px);
}

.page__inner {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* Header */
.site-header {
  width: 100%;
  border-bottom: 1px solid rgba(39, 39, 42, 0.3);
  background: var(--background);
}

.site-header__row {
  display: flex;
  height: 3.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo__img {
  display: block;
  height: 1.375rem;
  width: auto;
}

.icon {
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  vertical-align: middle;
}

.icon--nav {
  width: 0.75rem;
  height: 0.75rem;
}

.icon--btn {
  width: 1rem;
  height: 1rem;
}

.token-scan {
  border-radius: 0.75rem;
  border: 1px solid rgba(39, 39, 42, 0.65);
  background: rgba(39, 39, 42, 0.35);
  padding: 0.875rem 1rem;
}

.token-scan__title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 0.375rem;
}

.token-scan__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--foreground);
}

.token-scan__detail {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.token-scan__detail a {
  color: var(--accent);
}

.scan--loading .token-scan__text {
  color: var(--muted-foreground);
}

.nav-main {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-main {
    display: flex;
  }
}

.nav-main button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
  background: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  cursor: pointer;
}

.nav-main button:hover {
  color: var(--foreground);
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  display: none;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  color: var(--foreground);
}

@media (min-width: 768px) {
  .icon-btn {
    display: flex;
  }
}

.auth-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-btns button {
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-btns .login {
  height: 2.25rem;
  border-radius: 0.375rem;
  padding: 0 0.75rem;
  background: transparent;
  color: var(--muted-foreground);
}

.auth-btns .login:hover {
  color: var(--foreground);
}

.auth-btns .signup {
  height: 2.25rem;
  border-radius: 9999px;
  padding: 0 1rem;
  background: var(--foreground);
  color: var(--background);
}

.auth-btns .signup:hover {
  opacity: 0.9;
}

/* Main vote grid */
main.site-main {
  flex: 1;
  padding: 2rem 0;
}

.vote-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .vote-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.token-visual {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .token-visual {
    justify-content: flex-end;
  }
}

.token-visual__wrap {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 28rem;
}

.token-visual__glow {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: linear-gradient(
    to bottom right,
    rgba(45, 212, 191, 0.3),
    rgba(34, 197, 94, 0.2)
  );
  filter: blur(48px);
  animation: pulse-glow 4s ease-in-out infinite;
}

.token-visual__circle {
  position: relative;
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid rgba(39, 39, 42, 0.5);
  background: linear-gradient(to bottom right, var(--card), var(--secondary));
}

.token-visual__circle img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  border-radius: 9999px;
}

.token-visual__placeholder {
  display: flex;
  width: 80%;
  height: 80%;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--secondary);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.vote-card h1 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
}

.vote-card .symbol {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
}

.chain-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.chain-pill .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
}

.contract-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.contract-row button.contract-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--secondary);
  padding: 0.375rem 0.75rem;
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  cursor: pointer;
  color: inherit;
}

.contract-row button.contract-copy:hover {
  background: #3f3f46;
}

.bar-wrap {
  width: 100%;
}

.bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 500;
}

.bar-labels .yes {
  color: var(--vote-yes);
}

.bar-labels .no {
  color: var(--vote-no);
}

.bar-track {
  display: flex;
  height: 0.625rem;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--secondary);
  margin-top: 0.5rem;
}

.bar-track .seg-yes {
  height: 100%;
  background: var(--vote-yes);
  transition: width 0.5s ease-out;
}

.bar-track .seg-no {
  height: 100%;
  background: var(--vote-no);
  transition: width 0.5s ease-out;
}

.bar-meta {
  margin-top: 0.25rem;
  text-align: right;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.vote-actions {
  display: flex;
  gap: 1rem;
}

.vote-actions--single button {
  flex: 1;
  width: 100%;
}

.bar-track--yes-only {
  background: rgba(255, 255, 255, 0.08);
}

.bar-track--yes-only .seg-yes {
  width: 65%;
}

.vote-actions button {
  flex: 1;
  height: 3rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-foreground);
}

.vote-actions .btn-yes {
  background: var(--vote-yes);
}

.vote-actions .btn-yes:hover:not(:disabled) {
  background: var(--vote-yes-glow);
}

.vote-actions .btn-no {
  background: linear-gradient(
    to right,
    var(--vote-no),
    var(--vote-no-deep)
  );
}

.vote-actions .btn-no:hover:not(:disabled) {
  background: linear-gradient(
    to right,
    var(--vote-no-hover),
    var(--vote-no)
  );
}

.vote-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sub-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .sub-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.activity-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.activity-list article + article {
  margin-top: 0.75rem;
}

.activity-list .left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-list .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
}

.activity-list .dot.yes {
  background: var(--vote-yes);
}

.activity-list .dot.no {
  background: var(--vote-no);
}

.activity-list .muted {
  color: var(--muted-foreground);
}

.activity-list .side-yes {
  color: var(--vote-yes);
}

.activity-list .side-no {
  color: var(--vote-no);
}

.why-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.why-list li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.why-list .bullet {
  color: var(--foreground);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(39, 39, 42, 0.3);
  background: var(--background);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.footer-col__block + .footer-col__block {
  margin-top: 1.5rem;
}

.footer-col--cta h3 {
  line-height: 1.35;
  max-width: 12rem;
}

.footer-register {
  width: 100%;
  margin-bottom: 1rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: none;
  background: #fafafa;
  color: #09090b;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.footer-register:hover {
  opacity: 0.92;
}

.footer-qr {
  display: block;
  margin: 0 auto;
  width: 8rem;
  height: 8rem;
  border-radius: 0.5rem;
  object-fit: contain;
  background: #fafafa;
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col button {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  cursor: pointer;
  text-align: left;
}

.footer-col button:hover {
  color: var(--foreground);
}

.footer-disclaimer {
  display: flex;
  gap: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(39, 39, 42, 0.3);
  background: rgba(39, 39, 42, 0.3);
  padding: 1rem;
}

.footer-disclaimer > .icon {
  color: var(--muted-foreground);
}

.footer-disclaimer p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.footer-copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(39, 39, 42, 0.3);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.text-muted {
  color: var(--muted-foreground);
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.hidden {
  display: none !important;
}

.home-center {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.home-center h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.home-center p {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  color: var(--muted-foreground);
}

.home-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.home-btns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.home-btns a.secondary {
  border: 1px solid var(--border);
  color: var(--foreground);
}

.home-btns a.secondary:hover {
  background: var(--secondary);
}

.home-btns a.primary {
  background: var(--vote-yes);
  color: var(--primary-foreground);
}

.home-btns a.primary:hover {
  background: var(--vote-yes-glow);
}

code {
  border-radius: 0.25rem;
  background: var(--secondary);
  padding: 0.125rem 0.375rem;
  font-size: 0.75rem;
}

/* YES confirmation modal */
.text-accent {
  color: var(--accent);
}

.text-vote-yes {
  color: var(--vote-yes);
}

.text-vote-no {
  color: var(--vote-no);
}

.yes-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.yes-modal-overlay:not(.hidden) {
  animation: yes-modal-fade-in 0.2s ease-out;
}

@keyframes yes-modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes yes-modal-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.yes-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.yes-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  margin: auto;
  overflow: hidden;
  padding: 0;
  border-color: rgba(39, 39, 42, 0.75);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: yes-modal-pop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.yes-modal-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.yes-modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  background: var(--secondary);
  color: var(--foreground);
  cursor: pointer;
  transition: background 0.15s ease;
}

.yes-modal-close:hover {
  background: #3f3f46;
}

.icon--modal-x {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

.yes-modal-top {
  padding: 1.5rem 1.5rem 1rem;
  padding-right: 3rem;
}

.yes-modal-token-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.yes-modal-avatar {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yes-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yes-modal-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.yes-modal-muted {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.yes-modal-token-line {
  margin: 0.125rem 0 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
}

.yes-modal-contract {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-family: ui-monospace, monospace;
}

.yes-modal-heading {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.yes-modal-bottom {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.yes-modal-perks {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-color: rgba(39, 39, 42, 0.5);
  background: rgba(39, 39, 42, 0.45);
}

.yes-modal-star {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--vote-yes);
}

.yes-modal-perks-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.yes-modal-perks-text {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.yes-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

.btn-yes-modal {
  display: inline-flex;
  width: 100%;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  background: var(--vote-yes);
  color: var(--primary-foreground);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-yes-modal:hover:not(:disabled) {
  background: var(--vote-yes-glow);
}

.btn-yes-modal:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-yes-cancel {
  display: inline-flex;
  width: 100%;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  background: var(--secondary);
  color: var(--foreground);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-yes-cancel:hover {
  background: #3f3f46;
}

/* NO confirmation modal (reuses .yes-modal-* layout) */
.no-modal-dialog {
  border-color: rgba(220, 38, 38, 0.22);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(220, 38, 38, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.no-modal-perks {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(39, 39, 42, 0.5);
}

.no-modal-trend {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--vote-no);
}

.btn-no-modal {
  display: inline-flex;
  width: 100%;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  background: linear-gradient(
    to right,
    var(--vote-no),
    var(--accent)
  );
  color: var(--primary-foreground);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-no-modal:hover:not(:disabled) {
  opacity: 0.9;
}

.btn-no-modal:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.glow-pink {
  box-shadow:
    0 0 22px rgba(220, 38, 38, 0.38),
    0 0 48px rgba(45, 212, 191, 0.12);
}
