@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --brand-primary: #139957;
  --brand-primary-deep: #0d854a;
  --brand-secondary: #ff5600;
  --brand-surface: #f4fbf7;
  --brand-muted: #d8eee1;
  --brand-ink: #0f2f20;
  --lk-canvas-bg: color-mix(in oklab, #edf3ef 82%, white);
  --bonus-surface: #08090b;
  --bonus-surface-raised: #101218;
  --bonus-border: rgba(255, 255, 255, 0.08);
  --bonus-text: rgba(255, 255, 255, 0.94);
  --bonus-muted: rgba(255, 255, 255, 0.6);
  --bonus-accent: #d8ff3e;
}

[data-theme='aqua'] {
  color-scheme: light;
  --color-base-100: oklch(98% 0.002 247.839);
  --color-base-200: oklch(96% 0.003 264.542);
  --color-base-300: oklch(92% 0.006 264.531);
  --color-base-content: oklch(21% 0.034 264.665);
  --color-primary: oklch(84% 0.238 128.85);
  --color-primary-content: oklch(27% 0.072 132.109);
  --color-secondary: oklch(71% 0.202 349.761);
  --color-secondary-content: oklch(28% 0.109 3.907);
  --color-accent: oklch(67% 0.182 276.935);
  --color-accent-content: oklch(25% 0.09 281.288);
  --color-neutral: oklch(13% 0.028 261.692);
  --color-neutral-content: oklch(98% 0.002 247.839);
  --color-info: oklch(68% 0.169 237.323);
  --color-info-content: oklch(97% 0.013 236.62);
  --color-success: oklch(76% 0.233 130.85);
  --color-success-content: oklch(98% 0.031 120.757);
  --color-warning: oklch(70% 0.213 47.604);
  --color-warning-content: oklch(98% 0.016 73.684);
  --color-error: oklch(65% 0.241 354.308);
  --color-error-content: oklch(97% 0.014 343.198);
  --radius-selector: 2rem;
  --radius-field: 2rem;
  --radius-box: 2rem;
  --size-selector: 0.3125rem;
  --size-field: 0.3125rem;
  --border: 0px;
  --depth: 0;
  --noise: 1;
}

body {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  @apply text-base-content;
  background:
    linear-gradient(
      135deg,
      color-mix(in oklab, var(--color-primary) 14%, #f5fcf8) 0%,
      color-mix(in oklab, #f7fff9 84%, white) 28%,
      color-mix(in oklab, var(--color-success) 16%, #f2fbf6) 52%,
      color-mix(in oklab, #f4fff8 82%, white) 76%,
      color-mix(in oklab, var(--color-accent) 8%, #f7fff8) 100%
    );
  background-size: 220% 220%;
  animation: fregat-aurora 22s ease-in-out infinite;
  color: var(--color-base-content);
  overflow-x: hidden;
}

.lk-shell {
  @apply min-h-screen;
  position: relative;
  isolation: isolate;
}

.bonus-program-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(216, 255, 62, 0.12) 0%, rgba(216, 255, 62, 0) 28%),
    radial-gradient(circle at 86% 14%, rgba(76, 113, 255, 0.15) 0%, rgba(76, 113, 255, 0) 26%),
    linear-gradient(180deg, #07080a 0%, #0a0c10 42%, #050507 100%);
  color: var(--bonus-text);
}

.lk-shell::before,
.lk-shell::after {
  content: '';
  position: fixed;
  inset: -30%;
  pointer-events: none;
  z-index: -1;
  filter: blur(52px);
}

.lk-shell::before {
  background:
    radial-gradient(circle at 18% 22%, rgba(132, 227, 174, 0.34) 0%, rgba(132, 227, 174, 0) 40%),
    radial-gradient(circle at 78% 16%, rgba(186, 248, 214, 0.26) 0%, rgba(186, 248, 214, 0) 45%);
  animation: fregat-float-a 18s ease-in-out infinite alternate;
}

.lk-shell::after {
  background:
    radial-gradient(circle at 85% 82%, rgba(95, 194, 140, 0.2) 0%, rgba(95, 194, 140, 0) 42%),
    radial-gradient(circle at 30% 78%, rgba(200, 255, 228, 0.24) 0%, rgba(200, 255, 228, 0) 40%);
  animation: fregat-float-b 24s ease-in-out infinite alternate;
}

.lk-content-canvas {
  border: 0;
  border-radius: 2rem;
  background: var(--lk-canvas-bg);
  box-shadow:
    0 18px 46px rgba(16, 73, 44, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  padding: clamp(1rem, 1.2vw, 1.5rem);
}

.lk-content-canvas--with-tabs {
  position: relative;
  z-index: 1;
}

.surface-card {
  border: 0;
  background: #fff;
  box-shadow: none;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.surface-subcard {
  border: 0;
  border-radius: 1.5rem;
  background: #fff;
}

.surface-card-interactive {
  cursor: pointer;
}

.surface-card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(18, 56, 36, 0.12);
}

.manager-hero {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 52rem;
}

.manager-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--brand-primary) 76%, #355947);
}

.manager-title {
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-ink);
}

.manager-copy {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.65;
  color: color-mix(in oklab, var(--brand-ink) 72%, #60786b);
}

.manager-stat-card {
  border: 0;
  border-radius: 1.5rem;
  background: #fff;
  padding: 1rem 1.1rem;
}

.manager-stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5c7b69;
}

.manager-stat-value {
  margin-top: 0.35rem;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 800;
  color: #123824;
}

.manager-helper {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #5c7b69;
}

.manager-field.input,
.manager-field.select,
.manager-field.textarea {
  border: 0;
  border-radius: 1.2rem;
  background: color-mix(in oklab, white 76%, var(--brand-surface));
  box-shadow: none;
}

.manager-field.input:focus,
.manager-field.select:focus,
.manager-field.textarea:focus,
.manager-field.input:focus-visible,
.manager-field.select:focus-visible,
.manager-field.textarea:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(19, 153, 87, 0.16);
}

.manager-mini-card {
  border: 0;
  border-radius: 1.2rem;
  background: #fff;
  padding: 0.9rem 1rem;
}

.manager-channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  background: color-mix(in oklab, white 86%, var(--brand-surface));
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
}

.manager-channel-dot {
  display: inline-flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
}

.manager-empty-state {
  border-radius: 1.4rem;
  background: color-mix(in oklab, white 70%, var(--brand-surface));
  padding: 1rem 1.1rem;
  color: #557562;
}

.bonus-program-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(1.25rem, 2vw, 2rem);
}

.bonus-program-stage {
  min-height: calc(100vh - 2rem);
}

.bonus-program-page {
  position: relative;
  min-height: calc(100vh - 4rem);
}

.bonus-program-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.bonus-program-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.bonus-program-title {
  max-width: 16ch;
  font-size: clamp(2.5rem, 5vw, 5.25rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #fff;
}

.bonus-program-copy {
  max-width: 44rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--bonus-muted);
}

.bonus-program-panel {
  border: 1px solid var(--bonus-border);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02)),
    var(--bonus-surface-raised);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: clamp(1rem, 1.5vw, 1.5rem);
  backdrop-filter: blur(18px);
}

.bonus-program-caption {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.bonus-program-stat {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-radius: 1.45rem;
  border: 1px solid var(--bonus-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
}

.bonus-program-stat__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.bonus-program-stat__value {
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #fff;
}

.bonus-program-input {
  width: 100%;
  border: 1px solid var(--bonus-border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  padding: 0.95rem 1rem;
  outline: 0;
}

.bonus-program-input:focus,
.bonus-program-input:focus-visible {
  border-color: rgba(216, 255, 62, 0.3);
  box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.08);
}

.bonus-program-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--bonus-accent);
  color: #060606;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.bonus-program-primary-button:disabled {
  opacity: 0.45;
}

.bonus-program-ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  border: 1px solid var(--bonus-border);
  border-radius: 999px;
  padding: 0 1rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.bonus-program-feed-item {
  border-radius: 1.6rem;
  border: 1px solid var(--bonus-border);
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.05rem;
}

.bonus-program-inline-link {
  color: var(--bonus-accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.bonus-program-empty {
  border-radius: 1.6rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  padding: 1rem 1.1rem;
  color: rgba(255, 255, 255, 0.55);
}

.bonus-program-orbit {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.42;
}

.bonus-program-orbit--a {
  top: 4%;
  left: -6%;
  width: 15rem;
  height: 15rem;
  background: rgba(216, 255, 62, 0.16);
}

.bonus-program-orbit--b {
  right: -4%;
  bottom: 8%;
  width: 14rem;
  height: 14rem;
  background: rgba(86, 92, 255, 0.18);
}

@media (min-width: 960px) {
  .bonus-program-hero {
    flex-direction: row;
    align-items: flex-end;
  }
}

.lk-page-tabs-shell {
  position: relative;
  z-index: 2;
  margin-bottom: -1px;
  padding-left: clamp(0.75rem, 1.3vw, 1.35rem);
}

.manager-page-tabs {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.45rem;
}

.manager-page-tab {
  border: 1px solid #d7e9de;
  border-bottom: 0;
  border-radius: 1.15rem 1.15rem 0 0;
  background: transparent;
  margin-bottom: -1px;
  padding: 0.8rem 1.2rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #5c7b69;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.manager-page-tab:hover {
  color: #123824;
  border-color: #bfd8ca;
}

.manager-page-tab--active {
  background: var(--lk-canvas-bg);
  color: #123824;
  border-color: #d2e3da;
}

.manager-dock-shell {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  justify-content: center;
  padding: 0 1rem calc(env(safe-area-inset-bottom, 0px) + 1rem);
  pointer-events: none;
}

.manager-dock {
  pointer-events: auto;
  display: flex;
  width: fit-content;
  max-width: min(100%, calc(100vw - 2rem));
  gap: 0.5rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 40px rgba(18, 56, 36, 0.14),
    0 4px 12px rgba(18, 56, 36, 0.08);
  padding: 0.65rem;
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}

.manager-dock__item {
  display: flex;
  min-width: 5.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 1.2rem;
  padding: 0.85rem 0.6rem;
  color: #5e7a69;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.manager-dock__item:hover {
  background: #f3faf6;
  color: #123824;
}

.manager-dock__item--active {
  background: #123824;
  color: #fff;
  transform: translateY(-1px);
}

.manager-dock__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.manager-dock__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
}

.fregat-header-glass {
  background: transparent;
}

.fregat-header-backdrop {
  position: absolute;
  inset: 0;
  height: 350%;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 20%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.1) 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 20%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.1) 65%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.fregat-header-row {
  gap: 0.5rem;
  --fregat-pill-shell-px: 0.5rem;
  --fregat-pill-shell-py: 0.625rem;
  min-height: 3.5rem;
}

.fregat-pill-shell {
  padding-inline: var(--fregat-pill-shell-px);
  padding-block: var(--fregat-pill-shell-py);
}

.fregat-pill-glass {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.2),
    inset 0 4px 20px rgba(255, 255, 255, 0.3);
}

.fregat-pill-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset -10px -8px 0 -11px rgba(255, 255, 255, 1),
    inset 0 -9px 0 -8px rgba(255, 255, 255, 1);
  opacity: 0.45;
  filter: blur(1px) brightness(115%);
  pointer-events: none;
}

.fregat-pill-glass > * {
  position: relative;
  z-index: 1;
}

.fregat-pill-right {
  flex: 0 0 auto;
}

.fregat-pill-center {
  min-width: 0;
}

.fregat-pill-brand {
  flex: 0 0 auto;
}

.lk-nav-link {
  @apply inline-flex items-center gap-2 rounded-full px-4 py-2 text-sm font-semibold transition-all duration-200;
  color: color-mix(in oklab, var(--color-base-content) 78%, transparent);
  min-height: 2rem;
}

.lk-nav-link-brand {
  justify-content: center;
  min-width: 5.5rem;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.lk-pill-divider {
  background: color-mix(in oklab, var(--color-base-content) 20%, transparent);
  opacity: 0.45;
}

.lk-nav-link:hover {
  background: rgba(255, 255, 255, 0.44);
  color: var(--color-base-content);
}

.lk-nav-link-active {
  background: color-mix(in oklab, var(--color-primary) 86%, white);
  color: var(--color-primary-content);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.11);
}

@media (min-width: 1024px) {
  .fregat-header-row {
    min-height: 3.75rem;
    --fregat-pill-shell-px: 0.875rem;
    --fregat-pill-shell-py: 0.75rem;
  }

  .fregat-pill-brand,
  .fregat-pill-center,
  .fregat-pill-right {
    position: absolute;
    top: 0;
  }

  .fregat-pill-brand {
    left: 0;
  }

  .fregat-pill-center {
    left: 50%;
    width: max-content;
    max-width: min(62vw, 1020px);
    transform: translateX(-50%);
  }

  .fregat-pill-right {
    right: 0;
  }
}

@media (max-width: 1023px) {
  .fregat-pill-brand {
    padding-inline: 1rem;
  }

  .lk-nav-link {
    padding-inline: 0.8rem;
    padding-block: 0.55rem;
  }
}

.product-card-anim {
  animation: product-card-in 0.55s ease-out both;
}

@keyframes fregat-aurora {
  0% { background-position: 0% 30%; }
  50% { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}

@keyframes fregat-float-a {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(2.5%, 1.8%, 0) scale(1.05); }
}

@keyframes fregat-float-b {
  from { transform: translate3d(2%, 2%, 0) scale(1.02); }
  to { transform: translate3d(-2%, -1%, 0) scale(1.06); }
}

@keyframes product-card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
