*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.collapse {
  visibility: collapse;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.flex-shrink {
  flex-shrink: 1;
}

.flex-grow {
  flex-grow: 1;
}

.border-collapse {
  border-collapse: collapse;
}

.scale-100 {
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-95 {
  --tw-scale-x: .95;
  --tw-scale-y: .95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.resize {
  resize: both;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.self-center {
  align-self: center;
}

.rounded-full {
  border-radius: 9999px;
}

.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-purple-500\/20 {
  border-color: rgb(168 85 247 / 0.2);
}

.border-\[hsl\(var\(--border-glow\)\)\] {
  border-color: hsl(var(--border-glow));
}

.bg-purple-500\/10 {
  background-color: rgb(168 85 247 / 0.1);
}

.p-4 {
  padding: 1rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.uppercase {
  text-transform: uppercase;
}

.capitalize {
  text-transform: capitalize;
}

.italic {
  font-style: italic;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.text-purple-400 {
  --tw-text-opacity: 1;
  color: rgb(192 132 252 / var(--tw-text-opacity, 1));
}

.text-\[hsl\(var\(--text-muted\)\)\] {
  color: hsl(var(--text-muted));
}

.underline {
  text-decoration-line: underline;
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.backdrop-filter {
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

:root {
  --font-family: 'Outfit', sans-serif;
  /* HSL tailored color palette */
  --bg-base: 224deg 25% 6%;
  --bg-surface: 222deg 22% 10%;
  --bg-card: 220deg 20% 12%;
  --primary: 263deg 90% 64%;
  --primary-glow: 263deg 90% 64% / 30%;
  --primary-hover: 263deg 95% 70%;
  --secondary: 190deg 90% 50%;
  --secondary-glow: 190deg 90% 50% / 30%;
  --accent: 339deg 90% 60%;
  --text-primary: 210deg 40% 98%;
  --text-secondary: 215deg 20% 70%;
  --text-muted: 215deg 15% 45%;
  --success: 145deg 80% 50%;
  --danger: 350deg 85% 58%;
  --warning: 45deg 90% 55%;
  --border-glow: 255deg 255% 255% / 8%;
  --border-active: 263deg 90% 64% / 40%;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  background-color: hsl(var(--bg-base));
  color: hsl(var(--text-primary));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Gradients & Glows */

body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: 
    radial-gradient(circle at 10% 20%, hsl(var(--primary) / 10%) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsl(var(--secondary) / 8%) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: hsl(var(--secondary));
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: hsl(var(--text-primary));
}

/* Custom Scrollbar */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--bg-base));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--text-muted) / 30%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary) / 50%);
}

/* Typography */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

p {
  color: hsl(var(--text-secondary));
}

.text-gradient {
  background: linear-gradient(135deg, hsl(var(--text-primary)) 20%, hsl(var(--primary)) 60%, hsl(var(--secondary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Containers */

.glass-panel {
  background: hsl(var(--bg-card) / 60%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsl(var(--border-glow));
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
  border-color: hsl(var(--border-active));
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45), 0 0 16px hsl(var(--primary) / 10%);
}

.glass-card {
  background: hsl(var(--bg-card) / 40%);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border-glow));
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: hsl(var(--primary) / 30%);
}

/* Layout Elements */

header {
  border-bottom: 1px solid hsl(var(--border-glow));
  background: hsl(var(--bg-base) / 80%);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--text-primary));
}

.logo-accent {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: hsl(var(--text-secondary));
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: hsl(var(--text-primary));
  background: hsl(var(--primary) / 10%);
}

main {
  flex: 1;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

footer {
  border-top: 1px solid hsl(var(--border-glow));
  padding: 2rem;
  text-align: center;
  background: hsl(var(--bg-surface));
  margin-top: auto;
  font-size: 0.9rem;
  color: hsl(var(--text-muted));
}

/* Button UI Components */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-hover)));
  color: #fff;
  box-shadow: 0 4px 15px hsl(var(--primary) / 30%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsl(var(--primary) / 45%), 0 0 10px hsl(var(--primary-hover) / 20%);
}

.btn-secondary {
  background: hsl(var(--bg-surface));
  border: 1px solid hsl(var(--border-glow));
  color: hsl(var(--text-primary));
}

.btn-secondary:hover {
  background: hsl(var(--text-muted) / 10%);
  border-color: hsl(var(--text-secondary) / 30%);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--accent) / 80%));
  color: #fff;
  box-shadow: 0 4px 15px hsl(var(--accent) / 30%);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsl(var(--accent) / 45%);
}

/* Form inputs & autocompletes */

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-weight: 500;
  font-size: 0.9rem;
  color: hsl(var(--text-secondary));
}

.input-field {
  background: hsl(var(--bg-surface));
  border: 1px solid hsl(var(--border-glow));
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: hsl(var(--text-primary));
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
  width: 100%;
}

select.input-field {
  color: hsl(var(--text-primary)) !important;
  background-color: hsl(var(--bg-surface)) !important;
}

select.input-field option {
  background-color: hsl(var(--bg-card)) !important;
  color: hsl(var(--text-primary)) !important;
}

.input-field:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 20%);
}

/* Autocomplete relative container */

.autocomplete-container {
  position: relative;
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-glow));
  border-radius: var(--radius-sm);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.autocomplete-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.autocomplete-item:hover {
  background: hsl(var(--primary) / 20%);
}

.autocomplete-item .country {
  font-size: 0.8rem;
  color: hsl(var(--text-muted));
}

/* Leaflet Map Styling Override */

.map-container {
  height: 400px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border-glow));
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.leaflet-container {
  background-color: hsl(var(--bg-base)) !important;
  font-family: var(--font-family) !important;
}

/* Custom dark basemap filters if needed (CSS trick) */

.map-dark-tiles .leaflet-tile-container {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.leaflet-bar a {
  background-color: hsl(var(--bg-card)) !important;
  color: hsl(var(--text-primary)) !important;
  border-bottom: 1px solid hsl(var(--border-glow)) !important;
}

.leaflet-bar a:hover {
  background-color: hsl(var(--primary) / 20%) !important;
}

.leaflet-popup-content-wrapper {
  background: hsl(var(--bg-card)) !important;
  color: hsl(var(--text-primary)) !important;
  border: 1px solid hsl(var(--border-glow)) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

.leaflet-popup-tip {
  background: hsl(var(--bg-card)) !important;
  border: 1px solid hsl(var(--border-glow)) !important;
}

/* Compare Grid & Metrics */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.city-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border-glow));
}

.city-header img {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.metric-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.metric-label-container {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.metric-val {
  font-weight: 600;
  color: hsl(var(--secondary));
}

.metric-bar-bg {
  height: 10px;
  background: hsl(var(--bg-surface));
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary)));
  border-radius: 5px;
  width: 0%;
  transition: width 1s ease-out;
}

.diff-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.diff-badge.better {
  background: hsl(var(--success) / 15%);
  color: hsl(var(--success));
}

.diff-badge.worse {
  background: hsl(var(--danger) / 15%);
  color: hsl(var(--danger));
}

/* Budget Survival Game Styles */

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  padding: 1rem;
}

.stat-val {
  font-size: 1.8rem;
  font-weight: 800;
}

.stat-val.money {
  color: hsl(var(--warning));
}

.stat-val.health {
  color: hsl(var(--danger));
}

.stat-val.happiness {
  color: hsl(var(--secondary));
}

.game-card-container {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.scenario-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem;
}

.scenario-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .scenario-options-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.scenario-choice-btn {
  width: 100%;
  text-align: left;
  background: hsl(var(--bg-surface) / 40%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border-glow));
  border-top: 4px solid hsl(var(--secondary) / 40%);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  color: hsl(var(--text-primary));
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.scenario-choice-btn:hover {
  background: hsl(var(--primary) / 8%);
  border-color: hsl(var(--primary) / 50%);
  border-top-color: hsl(var(--primary));
  transform: translateY(-6px);
  box-shadow: 0 10px 25px hsl(var(--primary) / 12%);
}

.scenario-choice-btn.border-primary {
  border-color: hsl(var(--primary)) !important;
  border-left-color: hsl(var(--primary)) !important;
  box-shadow: 0 0 15px hsl(var(--primary) / 20%);
  background: hsl(var(--primary) / 5%);
}

.scenario-choice-btn .effect-preview {
  font-size: 0.85rem;
  color: hsl(var(--text-secondary));
  line-height: 1.4;
}

/* Option Card Premium Elements */

.option-card-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--primary));
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.option-card-body {
  font-size: 1.05rem;
  line-height: 1.5;
  color: hsl(var(--text-primary));
  margin-bottom: 1rem;
}

.option-card-footer {
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid hsl(var(--border-glow));
  padding-top: 0.75rem;
  margin-top: auto;
}

.impact-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: hsl(var(--bg-surface) / 60%);
  border: 1px solid hsl(var(--border-glow));
}

.impact-indicator.positive-health {
  color: hsl(var(--success));
  box-shadow: 0 0 8px hsl(var(--success) / 10%);
  border-color: hsl(var(--success) / 30%);
}

.impact-indicator.negative-health {
  color: hsl(var(--danger));
  box-shadow: 0 0 8px hsl(var(--danger) / 10%);
  border-color: hsl(var(--danger) / 30%);
}

.impact-indicator.positive-happiness {
  color: hsl(var(--secondary));
  box-shadow: 0 0 8px hsl(var(--secondary) / 10%);
  border-color: hsl(var(--secondary) / 30%);
}

.impact-indicator.negative-happiness {
  color: hsl(var(--text-muted));
  box-shadow: 0 0 8px hsl(var(--text-muted) / 10%);
  border-color: hsl(var(--text-muted) / 30%);
}

/* Outcomes and Canvas Render */

.outcome-canvas-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

#share-card-canvas {
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border-glow));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* General Layout Grids */

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

.hero-section {
  text-align: center;
  max-width: 800px;
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Embed panel code box */

.embed-code-box {
  background: #000;
  border: 1px solid hsl(var(--border-glow));
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: #39ff14;
  /* matrix green */
  font-family: monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  -webkit-user-select: all;
     -moz-user-select: all;
          user-select: all;
  margin-top: 1rem;
}

/* Light Mode Override Scheme */

body.light-mode {
  --bg-base: 220deg 25% 95%;
  --bg-surface: 220deg 20% 90%;
  --bg-card: 0deg 0% 100%;
  --primary: 263deg 90% 55%;
  --primary-glow: 263deg 90% 55% / 15%;
  --primary-hover: 263deg 95% 62%;
  --secondary: 190deg 95% 42%;
  --text-primary: 220deg 25% 12%;
  --text-secondary: 220deg 15% 35%;
  --text-muted: 220deg 10% 55%;
  --border-glow: 0deg 0% 0% / 8%;
  --border-active: 263deg 90% 55% / 30%;
}

body.light-mode::before {
  background: 
    radial-gradient(circle at 10% 20%, hsl(var(--primary) / 6%) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsl(var(--secondary) / 5%) 0%, transparent 40%);
}

body.light-mode .embed-code-box {
  background: #f4f5f8;
  color: #111;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Theme Toggle Button style */

.theme-toggle-btn {
  background: hsl(var(--bg-card));
  border: 1px solid hsl(var(--border-glow));
  color: hsl(var(--text-primary));
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.1rem;
}

.theme-toggle-btn:hover {
  background: hsl(var(--primary) / 20%);
  border-color: hsl(var(--primary));
  transform: translateY(-2px);
}

/* Explorer Map Drawer Layout */

.explorer-container {
  position: relative;
  width: 100%;
  height: 650px;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border-glow));
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.explorer-sidebar {
  position: absolute;
  top: 15px;
  left: 15px;
  bottom: 15px;
  width: 320px;
  z-index: 1000;
  background: hsl(var(--bg-card) / 85%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border-glow));
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.explorer-sidebar.closed {
  transform: translateX(-110%);
  opacity: 0;
  pointer-events: none;
}

.explorer-toggle {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1001;
  background: hsl(var(--bg-card) / 90%);
  backdrop-filter: blur(8px);
  border: 1px solid hsl(var(--border-glow));
  color: hsl(var(--text-primary));
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.explorer-toggle:hover {
  background: hsl(var(--primary) / 20%);
  border-color: hsl(var(--primary));
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .explorer-container {
    height: 500px;
  }

  .explorer-sidebar {
    width: calc(100% - 30px);
    top: 15px;
    bottom: 15px;
    left: 15px;
    height: calc(100% - 30px);
    max-height: none;
    padding: 1.25rem;
    gap: 1.25rem;
    z-index: 1002;
  }

  .hero-actions {
    flex-direction: column;
    padding: 0 1rem;
  }
}

/* Compact Header Dropdowns */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  color: hsl(var(--text-secondary));
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.active .nav-dropdown-trigger {
  color: hsl(var(--text-primary));
  background: hsl(var(--primary) / 10%);
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg) !important;
  color: hsl(var(--secondary));
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem) scale(0.95);
  transform-origin: top center;
  background: hsl(var(--bg-surface) / 95%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsl(var(--border-glow));
  border-radius: var(--radius-md);
  min-width: 190px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s;
}

/* Hover bridge to keep dropdown open during vertical mouse transition */

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 0;
  right: 0;
  height: 0.6rem;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0.5rem) scale(1);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  color: hsl(var(--text-secondary)) !important;
  padding: 0.6rem 1rem !important;
  margin: 0.1rem 0;
  font-size: 0.9rem !important;
  border-radius: var(--radius-sm) !important;
  background: transparent !important;
  display: block;
  text-align: left;
  transition: all var(--transition-fast);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: hsl(var(--text-primary)) !important;
  background: hsl(var(--primary) / 15%) !important;
  transform: translateX(4px);
}

/* Mobile Navigation Hamburger Menu Styles */

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: hsl(var(--text-primary));
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: hsl(var(--bg-base) / 98%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid hsl(var(--border-glow));
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.mobile-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a, .nav-dropdown-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: 0;
    overflow: hidden;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    display: none;
  }

  .nav-dropdown-menu.mobile-show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    max-height: 300px;
    padding: 0.5rem 0 0.5rem 1.5rem !important;
  }
}

/* Responsive Cookie Banner */

.cookie-banner-responsive {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
}

@media (max-width: 576px) {
  .cookie-banner-responsive {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-align: center;
  }

  .cookie-banner-responsive button {
    width: 100%;
  }
}

/* Responsive HUD and stats */

@media (max-width: 600px) {
  .game-stats {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
}

/* Professional Role selection grid */

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .role-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Responsive KPI grids */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

@media (max-width: 400px) {
  .kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  }
}

/* 2-column responsive layout */

.grid-responsive-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-responsive-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Main content mobile padding */

@media (max-width: 480px) {
  main {
    padding: 1.25rem !important;
  }
}

/* Canvas responsiveness */

.responsive-canvas {
  max-width: 100%;
  height: auto !important;
}

/* Responsive Panel Padding */

.responsive-panel-padding {
  padding: 2.5rem !important;
}

@media (max-width: 768px) {
  .responsive-panel-padding {
    padding: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .responsive-panel-padding {
    padding: 1.25rem !important;
  }
}

@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:items-center {
    align-items: center;
  }

  .sm\:p-7 {
    padding: 1.75rem;
  }
}




