

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Space+Grotesk:wght@300..700&display=swap');
@import url('https://fonts.cdnfonts.com/css/satoshi');

:root {
  --ui-bg: rgba(10, 10, 10, 0.7);
  --ui-border: rgba(255, 255, 255, 0.12);
  --ui-soft: rgba(12, 12, 12, 0.7);
  --ui-text: #f4f2ec;
  --ui-muted: rgba(244, 242, 236, 0.7);
  --ui-green: #3a4023;
  --page-gap: 36px;
}



.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 60px;
  padding: 0 20px;
  border-radius: 18px;
  background: var(--ui-bg);
  border: 1px solid var(--ui-border);
  color: var(--ui-text);
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px) saturate(140%);
}

.pill-button {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font: inherit;
}

.pill-button:focus-visible {
  outline: 2px solid rgba(244, 242, 236, 0.4);
  outline-offset: 2px;
}

.pill .mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.pill .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.pill .icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.icon-button {
  width: 60px;
  justify-content: center;
  padding: 0;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.coin-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
}



.page-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 20;
}

.page-loader.is-active {
  opacity: 1;
  pointer-events: all;
}

.page-loader.is-finishing {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.loader-shell {
  position: relative;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(12, 12, 12, 0.85);
  border: 1px solid var(--ui-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 14px;
}

.loader-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  animation: spin 0.9s linear infinite;
}

.loader-title {
  font-family: "Instrument Serif", serif;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: var(--ui-text);
}

.loader-sub {
  font-family: "Satoshi", sans-serif;
  font-size: 12px;
  color: var(--ui-muted);
}

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



.launch-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 30;
  opacity: 1;
  pointer-events: all;
  transition: opacity 1s ease;
}

html.is-logged .launch-screen,
html.is-logged .intro {
  display: none;
}

.launch-screen.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.launch-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(180deg, #1a1a1a 0%, #0e0e0e 100%);
}

.launch-card {
  position: relative;
  width: min(520px, 82vw);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  background: #111;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.launch-screen.is-hidden .launch-card {
  transform: translateY(10px) scale(0.985);
  opacity: 0;
}

.launch-image-wrap {
  position: relative;
  z-index: 1;
}

.launch-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.launch-image {
  width: 100%;
  height: auto;
  display: block;
}

.launch-meta {
  position: absolute;
  left: 24px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #f4f2ec;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.launch-line {
  position: relative;
  min-height: 20px;
}

.launch-title {
  font-family: "Instrument Serif", serif;
  font-size: 40px;
  letter-spacing: 0.3px;
}

.launch-status {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Satoshi", sans-serif;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  text-transform: lowercase;
  opacity: 1;
  transition: opacity 0.6s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.launch-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: spin 0.9s linear infinite;
}

.launch-cta {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  padding: 0;
  background: none;
  border: none;
  color: #f4f2ec;
  font-family: "Satoshi", sans-serif;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.4px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.launch-screen.is-ready .launch-status {
  opacity: 0;
}

.launch-screen.is-ready .launch-cta {
  opacity: 1;
  pointer-events: auto;
  animation: launch-blink 2.6s ease-in-out infinite;
}

.launch-progress {
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  z-index: 2;
}

.launch-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(231, 224, 214, 0.85), #ffffff, rgba(231, 224, 214, 0.85));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  will-change: transform;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
}

@keyframes launch-blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}



.scroll-area {
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244, 242, 236, 0.28) rgba(0, 0, 0, 0.2);
}

.scroll-area::-webkit-scrollbar { width: 8px; }
.scroll-area::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 999px; }
.scroll-area::-webkit-scrollbar-thumb { background: rgba(244, 242, 236, 0.28); border-radius: 999px; }



.layout {
  position: absolute;
  inset: var(--page-gap);
  display: grid;
  grid-template-columns: 1fr var(--right-width, 520px);
  gap: var(--right-gap, 36px);
  z-index: 1;
}

.left-stack {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}

.right-stack {
  display: flex;
  flex-direction: column;
  gap: var(--right-gap, 36px);
  align-self: flex-start;
  height: 100%;
  min-height: 0;
}

.top-bar {
  position: absolute;
  top: var(--page-gap);
  left: var(--page-gap);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.top-right {
  position: absolute;
  top: var(--page-gap);
  right: var(--page-gap);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}



.panel {
  background: var(--ui-soft);
  border: 1px solid var(--ui-border);
  border-radius: 16px;
  padding: 36px 40px;
  color: var(--ui-text);
  backdrop-filter: blur(14px) saturate(130%);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel.compact { flex: 0 0 auto; }
.panel.fill { flex: 1 1 auto; min-height: 0; overflow: hidden; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: 40px;
}



.form-select,
.form-input {
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ui-text);
  font-family: "Satoshi", sans-serif;
  font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
}

.form-select:focus,
.form-input:focus {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.5);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(244,242,236,0.6)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-input::placeholder {
  color: rgba(244, 242, 236, 0.4);
}



.toast {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
  padding: 0;
  border-radius: 22px;
  background: var(--ui-bg);
  border: 1px solid var(--ui-border);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--status-open, #4ade80);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}

.toast.is-visible .toast-check { transform: scale(1); }

.toast-check svg { width: 12px; height: 12px; stroke: #000; stroke-width: 3; }

.toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease 0.1s,
              padding-right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.is-expanded .toast-content {
  max-width: 300px;
  padding-right: 20px;
  opacity: 1;
}

.toast-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ui-text);
  letter-spacing: 0.2px;
}



@media (max-width: 768px) {
  :root {
    --page-gap: 20px;
  }

  .pill {
    height: 50px;
    padding: 0 16px;
    font-size: 20px;
    border-radius: 14px;
  }

  .icon-button {
    width: 50px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .left-stack {
    display: none;
  }
}
