:root {
  --obsidian: #09090b;
  --obsidian-soft: #141416;
  --gold: #d4a853;
  --gold-light: #f5d89a;
  --electric: #00d4ff;
  --electric-light: #67e8f9;
  --violet: #8b5cf6;
  --panel-border: rgba(255, 255, 255, 0.06);
  --panel-bg: rgba(255, 255, 255, 0.03);
}

body {
  background: var(--obsidian);
  color: #a3a3a3;
}

html:not(.dark) body.bg-obsidian,
html:not(.dark) body {
  background: #f5f1e8 !important;
  color: #3f3f46 !important;
}

.noise-overlay,
.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 83, 0.22);
  background: rgba(212, 168, 83, 0.1);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html:not(.dark) .noise-overlay {
  opacity: .015;
}

.panel-shell,
.dashboard-card,
.dashboard-card-muted,
.card-premium {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.82), rgba(9, 9, 11, 0.92));
  box-shadow: 0 24px 64px -32px rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

html:not(.dark) .panel-shell,
html:not(.dark) .dashboard-card,
html:not(.dark) .dashboard-card-muted,
html:not(.dark) .card-premium {
  border-color: rgba(15, 23, 42, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 246, 242, 0.96));
  box-shadow: 0 24px 64px -32px rgba(15, 23, 42, 0.18);
}

.panel-shell,
.dashboard-card,
.card-premium {
  border-radius: 1.5rem;
}

.dashboard-card-muted {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.dashboard-card-muted:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.dashboard-card,
.card-premium {
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.dashboard-card:hover,
.card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 72px -30px rgba(0, 0, 0, 0.75);
}

.nav-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-chip-active {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: 0 16px 40px -24px rgba(0, 0, 0, 0.55);
}

.nav-chip-idle {
  border: 1px solid transparent;
  color: #a3a3a3;
}

.nav-chip-idle:hover {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

html:not(.dark) #sidebar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-right-color: rgba(15, 23, 42, 0.08) !important;
}

html:not(.dark) .bg-obsidian\/55,
html:not(.dark) .bg-obsidian\/70,
html:not(.dark) .bg-obsidian\/80,
html:not(.dark) .bg-obsidian\/85,
html:not(.dark) .bg-obsidian\/50,
html:not(.dark) .bg-obsidian {
  background: rgba(255, 255, 255, 0.82) !important;
}

html:not(.dark) .nav-chip-active {
  border-color: rgba(212, 168, 83, 0.28);
  background: rgba(212, 168, 83, 0.12);
  color: #111827;
  box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.18);
}

html:not(.dark) .nav-chip-idle {
  color: #52525b;
}

html:not(.dark) .nav-chip-idle:hover {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.04);
  color: #111827;
}

.btn-premium {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-family: Syne, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #09090b;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-premium:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 40px -10px rgba(212, 168, 83, 0.5);
}

.input-premium,
.input-premium-soft {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 0.8rem 1rem;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.input-premium::placeholder,
.input-premium-soft::placeholder {
  color: #737373;
}

.input-premium:focus,
.input-premium-soft:focus {
  outline: none;
  border-color: rgba(212, 168, 83, 0.4);
  background: rgba(212, 168, 83, 0.03);
  box-shadow: 0 0 0 1px rgba(212, 168, 83, 0.18);
}

html:not(.dark) .input-premium,
html:not(.dark) .input-premium-soft {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
}

html:not(.dark) .input-premium::placeholder,
html:not(.dark) .input-premium-soft::placeholder {
  color: #a1a1aa;
}

html:not(.dark) .text-white {
  color: #111827 !important;
}

html:not(.dark) .text-neutral-400 {
  color: #52525b !important;
}

html:not(.dark) .text-neutral-300,
html:not(.dark) .text-neutral-200 {
  color: #27272a !important;
}

html:not(.dark) .text-neutral-500 {
  color: #71717a !important;
}

html:not(.dark) .text-neutral-600 {
  color: #a1a1aa !important;
}

html:not(.dark) .text-slate-400,
html:not(.dark) .text-slate-500,
html:not(.dark) .dark\:text-neutral-400,
html:not(.dark) .dark\:text-neutral-500,
html:not(.dark) .dark\:text-emerald-400 {
  color: #71717a !important;
}

html:not(.dark) .border-white\/\[0\.06\],
html:not(.dark) .border-white\/\[0\.05\],
html:not(.dark) .border-white\/10,
html:not(.dark) .border-white\/\[0\.1\] {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html:not(.dark) .divide-white\/\[0\.05\] > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html:not(.dark) .divide-slate-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html:not(.dark) .glass-dark {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

html:not(.dark) .bg-white\/\[0\.02\] {
  background: rgba(15, 23, 42, 0.025) !important;
}

html:not(.dark) .bg-white\/\[0\.03\] {
  background: rgba(15, 23, 42, 0.035) !important;
}

html:not(.dark) .bg-white\/\[0\.04\] {
  background: rgba(15, 23, 42, 0.045) !important;
}

html:not(.dark) .bg-white\/\[0\.05\] {
  background: rgba(15, 23, 42, 0.055) !important;
}

html:not(.dark) .bg-white\/\[0\.08\] {
  background: rgba(15, 23, 42, 0.075) !important;
}

html:not(.dark) .hover\:bg-white\/\[0\.02\]:hover {
  background: rgba(15, 23, 42, 0.03) !important;
}

html:not(.dark) .hover\:bg-white\/\[0\.03\]:hover,
html:not(.dark) .active\:bg-white\/10:active {
  background: rgba(15, 23, 42, 0.04) !important;
}

html:not(.dark) .hover\:bg-white\/\[0\.05\]:hover,
html:not(.dark) .hover\:bg-white\/10:hover {
  background: rgba(15, 23, 42, 0.06) !important;
}

html:not(.dark) .hover\:bg-white\/\[0\.08\]:hover,
html:not(.dark) .hover\:bg-white\/\[0\.1\]:hover {
  background: rgba(15, 23, 42, 0.08) !important;
}

html:not(.dark) .hover\:text-white:hover {
  color: #111827 !important;
}

html:not(.dark) .group:hover .group-hover\:text-white {
  color: #111827 !important;
}

html:not(.dark) .text-electric-light {
  color: #0891b2 !important;
}

html:not(.dark) .text-violet-light,
html:not(.dark) .text-violet-400 {
  color: #6d28d9 !important;
}

html:not(.dark) .text-emerald-400,
html:not(.dark) .text-emerald-500,
html:not(.dark) .text-orange-500,
html:not(.dark) .text-yellow-500,
html:not(.dark) .text-red-500 {
  filter: saturate(0.95);
}

html:not(.dark) .group:hover .group-hover\:text-gold,
html:not(.dark) .hover\:text-gold:hover {
  color: #b8943f !important;
}

html:not(.dark) .group:hover .group-hover\:border-gold\/30,
html:not(.dark) .hover\:border-gold\/30:hover {
  border-color: rgba(184, 148, 63, 0.28) !important;
}

html:not(.dark) .bg-obsidian\/10,
html:not(.dark) .hover\:bg-obsidian\/10:hover {
  background: rgba(15, 23, 42, 0.06) !important;
}

html:not(.dark) .hover\:bg-obsidian\/20:hover {
  background: rgba(15, 23, 42, 0.1) !important;
}

html:not(.dark) .bg-black\/60 {
  background: rgba(15, 23, 42, 0.2) !important;
}

html:not(.dark) .from-gold\/10,
html:not(.dark) .to-electric\/10,
html:not(.dark) .to-gold\/5,
html:not(.dark) .from-electric\/20,
html:not(.dark) .to-electric\/5,
html:not(.dark) .from-violet\/20,
html:not(.dark) .to-violet\/5,
html:not(.dark) .from-gold\/20,
html:not(.dark) .bg-gold\/10,
html:not(.dark) .bg-electric\/10,
html:not(.dark) .bg-violet-500\/10,
html:not(.dark) .bg-violet\/10 {
  filter: saturate(0.9);
}

html:not(.dark) table thead {
  background: rgba(15, 23, 42, 0.04) !important;
}

html:not(.dark) table tbody tr:hover {
  background: rgba(15, 23, 42, 0.025) !important;
}

html:not(.dark) .rounded-full.bg-white\/10,
html:not(.dark) .bg-white\/10 {
  background: rgba(15, 23, 42, 0.08) !important;
}

html:not(.dark) footer {
  background: rgba(255, 255, 255, 0.78) !important;
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

html:not(.dark) .backdrop-blur-sm,
html:not(.dark) .backdrop-blur-md,
html:not(.dark) .backdrop-blur-xl,
html:not(.dark) .backdrop-blur-2xl {
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

html:not(.dark) #emojiPicker,
html:not(.dark) [id="uploadModal"] > div,
html:not(.dark) #contact-modal > div {
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,246,242,0.98)) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  color: #111827 !important;
}

html:not(.dark) #emojiPicker .emoji-btn:hover {
  background: rgba(15, 23, 42, 0.06) !important;
}

html:not(.dark) select option {
  color: #111827;
  background: #fff;
}

html:not(.dark) .shadow-gold\/10,
html:not(.dark) .shadow-gold\/20 {
  box-shadow: 0 18px 40px -24px rgba(184, 148, 63, 0.28) !important;
}

.animate-fade-in {
  animation: fade-in 0.45s ease-out;
}

.animate-fade-in-down {
  animation: fade-in-down 0.35s ease-out;
}

.animate-scale-in {
  animation: scale-in 0.28s ease-out;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
