/* ==========================================================================
   Souch dlc — design tokens
   The launcher defines the house style, so these values are copied from
   launcher_app/ui/assets/index-CX6U9Noc.css. Change them there first.
   ========================================================================== */

:root {
  /* launcher palette */
  --c-bg: #000000;
  --c-bg-12: rgba(0, 0, 0, 0.12);
  --c-bg-48: rgba(0, 0, 0, 0.48);
  --c-bg-72: rgba(0, 0, 0, 0.72);
  --c-white: #ffffff;
  --c-white-72: rgba(255, 255, 255, 0.72);
  --c-white-60: rgba(255, 255, 255, 0.6);
  --c-white-48: rgba(255, 255, 255, 0.48);
  --c-white-24: rgba(255, 255, 255, 0.24);
  --c-white-12: rgba(255, 255, 255, 0.12);
  --c-white-6: rgba(255, 255, 255, 0.06);
  --c-white-4: rgba(255, 255, 255, 0.04);

  /* brand accent — mirrors the launcher's --client-color / --c-secondary */
  --client-color: #ffffff;
  --c-secondary: #c9c9c9;
  --c-accent: #ffffff;
  --c-accent-hover: #e6e6e6;
  --c-accent-72: rgba(255, 255, 255, 0.72);
  --c-accent-48: rgba(255, 255, 255, 0.48);
  --c-accent-24: rgba(255, 255, 255, 0.24);
  --c-accent-12: rgba(255, 255, 255, 0.12);
  --c-accent-6: rgba(255, 255, 255, 0.06);
  --c-accent-ink: #0a0a0a;

  /* ambient shader layer (scroll-reactive) */
  --shader-opacity: 0.55;
  --shader-accent: 255, 255, 255;
  --shader-soft: 201, 201, 201;

  /* the accent gradient used by the launcher for highlighted text */
  --g-accent: linear-gradient(135deg, var(--client-color), var(--c-secondary));

  /* radii — panels 24, controls 12, pills 9999 */
  --r-panel: 24px;
  --r-control: 12px;
  --r-pill: 9999px;

  /* motion */
  --dur: 0.38s;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* layout */
  --pad-x: clamp(20px, 4vw, 56px);
  --content: 1120px;

  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Background — the launcher's static gradient, monochrome
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  background: var(--c-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-white);
  background-color: #000000;
  background-image:
    radial-gradient(ellipse 85% 70% at 16% 8%, rgba(255, 255, 255, 0.28), transparent 60%),
    radial-gradient(ellipse 70% 65% at 92% 102%, rgba(255, 255, 255, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 45% at 70% 30%, rgba(201, 201, 201, 0.06), transparent 65%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.85) 100%);
}

/* ==========================================================================
   Reset
   ========================================================================== */

h1, h2, h3, h4, p, figure, blockquote {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg, canvas, video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
  color-scheme: dark;
}

/* Depth: hairline borders for structure, real shadows for floating layers.
   Text shadows stay off — they only muddy small type. */
* {
  text-shadow: none;
}

.sd-card,
.sd-plan,
.sd-friend,
.sd-commerce__row,
.sd-dur,
.sd-details__card,
.sd-total,
.sd-chat {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.sd-island,
.sd-modal__panel,
.sd-toast {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

::selection {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}

/* Scrollbar: the launcher hides it and draws a thin custom thumb. */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}


/* ==========================================================================
   Shared primitives
   ========================================================================== */

.sd-panel {
  border: 1px solid var(--c-white-4);
  border-radius: var(--r-panel);
  background: var(--c-bg-48);
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
}

.sd-inset {
  box-shadow: inset 0 1px 0 var(--c-white-6);
}

.sd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background var(--dur) var(--ease-soft),
    border-color var(--dur) var(--ease-soft),
    color var(--dur) var(--ease-soft),
    transform 0.25s var(--ease-back);
}

.sd-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sd-btn--primary {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
}

.sd-btn--primary:not(:disabled):hover {
  background: #e6e6e6;
  border-color: #e6e6e6;
  transform: translateY(-1px);
}

.sd-btn--ghost {
  background: var(--c-white-4);
  border-color: var(--c-white-12);
  color: var(--c-white);
}

.sd-btn--ghost:not(:disabled):hover {
  background: var(--c-accent-6);
  border-color: var(--c-accent-24);
  transform: translateY(-1px);
}

.sd-btn--lg {
  height: 50px;
  padding: 0 26px;
  font-size: 15px;
}

.sd-btn--sm {
  height: 36px;
  padding: 0 15px;
  font-size: 13px;
}

.sd-btn--block {
  width: 100%;
}

.sd-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--c-white-12);
  border-radius: var(--r-control);
  background: var(--c-white-4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition:
    border-color var(--dur) var(--ease-soft),
    background var(--dur) var(--ease-soft);
}

.sd-field:focus-within {
  border-color: var(--c-accent-48);
  background: var(--c-accent-6);
}

.sd-field input,
.sd-field textarea,
.sd-field select {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.sd-field--area {
  align-items: stretch;
  padding: 0;
}

.sd-field--area textarea {
  padding: 12px 16px;
  resize: vertical;
  min-height: 96px;
}

.sd-field__icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--c-white-48);
}

.sd-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--c-white-48);
}

.sd-input {
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--c-white-12);
  border-radius: var(--r-control);
  background: var(--c-white-4);
  outline: none;
  transition: border-color var(--dur) var(--ease-soft);
}

.sd-input:focus {
  border-color: var(--c-accent-48);
  background: var(--c-accent-6);
}

.sd-input::placeholder,
.sd-field input::placeholder,
.sd-field textarea::placeholder {
  color: var(--c-white-24);
}

.sd-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--c-white-12);
  border-radius: var(--r-pill);
  background: var(--c-white-4);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-white-48);
}

.sd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border: 1px solid var(--c-white-12);
  border-radius: var(--r-pill);
  background: var(--c-white-6);
  font-size: 11.5px;
  font-weight: 500;
}

.sd-badge--solid {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
}

.sd-muted {
  color: var(--c-white-48);
}

.sd-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--c-white-12);
  border-radius: var(--r-control);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 var(--c-white-12);
}

.sd-tab {
  height: 40px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-white-48);
  transition:
    background var(--dur) var(--ease-smooth),
    color var(--dur) var(--ease-smooth),
    border-color var(--dur) var(--ease-smooth);
}

.sd-tab:hover {
  color: var(--c-white);
  background: var(--c-white-6);
}

.sd-tab.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-accent-ink);
}

.sd-sep {
  height: 1px;
  background: var(--c-white-6);
}

/* ---------- Motion ---------- */

@keyframes sd-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sd-fade {
  from {
    opacity: 0;
  }
}

@keyframes sd-spin {
  to {
    transform: rotate(360deg);
  }
}

.sd-rise {
  animation: sd-rise 0.62s var(--ease-smooth) both;
}

.sd-fade {
  animation: sd-fade 0.6s var(--ease-smooth) both;
}

.sd-spin {
  animation: sd-spin 0.9s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
