:root {
  --bg: #f7f2ea;
  --bg-alt: #f1ebe1;
  --surface: #ffffff;
  --surface-alt: #f9f5ef;
  --ink: #1b1f24;
  --muted: #5f6b73;
  --primary: #0f766e;
  --primary-strong: #0b5f59;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --highlight: #f1c453;
  --ring: rgba(15, 118, 110, 0.25);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body.app-body {
  font-family: 'Manrope', 'Space Grotesk', sans-serif;
  color: var(--ink);
  font-size: 15px;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(900px 600px at 85% 0%, rgba(14, 116, 144, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #fdfcf9 60%, #ffffff 100%);
  min-height: 100vh;
}

.app-body .text-6xl {
  font-size: 3.1rem;
}

.app-body .text-5xl {
  font-size: 2.5rem;
}

.app-body .text-4xl {
  font-size: 2rem;
}

.app-body .text-3xl {
  font-size: 1.6rem;
}

.app-body .text-2xl {
  font-size: 1.35rem;
}

.app-body .text-xl {
  font-size: 1.15rem;
}

.app-body .text-lg {
  font-size: 1.05rem;
}

.app-body .p-10 {
  padding: 1.75rem;
}

.app-body .p-8 {
  padding: 1.5rem;
}

.app-body .p-6 {
  padding: 1.25rem;
}

.app-body .px-6 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.app-body .py-8 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.app-body .py-6 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.app-body .gap-8 {
  gap: 1.5rem;
}

.app-body .gap-6 {
  gap: 1.25rem;
}

.app-body .space-y-4 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 0.75rem;
}

.app-body .space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

.app-body .space-y-8 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1.25rem;
}

body.app-body::before,
body.app-body::after {
  content: '';
  position: fixed;
  z-index: -1;
  opacity: 0.7;
  filter: blur(0);
}

body.app-body::before {
  width: 520px;
  height: 520px;
  top: -200px;
  right: -160px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.35), transparent 65%);
}

body.app-body::after {
  width: 460px;
  height: 460px;
  bottom: -220px;
  left: -140px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.3), transparent 65%);
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
}

.app-nav {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.app-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.app-body .bg-white {
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.app-body .shadow-lg,
.app-body .shadow-xl,
.app-body .shadow-2xl {
  box-shadow: var(--shadow);
}

.app-body .bg-gray-50 {
  background-color: var(--surface-alt);
}

.app-body .text-gray-600,
.app-body .text-gray-500 {
  color: var(--muted);
}

input,
select,
textarea {
  font-family: inherit;
}

.app-body input,
.app-body select,
.app-body textarea {
  background-color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.app-body input:focus,
.app-body select:focus,
.app-body textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.gradient-bg {
  background: radial-gradient(1200px at 10% 20%, rgba(249, 115, 22, 0.35), transparent 60%),
    radial-gradient(900px at 85% 0%, rgba(15, 118, 110, 0.35), transparent 55%),
    linear-gradient(135deg, #1f2933 0%, #0f172a 45%, #1b4d4b 100%);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-shell .auth-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth-shell .auth-hero {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.2), rgba(249, 115, 22, 0.18));
  border-radius: 18px;
}

.dashboard-shell .tab-btn.active {
  color: var(--primary);
  border-color: var(--primary);
}

.admin-shell .bg-gray-900,
.admin-shell .bg-gray-800 {
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-soft);
}

.admin-shell .bg-gray-700 {
  background-color: rgba(246, 243, 236, 0.9);
}

.admin-shell .text-gray-100,
.admin-shell .text-gray-300,
.admin-shell .text-gray-400 {
  color: var(--muted);
}

.admin-shell .divide-gray-700 {
  border-color: rgba(15, 23, 42, 0.08);
}

.admin-shell .border-gray-600 {
  border-color: rgba(15, 23, 42, 0.12);
}

.admin-shell .bg-blue-900\/50 {
  background-color: rgba(15, 118, 110, 0.12);
}

.admin-shell .bg-green-900\/50 {
  background-color: rgba(34, 197, 94, 0.12);
}

.admin-shell .bg-purple-900\/50 {
  background-color: rgba(249, 115, 22, 0.12);
}

.admin-shell .bg-yellow-900\/50 {
  background-color: rgba(251, 191, 36, 0.14);
}

.admin-shell .text-blue-400,
.admin-shell .text-green-400,
.admin-shell .text-purple-400,
.admin-shell .text-yellow-400 {
  color: var(--primary);
}

.text-purple-600,
.text-purple-500,
.text-purple-400,
.text-purple-700 {
  color: var(--primary) !important;
}

.text-purple-100 {
  color: rgba(255, 255, 255, 0.78) !important;
}

.bg-purple-600,
.bg-purple-500 {
  background-color: var(--primary) !important;
}

.border-purple-500,
.border-purple-600 {
  border-color: var(--primary) !important;
}

.bg-purple-50 {
  background-color: rgba(15, 118, 110, 0.08) !important;
}

.hover\:bg-purple-700:hover {
  background-color: var(--primary-strong) !important;
}

.hover\:text-purple-600:hover,
.hover\:text-purple-700:hover {
  color: var(--primary-strong) !important;
}

.hover\:from-purple-700:hover {
  --tw-gradient-from: var(--primary-strong) !important;
  --tw-gradient-to: rgba(15, 118, 110, 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.hover\:to-purple-800:hover {
  --tw-gradient-to: #c2410c !important;
}

.focus\:ring-purple-500:focus {
  box-shadow: 0 0 0 3px var(--ring) !important;
}

.bg-yellow-400 {
  background-color: var(--accent) !important;
}

.text-yellow-300 {
  color: #fbbf24 !important;
}

.bg-gradient-to-r.from-purple-600 {
  --tw-gradient-from: var(--primary) !important;
  --tw-gradient-to: var(--accent) !important;
}

.bg-gradient-to-r.to-purple-600 {
  --tw-gradient-to: var(--accent) !important;
}

.bg-gradient-to-r.from-purple-500,
.bg-gradient-to-br.from-purple-50,
.bg-gradient-to-br.from-purple-100 {
  --tw-gradient-from: rgba(15, 118, 110, 0.2) !important;
}

.bg-gradient-to-br.to-purple-100,
.bg-gradient-to-r.to-purple-700 {
  --tw-gradient-to: rgba(249, 115, 22, 0.18) !important;
}

.from-purple-500 {
  --tw-gradient-from: rgba(15, 118, 110, 0.45) !important;
  --tw-gradient-to: rgba(15, 118, 110, 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.from-purple-600 {
  --tw-gradient-from: var(--primary) !important;
  --tw-gradient-to: rgba(15, 118, 110, 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-purple-600 {
  --tw-gradient-to: var(--accent) !important;
}

.to-purple-700 {
  --tw-gradient-to: var(--accent-strong) !important;
}

.to-purple-800 {
  --tw-gradient-to: #c2410c !important;
}

.btn-primary,
.app-body .bg-green-500 {
  background-color: var(--primary) !important;
}

.app-body .hover\:bg-green-600:hover {
  background-color: var(--primary-strong) !important;
}

.app-body .bg-blue-500 {
  background-color: #1d4ed8 !important;
}

.app-body .hover\:bg-blue-600:hover {
  background-color: #1e40af !important;
}

.app-body .bg-red-500 {
  background-color: #dc2626 !important;
}

.app-body .hover\:bg-red-600:hover {
  background-color: #b91c1c !important;
}

@media (max-width: 768px) {
  body.app-body::before,
  body.app-body::after {
    display: none;
  }

  .app-nav {
    backdrop-filter: none;
  }
}

@media (min-width: 768px) {
  .app-body .md\:text-5xl {
    font-size: 2.6rem;
  }
}
