/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, ::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 */
  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]) {
  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::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;
}
.visible{
  visibility: visible;
}
.fixed{
  position: fixed;
}
.absolute{
  position: absolute;
}
.relative{
  position: relative;
}
.block{
  display: block;
}
.flex{
  display: flex;
}
.inline-flex{
  display: inline-flex;
}
.table{
  display: table;
}
.grid{
  display: grid;
}
.hidden{
  display: none;
}
.min-h-screen{
  min-height: 100vh;
}
.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;
}
.items-center{
  align-items: center;
}
.justify-center{
  justify-content: center;
}
.break-all{
  word-break: break-all;
}
.border{
  border-width: 1px;
}
.bg-\[\#0f172a\]{
  --tw-bg-opacity: 1;
  background-color: rgb(15 23 42 / var(--tw-bg-opacity, 1));
}
.uppercase{
  text-transform: uppercase;
}
.capitalize{
  text-transform: capitalize;
}
.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);
}
.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;
}

/* ─── Design tokens ─────────────────────────────── */
:root {
  --bg-primary: #08080f;
  --bg-secondary: #0d0d1b;
  --bg-card: rgba(14, 14, 28, 0.88);
  --bg-card-hover: rgba(22, 22, 44, 0.95);
  --border: rgba(139, 92, 246, 0.14);
  --border-strong: rgba(139, 92, 246, 0.28);
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-soft: #c4b5fd;
  --accent-glow: rgba(139, 92, 246, 0.18);
  --accent-glow-strong: rgba(139, 92, 246, 0.32);
  --accent-blue: #6366f1;
  --accent-blue-glow: rgba(99, 102, 241, 0.18);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #f87171;
  --text-primary: #f0eeff;
  --text-secondary: #bdb9d8;
  --text-muted: #6e6a96;
  --panel-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --sidebar-w: 272px;
  --sidebar-w-tablet: 220px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 26px;
}

/* ─── Reset & base ───────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #08080f;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  -webkit-tap-highlight-color: transparent;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
[role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* ─── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.22);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Focus ring (accessibility) ────────────────── */
:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Utilities ─────────────────────────────────── */
.glass {
  background: rgba(14, 14, 28, 0.94);
  border: 1px solid var(--border);
  box-shadow: var(--panel-shadow);
}

.gradient-text {
  background: linear-gradient(135deg, #e0d9ff 0%, #c4b5fd 25%, #a78bfa 55%, #8b5cf6 80%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-border {
  box-shadow: 0 0 0 1px var(--accent), 0 0 28px var(--accent-glow-strong);
}

/* ─── Animations ─────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.3s ease-out both; }

/* ─── Spinner ────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(167, 139, 250, 0.9);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ─── Inputs ─────────────────────────────────────── */
.input-dark,
.select-dark {
  width: 100%;
  background: rgba(10, 10, 22, 0.9);
  border: 1px solid rgba(139, 92, 246, 0.12);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 2px 8px rgba(0, 0, 0, 0.2);
  font-family: inherit;
  /* touch friendly */
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}

.select-dark { cursor: pointer; }

.input-dark:focus,
.select-dark:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  background: rgba(14, 14, 30, 0.95);
}

.input-dark::placeholder { color: var(--text-muted); opacity: 0.8; }
.select-dark option { background: var(--bg-secondary); color: var(--text-primary); }

/* ─── Buttons ────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 45%, #6d28d9 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 24px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.18s, opacity 0.18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(109, 40, 217, 0.35);
  letter-spacing: -0.01em;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  will-change: transform;
  -webkit-appearance: none;
  appearance: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.22s;
}

@media (hover: hover) {
  .btn-primary:hover:not(:disabled)::before { opacity: 1; }
  .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(109, 40, 217, 0.45);
  }
}

.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-md);
  padding: 11px 20px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}

@media (hover: hover) {
  .btn-secondary:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.26);
    color: var(--accent-soft);
  }
}

/* ─── Cards ──────────────────────────────────────── */
.card,
.stat-card,
.result-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--panel-shadow);
  contain: layout style;
}

.card {
  background: rgba(14, 14, 28, 0.92);
  padding: 24px;
  transition: border-color 0.2s ease;
}

@media (hover: hover) {
  .card:hover { border-color: rgba(139, 92, 246, 0.22); }
}

.stat-card {
  background: rgba(14, 14, 28, 0.92);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.2);
  }
}

.result-card {
  background: rgba(18, 14, 38, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.22);
  padding: 28px;
}

/* ─── Badges ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-success { background: rgba(34, 197, 94, 0.14); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-danger  { background: rgba(248, 113, 113, 0.14); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.2); }
.badge-purple  { background: rgba(139, 92, 246, 0.14); color: var(--accent-soft); border: 1px solid rgba(139, 92, 246, 0.22); }
.badge-blue    { background: rgba(99, 102, 241, 0.14); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.22); }

/* ─── Tables ─────────────────────────────────────── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* subtle scroll indicator */
  background:
    linear-gradient(to right, var(--bg-card) 0%, transparent 3%),
    linear-gradient(to left, var(--bg-card) 0%, transparent 3%);
  background-attachment: local, local;
}

.table-dark {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table-dark th {
  padding: 13px 16px;
  text-align: left;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: rgba(14, 14, 28, 0.6);
}

.table-dark td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.06);
  color: var(--text-secondary);
  vertical-align: middle;
}

@media (hover: hover) {
  .table-dark tr:hover td { background: rgba(139, 92, 246, 0.04); }
}
.table-dark tr:last-child td { border-bottom: none; }

/* ─── Toast ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  animation: slideDown 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  max-width: calc(100vw - 32px);
}

.toast-success { background: rgba(22, 163, 74, 0.96); color: white; border: 1px solid rgba(34, 197, 94, 0.3); }
.toast-error   { background: rgba(220, 38, 38, 0.96); color: white; border: 1px solid rgba(248, 113, 113, 0.3); }
.toast-info    { background: rgba(109, 40, 217, 0.96); color: white; border: 1px solid rgba(139, 92, 246, 0.35); }

/* ─── Modal ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  overflow-y: auto;
}

.modal-card {
  background: rgba(14, 14, 28, 0.98);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.1);
  /* Prevent overflow on small screens */
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

/* ─── Sidebar ────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  height: 100%;
  min-height: 100dvh;
  background: #090914;
  border-right: 1px solid rgba(139, 92, 246, 0.1);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
  will-change: transform;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 14px;
  margin: 2px 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
  letter-spacing: -0.01em;
  /* touch target */
  min-height: 44px;
}

@media (hover: hover) {
  .sidebar-link:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--text-secondary);
  }
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(99, 102, 241, 0.08));
  color: #ddd6fe;
  border: 1px solid rgba(139, 92, 246, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 20px rgba(139, 92, 246, 0.08);
}

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 200;
  width: 44px;
  height: 44px;
  background: rgba(14, 14, 28, 0.96);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.2s, border-color 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  /* prevent flash on iOS */
  -webkit-tap-highlight-color: transparent;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 49;
}

.sidebar-overlay.open { display: block; }

/* ─── App Shell ──────────────────────────────────── */
.app-shell { display: flex; }

.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100dvh;
  width: calc(100% - var(--sidebar-w));
  background: transparent;
  contain: layout;
}

/* ─── Page structure ─────────────────────────────── */
.page-stack { display: grid; gap: 22px; }

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 30px 32px;
  background: linear-gradient(135deg, rgba(22, 18, 46, 0.98), rgba(10, 9, 24, 0.99));
  border: 1px solid rgba(139, 92, 246, 0.16);
  box-shadow: var(--panel-shadow);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: auto -60px -100px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 65%);
  pointer-events: none;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-title {
  margin: 14px 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  word-break: break-word;
}

.hero-subtitle {
  max-width: 680px;
  color: var(--text-muted);
  font-size: clamp(0.875rem, 2vw, 0.96rem);
  line-height: 1.72;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-pill {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.12);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ─── Metric grid ────────────────────────────────── */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 14px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 20px;
  background: rgba(12, 12, 26, 0.94);
  border: 1px solid rgba(139, 92, 246, 0.1);
  box-shadow: var(--panel-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
  contain: layout style;
}

@media (hover: hover) {
  .metric-card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
  }
}

.metric-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0), rgba(139, 92, 246, 0.8), rgba(99, 102, 241, 0));
}

.metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.metric-value {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-label {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ─── Panel ──────────────────────────────────────── */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.panel-kicker {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
  font-weight: 600;
}

/* ─── Action cards ───────────────────────────────── */
.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.action-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  display: block;
  background: linear-gradient(135deg, #2d1b69 0%, #5b21b6 52%, #8b5cf6 100%);
  box-shadow: 0 4px 20px rgba(45, 27, 105, 0.5);
  transition: transform 0.2s ease;
  will-change: transform;
  contain: layout style;
}

@media (hover: hover) {
  .action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(45, 27, 105, 0.6);
  }
}

.action-card:active { transform: scale(0.99); }

.action-card.alt {
  background: rgba(16, 14, 32, 0.97);
  border: 1px solid rgba(139, 92, 246, 0.14);
  box-shadow: var(--panel-shadow);
}

@media (hover: hover) {
  .action-card.alt:hover {
    border-color: rgba(139, 92, 246, 0.26);
  }
}

.action-card-title {
  margin: 0 0 8px;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.action-card-copy {
  margin: 0;
  color: rgba(240, 238, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ─── Surface note ───────────────────────────────── */
.surface-note {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(139, 92, 246, 0.1);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ─── Filter pills ───────────────────────────────── */
.filter-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  font-family: inherit;
  text-transform: capitalize;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  -webkit-appearance: none;
}

@media (hover: hover) {
  .filter-pill:hover {
    background: rgba(139, 92, 246, 0.07);
    color: var(--text-secondary);
  }
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.1));
  border-color: rgba(139, 92, 246, 0.3);
  color: #e0d9ff;
}

/* Filter row — responsive */
.filter-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
  align-items: center;
}

/* ─── Token rows ─────────────────────────────────── */
.token-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(139, 92, 246, 0.08);
  transition: border-color 0.18s;
  min-width: 0;
}

@media (hover: hover) {
  .token-row:hover { border-color: rgba(139, 92, 246, 0.16); }
}

.token-key {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.token-value {
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ─── Copy button ────────────────────────────────── */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  background: rgba(139, 92, 246, 0.1);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 32px;
  -webkit-appearance: none;
}

@media (hover: hover) {
  .copy-btn:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.3);
  }
}

.copy-btn.copied {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.24);
}

/* ─── Responsive layouts (replaces inline styles) ── */

/* Login two-column */
.auth-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 100dvh;
}

.auth-left {
  position: relative;
  padding: 48px clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(139, 92, 246, 0.1);
  overflow: hidden;
  gap: 32px;
}

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

/* Create-payment & similar two-col form+sidebar */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 18px;
  align-items: start;
}

/* Pay page two-col */
.pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

/* ─── Selection buttons (method/game/amount pickers) */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr));
  gap: 10px;
}

.selection-grid-sm {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 10px;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(86px, 100%), 1fr));
  gap: 8px;
}

/* ─── Form field label ───────────────────────────── */
.field-label {
  display: block;
  margin-bottom: 9px;
  color: #c4b5fd;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ─── Error alert ────────────────────────────────── */
.alert-error {
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: #fecaca;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

/* ─── Sticky table head ──────────────────────────── */
.table-dark thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* ─── Large responsive breakpoints ──────────────── */

/* ── Desktop (1025px+) */
@media (min-width: 1025px) {
  .sidebar        { width: var(--sidebar-w); }
  .main-content   { margin-left: var(--sidebar-w); width: calc(100% - var(--sidebar-w)); }
  .sidebar-toggle { display: none !important; }
}

/* ── Laptop / Tablet landscape (769px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  :root { --sidebar-w-active: var(--sidebar-w-tablet); }

  .sidebar { width: var(--sidebar-w-tablet); }

  .main-content {
    margin-left: var(--sidebar-w-tablet);
    width: calc(100% - var(--sidebar-w-tablet));
    padding: 20px !important;
  }

  .sidebar-toggle { display: none !important; }

  .card,
  .stat-card,
  .result-card {
    padding: 18px;
    border-radius: var(--radius-md);
  }

  .metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
    gap: 12px;
  }

  .page-hero { padding: 24px 26px; }

  /* Collapse two-col to single col on tablet */
  .split-layout { grid-template-columns: 1fr; }
  .pay-layout   { grid-template-columns: 1fr; }

  /* Auth stays two-col on tablet landscape */
  .auth-layout  { grid-template-columns: 1.1fr 0.9fr; }
}

/* ── Tablet portrait (481px–768px) */
@media (max-width: 768px) {
  .sidebar-toggle { display: flex !important; }

  .sidebar {
    width: min(280px, 80vw);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 48px rgba(0, 0, 0, 0.6);
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 70px 16px 28px !important;
  }

  /* All multi-col layouts → single col on mobile */
  .auth-layout   { grid-template-columns: 1fr; }
  .auth-left     { border-right: none; border-bottom: 1px solid rgba(139, 92, 246, 0.1); padding: 32px 20px; justify-content: flex-start; }
  .auth-right    { padding: 24px 16px; align-items: flex-start; }

  .split-layout  { grid-template-columns: 1fr; }
  .pay-layout    { grid-template-columns: 1fr; }

  .filter-row    { grid-template-columns: 1fr; }

  .table-dark    { font-size: 0.8rem; }

  .table-dark th,
  .table-dark td { padding: 10px 12px; }

  .card,
  .stat-card { padding: 16px; border-radius: 18px; }

  .result-card { padding: 18px; border-radius: 18px; }

  .input-dark,
  .select-dark {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 12px;
    min-height: 52px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 12px;
    min-height: 52px;
  }

  .page-hero {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .page-hero::after { display: none; }

  .hero-strip { gap: 8px; }

  .hero-pill {
    font-size: 0.75rem;
    padding: 7px 12px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
  }

  .action-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .action-card { min-height: 140px; padding: 20px; }

  .modal-card { border-radius: var(--radius-md); }

  .page-stack { gap: 16px; }

  .selection-grid    { grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr)); }
  .selection-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
}

/* ── Mobile (max 480px) */
@media (max-width: 480px) {
  .main-content {
    padding: 66px 12px 24px !important;
  }

  .card,
  .stat-card,
  .result-card {
    padding: 14px;
    border-radius: var(--radius-md);
  }

  .result-card { padding: 16px; }

  .btn-primary {
    width: 100%;
    padding: 15px;
    justify-content: center;
  }

  .table-dark { font-size: 0.75rem; }

  .table-dark th,
  .table-dark td { padding: 9px 10px; }

  .toast {
    bottom: 14px;
    right: 10px;
    left: 10px;
    font-size: 0.8rem;
  }

  .copy-btn { padding: 5px 9px; font-size: 0.72rem; }

  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .metric-card { padding: 14px; border-radius: 16px; }
  .metric-icon { width: 36px; height: 36px; border-radius: 10px; margin-bottom: 10px; }

  .metric-value { font-size: 1.35rem; }
  .metric-label { font-size: 0.75rem; }

  .hero-strip { flex-direction: column; }
  .hero-pill  { width: fit-content; }

  .page-hero { padding: 16px 14px; border-radius: var(--radius-md); }

  .eyebrow { font-size: 0.65rem; }

  .filter-pill { font-size: 0.75rem; padding: 7px 12px; }

  .panel-header { margin-bottom: 14px; }

  .token-row { padding: 10px 12px; }

  .selection-grid    { grid-template-columns: repeat(auto-fill, minmax(min(105px, 100%), 1fr)); gap: 8px; }
  .selection-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 8px; }
  .amount-grid       { grid-template-columns: repeat(auto-fill, minmax(min(76px, 100%), 1fr)); gap: 7px; }

  .page-stack { gap: 13px; }

  .action-card { min-height: 130px; padding: 18px; }
  .action-card-title { font-size: 1rem; }
}

/* ── Small mobile (max 360px) */
@media (max-width: 360px) {
  .main-content { padding: 62px 10px 20px !important; }

  .metric-grid  { gap: 8px; }
  .metric-value { font-size: 1.2rem; }

  .hero-title { font-size: 1.4rem; }

  .auth-layout  { grid-template-columns: 1fr; }
}

