:root {
  --ixdc-bg: #f7f6fa;
  --ixdc-bg-soft: #fbf9fd;
  --ixdc-surface: #fffdfd;
  --ixdc-surface-raised: #ffffff;
  --ixdc-text: #15121a;
  --ixdc-text-subtle: #625b6b;
  --ixdc-text-muted: #8a8294;
  --ixdc-border: #e7e2ec;
  --ixdc-border-strong: #d8d0df;
  --ixdc-brand: #e6007e;
  --ixdc-brand-hover: #bf0068;
  --ixdc-brand-soft: #fff0f7;
  --ixdc-ink: #20163b;
  --ixdc-ink-2: #2d214f;
  --ixdc-success: #15803d;
  --ixdc-warning: #c2410c;
  --ixdc-info: #2563eb;
  --ixdc-shadow-sm: 0 1px 2px rgba(21, 18, 26, 0.05);
  --ixdc-shadow-md: 0 16px 36px rgba(32, 22, 59, 0.08);
  --ixdc-shadow-lg: 0 24px 60px rgba(32, 22, 59, 0.12);
  --ixdc-radius: 18px;
  --ixdc-radius-sm: 12px;
}

html {
  text-rendering: optimizeLegibility;
}

body {
  background: var(--ixdc-bg);
  color: var(--ixdc-text);
  font-feature-settings: "tnum" 1;
}

::selection {
  background: var(--ixdc-brand);
  color: #fff7fb;
}

a,
button,
input,
select,
textarea,
[tabindex] {
  outline-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(230, 0, 126, 0.22) !important;
  outline-offset: 2px;
}

.text-ixdc-brand {
  color: var(--ixdc-brand) !important;
}

.bg-ixdc-brand {
  background-color: var(--ixdc-brand) !important;
}

.hover\:bg-ixdc-brandHover:hover,
.hover\:text-ixdc-brandHover:hover {
  color: var(--ixdc-brand-hover) !important;
}

.hover\:bg-ixdc-brandHover:hover {
  background-color: var(--ixdc-brand-hover) !important;
  color: #fff7fb !important;
}

.border-ixdc-brand,
.hover\:border-ixdc-brand:hover {
  border-color: var(--ixdc-brand) !important;
}

.shadow-brand-glow {
  box-shadow: 0 12px 24px rgba(230, 0, 126, 0.18) !important;
}

.glass-nav {
  background: rgba(255, 253, 253, 0.92) !important;
  border-bottom: 1px solid rgba(231, 226, 236, 0.88) !important;
  box-shadow: 0 10px 30px rgba(21, 18, 26, 0.04);
}

.glass-nav a {
  min-height: 40px;
}

.glass-nav img {
  object-fit: contain;
}

.hero-shell,
.project-surface,
.result-shell,
.profile-shell,
.metric-card {
  background:
    radial-gradient(circle at 92% 0%, rgba(230, 0, 126, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 253, 253, 0.98), rgba(247, 246, 250, 0.96)) !important;
}

.soft-card,
.bg-white.rounded-2xl,
.bg-white.rounded-xl,
section.bg-white,
div.bg-white.border,
div.bg-white.rounded-\[24px\] {
  background-color: var(--ixdc-surface-raised) !important;
  border-color: var(--ixdc-border) !important;
  box-shadow: var(--ixdc-shadow-sm) !important;
}

.rounded-2xl,
.rounded-\[24px\],
.rounded-\[28px\] {
  border-radius: var(--ixdc-radius) !important;
}

.rounded-xl,
.rounded-lg {
  border-radius: var(--ixdc-radius-sm) !important;
}

.hover-lift {
  transition:
    transform 190ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 190ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 190ms ease !important;
}

.hover-lift:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--ixdc-shadow-md) !important;
  border-color: rgba(230, 0, 126, 0.34) !important;
}

.sidebar {
  background:
    linear-gradient(180deg, var(--ixdc-ink), #171127 100%) !important;
  color: #c8c1dc !important;
}

.sidebar-item {
  border-left: 0 !important;
  border-radius: 12px;
  margin: 0 12px;
  padding: 0.78rem 1rem !important;
  color: #c8c1dc;
  transition:
    background-color 170ms ease,
    color 170ms ease,
    transform 170ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.sidebar-item:hover,
.sidebar-item.active {
  background: rgba(230, 0, 126, 0.14) !important;
  color: #fff7fb !important;
  box-shadow: inset 0 0 0 1px rgba(255, 247, 251, 0.08);
}

.sidebar-item:hover {
  transform: translateX(2px);
}

.custom-scroll {
  scrollbar-color: #cfc7dc transparent;
  scrollbar-width: thin;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #cfc7dc !important;
  border-radius: 999px !important;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead tr,
tr.bg-gray-50 {
  background: #f8f5fa !important;
}

tbody tr {
  transition: background-color 150ms ease;
}

tbody tr:hover {
  background: #fbf6fa !important;
}

th {
  color: var(--ixdc-text-subtle) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em !important;
}

td {
  color: var(--ixdc-text);
}

.ixdc-input,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  border-color: var(--ixdc-border-strong) !important;
  background: #fffdfd !important;
  color: var(--ixdc-text) !important;
  border-radius: 12px !important;
}

.ixdc-input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ixdc-brand) !important;
  box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.12) !important;
}

.ixdc-checkbox {
  border-color: var(--ixdc-border-strong) !important;
}

.ixdc-checkbox:checked {
  background-color: var(--ixdc-brand-soft) !important;
  border-color: var(--ixdc-brand) !important;
}

.upload-zone {
  border-color: #cfc7dc !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 253, 0.96), rgba(248, 245, 250, 0.92)) !important;
}

.upload-zone:hover {
  border-color: rgba(230, 0, 126, 0.7) !important;
  background: var(--ixdc-brand-soft) !important;
}

.bg-gray-50 {
  background-color: #f8f5fa !important;
}

.bg-gray-100 {
  background-color: #f0ebf3 !important;
}

.border-gray-100,
.border-gray-200,
.border-gray-300 {
  border-color: var(--ixdc-border) !important;
}

.text-gray-900,
.text-gray-800 {
  color: var(--ixdc-text) !important;
}

.text-gray-700,
.text-gray-600 {
  color: var(--ixdc-text-subtle) !important;
}

.text-gray-500,
.text-gray-400 {
  color: var(--ixdc-text-muted) !important;
}

.bg-green-100,
.bg-emerald-50 {
  background-color: #edf9f1 !important;
}

.text-green-500,
.text-green-600,
.text-emerald-600 {
  color: var(--ixdc-success) !important;
}

.bg-orange-50,
.bg-amber-50 {
  background-color: #fff7ed !important;
}

.text-orange-500,
.text-orange-600,
.text-amber-800 {
  color: var(--ixdc-warning) !important;
}

.bg-blue-50,
.bg-blue-100 {
  background-color: #eff6ff !important;
}

.text-blue-500,
.text-blue-600 {
  color: var(--ixdc-info) !important;
}

.fixed.inset-0 {
  backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  body.flex.h-screen.overflow-hidden {
    display: block !important;
    height: auto !important;
    min-height: 100vh;
    overflow: auto !important;
  }

  aside.sidebar {
    width: 100% !important;
    height: auto !important;
    min-height: 0;
  }

  aside.sidebar nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.75rem !important;
  }

  .sidebar-item {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
  }

  aside.sidebar > div:last-child {
    display: none;
  }

  main.flex-1.flex.flex-col.h-screen {
    height: auto !important;
    min-height: calc(100vh - 9rem);
  }

  header.h-20 {
    height: auto !important;
    min-height: 4.5rem;
    padding: 1rem !important;
  }

  .glass-nav .space-x-6,
  .glass-nav .space-x-8 {
    gap: 0.75rem !important;
  }

  table {
    min-width: 720px;
  }
}
