/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1f2937; background-color: #f8fafc; position: relative; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

/* ===== Custom Colors ===== */
:root {
  --primary: #0096ff;
  --darkprimary: rgb(30 64 175);
  --secondary: #dc3545;
  --lightsecondary: rgb(219 234 254);
}

/* ===== Utility: Display ===== */
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }

/* ===== Utility: Position ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-10 { top: 2.5rem; }
.top-20 { top: 5rem; }
.top-\[-10\%\] { top: -10%; }
.top-\[30\%\] { top: 30%; }
.top-\[60\%\] { top: 60%; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 1rem; }
.bottom-\[-5\%\] { bottom: -5%; }
.left-1\/2 { left: 50%; }
.left-\[-5\%\] { left: -5%; }
.left-\[10\%\] { left: 10%; }
.left-\[30\%\] { left: 30%; }
.left-\[40\%\] { left: 40%; }
.right-\[-10\%\] { right: -10%; }
.right-\[15\%\] { right: 15%; }

/* ===== Utility: Z-Index ===== */
.-z-10 { z-index: -10; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* ===== Utility: Flex ===== */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }

/* ===== Utility: Grid ===== */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ===== Utility: Spacing ===== */
.space-x-2 > :not(:first-child) { margin-left: 0.5rem; }
.space-x-4 > :not(:first-child) { margin-left: 1rem; }
.space-y-2 > :not(:first-child) { margin-top: 0.5rem; }
.space-y-3 > :not(:first-child) { margin-top: 0.75rem; }

/* ===== Utility: Padding ===== */
.p-1 { padding: 0.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-0 { padding-top: 0; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-16 { padding-bottom: 4rem; }
.pl-4 { padding-left: 1rem; }

/* ===== Utility: Margin ===== */
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.ml-10 { margin-left: 2.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-9 { margin-top: 2.25rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.me-4 { margin-inline-end: 1rem; }

/* ===== Utility: Width & Height ===== */
.w-2 { width: 0.5rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-full { width: 100%; }
.w-100 { width: 100%; }
.w-\[300px\] { width: 300px; }
.w-\[350px\] { width: 350px; }
.w-\[400px\] { width: 400px; }
.w-\[500px\] { width: 500px; }
.w-\[600px\] { width: 600px; }
.h-2 { height: 0.5rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-20 { height: 5rem; }
.h-full { height: 100%; }
.h-\[200px\] { height: 200px; }
.h-\[300px\] { height: 300px; }
.h-\[350px\] { height: 350px; }
.h-\[400px\] { height: 400px; }
.h-\[500px\] { height: 500px; }
.h-\[600px\] { height: 600px; }

/* ===== Utility: Max Width ===== */
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.container { width: 100%; max-width: 80rem; margin-left: auto; margin-right: auto; }

/* ===== Utility: Typography ===== */
.font-sans { font-family: 'Inter', system-ui, sans-serif; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-\[\'Pacifico\'\] { font-family: 'Pacifico', cursive; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-s { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.whitespace-nowrap { white-space: nowrap; }

/* ===== Utility: Colors ===== */
.text-white { color: #fff; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-darkprimary { color: var(--darkprimary); }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-yellow-400 { color: #facc15; }

/* ===== Utility: Background ===== */
.bg-white { background-color: #fff; }
.bg-primary { background-color: var(--primary); }
.bg-primary\/10 { background-color: rgba(0, 150, 255, 0.1); }
.bg-secondary { background-color: var(--secondary); }
.bg-lightsecondary { background-color: var(--lightsecondary); }
.bg-slate-50 { background-color: #f8fafc; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-blue-300 { background-color: #93c5fd; }
.bg-blue-400 { background-color: #60a5fa; }
.bg-cyan-300 { background-color: #67e8f9; }
.bg-cyan-400 { background-color: #22d3ee; }
.bg-purple-400 { background-color: #c084fc; }
.bg-purple-500 { background-color: #a855f7; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/50 { background-color: rgba(255, 255, 255, 0.5); }
.bg-white\/60 { background-color: rgba(255, 255, 255, 0.6); }
.bg-white\/70 { background-color: rgba(255, 255, 255, 0.7); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-blue-500 { --tw-gradient-from: #3b82f6; --tw-gradient-to: #3b82f6; }
.to-blue-600 { --tw-gradient-to: #2563eb; }

/* ===== Utility: Border ===== */
.border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #e5e7eb; }
.border-l { border-left-width: 1px; border-left-style: solid; border-left-color: #e5e7eb; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: #e5e7eb; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }
.border-white\/40 { border-color: rgba(255, 255, 255, 0.4); }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-700 { border-color: #374151; }
.border-primary\/30 { border-color: rgba(0, 150, 255, 0.3); }
.border-primary\/50 { border-color: rgba(0, 150, 255, 0.5); }

/* ===== Utility: Border Radius ===== */
.rounded-2xl { border-radius: 24px; }
.rounded-full { border-radius: 9999px; }
.\!rounded-button { border-radius: 8px !important; }

/* ===== Utility: Shadow ===== */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.shadow-primary\/25 { --tw-shadow-color: rgba(0, 150, 255, 0.25); box-shadow: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); }
.shadow-primary\/30 { --tw-shadow-color: rgba(0, 150, 255, 0.3); box-shadow: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); }
.shadow-secondary\/25 { --tw-shadow-color: rgba(220, 53, 69, 0.25); box-shadow: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color); }

/* ===== Utility: Opacity ===== */
.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }
.opacity-15 { opacity: 0.15; }
.opacity-20 { opacity: 0.2; }
.opacity-25 { opacity: 0.25; }
.opacity-30 { opacity: 0.3; }
.opacity-70 { opacity: 0.7; }

/* ===== Utility: Blur & Backdrop ===== */
.blur-3xl { filter: blur(64px); }
.backdrop-blur-md { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.backdrop-blur-lg { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.backdrop-blur-xl { -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }

/* ===== Utility: Transform ===== */
.transform { }
.-translate-x-1\/2 { transform: translateX(-50%); }
.translate-y-4 { transform: translateY(1rem); }
.scale-105 { transform: scale(1.05); }

/* ===== Utility: Transitions ===== */
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.transition-opacity { transition-property: opacity; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.transition-shadow { transition-property: box-shadow; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4,0,0.2,1); }
.duration-200 { transition-duration: 200ms; }
.duration-1000 { transition-duration: 1000ms; }

/* ===== Utility: Overflow ===== */
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* ===== Utility: Object Fit ===== */
.object-contain { object-fit: contain; }

/* ===== Utility: Pointer Events ===== */
.pointer-events-none { pointer-events: none; }

/* ===== Utility: Hover States ===== */
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-white:hover { color: #fff; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-white\/80:hover { background-color: rgba(255, 255, 255, 0.8); }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.hover\:shadow-primary\/40:hover { box-shadow: 0 10px 15px -3px rgba(0, 150, 255, 0.4), 0 4px 6px -4px rgba(0, 150, 255, 0.4); }
.hover\:shadow-primary\/50:hover { box-shadow: 0 10px 15px -3px rgba(0, 150, 255, 0.5), 0 4px 6px -4px rgba(0, 150, 255, 0.5); }

/* ===== Responsive: md (768px) ===== */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:h-\[500px\] { height: 500px; }
}

/* ===== Responsive: lg (1024px) ===== */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
}

/* ===== Custom Components (from inline styles) ===== */
:where([class^="ri-"])::before { content: "\f3c2"; }

.chart-container { width: 100%; height: 200px; }

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.custom-switch { position: relative; display: inline-block; width: 40px; height: 24px; }
.custom-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #0096ff; }
input:checked + .slider:before { transform: translateX(16px); }

.custom-checkbox { position: relative; display: inline-block; width: 20px; height: 20px; }
.custom-checkbox input { opacity: 0; width: 0; height: 0; }
.checkmark { position: absolute; top: 0; left: 0; height: 20px; width: 20px; background-color: #fff; border: 2px solid #ccc; border-radius: 4px; }
.custom-checkbox input:checked ~ .checkmark { background-color: #0096ff; border-color: #0096ff; }
.checkmark:after { content: ""; position: absolute; display: none; }
.custom-checkbox input:checked ~ .checkmark:after { display: block; }
.custom-checkbox .checkmark:after { left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.glass { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.3); }
.glass-strong { backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.25); }
